Commit c418d3e6 authored by yann300's avatar yann300

add api or config explorer

parent eb5e07ec
...@@ -701,6 +701,17 @@ Please make a backup of your contracts and start using http://remix.ethereum.org ...@@ -701,6 +701,17 @@ Please make a backup of your contracts and start using http://remix.ethereum.org
}, },
newAccount: (pass, cb) => { newAccount: (pass, cb) => {
udapp.newAccount(pass, cb) udapp.newAccount(pass, cb)
},
setConfig: (mod, path, content, cb) => {
self._api.filesProviders['config'].set(mod + '/' + path, content)
cb()
},
getConfig: (mod, path, cb) => {
cb(null, self._api.filesProviders['config'].get(mod + '/' + path))
},
removeConfig: (mod, path, cb) => {
cb(null, self._api.filesProviders['config'].remove(mod + '/' + path))
if (cb) cb()
} }
} }
var rhpEvents = { var rhpEvents = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment