# frozen_string_literal: true module ScaleRb module Metadata module MetadataV11 TYPES = { ErrorMetadataV11: 'ErrorMetadataV10', EventMetadataV11: 'EventMetadataV10', ExtrinsicMetadataV11: { version: 'u8', signedExtensions: 'Vec' }, FunctionArgumentMetadataV11: 'FunctionArgumentMetadataV10', FunctionMetadataV11: 'FunctionMetadataV10', MetadataV11: { modules: 'Vec', extrinsic: 'ExtrinsicMetadataV11' }, ModuleConstantMetadataV11: 'ModuleConstantMetadataV10', ModuleMetadataV11: { name: 'Text', storage: 'Option', calls: 'Option>', events: 'Option>', constants: 'Vec', errors: 'Vec' }, StorageEntryModifierV11: 'StorageEntryModifierV10', StorageEntryMetadataV11: { name: 'Text', modifier: 'StorageEntryModifierV11', type: 'StorageEntryTypeV11', fallback: 'Bytes', docs: 'Vec' }, StorageEntryTypeV11: { _enum: { Plain: 'Type', Map: { hasher: 'StorageHasherV11', key: 'Type', value: 'Type', linked: 'bool' }, DoubleMap: { hasher: 'StorageHasherV11', key1: 'Type', key2: 'Type', value: 'Type', key2Hasher: 'StorageHasherV11' } } }, StorageMetadataV11: { prefix: 'Text', items: 'Vec' }, StorageHasherV11: { _enum: %w[ Blake2_128 Blake2_256 Blake2_128Concat Twox128 Twox256 Twox64Concat Identity ] } }.freeze end end end