aboutsummaryrefslogtreecommitdiffstats
path: root/internal
diff options
context:
space:
mode:
authorZahoor Mohamed <zahoor@zahoor.in>2017-03-23 21:56:06 +0800
committerFelix Lange <fjl@users.noreply.github.com>2017-03-23 21:56:06 +0800
commit11e7a712f469fb24ddb88ecebcefab6ed8880eb8 (patch)
treec052776c80475767eb7a038bef99ff784b071ef7 /internal
parent61d2150a0750a554250c3bf090ef994be6c060f0 (diff)
downloaddexon-11e7a712f469fb24ddb88ecebcefab6ed8880eb8.tar
dexon-11e7a712f469fb24ddb88ecebcefab6ed8880eb8.tar.gz
dexon-11e7a712f469fb24ddb88ecebcefab6ed8880eb8.tar.bz2
dexon-11e7a712f469fb24ddb88ecebcefab6ed8880eb8.tar.lz
dexon-11e7a712f469fb24ddb88ecebcefab6ed8880eb8.tar.xz
dexon-11e7a712f469fb24ddb88ecebcefab6ed8880eb8.tar.zst
dexon-11e7a712f469fb24ddb88ecebcefab6ed8880eb8.zip
swarm/api: support mounting manifests via FUSE (#3690)
Diffstat (limited to 'internal')
-rw-r--r--internal/web3ext/web3ext.go29
1 files changed, 29 insertions, 0 deletions
diff --git a/internal/web3ext/web3ext.go b/internal/web3ext/web3ext.go
index 23112c1f1..79f781781 100644
--- a/internal/web3ext/web3ext.go
+++ b/internal/web3ext/web3ext.go
@@ -27,9 +27,12 @@ var Modules = map[string]string{
"personal": Personal_JS,
"rpc": RPC_JS,
"shh": Shh_JS,
+ "swarmfs": SWARMFS_JS,
"txpool": TxPool_JS,
+
}
+
const Chequebook_JS = `
web3._extend({
property: 'chequebook',
@@ -486,6 +489,32 @@ web3._extend({
]
});
`
+const SWARMFS_JS = `
+web3._extend({
+ property: 'swarmfs',
+ methods:
+ [
+ new web3._extend.Method({
+ name: 'mount',
+ call: 'swarmfs_mount',
+ params: 2,
+ inputFormatter: [null,null]
+ }),
+ new web3._extend.Method({
+ name: 'unmount',
+ call: 'swarmfs_unmount',
+ params: 1,
+ inputFormatter: [null]
+ }),
+ new web3._extend.Method({
+ name: 'listmounts',
+ call: 'swarmfs_listmounts',
+ params: 0,
+ inputFormatter: []
+ })
+ ]
+});
+`
const TxPool_JS = `
web3._extend({