From 4c9032fedcf9368be37fbda14994ae96f732dd33 Mon Sep 17 00:00:00 2001 From: Jaco Date: Fri, 21 May 2021 07:58:36 +0300 Subject: [PATCH] Add state_getChildReadProof RPC (#3554) * Add state_getChildReadProof RPC * CHANGELOG --- CHANGELOG.md | 1 + .../types/src/interfaces/state/definitions.ts | 20 +++++++++++++++++++ 2 files changed, 21 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index e9cf789256..f80796da32 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ Changes: - Adjust Westend types for 16 nominators-only - Add support for `DisallowSigned` (as per shell runtime) extension - Display small hex-slice with u8a decoding failures +- Add `state_getChildReadProof` RPC ## 4.10.1 May 17, 2021 diff --git a/packages/types/src/interfaces/state/definitions.ts b/packages/types/src/interfaces/state/definitions.ts index ca34595e56..0c2298b2d6 100644 --- a/packages/types/src/interfaces/state/definitions.ts +++ b/packages/types/src/interfaces/state/definitions.ts @@ -310,6 +310,26 @@ export default { ], type: 'Vec' }, + getChildReadProof: { + description: 'Returns proof of storage for child key entries at a specific block state.', + params: [ + { + name: 'childStorageKey', + type: 'PrefixedStorageKey' + }, + { + name: 'keys', + type: 'Vec' + }, + { + name: 'at', + type: 'BlockHash', + isHistoric: true, + isOptional: true + } + ], + type: 'ReadProof' + }, getReadProof: { description: 'Returns proof of storage entries at a specific block state', params: [