aboutsummaryrefslogtreecommitdiffstats
path: root/rpc/api/ssh_js.go
diff options
context:
space:
mode:
authorBas van Kervel <bas@ethdev.com>2015-06-10 18:35:12 +0800
committerBas van Kervel <basvankervel@gmail.com>2015-06-11 20:01:41 +0800
commit7e41d7ac51fdaba1c03ec3f9cb8cc7a7bc3830f4 (patch)
treed14084ef228c60159b64f35e8c18602230f5166b /rpc/api/ssh_js.go
parentbd38428f33b127e9c60d26127695e50c55798fcd (diff)
downloadgo-tangerine-7e41d7ac51fdaba1c03ec3f9cb8cc7a7bc3830f4.tar.gz
go-tangerine-7e41d7ac51fdaba1c03ec3f9cb8cc7a7bc3830f4.tar.zst
go-tangerine-7e41d7ac51fdaba1c03ec3f9cb8cc7a7bc3830f4.zip
added shh API
Diffstat (limited to 'rpc/api/ssh_js.go')
-rw-r--r--rpc/api/ssh_js.go30
1 files changed, 30 insertions, 0 deletions
diff --git a/rpc/api/ssh_js.go b/rpc/api/ssh_js.go
new file mode 100644
index 000000000..f401f70f1
--- /dev/null
+++ b/rpc/api/ssh_js.go
@@ -0,0 +1,30 @@
+package api
+
+const Shh_JS = `
+web3._extend({
+ property: 'shh',
+ methods:
+ [
+ new web3._extend.Method({
+ name: 'post',
+ call: 'shh_post',
+ params: 6,
+ inputFormatter: [web3._extend.formatters.formatInputString,
+ web3._extend.formatters.formatInputString,
+ web3._extend.formatters.formatInputString,
+ ,
+ , web3._extend.formatters.formatInputInt
+ , web3._extend.formatters.formatInputInt],
+ outputFormatter: web3._extend.formatters.formatOutputBool
+ }),
+ ],
+ properties:
+ [
+ new web3._extend.Property({
+ name: 'version',
+ getter: 'shh_version',
+ outputFormatter: web3._extend.formatters.formatOutputInt
+ })
+ ]
+});
+`