import type {OldTypes} from "../../types" import {Si1Variant} from "./base" export const V14: OldTypes['types'] = { MetadataV14: { lookup: 'PortableRegistryV14', pallets: 'Vec', extrinsic: 'ExtrinsicMetadataV14', type: 'Si1LookupTypeId' }, // registry PortableRegistryV14: { types: 'Vec' }, PortableTypeV14: { id: 'Si1LookupTypeId', type: 'Si1Type' }, // compatibility with earlier layouts, i.e. don't break previous users ErrorMetadataV14: { ...Si1Variant, args: 'Vec' }, EventMetadataV14: { ...Si1Variant, args: 'Vec' }, FunctionArgumentMetadataV14: { name: 'Text', type: 'Type', typeName: 'Option' }, FunctionMetadataV14: { ...Si1Variant, args: 'Vec' }, // V14 ExtrinsicMetadataV14: { type: 'Si1LookupTypeId', version: 'u8', signedExtensions: 'Vec' }, PalletCallMetadataV14: { type: 'Si1LookupTypeId' }, PalletConstantMetadataV14: { name: 'Text', type: 'Si1LookupTypeId', value: 'Bytes', docs: 'Vec' }, PalletErrorMetadataV14: { type: 'Si1LookupTypeId' }, PalletEventMetadataV14: { type: 'Si1LookupTypeId' }, PalletMetadataV14: { name: 'Text', storage: 'Option', calls: 'Option', events: 'Option', constants: 'Vec', errors: 'Option', index: 'u8' }, PalletStorageMetadataV14: { prefix: 'Text', // NOTE: Renamed from entries items: 'Vec' }, SignedExtensionMetadataV14: { identifier: 'Text', type: 'Si1LookupTypeId', additionalSigned: 'Si1LookupTypeId' }, StorageEntryMetadataV14: { name: 'Text', modifier: 'StorageEntryModifierV14', type: 'StorageEntryTypeV14', fallback: 'Bytes', docs: 'Vec' }, StorageEntryModifierV14: 'StorageEntryModifierV13', StorageEntryTypeV14: { _enum: { Plain: 'Si1LookupTypeId', Map: { hashers: 'Vec', key: 'Si1LookupTypeId', // NOTE: Renamed from "keys" value: 'Si1LookupTypeId' } } }, StorageHasherV14: 'StorageHasherV13' }