Add state_getReadProof (#2196)
This commit is contained in:
+4
-2
@@ -4,11 +4,13 @@
|
||||
- Allow user type augmentation to work with different versions of rxjs (Thanks to https://github.com/monitz87)
|
||||
- Align augmented generation with camelCase (Thanks to https://github.com/monitz87)
|
||||
- Fix bitfield endian encoding (Thanks to investigation by https://github.com/xlc)
|
||||
- Add account flag derives via `accounts.flags(accountId)` (Thanks to https://github.com/kwingram25)
|
||||
- Fix entries decoding for `Option<Number>` (& simplify, decoding correctly on rpc layer)
|
||||
- Add `rpc.system.{localPeerId, localListenAddresses}`
|
||||
- Add `system.{localPeerId, localListenAddresses}` & `state.getReadProof` RPCs
|
||||
- Ensure proper propagation of `api.runtimeVersion` (used for signing) after upgrade
|
||||
- Field ordering fix for deprecated `Linkage` (used in linked maps)
|
||||
- `derive.account.info` now returns all field types (not only raw)
|
||||
- `derive.account.info` now returns all field enum types decoded (not only raw)
|
||||
- Add banner with FAQ entries for node-template to aid with common issues
|
||||
- `Digest` has been moved to definitions, removal of `GenericDigest` type
|
||||
- Support `Fixed128` type
|
||||
- Add `transactionVersion` to `RuntimeVersion` struct
|
||||
|
||||
@@ -235,7 +235,7 @@ export default abstract class Decorate<ApiType extends ApiTypes> extends Events
|
||||
const unknown = exposed.filter((key) => !allKeys.includes(key));
|
||||
|
||||
if (unknown.length) {
|
||||
l.warn(`RPC methods not decorated: ${unknown.join(', ')}}`);
|
||||
l.warn(`RPC methods not decorated: ${unknown.join(', ')}`);
|
||||
}
|
||||
|
||||
// loop through all entries we have (populated in decorate) and filter as required
|
||||
|
||||
@@ -297,6 +297,21 @@ export default {
|
||||
],
|
||||
type: 'Vec<StorageChangeSet>'
|
||||
},
|
||||
getReadProof: {
|
||||
description: 'Returns proof of storage entries at a specific block state',
|
||||
params: [
|
||||
{
|
||||
name: 'keys',
|
||||
type: 'Vec<StorageKey>'
|
||||
},
|
||||
{
|
||||
name: 'at',
|
||||
type: 'BlockHash',
|
||||
isOptional: true
|
||||
}
|
||||
],
|
||||
type: 'ReadProof'
|
||||
},
|
||||
subscribeRuntimeVersion: {
|
||||
alias: ['chain_subscribeRuntimeVersion', 'chain_unsubscribeRuntimeVersion'],
|
||||
description: 'Retrieves the runtime version via subscription',
|
||||
@@ -327,6 +342,10 @@ export default {
|
||||
types: {
|
||||
ApiId: '[u8; 8]',
|
||||
KeyValueOption: '(StorageKey, Option<StorageData>)',
|
||||
ReadProof: {
|
||||
at: 'Hash',
|
||||
proof: 'Vec<Bytes>'
|
||||
},
|
||||
RuntimeVersionApi: '(ApiId, u32)',
|
||||
RuntimeVersion: {
|
||||
specName: 'Text',
|
||||
|
||||
Reference in New Issue
Block a user