1 |
|
2 | import type { Observable } from 'rxjs';
|
3 | import type { BitVec, Bool, bool, Bytes, I8, i8, I16, i16, I32, i32, I64, i64, I128, i128, I256, i256, Json, Null, OptionBool, Raw, Text, Type, U8, u8, U16, u16, U32, u32, U64, u64, U128, u128, U256, u256, USize, usize } from '@polkadot/types-codec';
|
4 | import type { RegistryTypes } from '@polkadot/types-codec/types';
|
5 | import type { BN } from '@polkadot/util';
|
6 | import type { GenericExtrinsic, GenericExtrinsicEra, GenericExtrinsicPayload, GenericSignerPayload } from '../extrinsic';
|
7 | import type { ExtDef } from '../extrinsic/signedExtensions/types';
|
8 | import type { GenericCall } from '../generic';
|
9 | import type { HeaderPartial } from '../interfaces/runtime';
|
10 | import type { RuntimeVersionPartial } from '../interfaces/state';
|
11 | import type { Metadata, PortableRegistry } from '../metadata';
|
12 | import type { Data, StorageKey } from '../primitive';
|
13 | import type { DefinitionRpc, DefinitionRpcSub } from './definitions';
|
14 | export type { Registry, RegistryError, RegistryTypes } from '@polkadot/types-codec/types';
|
15 | export interface InterfaceTypes {
|
16 | BitVec: BitVec;
|
17 | Bool: Bool;
|
18 | Bytes: Bytes;
|
19 | I128: I128;
|
20 | I16: I16;
|
21 | I256: I256;
|
22 | I32: I32;
|
23 | I64: I64;
|
24 | I8: I8;
|
25 | Json: Json;
|
26 | Null: Null;
|
27 | OptionBool: OptionBool;
|
28 | Raw: Raw;
|
29 | Text: Text;
|
30 | Type: Type;
|
31 | U128: U128;
|
32 | U16: U16;
|
33 | U256: U256;
|
34 | U32: U32;
|
35 | U64: U64;
|
36 | U8: U8;
|
37 | USize: USize;
|
38 | bool: bool;
|
39 | i128: i128;
|
40 | i16: i16;
|
41 | i256: i256;
|
42 | i32: i32;
|
43 | i64: i64;
|
44 | i8: i8;
|
45 | u128: u128;
|
46 | u16: u16;
|
47 | u256: u256;
|
48 | u32: u32;
|
49 | u64: u64;
|
50 | u8: u8;
|
51 | usize: usize;
|
52 | Extrinsic: GenericExtrinsic;
|
53 | ExtrinsicEra: GenericExtrinsicEra;
|
54 | ExtrinsicPayload: GenericExtrinsicPayload;
|
55 | SignerPayload: GenericSignerPayload;
|
56 | Call: GenericCall;
|
57 | Data: Data;
|
58 | StorageKey: StorageKey;
|
59 | Metadata: Metadata;
|
60 | PortableRegistry: PortableRegistry;
|
61 | HeaderPartial: HeaderPartial;
|
62 | RuntimeVersionPartial: RuntimeVersionPartial;
|
63 | }
|
64 | export declare type CodecHasher = (data: Uint8Array) => Uint8Array;
|
65 | export interface ChainUpgradeVersion {
|
66 | blockNumber: BN;
|
67 | specVersion: BN;
|
68 | }
|
69 | export interface ChainUpgrades {
|
70 | genesisHash: Uint8Array;
|
71 | network: string;
|
72 | versions: ChainUpgradeVersion[];
|
73 | }
|
74 | export interface OverrideVersionedType {
|
75 | minmax: [number | undefined | null, number | undefined | null] | [number?, number?] | (number | undefined | null)[];
|
76 | types: RegistryTypes;
|
77 | }
|
78 | export declare type OverrideModuleType = Record<string, string>;
|
79 | export declare type DeriveCustom = Record<string, Record<string, (instanceId: string, api: any) => (...args: any[]) => Observable<any>>>;
|
80 | export declare type AliasDefinition = Record<string, OverrideModuleType>;
|
81 | export interface OverrideBundleDefinition {
|
82 | alias?: AliasDefinition;
|
83 | derives?: DeriveCustom;
|
84 | hasher?: (data: Uint8Array) => Uint8Array;
|
85 | instances?: Record<string, string[]>;
|
86 | rpc?: Record<string, Record<string, DefinitionRpc | DefinitionRpcSub>>;
|
87 | signedExtensions?: ExtDef;
|
88 | types?: OverrideVersionedType[];
|
89 | }
|
90 | export interface OverrideBundleType {
|
91 | chain?: Record<string, OverrideBundleDefinition>;
|
92 | spec?: Record<string, OverrideBundleDefinition>;
|
93 | }
|
94 | export interface RegisteredTypes {
|
95 | |
96 |
|
97 |
|
98 | hasher?: (data: Uint8Array) => Uint8Array;
|
99 | |
100 |
|
101 |
|
102 |
|
103 | types?: RegistryTypes;
|
104 | |
105 |
|
106 |
|
107 | typesAlias?: AliasDefinition;
|
108 | |
109 |
|
110 |
|
111 | typesBundle?: OverrideBundleType;
|
112 | |
113 |
|
114 |
|
115 | typesChain?: Record<string, RegistryTypes>;
|
116 | |
117 |
|
118 |
|
119 | typesSpec?: Record<string, RegistryTypes>;
|
120 | }
|