aboutsummaryrefslogtreecommitdiffstats
path: root/internal/web3ext/web3ext.go
diff options
context:
space:
mode:
authorFelix Lange <fjl@twurst.com>2016-04-30 05:09:37 +0800
committerFelix Lange <fjl@twurst.com>2016-04-30 05:09:37 +0800
commit1c20313a6a1a35d5f540f878e7c263327c2ccfc1 (patch)
tree4835cd7f3085edb6c6ed41b62edf15be9f9e42dc /internal/web3ext/web3ext.go
parentcfa999f006c30613aa4acce42d8edad056f39c10 (diff)
parent572da73d4d475db0443f457d9383a3d513f189ee (diff)
downloadgo-tangerine-1c20313a6a1a35d5f540f878e7c263327c2ccfc1.tar
go-tangerine-1c20313a6a1a35d5f540f878e7c263327c2ccfc1.tar.gz
go-tangerine-1c20313a6a1a35d5f540f878e7c263327c2ccfc1.tar.bz2
go-tangerine-1c20313a6a1a35d5f540f878e7c263327c2ccfc1.tar.lz
go-tangerine-1c20313a6a1a35d5f540f878e7c263327c2ccfc1.tar.xz
go-tangerine-1c20313a6a1a35d5f540f878e7c263327c2ccfc1.tar.zst
go-tangerine-1c20313a6a1a35d5f540f878e7c263327c2ccfc1.zip
Merge pull request #2493 from almindor/develop
eth: add personal_importRawKey
Diffstat (limited to 'internal/web3ext/web3ext.go')
-rw-r--r--internal/web3ext/web3ext.go27
1 files changed, 21 insertions, 6 deletions
diff --git a/internal/web3ext/web3ext.go b/internal/web3ext/web3ext.go
index bc1e46921..14700b05c 100644
--- a/internal/web3ext/web3ext.go
+++ b/internal/web3ext/web3ext.go
@@ -18,12 +18,13 @@
package web3ext
var Modules = map[string]string{
- "txpool": TxPool_JS,
- "admin": Admin_JS,
- "eth": Eth_JS,
- "miner": Miner_JS,
- "debug": Debug_JS,
- "net": Net_JS,
+ "txpool": TxPool_JS,
+ "admin": Admin_JS,
+ "personal": Personal_JS,
+ "eth": Eth_JS,
+ "miner": Miner_JS,
+ "debug": Debug_JS,
+ "net": Net_JS,
}
const TxPool_JS = `
@@ -175,6 +176,20 @@ web3._extend({
});
`
+const Personal_JS = `
+web3._extend({
+ property: 'personal',
+ methods:
+ [
+ new web3._extend.Method({
+ name: 'importRawKey',
+ call: 'personal_importRawKey',
+ params: 2
+ })
+ ]
+});
+`
+
const Eth_JS = `
web3._extend({
property: 'eth',