import { grpc } from "@improbable-eng/grpc-web"; import Long from "long"; import _m0 from "protobufjs/minimal"; export declare const protobufPackage = "terra.oracle.v1beta1"; /** * MsgAggregateExchangeRatePrevote represents a message to submit * aggregate exchange rate prevote. */ export interface MsgAggregateExchangeRatePrevote { hash: string; feeder: string; validator: string; } /** MsgAggregateExchangeRatePrevoteResponse defines the Msg/AggregateExchangeRatePrevote response type. */ export interface MsgAggregateExchangeRatePrevoteResponse { } /** * MsgAggregateExchangeRateVote represents a message to submit * aggregate exchange rate vote. */ export interface MsgAggregateExchangeRateVote { salt: string; exchangeRates: string; feeder: string; validator: string; } /** MsgAggregateExchangeRateVoteResponse defines the Msg/AggregateExchangeRateVote response type. */ export interface MsgAggregateExchangeRateVoteResponse { } /** * MsgDelegateFeedConsent represents a message to * delegate oracle voting rights to another address. */ export interface MsgDelegateFeedConsent { operator: string; delegate: string; } /** MsgDelegateFeedConsentResponse defines the Msg/DelegateFeedConsent response type. */ export interface MsgDelegateFeedConsentResponse { } export declare const MsgAggregateExchangeRatePrevote: { encode(message: MsgAggregateExchangeRatePrevote, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgAggregateExchangeRatePrevote; fromJSON(object: any): MsgAggregateExchangeRatePrevote; toJSON(message: MsgAggregateExchangeRatePrevote): unknown; create]: never; }>(base?: I | undefined): MsgAggregateExchangeRatePrevote; fromPartial]: never; }>(object: I_1): MsgAggregateExchangeRatePrevote; }; export declare const MsgAggregateExchangeRatePrevoteResponse: { encode(_: MsgAggregateExchangeRatePrevoteResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgAggregateExchangeRatePrevoteResponse; fromJSON(_: any): MsgAggregateExchangeRatePrevoteResponse; toJSON(_: MsgAggregateExchangeRatePrevoteResponse): unknown; create]: never; }>(base?: I | undefined): MsgAggregateExchangeRatePrevoteResponse; fromPartial]: never; }>(_: I_1): MsgAggregateExchangeRatePrevoteResponse; }; export declare const MsgAggregateExchangeRateVote: { encode(message: MsgAggregateExchangeRateVote, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgAggregateExchangeRateVote; fromJSON(object: any): MsgAggregateExchangeRateVote; toJSON(message: MsgAggregateExchangeRateVote): unknown; create]: never; }>(base?: I | undefined): MsgAggregateExchangeRateVote; fromPartial]: never; }>(object: I_1): MsgAggregateExchangeRateVote; }; export declare const MsgAggregateExchangeRateVoteResponse: { encode(_: MsgAggregateExchangeRateVoteResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgAggregateExchangeRateVoteResponse; fromJSON(_: any): MsgAggregateExchangeRateVoteResponse; toJSON(_: MsgAggregateExchangeRateVoteResponse): unknown; create]: never; }>(base?: I | undefined): MsgAggregateExchangeRateVoteResponse; fromPartial]: never; }>(_: I_1): MsgAggregateExchangeRateVoteResponse; }; export declare const MsgDelegateFeedConsent: { encode(message: MsgDelegateFeedConsent, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgDelegateFeedConsent; fromJSON(object: any): MsgDelegateFeedConsent; toJSON(message: MsgDelegateFeedConsent): unknown; create]: never; }>(base?: I | undefined): MsgDelegateFeedConsent; fromPartial]: never; }>(object: I_1): MsgDelegateFeedConsent; }; export declare const MsgDelegateFeedConsentResponse: { encode(_: MsgDelegateFeedConsentResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number | undefined): MsgDelegateFeedConsentResponse; fromJSON(_: any): MsgDelegateFeedConsentResponse; toJSON(_: MsgDelegateFeedConsentResponse): unknown; create]: never; }>(base?: I | undefined): MsgDelegateFeedConsentResponse; fromPartial]: never; }>(_: I_1): MsgDelegateFeedConsentResponse; }; /** Msg defines the oracle Msg service. */ export interface Msg { /** * AggregateExchangeRatePrevote defines a method for submitting * aggregate exchange rate prevote */ AggregateExchangeRatePrevote(request: DeepPartial, metadata?: grpc.Metadata): Promise; /** * AggregateExchangeRateVote defines a method for submitting * aggregate exchange rate vote */ AggregateExchangeRateVote(request: DeepPartial, metadata?: grpc.Metadata): Promise; /** DelegateFeedConsent defines a method for setting the feeder delegation */ DelegateFeedConsent(request: DeepPartial, metadata?: grpc.Metadata): Promise; } export declare class MsgClientImpl implements Msg { private readonly rpc; constructor(rpc: Rpc); AggregateExchangeRatePrevote(request: DeepPartial, metadata?: grpc.Metadata): Promise; AggregateExchangeRateVote(request: DeepPartial, metadata?: grpc.Metadata): Promise; DelegateFeedConsent(request: DeepPartial, metadata?: grpc.Metadata): Promise; } export declare const MsgDesc: { serviceName: string; }; export declare const MsgAggregateExchangeRatePrevoteDesc: UnaryMethodDefinitionish; export declare const MsgAggregateExchangeRateVoteDesc: UnaryMethodDefinitionish; export declare const MsgDelegateFeedConsentDesc: UnaryMethodDefinitionish; interface UnaryMethodDefinitionishR extends grpc.UnaryMethodDefinition { requestStream: any; responseStream: any; } declare 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; } declare var tsProtoGlobalThis: any; declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export declare type DeepPartial = T extends Builtin ? T : T extends Long ? string | number | Long : T extends Array ? Array> : T extends ReadonlyArray ? ReadonlyArray> : T extends {} ? { [K in keyof T]?: DeepPartial; } : Partial; declare type KeysOfUnion = T extends T ? keyof T : never; export declare type Exact = P extends Builtin ? P : P & { [K in keyof P]: Exact; } & { [K in Exclude>]: never; }; export declare class GrpcWebError extends tsProtoGlobalThis.Error { code: grpc.Code; metadata: grpc.Metadata; constructor(message: string, code: grpc.Code, metadata: grpc.Metadata); } export {};