import { Codec } from '../../types'; import { Enum, Option, Struct, Vec } from '../../codec'; import { Bytes, StorageHasher, Text, Type, bool, u16 } from '../../primitive'; /** Struct */ export interface CallMetadataV0 extends Struct { /** Text */ readonly name: Text; /** Vec */ readonly functions: Vec; } /** Struct */ export interface DoubleMapTypeV3 extends Struct { /** Type */ readonly key1: Type; /** Type */ readonly key2: Type; /** Type */ readonly value: Type; /** Text */ readonly key2Hasher: Text; } /** Struct */ export interface DoubleMapTypeV4 extends Struct { /** StorageHasher */ readonly hasher: StorageHasher; /** Type */ readonly key1: Type; /** Type */ readonly key2: Type; /** Type */ readonly value: Type; /** Text */ readonly key2Hasher: Text; } /** Struct */ export interface DoubleMapTypeV5 extends Struct { /** StorageHasher */ readonly hasher: StorageHasher; /** Type */ readonly key1: Type; /** Type */ readonly key2: Type; /** Type */ readonly value: Type; /** StorageHasher */ readonly key2Hasher: StorageHasher; } /** DoubleMapTypeV5 */ export declare type DoubleMapTypeV6 = DoubleMapTypeV5; /** DoubleMapTypeV6 */ export declare type DoubleMapTypeV7 = DoubleMapTypeV6; /** Struct */ export interface EventMetadataV0 extends Struct { /** Text */ readonly name: Text; /** Vec */ readonly args: Vec; /** Vec */ readonly documentation: Vec; } /** EventMetadataV0 */ export declare type EventMetadataV1 = EventMetadataV0; /** EventMetadataV1 */ export declare type EventMetadataV2 = EventMetadataV1; /** EventMetadataV2 */ export declare type EventMetadataV3 = EventMetadataV2; /** EventMetadataV3 */ export declare type EventMetadataV4 = EventMetadataV3; /** EventMetadataV4 */ export declare type EventMetadataV5 = EventMetadataV4; /** EventMetadataV5 */ export declare type EventMetadataV6 = EventMetadataV5; /** EventMetadataV6 */ export declare type EventMetadataV7 = EventMetadataV6; /** Struct */ export interface FunctionArgumentMetadataV0 extends Struct { /** Text */ readonly name: Text; /** Type */ readonly type: Type; } /** FunctionArgumentMetadataV0 */ export declare type FunctionArgumentMetadataV1 = FunctionArgumentMetadataV0; /** FunctionArgumentMetadataV1 */ export declare type FunctionArgumentMetadataV2 = FunctionArgumentMetadataV1; /** FunctionArgumentMetadataV2 */ export declare type FunctionArgumentMetadataV3 = FunctionArgumentMetadataV2; /** FunctionArgumentMetadataV3 */ export declare type FunctionArgumentMetadataV4 = FunctionArgumentMetadataV3; /** FunctionArgumentMetadataV4 */ export declare type FunctionArgumentMetadataV5 = FunctionArgumentMetadataV4; /** FunctionArgumentMetadataV5 */ export declare type FunctionArgumentMetadataV6 = FunctionArgumentMetadataV5; /** FunctionArgumentMetadataV6 */ export declare type FunctionArgumentMetadataV7 = FunctionArgumentMetadataV6; /** Struct */ export interface FunctionMetadataV0 extends Struct { /** u16 */ readonly id: u16; /** Text */ readonly name: Text; /** Vec */ readonly args: Vec; /** Vec */ readonly documentation: Vec; } /** Struct */ export interface FunctionMetadataV1 extends Struct { /** Text */ readonly name: Text; /** Vec */ readonly args: Vec; /** Vec */ readonly documentation: Vec; } /** FunctionMetadataV1 */ export declare type FunctionMetadataV2 = FunctionMetadataV1; /** FunctionMetadataV2 */ export declare type FunctionMetadataV3 = FunctionMetadataV2; /** FunctionMetadataV3 */ export declare type FunctionMetadataV4 = FunctionMetadataV3; /** FunctionMetadataV4 */ export declare type FunctionMetadataV5 = FunctionMetadataV4; /** FunctionMetadataV5 */ export declare type FunctionMetadataV6 = FunctionMetadataV5; /** FunctionMetadataV6 */ export declare type FunctionMetadataV7 = FunctionMetadataV6; /** Struct */ export interface MapTypeV0 extends Struct { /** Type */ readonly key: Type; /** Type */ readonly value: Type; } /** Struct */ export interface MapTypeV2 extends Struct { /** Type */ readonly key: Type; /** Type */ readonly value: Type; /** bool */ readonly linked: bool; } /** MapTypeV2 */ export declare type MapTypeV3 = MapTypeV2; /** Struct */ export interface MapTypeV4 extends Struct { /** StorageHasher */ readonly hasher: StorageHasher; /** Type */ readonly key: Type; /** Type */ readonly value: Type; /** bool */ readonly linked: bool; } /** MapTypeV4 */ export declare type MapTypeV5 = MapTypeV4; /** MapTypeV5 */ export declare type MapTypeV6 = MapTypeV5; /** MapTypeV6 */ export declare type MapTypeV7 = MapTypeV6; /** Struct */ export interface MetadataV0 extends Struct { /** OuterEventMetadataV0 */ readonly outerEvent: OuterEventMetadataV0; /** Vec */ readonly modules: Vec; /** OuterDispatchMetadataV0 */ readonly outerDispatch: OuterDispatchMetadataV0; } /** Struct */ export interface MetadataV1 extends Struct { /** Vec */ readonly modules: Vec; } /** Struct */ export interface ModuleConstantMetadataV6 extends Struct { /** Text */ readonly name: Text; /** Type */ readonly type: Type; /** Bytes */ readonly value: Bytes; /** Vec */ readonly documentation: Vec; } /** ModuleConstantMetadataV6 */ export declare type ModuleConstantMetadataV7 = ModuleConstantMetadataV6; /** Struct */ export interface ModuleMetadataV0 extends Struct { /** Text */ readonly name: Text; /** CallMetadataV0 */ readonly call: CallMetadataV0; } /** Struct */ export interface ModuleMetadataV1 extends Struct { /** Text */ readonly name: Text; /** Text */ readonly prefix: Text; /** Option> */ readonly storage: Option>; /** Option> */ readonly calls: Option>; /** Option> */ readonly events: Option>; } /** Struct */ export interface OuterDispatchCallV0 extends Struct { /** Text */ readonly name: Text; /** Text */ readonly prefix: Text; /** u16 */ readonly index: u16; } /** Struct */ export interface OuterDispatchMetadataV0 extends Struct { /** Text */ readonly name: Text; /** Vec */ readonly calls: Vec; } /** Vec */ export declare type OuterEventEventMetadataEventsV0 = Vec; /** [Text, OuterEventEventMetadataEventsV0] & Codec */ export declare type OuterEventEventMetadataV0 = [Text, OuterEventEventMetadataEventsV0] & Codec; /** Struct */ export interface OuterEventMetadataV0 extends Struct { /** Text */ readonly name: Text; /** Vec */ readonly events: Vec; } /** Type */ export declare type PlainTypeV0 = Type; /** Type */ export declare type PlainTypeV2 = Type; /** Type */ export declare type PlainTypeV3 = Type; /** Type */ export declare type PlainTypeV4 = Type; /** Type */ export declare type PlainTypeV5 = Type; /** Type */ export declare type PlainTypeV6 = Type; /** Type */ export declare type PlainTypeV7 = Type; /** Struct */ export interface RuntimeModuleMetadataV0 extends Struct { /** Text */ readonly prefix: Text; /** ModuleMetadataV0 */ readonly module: ModuleMetadataV0; /** Option */ readonly storage: Option; } /** StorageFunctionModifierV5 */ export declare type StorageEntryModifierV6 = StorageFunctionModifierV5; /** StorageEntryModifierV6 */ export declare type StorageEntryModifierV7 = StorageEntryModifierV6; /** Struct */ export interface StorageFunctionMetadataV0 extends Struct { /** Text */ readonly name: Text; /** StorageFunctionModifierV0 */ readonly modifier: StorageFunctionModifierV0; /** StorageFunctionTypeV0 */ readonly type: StorageFunctionTypeV0; /** Bytes */ readonly fallback: Bytes; /** Vec */ readonly documentation: Vec; } /** StorageFunctionMetadataV0 */ export declare type StorageFunctionMetadataV1 = StorageFunctionMetadataV0; /** Enum */ export interface StorageFunctionModifierV0 extends Enum { /** 0:: Optional */ readonly isOptional: boolean; /** 1:: Default */ readonly isDefault: boolean; /** 2:: Required */ readonly isRequired: boolean; } /** StorageFunctionModifierV0 */ export declare type StorageFunctionModifierV1 = StorageFunctionModifierV0; /** StorageFunctionModifierV1 */ export declare type StorageFunctionModifierV2 = StorageFunctionModifierV1; /** StorageFunctionModifierV2 */ export declare type StorageFunctionModifierV3 = StorageFunctionModifierV2; /** StorageFunctionModifierV3 */ export declare type StorageFunctionModifierV4 = StorageFunctionModifierV3; /** StorageFunctionModifierV4 */ export declare type StorageFunctionModifierV5 = StorageFunctionModifierV4; /** Enum */ export interface StorageFunctionTypeV0 extends Enum { /** 0:: Type(PlainTypeV0) */ readonly isType: boolean; /** PlainTypeV0 */ readonly asType: PlainTypeV0; /** 1:: Map(MapTypeV0) */ readonly isMap: boolean; /** MapTypeV0 */ readonly asMap: MapTypeV0; } /** StorageFunctionTypeV0 */ export declare type StorageFunctionTypeV1 = StorageFunctionTypeV0; /** Struct */ export interface StorageMetadataV0 extends Struct { /** Text */ readonly prefix: Text; /** Vec */ readonly functions: Vec; }