@@ -21,50 +21,27 @@ declare module '@polkadot/types-codec/types/registry' {
2121 }
2222
2323 export interface Registry {
24- // readonly chainDecimals: number[];
25- // readonly chainSS58: number | undefined;
26- // readonly chainTokens: string[];
2724 readonly knownTypes : RegisteredTypes ;
28- // readonly lookup: PortableRegistry;
2925 readonly metadata : MetadataLatest ;
3026 readonly unknownTypes : string [ ] ;
3127 readonly signedExtensions : string [ ] ;
3228
33- // createdAtHash?: Hash;
34-
3529 findMetaCall ( callIndex : Uint8Array ) : CallFunctionExt ;
3630 findMetaError ( errorIndex : Uint8Array | { error : BN , index : BN } ) : RegistryError ;
37- // due to same circular imports where types don't really want to import from EventData,
38- // keep this as a generic Codec, however the actual impl. returns the correct
39- // findMetaEvent (eventIndex: Uint8Array): CodecClass<any>;
4031
41- // isLookupType (value: string): boolean;
32+ clearCache ( ) : void
33+
4234 createLookupType ( lookupId : SiLookupTypeId | number ) : string ;
4335
4436 createClass < T extends Codec = Codec , K extends string = string > ( type : K ) : CodecClass < DetectCodec < T , K > > ;
4537 createType < T extends Codec = Codec , K extends string = string > ( type : K , ...params : unknown [ ] ) : DetectCodec < T , K > ;
4638
4739 get < T extends Codec = Codec , K extends string = string > ( name : K , withUnknown ?: boolean , knownTypeDef ?: TypeDef ) : CodecClass < DetectCodec < T , K > > | undefined ;
4840 getChainProperties ( ) : ChainProperties | undefined ;
49- // getClassName (clazz: Constructor): string | undefined;
5041 getDefinition ( typeName : string ) : string | undefined ;
5142 getModuleInstances ( specName : string , moduleName : string ) : string [ ] | undefined ;
5243
53- // getOrThrow <T extends Codec = Codec, K extends string = string> (name: K, msg?: string): CodecClass<DetectCodec<T, K>>;
54- // getOrUnknown <T extends Codec = Codec, K extends string = string> (name: K): CodecClass<DetectCodec<T, K>>;
55-
5644 setKnownTypes ( types : RegisteredTypes ) : void ;
57- // getSignedExtensionExtra (): Record<string, string>;
58- // getSignedExtensionTypes (): Record<string, string>;
59-
60- // hasClass (name: string): boolean;
61- // hasDef (name: string): boolean;
62- // hasType (name: string): boolean;
63- // hash (data: Uint8Array): IU8a;
64-
65- // register (type: CodecClass | RegistryTypes): void;
66- // register (name: string, type: CodecClass): void;
67- // register (arg1: string | CodecClass | RegistryTypes, arg2?: CodecClass): void;
6845 setChainProperties ( properties ?: ChainProperties ) : void ;
6946 setHasher ( hasher ?: CodecHasher | null ) : void ;
7047 setLookup ( lookup : PortableRegistry ) : void ;
0 commit comments