import { grpc } from "@improbable-eng/grpc-web"; import Long from "long"; import _m0 from "protobufjs/minimal"; export declare const protobufPackage = "cosmos.base.reflection.v2alpha1"; /** AppDescriptor describes a cosmos-sdk based application */ export interface AppDescriptor { /** * AuthnDescriptor provides information on how to authenticate transactions on the application * NOTE: experimental and subject to change in future releases. */ authn: AuthnDescriptor | undefined; /** chain provides the chain descriptor */ chain: ChainDescriptor | undefined; /** codec provides metadata information regarding codec related types */ codec: CodecDescriptor | undefined; /** configuration provides metadata information regarding the sdk.Config type */ configuration: ConfigurationDescriptor | undefined; /** query_services provides metadata information regarding the available queriable endpoints */ queryServices: QueryServicesDescriptor | undefined; /** tx provides metadata information regarding how to send transactions to the given application */ tx: TxDescriptor | undefined; } /** TxDescriptor describes the accepted transaction type */ export interface TxDescriptor { /** * fullname is the protobuf fullname of the raw transaction type (for instance the tx.Tx type) * it is not meant to support polymorphism of transaction types, it is supposed to be used by * reflection clients to understand if they can handle a specific transaction type in an application. */ fullname: string; /** msgs lists the accepted application messages (sdk.Msg) */ msgs: MsgDescriptor[]; } /** * AuthnDescriptor provides information on how to sign transactions without relying * on the online RPCs GetTxMetadata and CombineUnsignedTxAndSignatures */ export interface AuthnDescriptor { /** sign_modes defines the supported signature algorithm */ signModes: SigningModeDescriptor[]; } /** * SigningModeDescriptor provides information on a signing flow of the application * NOTE(fdymylja): here we could go as far as providing an entire flow on how * to sign a message given a SigningModeDescriptor, but it's better to think about * this another time */ export interface SigningModeDescriptor { /** name defines the unique name of the signing mode */ name: string; /** number is the unique int32 identifier for the sign_mode enum */ number: number; /** * authn_info_provider_method_fullname defines the fullname of the method to call to get * the metadata required to authenticate using the provided sign_modes */ authnInfoProviderMethodFullname: string; } /** ChainDescriptor describes chain information of the application */ export interface ChainDescriptor { /** id is the chain id */ id: string; } /** CodecDescriptor describes the registered interfaces and provides metadata information on the types */ export interface CodecDescriptor { /** interfaces is a list of the registerted interfaces descriptors */ interfaces: InterfaceDescriptor[]; } /** InterfaceDescriptor describes the implementation of an interface */ export interface InterfaceDescriptor { /** fullname is the name of the interface */ fullname: string; /** * interface_accepting_messages contains information regarding the proto messages which contain the interface as * google.protobuf.Any field */ interfaceAcceptingMessages: InterfaceAcceptingMessageDescriptor[]; /** interface_implementers is a list of the descriptors of the interface implementers */ interfaceImplementers: InterfaceImplementerDescriptor[]; } /** InterfaceImplementerDescriptor describes an interface implementer */ export interface InterfaceImplementerDescriptor { /** fullname is the protobuf queryable name of the interface implementer */ fullname: string; /** * type_url defines the type URL used when marshalling the type as any * this is required so we can provide type safe google.protobuf.Any marshalling and * unmarshalling, making sure that we don't accept just 'any' type * in our interface fields */ typeUrl: string; } /** * InterfaceAcceptingMessageDescriptor describes a protobuf message which contains * an interface represented as a google.protobuf.Any */ export interface InterfaceAcceptingMessageDescriptor { /** fullname is the protobuf fullname of the type containing the interface */ fullname: string; /** * field_descriptor_names is a list of the protobuf name (not fullname) of the field * which contains the interface as google.protobuf.Any (the interface is the same, but * it can be in multiple fields of the same proto message) */ fieldDescriptorNames: string[]; } /** ConfigurationDescriptor contains metadata information on the sdk.Config */ export interface ConfigurationDescriptor { /** bech32_account_address_prefix is the account address prefix */ bech32AccountAddressPrefix: string; } /** MsgDescriptor describes a cosmos-sdk message that can be delivered with a transaction */ export interface MsgDescriptor { /** msg_type_url contains the TypeURL of a sdk.Msg. */ msgTypeUrl: string; } /** GetAuthnDescriptorRequest is the request used for the GetAuthnDescriptor RPC */ export interface GetAuthnDescriptorRequest { } /** GetAuthnDescriptorResponse is the response returned by the GetAuthnDescriptor RPC */ export interface GetAuthnDescriptorResponse { /** authn describes how to authenticate to the application when sending transactions */ authn: AuthnDescriptor | undefined; } /** GetChainDescriptorRequest is the request used for the GetChainDescriptor RPC */ export interface GetChainDescriptorRequest { } /** GetChainDescriptorResponse is the response returned by the GetChainDescriptor RPC */ export interface GetChainDescriptorResponse { /** chain describes application chain information */ chain: ChainDescriptor | undefined; } /** GetCodecDescriptorRequest is the request used for the GetCodecDescriptor RPC */ export interface GetCodecDescriptorRequest { } /** GetCodecDescriptorResponse is the response returned by the GetCodecDescriptor RPC */ export interface GetCodecDescriptorResponse { /** codec describes the application codec such as registered interfaces and implementations */ codec: CodecDescriptor | undefined; } /** GetConfigurationDescriptorRequest is the request used for the GetConfigurationDescriptor RPC */ export interface GetConfigurationDescriptorRequest { } /** GetConfigurationDescriptorResponse is the response returned by the GetConfigurationDescriptor RPC */ export interface GetConfigurationDescriptorResponse { /** config describes the application's sdk.Config */ config: ConfigurationDescriptor | undefined; } /** GetQueryServicesDescriptorRequest is the request used for the GetQueryServicesDescriptor RPC */ export interface GetQueryServicesDescriptorRequest { } /** GetQueryServicesDescriptorResponse is the response returned by the GetQueryServicesDescriptor RPC */ export interface GetQueryServicesDescriptorResponse { /** queries provides information on the available queryable services */ queries: QueryServicesDescriptor | undefined; } /** GetTxDescriptorRequest is the request used for the GetTxDescriptor RPC */ export interface GetTxDescriptorRequest { } /** GetTxDescriptorResponse is the response returned by the GetTxDescriptor RPC */ export interface GetTxDescriptorResponse { /** * tx provides information on msgs that can be forwarded to the application * alongside the accepted transaction protobuf type */ tx: TxDescriptor | undefined; } /** QueryServicesDescriptor contains the list of cosmos-sdk queriable services */ export interface QueryServicesDescriptor { /** query_services is a list of cosmos-sdk QueryServiceDescriptor */ queryServices: QueryServiceDescriptor[]; } /** QueryServiceDescriptor describes a cosmos-sdk queryable service */ export interface QueryServiceDescriptor { /** fullname is the protobuf fullname of the service descriptor */ fullname: string; /** is_module describes if this service is actually exposed by an application's module */ isModule: boolean; /** methods provides a list of query service methods */ methods: QueryMethodDescriptor[]; } /** * QueryMethodDescriptor describes a queryable method of a query service * no other info is provided beside method name and tendermint queryable path * because it would be redundant with the grpc reflection service */ export interface QueryMethodDescriptor { /** name is the protobuf name (not fullname) of the method */ name: string; /** * full_query_path is the path that can be used to query * this method via tendermint abci.Query */ fullQueryPath: string; } export declare const AppDescriptor: { encode(message: AppDescriptor, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): AppDescriptor; fromJSON(object: any): AppDescriptor; toJSON(message: AppDescriptor): unknown; create(base?: DeepPartial): AppDescriptor; fromPartial(object: DeepPartial): AppDescriptor; }; export declare const TxDescriptor: { encode(message: TxDescriptor, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): TxDescriptor; fromJSON(object: any): TxDescriptor; toJSON(message: TxDescriptor): unknown; create(base?: DeepPartial): TxDescriptor; fromPartial(object: DeepPartial): TxDescriptor; }; export declare const AuthnDescriptor: { encode(message: AuthnDescriptor, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): AuthnDescriptor; fromJSON(object: any): AuthnDescriptor; toJSON(message: AuthnDescriptor): unknown; create(base?: DeepPartial): AuthnDescriptor; fromPartial(object: DeepPartial): AuthnDescriptor; }; export declare const SigningModeDescriptor: { encode(message: SigningModeDescriptor, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): SigningModeDescriptor; fromJSON(object: any): SigningModeDescriptor; toJSON(message: SigningModeDescriptor): unknown; create(base?: DeepPartial): SigningModeDescriptor; fromPartial(object: DeepPartial): SigningModeDescriptor; }; export declare const ChainDescriptor: { encode(message: ChainDescriptor, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ChainDescriptor; fromJSON(object: any): ChainDescriptor; toJSON(message: ChainDescriptor): unknown; create(base?: DeepPartial): ChainDescriptor; fromPartial(object: DeepPartial): ChainDescriptor; }; export declare const CodecDescriptor: { encode(message: CodecDescriptor, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): CodecDescriptor; fromJSON(object: any): CodecDescriptor; toJSON(message: CodecDescriptor): unknown; create(base?: DeepPartial): CodecDescriptor; fromPartial(object: DeepPartial): CodecDescriptor; }; export declare const InterfaceDescriptor: { encode(message: InterfaceDescriptor, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): InterfaceDescriptor; fromJSON(object: any): InterfaceDescriptor; toJSON(message: InterfaceDescriptor): unknown; create(base?: DeepPartial): InterfaceDescriptor; fromPartial(object: DeepPartial): InterfaceDescriptor; }; export declare const InterfaceImplementerDescriptor: { encode(message: InterfaceImplementerDescriptor, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): InterfaceImplementerDescriptor; fromJSON(object: any): InterfaceImplementerDescriptor; toJSON(message: InterfaceImplementerDescriptor): unknown; create(base?: DeepPartial): InterfaceImplementerDescriptor; fromPartial(object: DeepPartial): InterfaceImplementerDescriptor; }; export declare const InterfaceAcceptingMessageDescriptor: { encode(message: InterfaceAcceptingMessageDescriptor, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): InterfaceAcceptingMessageDescriptor; fromJSON(object: any): InterfaceAcceptingMessageDescriptor; toJSON(message: InterfaceAcceptingMessageDescriptor): unknown; create(base?: DeepPartial): InterfaceAcceptingMessageDescriptor; fromPartial(object: DeepPartial): InterfaceAcceptingMessageDescriptor; }; export declare const ConfigurationDescriptor: { encode(message: ConfigurationDescriptor, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ConfigurationDescriptor; fromJSON(object: any): ConfigurationDescriptor; toJSON(message: ConfigurationDescriptor): unknown; create(base?: DeepPartial): ConfigurationDescriptor; fromPartial(object: DeepPartial): ConfigurationDescriptor; }; export declare const MsgDescriptor: { encode(message: MsgDescriptor, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgDescriptor; fromJSON(object: any): MsgDescriptor; toJSON(message: MsgDescriptor): unknown; create(base?: DeepPartial): MsgDescriptor; fromPartial(object: DeepPartial): MsgDescriptor; }; export declare const GetAuthnDescriptorRequest: { encode(_: GetAuthnDescriptorRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): GetAuthnDescriptorRequest; fromJSON(_: any): GetAuthnDescriptorRequest; toJSON(_: GetAuthnDescriptorRequest): unknown; create(base?: DeepPartial): GetAuthnDescriptorRequest; fromPartial(_: DeepPartial): GetAuthnDescriptorRequest; }; export declare const GetAuthnDescriptorResponse: { encode(message: GetAuthnDescriptorResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): GetAuthnDescriptorResponse; fromJSON(object: any): GetAuthnDescriptorResponse; toJSON(message: GetAuthnDescriptorResponse): unknown; create(base?: DeepPartial): GetAuthnDescriptorResponse; fromPartial(object: DeepPartial): GetAuthnDescriptorResponse; }; export declare const GetChainDescriptorRequest: { encode(_: GetChainDescriptorRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): GetChainDescriptorRequest; fromJSON(_: any): GetChainDescriptorRequest; toJSON(_: GetChainDescriptorRequest): unknown; create(base?: DeepPartial): GetChainDescriptorRequest; fromPartial(_: DeepPartial): GetChainDescriptorRequest; }; export declare const GetChainDescriptorResponse: { encode(message: GetChainDescriptorResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): GetChainDescriptorResponse; fromJSON(object: any): GetChainDescriptorResponse; toJSON(message: GetChainDescriptorResponse): unknown; create(base?: DeepPartial): GetChainDescriptorResponse; fromPartial(object: DeepPartial): GetChainDescriptorResponse; }; export declare const GetCodecDescriptorRequest: { encode(_: GetCodecDescriptorRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): GetCodecDescriptorRequest; fromJSON(_: any): GetCodecDescriptorRequest; toJSON(_: GetCodecDescriptorRequest): unknown; create(base?: DeepPartial): GetCodecDescriptorRequest; fromPartial(_: DeepPartial): GetCodecDescriptorRequest; }; export declare const GetCodecDescriptorResponse: { encode(message: GetCodecDescriptorResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): GetCodecDescriptorResponse; fromJSON(object: any): GetCodecDescriptorResponse; toJSON(message: GetCodecDescriptorResponse): unknown; create(base?: DeepPartial): GetCodecDescriptorResponse; fromPartial(object: DeepPartial): GetCodecDescriptorResponse; }; export declare const GetConfigurationDescriptorRequest: { encode(_: GetConfigurationDescriptorRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): GetConfigurationDescriptorRequest; fromJSON(_: any): GetConfigurationDescriptorRequest; toJSON(_: GetConfigurationDescriptorRequest): unknown; create(base?: DeepPartial): GetConfigurationDescriptorRequest; fromPartial(_: DeepPartial): GetConfigurationDescriptorRequest; }; export declare const GetConfigurationDescriptorResponse: { encode(message: GetConfigurationDescriptorResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): GetConfigurationDescriptorResponse; fromJSON(object: any): GetConfigurationDescriptorResponse; toJSON(message: GetConfigurationDescriptorResponse): unknown; create(base?: DeepPartial): GetConfigurationDescriptorResponse; fromPartial(object: DeepPartial): GetConfigurationDescriptorResponse; }; export declare const GetQueryServicesDescriptorRequest: { encode(_: GetQueryServicesDescriptorRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): GetQueryServicesDescriptorRequest; fromJSON(_: any): GetQueryServicesDescriptorRequest; toJSON(_: GetQueryServicesDescriptorRequest): unknown; create(base?: DeepPartial): GetQueryServicesDescriptorRequest; fromPartial(_: DeepPartial): GetQueryServicesDescriptorRequest; }; export declare const GetQueryServicesDescriptorResponse: { encode(message: GetQueryServicesDescriptorResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): GetQueryServicesDescriptorResponse; fromJSON(object: any): GetQueryServicesDescriptorResponse; toJSON(message: GetQueryServicesDescriptorResponse): unknown; create(base?: DeepPartial): GetQueryServicesDescriptorResponse; fromPartial(object: DeepPartial): GetQueryServicesDescriptorResponse; }; export declare const GetTxDescriptorRequest: { encode(_: GetTxDescriptorRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): GetTxDescriptorRequest; fromJSON(_: any): GetTxDescriptorRequest; toJSON(_: GetTxDescriptorRequest): unknown; create(base?: DeepPartial): GetTxDescriptorRequest; fromPartial(_: DeepPartial): GetTxDescriptorRequest; }; export declare const GetTxDescriptorResponse: { encode(message: GetTxDescriptorResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): GetTxDescriptorResponse; fromJSON(object: any): GetTxDescriptorResponse; toJSON(message: GetTxDescriptorResponse): unknown; create(base?: DeepPartial): GetTxDescriptorResponse; fromPartial(object: DeepPartial): GetTxDescriptorResponse; }; export declare const QueryServicesDescriptor: { encode(message: QueryServicesDescriptor, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryServicesDescriptor; fromJSON(object: any): QueryServicesDescriptor; toJSON(message: QueryServicesDescriptor): unknown; create(base?: DeepPartial): QueryServicesDescriptor; fromPartial(object: DeepPartial): QueryServicesDescriptor; }; export declare const QueryServiceDescriptor: { encode(message: QueryServiceDescriptor, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryServiceDescriptor; fromJSON(object: any): QueryServiceDescriptor; toJSON(message: QueryServiceDescriptor): unknown; create(base?: DeepPartial): QueryServiceDescriptor; fromPartial(object: DeepPartial): QueryServiceDescriptor; }; export declare const QueryMethodDescriptor: { encode(message: QueryMethodDescriptor, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QueryMethodDescriptor; fromJSON(object: any): QueryMethodDescriptor; toJSON(message: QueryMethodDescriptor): unknown; create(base?: DeepPartial): QueryMethodDescriptor; fromPartial(object: DeepPartial): QueryMethodDescriptor; }; /** ReflectionService defines a service for application reflection. */ export interface ReflectionService { /** * GetAuthnDescriptor returns information on how to authenticate transactions in the application * NOTE: this RPC is still experimental and might be subject to breaking changes or removal in * future releases of the cosmos-sdk. */ GetAuthnDescriptor(request: DeepPartial, metadata?: grpc.Metadata): Promise; /** GetChainDescriptor returns the description of the chain */ GetChainDescriptor(request: DeepPartial, metadata?: grpc.Metadata): Promise; /** GetCodecDescriptor returns the descriptor of the codec of the application */ GetCodecDescriptor(request: DeepPartial, metadata?: grpc.Metadata): Promise; /** GetConfigurationDescriptor returns the descriptor for the sdk.Config of the application */ GetConfigurationDescriptor(request: DeepPartial, metadata?: grpc.Metadata): Promise; /** GetQueryServicesDescriptor returns the available gRPC queryable services of the application */ GetQueryServicesDescriptor(request: DeepPartial, metadata?: grpc.Metadata): Promise; /** GetTxDescriptor returns information on the used transaction object and available msgs that can be used */ GetTxDescriptor(request: DeepPartial, metadata?: grpc.Metadata): Promise; } export declare class ReflectionServiceClientImpl implements ReflectionService { private readonly rpc; constructor(rpc: Rpc); GetAuthnDescriptor(request: DeepPartial, metadata?: grpc.Metadata): Promise; GetChainDescriptor(request: DeepPartial, metadata?: grpc.Metadata): Promise; GetCodecDescriptor(request: DeepPartial, metadata?: grpc.Metadata): Promise; GetConfigurationDescriptor(request: DeepPartial, metadata?: grpc.Metadata): Promise; GetQueryServicesDescriptor(request: DeepPartial, metadata?: grpc.Metadata): Promise; GetTxDescriptor(request: DeepPartial, metadata?: grpc.Metadata): Promise; } export declare const ReflectionServiceDesc: { serviceName: string; }; export declare const ReflectionServiceGetAuthnDescriptorDesc: UnaryMethodDefinitionish; export declare const ReflectionServiceGetChainDescriptorDesc: UnaryMethodDefinitionish; export declare const ReflectionServiceGetCodecDescriptorDesc: UnaryMethodDefinitionish; export declare const ReflectionServiceGetConfigurationDescriptorDesc: UnaryMethodDefinitionish; export declare const ReflectionServiceGetQueryServicesDescriptorDesc: UnaryMethodDefinitionish; export declare const ReflectionServiceGetTxDescriptorDesc: UnaryMethodDefinitionish; interface UnaryMethodDefinitionishR extends grpc.UnaryMethodDefinition { requestStream: any; responseStream: any; } type UnaryMethodDefinitionish = UnaryMethodDefinitionishR; interface Rpc { unary(methodDesc: T, request: any, metadata: grpc.Metadata | undefined): Promise; } export declare class GrpcWebImpl { private host; private options; constructor(host: string, options: { transport?: grpc.TransportFactory; debug?: boolean; metadata?: grpc.Metadata; upStreamRetryCodes?: number[]; }); unary(methodDesc: T, _request: any, metadata: grpc.Metadata | undefined): Promise; } type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial = T extends Builtin ? T : T extends Long ? string | number | Long : T extends globalThis.Array ? globalThis.Array> : T extends ReadonlyArray ? ReadonlyArray> : T extends {} ? { [K in keyof T]?: DeepPartial; } : Partial; export declare class GrpcWebError extends globalThis.Error { code: grpc.Code; metadata: grpc.Metadata; constructor(message: string, code: grpc.Code, metadata: grpc.Metadata); } export {};