import Long from "long"; import _m0 from "protobufjs/minimal"; import { Duration } from "../../../google/protobuf/duration"; /** * MsgAggregateExchangeRatePrevote represents a message to submit * aggregate exchange rate prevote. */ export interface MsgAggregateExchangeRatePrevote { hash: string; /** * Feeder is the Bech32 address of the price feeder. A validator may * specify multiple price feeders by delegating them consent. The validator * address is also a valid feeder by default. */ feeder: string; /** Validator is the Bech32 address to which the prevote will be credited. */ 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 is the Bech32 address of the price feeder. A validator may * specify multiple price feeders by delegating them consent. The validator * address is also a valid feeder by default. */ feeder: string; /** Validator is the Bech32 address to which the vote will be credited. */ 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 interface MsgEditOracleParams { sender: string; params?: OracleParamsMsg; } export interface MsgEditOracleParamsResponse { } export interface OracleParamsMsg { /** VotePeriod defines the number of blocks during which voting takes place. */ votePeriod: Long; /** * VoteThreshold specifies the minimum proportion of votes that must be * received for a ballot to pass. */ voteThreshold: string; /** * RewardBand defines a maxium divergence that a price vote can have from the * weighted median in the ballot. If a vote lies within the valid range * defined by: * μ := weightedMedian, * validRange := μ ± (μ * rewardBand / 2), * then rewards are added to the validator performance. * Note that if the reward band is smaller than 1 standard * deviation, the band is taken to be 1 standard deviation.a price */ rewardBand: string; /** * The set of whitelisted markets, or asset pairs, for the module. * Ex. '["unibi:uusd","ubtc:uusd"]' */ whitelist: string[]; /** * SlashFraction returns the proportion of an oracle's stake that gets * slashed in the event of slashing. `SlashFraction` specifies the exact * penalty for failing a voting period. */ slashFraction: string; /** * SlashWindow returns the number of voting periods that specify a * "slash window". After each slash window, all oracles that have missed more * than the penalty threshold are slashed. Missing the penalty threshold is * synonymous with submitting fewer valid votes than `MinValidPerWindow`. */ slashWindow: Long; minValidPerWindow: string; /** Amount of time to look back for TWAP calculations */ twapLookbackWindow?: Duration; /** * The minimum number of voters (i.e. oracle validators) per pair for it to be * considered a passing ballot. Recommended at least 4. */ minVoters: Long; /** The validator fee ratio that is given to validators every epoch. */ validatorFeeRatio: string; expirationBlocks: Long; } export declare const MsgAggregateExchangeRatePrevote: { encode(message: MsgAggregateExchangeRatePrevote, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgAggregateExchangeRatePrevote; fromJSON(object: any): MsgAggregateExchangeRatePrevote; toJSON(message: MsgAggregateExchangeRatePrevote): unknown; create, I>>(base?: I): MsgAggregateExchangeRatePrevote; fromPartial, I>>(object: I): MsgAggregateExchangeRatePrevote; }; export declare const MsgAggregateExchangeRatePrevoteResponse: { encode(_: MsgAggregateExchangeRatePrevoteResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgAggregateExchangeRatePrevoteResponse; fromJSON(_: any): MsgAggregateExchangeRatePrevoteResponse; toJSON(_: MsgAggregateExchangeRatePrevoteResponse): unknown; create, I>>(base?: I): MsgAggregateExchangeRatePrevoteResponse; fromPartial, I>>(_: I): MsgAggregateExchangeRatePrevoteResponse; }; export declare const MsgAggregateExchangeRateVote: { encode(message: MsgAggregateExchangeRateVote, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgAggregateExchangeRateVote; fromJSON(object: any): MsgAggregateExchangeRateVote; toJSON(message: MsgAggregateExchangeRateVote): unknown; create, I>>(base?: I): MsgAggregateExchangeRateVote; fromPartial, I>>(object: I): MsgAggregateExchangeRateVote; }; export declare const MsgAggregateExchangeRateVoteResponse: { encode(_: MsgAggregateExchangeRateVoteResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgAggregateExchangeRateVoteResponse; fromJSON(_: any): MsgAggregateExchangeRateVoteResponse; toJSON(_: MsgAggregateExchangeRateVoteResponse): unknown; create, I>>(base?: I): MsgAggregateExchangeRateVoteResponse; fromPartial, I>>(_: I): MsgAggregateExchangeRateVoteResponse; }; export declare const MsgDelegateFeedConsent: { encode(message: MsgDelegateFeedConsent, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgDelegateFeedConsent; fromJSON(object: any): MsgDelegateFeedConsent; toJSON(message: MsgDelegateFeedConsent): unknown; create, I>>(base?: I): MsgDelegateFeedConsent; fromPartial, I>>(object: I): MsgDelegateFeedConsent; }; export declare const MsgDelegateFeedConsentResponse: { encode(_: MsgDelegateFeedConsentResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgDelegateFeedConsentResponse; fromJSON(_: any): MsgDelegateFeedConsentResponse; toJSON(_: MsgDelegateFeedConsentResponse): unknown; create, I>>(base?: I): MsgDelegateFeedConsentResponse; fromPartial, I>>(_: I): MsgDelegateFeedConsentResponse; }; export declare const MsgEditOracleParams: { encode(message: MsgEditOracleParams, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgEditOracleParams; fromJSON(object: any): MsgEditOracleParams; toJSON(message: MsgEditOracleParams): unknown; create, I>>(base?: I): MsgEditOracleParams; fromPartial, I>>(object: I): MsgEditOracleParams; }; export declare const MsgEditOracleParamsResponse: { encode(_: MsgEditOracleParamsResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MsgEditOracleParamsResponse; fromJSON(_: any): MsgEditOracleParamsResponse; toJSON(_: MsgEditOracleParamsResponse): unknown; create, I>>(base?: I): MsgEditOracleParamsResponse; fromPartial, I>>(_: I): MsgEditOracleParamsResponse; }; export declare const OracleParamsMsg: { encode(message: OracleParamsMsg, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): OracleParamsMsg; fromJSON(object: any): OracleParamsMsg; toJSON(message: OracleParamsMsg): unknown; create, I>>(base?: I): OracleParamsMsg; fromPartial, I>>(object: I): OracleParamsMsg; }; /** Msg defines the oracle Msg service. */ export interface Msg { /** * AggregateExchangeRatePrevote defines a method for submitting * aggregate exchange rate prevote */ AggregateExchangeRatePrevote(request: MsgAggregateExchangeRatePrevote): Promise; /** * AggregateExchangeRateVote defines a method for submitting * aggregate exchange rate vote */ AggregateExchangeRateVote(request: MsgAggregateExchangeRateVote): Promise; /** * DelegateFeedConsent defines a method for delegating oracle voting rights * to another address known as a price feeder. * Deprecated: x/oracle Msg RPCs are disabled on-chain (ErrOracleDeprecated). */ DelegateFeedConsent(request: MsgDelegateFeedConsent): Promise; EditOracleParams(request: MsgEditOracleParams): Promise; } export declare const MsgServiceName = "nibiru.oracle.v1.Msg"; export declare class MsgClientImpl implements Msg { private readonly rpc; private readonly service; constructor(rpc: Rpc, opts?: { service?: string; }); AggregateExchangeRatePrevote(request: MsgAggregateExchangeRatePrevote): Promise; AggregateExchangeRateVote(request: MsgAggregateExchangeRateVote): Promise; DelegateFeedConsent(request: MsgDelegateFeedConsent): Promise; EditOracleParams(request: MsgEditOracleParams): Promise; } interface Rpc { request(service: string, method: string, data: Uint8Array): Promise; } type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; 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; type KeysOfUnion = T extends T ? keyof T : never; type Exact = P extends Builtin ? P : P & { [K in keyof P]: Exact; } & { [K in Exclude>]: never; }; export {}; //# sourceMappingURL=tx.d.ts.map