import { grpc } from "@injectivelabs/grpc-web"; import _m0 from "protobufjs/minimal.js"; import { Coin } from "../../../cosmos/base/v1beta1/coin"; import { FeedConfig, Params, Report } from "./ocr"; export declare const protobufPackage = "injective.ocr.v1beta1"; export interface MsgCreateFeed { sender: string; config: FeedConfig | undefined; } export interface MsgCreateFeedResponse { } export interface MsgUpdateFeed { sender: string; /** feed_id is an unique ID for the target of this config */ feedId: string; /** signers ith element is address ith oracle uses to sign a report */ signers: string[]; /** * transmitters ith element is address ith oracle uses to transmit a report * via the transmit method */ transmitters: string[]; /** Fixed LINK reward for each observer */ linkPerObservation: string; /** Fixed LINK reward for transmitter */ linkPerTransmission: string; /** Native denom for LINK coin in the bank keeper */ linkDenom: string; /** feed administrator */ feedAdmin: string; /** feed billing administrator */ billingAdmin: string; } export interface MsgUpdateFeedResponse { } export interface MsgTransmit { /** Address of the transmitter */ transmitter: string; configDigest: Uint8Array; feedId: string; epoch: string; round: string; extraHash: Uint8Array; report: Report | undefined; signatures: Uint8Array[]; } export interface MsgTransmitResponse { } export interface MsgFundFeedRewardPool { sender: string; feedId: string; amount: Coin | undefined; } export interface MsgFundFeedRewardPoolResponse { } export interface MsgWithdrawFeedRewardPool { sender: string; feedId: string; amount: Coin | undefined; } export interface MsgWithdrawFeedRewardPoolResponse { } export interface MsgSetPayees { sender: string; feedId: string; /** addresses oracles use to transmit the reports */ transmitters: string[]; /** addresses of payees corresponding to list of transmitters */ payees: string[]; } export interface MsgSetPayeesResponse { } export interface MsgTransferPayeeship { /** transmitter address of oracle whose payee is changing */ sender: string; transmitter: string; feedId: string; /** new payee address */ proposed: string; } export interface MsgTransferPayeeshipResponse { } export interface MsgAcceptPayeeship { /** new payee address */ payee: string; /** transmitter address of oracle whose payee is changing */ transmitter: string; feedId: string; } export interface MsgAcceptPayeeshipResponse { } export interface MsgUpdateParams { /** authority is the address of the governance account. */ authority: string; /** * params defines the ocr parameters to update. * * NOTE: All parameters must be supplied. */ params: Params | undefined; } export interface MsgUpdateParamsResponse { } export declare const MsgCreateFeed: { encode(message: MsgCreateFeed, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgCreateFeed; fromJSON(object: any): MsgCreateFeed; toJSON(message: MsgCreateFeed): unknown; create(base?: DeepPartial): MsgCreateFeed; fromPartial(object: DeepPartial): MsgCreateFeed; }; export declare const MsgCreateFeedResponse: { encode(_: MsgCreateFeedResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgCreateFeedResponse; fromJSON(_: any): MsgCreateFeedResponse; toJSON(_: MsgCreateFeedResponse): unknown; create(base?: DeepPartial): MsgCreateFeedResponse; fromPartial(_: DeepPartial): MsgCreateFeedResponse; }; export declare const MsgUpdateFeed: { encode(message: MsgUpdateFeed, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateFeed; fromJSON(object: any): MsgUpdateFeed; toJSON(message: MsgUpdateFeed): unknown; create(base?: DeepPartial): MsgUpdateFeed; fromPartial(object: DeepPartial): MsgUpdateFeed; }; export declare const MsgUpdateFeedResponse: { encode(_: MsgUpdateFeedResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateFeedResponse; fromJSON(_: any): MsgUpdateFeedResponse; toJSON(_: MsgUpdateFeedResponse): unknown; create(base?: DeepPartial): MsgUpdateFeedResponse; fromPartial(_: DeepPartial): MsgUpdateFeedResponse; }; export declare const MsgTransmit: { encode(message: MsgTransmit, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgTransmit; fromJSON(object: any): MsgTransmit; toJSON(message: MsgTransmit): unknown; create(base?: DeepPartial): MsgTransmit; fromPartial(object: DeepPartial): MsgTransmit; }; export declare const MsgTransmitResponse: { encode(_: MsgTransmitResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgTransmitResponse; fromJSON(_: any): MsgTransmitResponse; toJSON(_: MsgTransmitResponse): unknown; create(base?: DeepPartial): MsgTransmitResponse; fromPartial(_: DeepPartial): MsgTransmitResponse; }; export declare const MsgFundFeedRewardPool: { encode(message: MsgFundFeedRewardPool, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgFundFeedRewardPool; fromJSON(object: any): MsgFundFeedRewardPool; toJSON(message: MsgFundFeedRewardPool): unknown; create(base?: DeepPartial): MsgFundFeedRewardPool; fromPartial(object: DeepPartial): MsgFundFeedRewardPool; }; export declare const MsgFundFeedRewardPoolResponse: { encode(_: MsgFundFeedRewardPoolResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgFundFeedRewardPoolResponse; fromJSON(_: any): MsgFundFeedRewardPoolResponse; toJSON(_: MsgFundFeedRewardPoolResponse): unknown; create(base?: DeepPartial): MsgFundFeedRewardPoolResponse; fromPartial(_: DeepPartial): MsgFundFeedRewardPoolResponse; }; export declare const MsgWithdrawFeedRewardPool: { encode(message: MsgWithdrawFeedRewardPool, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgWithdrawFeedRewardPool; fromJSON(object: any): MsgWithdrawFeedRewardPool; toJSON(message: MsgWithdrawFeedRewardPool): unknown; create(base?: DeepPartial): MsgWithdrawFeedRewardPool; fromPartial(object: DeepPartial): MsgWithdrawFeedRewardPool; }; export declare const MsgWithdrawFeedRewardPoolResponse: { encode(_: MsgWithdrawFeedRewardPoolResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgWithdrawFeedRewardPoolResponse; fromJSON(_: any): MsgWithdrawFeedRewardPoolResponse; toJSON(_: MsgWithdrawFeedRewardPoolResponse): unknown; create(base?: DeepPartial): MsgWithdrawFeedRewardPoolResponse; fromPartial(_: DeepPartial): MsgWithdrawFeedRewardPoolResponse; }; export declare const MsgSetPayees: { encode(message: MsgSetPayees, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgSetPayees; fromJSON(object: any): MsgSetPayees; toJSON(message: MsgSetPayees): unknown; create(base?: DeepPartial): MsgSetPayees; fromPartial(object: DeepPartial): MsgSetPayees; }; export declare const MsgSetPayeesResponse: { encode(_: MsgSetPayeesResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgSetPayeesResponse; fromJSON(_: any): MsgSetPayeesResponse; toJSON(_: MsgSetPayeesResponse): unknown; create(base?: DeepPartial): MsgSetPayeesResponse; fromPartial(_: DeepPartial): MsgSetPayeesResponse; }; export declare const MsgTransferPayeeship: { encode(message: MsgTransferPayeeship, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgTransferPayeeship; fromJSON(object: any): MsgTransferPayeeship; toJSON(message: MsgTransferPayeeship): unknown; create(base?: DeepPartial): MsgTransferPayeeship; fromPartial(object: DeepPartial): MsgTransferPayeeship; }; export declare const MsgTransferPayeeshipResponse: { encode(_: MsgTransferPayeeshipResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgTransferPayeeshipResponse; fromJSON(_: any): MsgTransferPayeeshipResponse; toJSON(_: MsgTransferPayeeshipResponse): unknown; create(base?: DeepPartial): MsgTransferPayeeshipResponse; fromPartial(_: DeepPartial): MsgTransferPayeeshipResponse; }; export declare const MsgAcceptPayeeship: { encode(message: MsgAcceptPayeeship, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgAcceptPayeeship; fromJSON(object: any): MsgAcceptPayeeship; toJSON(message: MsgAcceptPayeeship): unknown; create(base?: DeepPartial): MsgAcceptPayeeship; fromPartial(object: DeepPartial): MsgAcceptPayeeship; }; export declare const MsgAcceptPayeeshipResponse: { encode(_: MsgAcceptPayeeshipResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgAcceptPayeeshipResponse; fromJSON(_: any): MsgAcceptPayeeshipResponse; toJSON(_: MsgAcceptPayeeshipResponse): unknown; create(base?: DeepPartial): MsgAcceptPayeeshipResponse; fromPartial(_: DeepPartial): MsgAcceptPayeeshipResponse; }; export declare const MsgUpdateParams: { encode(message: MsgUpdateParams, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateParams; fromJSON(object: any): MsgUpdateParams; toJSON(message: MsgUpdateParams): unknown; create(base?: DeepPartial): MsgUpdateParams; fromPartial(object: DeepPartial): MsgUpdateParams; }; export declare const MsgUpdateParamsResponse: { encode(_: MsgUpdateParamsResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgUpdateParamsResponse; fromJSON(_: any): MsgUpdateParamsResponse; toJSON(_: MsgUpdateParamsResponse): unknown; create(base?: DeepPartial): MsgUpdateParamsResponse; fromPartial(_: DeepPartial): MsgUpdateParamsResponse; }; /** Msg defines the OCR Msg service. */ export interface Msg { /** CreateFeed defines a method for creating feed by module admin */ CreateFeed(request: DeepPartial, metadata?: grpc.Metadata): Promise; /** * CreateFeed defines a method for creating feed by feed admin or feed billing * admin */ UpdateFeed(request: DeepPartial, metadata?: grpc.Metadata): Promise; /** Transmit defines a method for transmitting the feed info by transmitter */ Transmit(request: DeepPartial, metadata?: grpc.Metadata): Promise; /** FundFeedRewardPool defines a method to put funds into feed reward pool */ FundFeedRewardPool(request: DeepPartial, metadata?: grpc.Metadata): Promise; /** * WithdrawFeedRewardPool defines a method to witdhraw feed reward by feed * admin or billing admin */ WithdrawFeedRewardPool(request: DeepPartial, metadata?: grpc.Metadata): Promise; /** SetPayees defines a method to set payees for transmitters (batch action) */ SetPayees(request: DeepPartial, metadata?: grpc.Metadata): Promise; /** * TransferPayeeship defines a method for a payee to transfer reward receive * ownership */ TransferPayeeship(request: DeepPartial, metadata?: grpc.Metadata): Promise; /** * AcceptPayeeship defines a method for a new payee to accept reward receive * ownership */ AcceptPayeeship(request: DeepPartial, metadata?: grpc.Metadata): Promise; UpdateParams(request: DeepPartial, metadata?: grpc.Metadata): Promise; } export declare class MsgClientImpl implements Msg { private readonly rpc; constructor(rpc: Rpc); CreateFeed(request: DeepPartial, metadata?: grpc.Metadata): Promise; UpdateFeed(request: DeepPartial, metadata?: grpc.Metadata): Promise; Transmit(request: DeepPartial, metadata?: grpc.Metadata): Promise; FundFeedRewardPool(request: DeepPartial, metadata?: grpc.Metadata): Promise; WithdrawFeedRewardPool(request: DeepPartial, metadata?: grpc.Metadata): Promise; SetPayees(request: DeepPartial, metadata?: grpc.Metadata): Promise; TransferPayeeship(request: DeepPartial, metadata?: grpc.Metadata): Promise; AcceptPayeeship(request: DeepPartial, metadata?: grpc.Metadata): Promise; UpdateParams(request: DeepPartial, metadata?: grpc.Metadata): Promise; } export declare const MsgDesc: { serviceName: string; }; export declare const MsgCreateFeedDesc: UnaryMethodDefinitionish; export declare const MsgUpdateFeedDesc: UnaryMethodDefinitionish; export declare const MsgTransmitDesc: UnaryMethodDefinitionish; export declare const MsgFundFeedRewardPoolDesc: UnaryMethodDefinitionish; export declare const MsgWithdrawFeedRewardPoolDesc: UnaryMethodDefinitionish; export declare const MsgSetPayeesDesc: UnaryMethodDefinitionish; export declare const MsgTransferPayeeshipDesc: UnaryMethodDefinitionish; export declare const MsgAcceptPayeeshipDesc: UnaryMethodDefinitionish; export declare const MsgUpdateParamsDesc: 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; } declare var tsProtoGlobalThis: any; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial = T extends Builtin ? T : T extends Array ? Array> : T extends ReadonlyArray ? ReadonlyArray> : T extends {} ? { [K in keyof T]?: DeepPartial; } : Partial; export declare class GrpcWebError extends tsProtoGlobalThis.Error { code: grpc.Code; metadata: grpc.Metadata; constructor(message: string, code: grpc.Code, metadata: grpc.Metadata); } export {};