From 923248d69332a43972c4be401424fa404fac9d60 Mon Sep 17 00:00:00 2001 From: Alexander Pantyuhov Date: Tue, 27 Dec 2016 13:38:25 +0300 Subject: [PATCH] Adding DApps --- docs/contributing/development/adding-dapps.md | 27 ++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/docs/contributing/development/adding-dapps.md b/docs/contributing/development/adding-dapps.md index 2d9e926..176a699 100644 --- a/docs/contributing/development/adding-dapps.md +++ b/docs/contributing/development/adding-dapps.md @@ -1 +1,26 @@ -# Adding DApps \ No newline at end of file +# Adding DApps + +In order to add a new DApp to Status.im, you need to submit a pull request with the following: + +1. Place a nice icon of your DApp to `images/contacts` directory. The file should be called the same way as your DApp, for example `my-dapp.png`; +2. Add information about this icon to `src/status_im/resources.cljs`, for example, like that: + + ```clojure + (def contacts + {:auction-house (js/require "./images/contacts/auction-house.png") + :my-dapp (js/require "./images/contacts/my-dapp.png")}) + ``` + +3. Add your DApp to the list of existing DApps (`resources/default_contacts.json`): + + ```js + [ + ..., + + {"id": "my-dapp", + "name": "My DApp", + "photo-path": "contacts://my-dapp", + "dapp?": true, + "dapp-url": "http://link-to-your-dapp.com"} + ] + ```