diff options
author | Péter Szilágyi <peterke@gmail.com> | 2017-04-12 20:37:10 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-12 20:37:10 +0800 |
commit | 6b7ae4e751dbaee0f31032f045fd35b0c1079388 (patch) | |
tree | e63f021ae31976fa78e2f5c76a9d1399264db942 /internal/web3ext/web3ext.go | |
parent | 050ceff1aed3d06b4ebf4aead0dc03e7cac34458 (diff) | |
download | dexon-6b7ae4e751dbaee0f31032f045fd35b0c1079388.tar.gz dexon-6b7ae4e751dbaee0f31032f045fd35b0c1079388.tar.zst dexon-6b7ae4e751dbaee0f31032f045fd35b0c1079388.zip |
consensus/clique, internal/web3ext: support hash based API queries (#14321)
* consensus/clique, internal/web3ext: support hash based API queries
* consensus/clique: make RPC return types public
Diffstat (limited to 'internal/web3ext/web3ext.go')
-rw-r--r-- | internal/web3ext/web3ext.go | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/internal/web3ext/web3ext.go b/internal/web3ext/web3ext.go index dd325100f..ac79398b9 100644 --- a/internal/web3ext/web3ext.go +++ b/internal/web3ext/web3ext.go @@ -30,10 +30,8 @@ var Modules = map[string]string{ "shh": Shh_JS, "swarmfs": SWARMFS_JS, "txpool": TxPool_JS, - } - const Chequebook_JS = ` web3._extend({ property: 'chequebook', @@ -77,6 +75,11 @@ web3._extend({ params: 1, inputFormatter: [null] }), + new web3._extend.Method({ + name: 'getSnapshotAtHash', + call: 'clique_getSnapshotAtHash', + params: 1 + }), new web3._extend.Method({ name: 'getSigners', call: 'clique_getSigners', @@ -84,6 +87,11 @@ web3._extend({ inputFormatter: [null] }), new web3._extend.Method({ + name: 'getSignersAtHash', + call: 'clique_getSignersAtHash', + params: 1 + }), + new web3._extend.Method({ name: 'propose', call: 'clique_propose', params: 2 |