-
Notifications
You must be signed in to change notification settings - Fork 979
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Brian Sztamfater <[email protected]>
- Loading branch information
1 parent
b65ac2a
commit 2d95457
Showing
6 changed files
with
1,580 additions
and
8 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
(ns status-im.contexts.wallet.wallet-connect.utils | ||
(:require ["@walletconnect/core" :refer [Core]] | ||
["@walletconnect/web3wallet" :refer [Web3Wallet]] | ||
[status-im.config :as config])) | ||
|
||
(defonce ^:private wallet-connect-metadata | ||
#js | ||
{:name "Status" | ||
:description | ||
"Status is a secure messaging app, crypto wallet, and Web3 browser built with state of the art technology." | ||
:url "https://status.app" | ||
:icons | ||
["https://res.cloudinary.com/dhgck7ebz/image/upload/f_auto,c_limit,w_1080,q_auto/Brand/Logo%20Section/Mark/Mark_01"]}) | ||
|
||
(defn- wallet-connect-core | ||
[] | ||
(Core. #js {:projectId config/WALLET_CONNECT_PROJECT_ID})) | ||
|
||
(defn init | ||
[] | ||
(let [core (wallet-connect-core)] | ||
(Web3Wallet.init | ||
(clj->js {:core core | ||
:metadata wallet-connect-metadata})))) |
Oops, something went wrong.