Full JSON-RPC docs + sync tests. (#4335)

* Extended Markdown generator

* Synced and extended all JSON-RPC interfaces

* Fix linter errors

* Format `parity_listAccounts` output in API

* typo

* Check if interfaces are synced in JS spec tests

* Fixing missing interface errors

* Better #[rpc] attribute parsing

* Fixed RPC JS spec tests

* More examples

* Refactored how dummy data appears in examples

* Complete trace docs!

* fix typo

* Less copy-paste

* All the docs!

* Fix differences between CallRequest and TransactionRequest

* Fix differences between CallRequest and TransactionRequest

* Missing examples

* Grumble fixes
This commit is contained in:
Maciej Hirsz
2017-02-01 10:58:09 +01:00
committed by Jaco Greeff
parent b2ecf1c5a4
commit ed09a76c91
17 changed files with 791 additions and 299 deletions

View File

@@ -76,6 +76,11 @@ export default class Parity {
.execute('parity_dappsInterface');
}
decryptMessage (address, data) {
return this._transport
.execute('parity_decryptMessage', inAddress(address), inHex(data));
}
defaultExtraData () {
return this._transport
.execute('parity_defaultExtraData');
@@ -292,6 +297,11 @@ export default class Parity {
.then(outAddress);
}
postSign (address, hash) {
return this._transport
.execute('parity_postSign', inAddress(address), inHex(hash));
}
postTransaction (options) {
return this._transport
.execute('parity_postTransaction', inOptions(options));

View File

@@ -32,6 +32,11 @@ export default class Signer {
.execute('signer_confirmRequestRaw', inNumber16(requestId), inData(data));
}
confirmRequestWithToken (requestId, options, password) {
return this._transport
.execute('signer_confirmRequestWithToken', inNumber16(requestId), inOptions(options), password);
}
generateAuthorizationToken () {
return this._transport
.execute('signer_generateAuthorizationToken');