// Copyright 2017-2021 @polkadot/apps-config authors & contributors // SPDX-License-Identifier: Apache-2.0 // import type {H256} from '@polkadot/types/interfaces'; // eslint-disable-next-line header/header import type { OverrideBundleDefinition } from '@polkadot/types/types'; // structs need to be in order /* eslint-disable sort-keys */ const definitions: OverrideBundleDefinition = { rpc: { kate: { blockLength: { description: 'Get Block Length', params: [ { name: 'at', type: 'Hash', isOptional: true } ], type: 'BlockLength' }, queryProof: { description: 'Generate the kate proof for the given `cells`', params: [ { name: 'cells', type: 'Vec' }, { name: 'at', type: 'Hash', isOptional: true } ], type: 'Vec' }, queryAppData: { description: 'Fetches app data rows for the given app', params: [ { name: 'app_id', type: 'AppId' }, { name: 'at', type: 'Hash', isOptional: true } ], type: 'Vec>>' }, queryDataProof: { description: 'Generate the data proof for the given `index`', params: [ { name: 'data_index', type: 'u32' }, { name: 'at', type: 'Hash', isOptional: true } ], type: 'DataProof' } } }, types: [ { // on all versions minmax: [0, undefined], types: { AppId: 'Compact', DataLookupIndexItem: { appId: 'AppId', start: 'Compact' }, DataLookup: { size: 'Compact', index: 'Vec' }, KateCommitment: { rows: 'Compact', cols: 'Compact', dataRoot: 'H256', commitment: 'Vec' }, V1HeaderExtension: { commitment: 'KateCommitment', appLookup: 'DataLookup' }, VTHeaderExtension: { newField: 'Vec', commitment: 'KateCommitment', appLookup: 'DataLookup' }, HeaderExtension: { _enum: { V1: 'V1HeaderExtension', VTest: 'VTHeaderExtension' } }, DaHeader: { parentHash: 'Hash', number: 'Compact', stateRoot: 'Hash', extrinsicsRoot: 'Hash', digest: 'Digest', extension: 'HeaderExtension' }, Header: 'DaHeader', CheckAppIdExtra: { appId: 'AppId' }, CheckAppIdTypes: {}, CheckAppId: { extra: 'CheckAppIdExtra', types: 'CheckAppIdTypes' }, BlockLengthColumns: 'Compact', BlockLengthRows: 'Compact', BlockLength: { max: 'PerDispatchClass', cols: 'BlockLengthColumns', rows: 'BlockLengthRows', chunkSize: 'Compact' }, PerDispatchClass: { normal: 'u32', operational: 'u32', mandatory: 'u32' }, DataProof: { root: 'H256', proof: 'Vec', numberOfLeaves: 'Compact', leaf_index: 'Compact', leaf: 'H256' }, Cell: { row: 'BlockLengthRows', col: 'BlockLengthColumns' } } } ], signedExtensions: { CheckAppId: { extrinsic: { appId: 'AppId' }, payload: {} } } }; export default definitions;