diff --git a/CHANGELOG.md b/CHANGELOG.md index c61b8dc46e..e3cffd8798 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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` (& 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 diff --git a/packages/api/src/base/Decorate.ts b/packages/api/src/base/Decorate.ts index 4d32febb78..249c2b3d61 100644 --- a/packages/api/src/base/Decorate.ts +++ b/packages/api/src/base/Decorate.ts @@ -235,7 +235,7 @@ export default abstract class Decorate 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 diff --git a/packages/types/src/interfaces/state/definitions.ts b/packages/types/src/interfaces/state/definitions.ts index 88c963084d..fa08875055 100644 --- a/packages/types/src/interfaces/state/definitions.ts +++ b/packages/types/src/interfaces/state/definitions.ts @@ -297,6 +297,21 @@ export default { ], type: 'Vec' }, + getReadProof: { + description: 'Returns proof of storage entries at a specific block state', + params: [ + { + name: 'keys', + type: 'Vec' + }, + { + 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)', + ReadProof: { + at: 'Hash', + proof: 'Vec' + }, RuntimeVersionApi: '(ApiId, u32)', RuntimeVersion: { specName: 'Text',