(:require [cljs-iota-mam.core :as iota-mam]
[cljs-iota.core :as iota]))
/public directory (it is needed by MAM cljsjs).
- Properly import MAM file via cljsjs
- Add example
let state = Mam.init(iota, seed, security)
let mode = "restricted"
let sideKey = "SECRET"
let callback = console.log
Mam.changeMode(state, mode, sidekey)
Mam.fetch(root, mode, sidekey, callback)
(iota-mam/init (iota/create-iota "http://localhost:14700") seed security))
(def mode :restricted)
(def side-key "SECRET")
(def f println)
(iota-mam/change-mode state mode side-key)
(iota-mam/fetch root mode side-key f)
Figwheel runs test properly after changing and saving the core_test.cljs file.