diff options
author | wanderer <mjbecze@gmail.com> | 2015-01-25 08:45:53 +0800 |
---|---|---|
committer | wanderer <mjbecze@gmail.com> | 2015-01-25 08:45:53 +0800 |
commit | fa93480d9aadf16698dd3a4439e1870dcb61b5cc (patch) | |
tree | 3023ab9a1894edd43fd652e444e69e2874e8f1e4 | |
parent | e1fcffcc810bdf6a116cc12e21c5a8750cb86d23 (diff) | |
download | go-tangerine-fa93480d9aadf16698dd3a4439e1870dcb61b5cc.tar.gz go-tangerine-fa93480d9aadf16698dd3a4439e1870dcb61b5cc.tar.zst go-tangerine-fa93480d9aadf16698dd3a4439e1870dcb61b5cc.zip |
added addressbook
-rw-r--r-- | lib/local.js | 18 |
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; |