From 4ea170a83ad1cbcb123fa3c36e2b5d7e5ee8cba0 Mon Sep 17 00:00:00 2001 From: Jaco Date: Mon, 20 Sep 2021 21:33:30 +0300 Subject: [PATCH] Add childstate_getStorageEntries RPC (#3980) * Add `childstate_getStorageEntries` RPC * Remove extra , --- CHANGELOG.md | 7 +++++++ .../src/interfaces/childstate/definitions.ts | 20 +++++++++++++++++++ 2 files changed, 27 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 052431cfb5..538dd63de2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # CHANGELOG +## master + +Changes: + +- Add `childstate_getStorageEntries` RPC + + ## 6.0.5 Sep 20, 2012 Upgrade priority: Low. Recommended for all users on 6.0.3 using `api.query.*.*.at` calls diff --git a/packages/types/src/interfaces/childstate/definitions.ts b/packages/types/src/interfaces/childstate/definitions.ts index 36d1028740..b3fbe52a32 100644 --- a/packages/types/src/interfaces/childstate/definitions.ts +++ b/packages/types/src/interfaces/childstate/definitions.ts @@ -78,6 +78,26 @@ export default { ], type: 'Option' }, + getStorageEntries: { + description: 'Returns child storage entries for multiple keys at a specific block state', + params: [ + { + name: 'childKey', + type: 'PrefixedStorageKey' + }, + { + name: 'keys', + type: 'Vec' + }, + { + name: 'at', + type: 'Hash', + isHistoric: true, + isOptional: true + } + ], + type: 'Vec>' + }, getStorageHash: { description: 'Returns the hash of a child storage entry at a block state', params: [