Update Keys, add rotateKeys RPC (#1280)
* author_rotateKeys * Update Keys encoding
This commit is contained in:
@@ -15,6 +15,22 @@ const removeExtrinsic: RpcMethodOpt = {
|
||||
type: 'Vec<Hash>'
|
||||
};
|
||||
|
||||
const insertKey: RpcMethodOpt = {
|
||||
description: 'Insert a key into the keystore.',
|
||||
params: [
|
||||
createParam('keyType', 'Text'),
|
||||
createParam('suri', 'Text'),
|
||||
createParam('maybePublic', 'Bytes', { isOptional: true })
|
||||
],
|
||||
type: 'Bytes'
|
||||
};
|
||||
|
||||
const rotateKeys: RpcMethodOpt = {
|
||||
description: 'Generate new session keys and returns the corresponding public keys',
|
||||
params: [],
|
||||
type: 'Bytes'
|
||||
};
|
||||
|
||||
const pendingExtrinsics: RpcMethodOpt = {
|
||||
description: 'Returns all pending extrinsics, potentially grouped by sender',
|
||||
params: [],
|
||||
@@ -55,7 +71,9 @@ export default {
|
||||
description: 'Authoring of network items',
|
||||
section,
|
||||
methods: {
|
||||
insertKey: createMethod(section, 'insertKey', insertKey),
|
||||
removeExtrinsic: createMethod(section, 'removeExtrinsic', removeExtrinsic),
|
||||
rotateKeys: createMethod(section, 'rotateKeys', rotateKeys),
|
||||
pendingExtrinsics: createMethod(section, 'pendingExtrinsics', pendingExtrinsics),
|
||||
submitExtrinsic: createMethod(section, 'submitExtrinsic', submitExtrinsic),
|
||||
submitAndWatchExtrinsic: createMethod(section, 'submitAndWatchExtrinsic', submitAndWatchExtrinsic)
|
||||
|
||||
Reference in New Issue
Block a user