// Copyright 2017-2021 @polkadot/types authors & contributors // SPDX-License-Identifier: Apache-2.0 // order important in structs... :) /* eslint-disable sort-keys */ import type { Definitions } from '../../types'; export default { rpc: { getKeys: { description: 'Returns the keys with prefix from a child storage, leave empty to get all the keys', params: [ { name: 'childKey', type: 'PrefixedStorageKey' }, { name: 'prefix', type: 'StorageKey' }, { name: 'at', type: 'Hash', isHistoric: true, isOptional: true } ], type: 'Vec' }, getStorage: { description: 'Returns a child storage entry at a specific block state', params: [ { name: 'childKey', type: 'PrefixedStorageKey' }, { name: 'key', type: 'StorageKey' }, { name: 'at', type: 'Hash', isHistoric: true, isOptional: true } ], type: 'Option' }, getStorageHash: { description: 'Returns the hash of a child storage entry at a block state', params: [ { name: 'childKey', type: 'PrefixedStorageKey' }, { name: 'key', type: 'StorageKey' }, { name: 'at', type: 'Hash', isHistoric: true, isOptional: true } ], type: 'Option' }, getStorageSize: { description: 'Returns the size of a child storage entry at a block state', params: [ { name: 'childKey', type: 'PrefixedStorageKey' }, { name: 'key', type: 'StorageKey' }, { name: 'at', type: 'Hash', isHistoric: true, isOptional: true } ], type: 'Option' } }, types: { // StorageKey extends Bytes PrefixedStorageKey: 'StorageKey' } } as Definitions;