/** * This file and any referenced files were automatically generated by @cosmology/telescope@1.1.1 * DO NOT MODIFY BY HAND. Instead, download the latest proto files for your chain * and run the transpile command or yarn proto command to regenerate this bundle. */ import { IBinaryReader, IBinaryWriter } from "./binary"; import { Any } from "./google/protobuf/any"; export type ProtoMsg = Omit & { typeUrl: any; }; export interface IAminoMsg { type: any; value: Amino; } export interface IProtoType { $typeUrl?: any; } /** * A type generated by Telescope 1.0. */ export interface TelescopeGeneratedCodec { readonly typeUrl: string; readonly aminoType?: string; is?(o: unknown): o is T; isSDK?(o: unknown): o is SDK; isAmino?(o: unknown): o is Amino; encode: (message: T, writer?: IBinaryWriter | any) => IBinaryWriter | any; decode: (input: IBinaryReader | Uint8Array | any, length?: number) => T; fromPartial: (object: any) => T; fromJSON?: (object: unknown) => T; toJSON?: (message: T) => unknown; fromSDK?: (sdk: SDK) => T; fromSDKJSON?: (object: any) => SDK; toSDK?: (message: T) => SDK; fromAmino?: (amino: Amino) => T; toAmino?: (message: T) => Amino; fromAminoMsg?: (aminoMsg: IAminoMsg) => T; toAminoMsg?: (message: T) => IAminoMsg; toProto?: (message: T) => Uint8Array; fromProtoMsg?: (message: ProtoMsg) => T; toProtoMsg?: (message: T) => Any; } export type TelescopeGeneratedType = TelescopeGeneratedCodec; export type GeneratedType = TelescopeGeneratedCodec;