Skip to content

Commit

Permalink
Experinment
Browse files Browse the repository at this point in the history
  • Loading branch information
ulisesmac committed Apr 19, 2024
1 parent 279b70e commit 5bb42e5
Showing 1 changed file with 37 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,3 +80,40 @@
"emoji" "😀"
"colorId" "pink"
"hidden" :false}]}]


#_(do
#_(native-module.core/get-random-mnemonic #(def --a %))

#_(native-module.core/create-account-from-mnemonic
{:MnemonicPhrase --a
:paths ["m/44'/60'/0'/0/0"]}
(fn [x]
(def --b x)))

#_(status-im.common.json-rpc.events/call
{:method "accounts_importMnemonic"
:params [(native-module.core/sha3 "Hola1234.,")
(:mnemonic --b)]
:on-success (fn [x] (js/alert x))
:on-error #(log/error "failed to import Mnemonic " %)})


#_(let [kp-data (assoc
(status-im.contexts.wallet.add-account.create-account.utils/prepare-new-keypair
{:new-keypair
--b
:new-account
{:account-name "Acc 1"
:account-color :turquoise
:emoji (status-im.common.emoji-picker.utils/random-emoji)}})
:name
"My kp 2")]
(status-im.common.json-rpc.events/call
{:method "accounts_addKeypair"
:params [(native-module.core/sha3 "Hola1234.,")
kp-data]
:on-success [:wallet/add-account-success (string/lower-case (:address --b))]
:on-error #(log/info "___________________ KP ERROR\n\n " %)}))

)

0 comments on commit 5bb42e5

Please sign in to comment.