-
Notifications
You must be signed in to change notification settings - Fork 985
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
yenda
committed
Jan 10, 2020
1 parent
bdcb34f
commit c4e8012
Showing
34 changed files
with
944 additions
and
225 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 23 additions & 0 deletions
23
ios/StatusIm/Images.xcassets/tiny-warning.imageset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"idiom" : "universal", | ||
"filename" : "tiny-warning.png", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"idiom" : "universal", | ||
"filename" : "tiny-warning@2x.png", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"idiom" : "universal", | ||
"filename" : "tiny-warning@3x.png", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"version" : 1, | ||
"author" : "xcode" | ||
} | ||
} |
Binary file added
BIN
+194 Bytes
ios/StatusIm/Images.xcassets/tiny-warning.imageset/tiny-warning.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+301 Bytes
ios/StatusIm/Images.xcassets/tiny-warning.imageset/tiny-warning@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+426 Bytes
ios/StatusIm/Images.xcassets/tiny-warning.imageset/tiny-warning@3x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
(ns status-im.commands.core | ||
(:require | ||
[re-frame.core :as re-frame] | ||
[status-im.ethereum.core :as ethereum] | ||
[status-im.ethereum.json-rpc :as json-rpc] | ||
[status-im.utils.fx :as fx])) | ||
|
||
(fx/defn handle-prepare-accept-request-address-for-transaction | ||
{:events [::prepare-accept-request-address-for-transaction]} | ||
[{:keys [db]} message] | ||
{:db (assoc db | ||
:commands/select-account | ||
{:message message | ||
:from (ethereum/get-default-account (:multiaccount/accounts db))})}) | ||
|
||
(fx/defn set-selected-account | ||
{:events [::set-selected-account]} | ||
[{:keys [db]} _ account] | ||
{:db (-> (assoc-in db [:commands/select-account :from] account) | ||
(assoc :bottom-sheet/show? false))}) | ||
|
||
(fx/defn handle-accept-request-address-for-transaction | ||
{:events [::accept-request-address-for-transaction]} | ||
[{:keys [db]} message-id address] | ||
{:db (dissoc db :commands/select-account) | ||
::json-rpc/call [{:method "shhext_acceptRequestAddressForTransaction" | ||
:params [message-id address] | ||
:on-success #(re-frame/dispatch [:transport/message-sent % 1])}]}) | ||
|
||
(fx/defn handle-decline-request-address-for-transaction | ||
{:events [::decline-request-address-for-transaction]} | ||
[cofx message-id] | ||
{::json-rpc/call [{:method "shhext_declineRequestAddressForTransaction" | ||
:params [message-id] | ||
:on-success #(re-frame/dispatch [:transport/message-sent % 1])}]}) | ||
|
||
(fx/defn handle-decline-request-transaction | ||
{:events [::decline-request-transaction]} | ||
[cofx message-id] | ||
{::json-rpc/call [{:method "shhext_declineRequestTransaction" | ||
:params [message-id] | ||
:on-success #(re-frame/dispatch [:transport/message-sent % 1])}]}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.