// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" // @generated from file injective/oracle/v1beta1/events.proto (package injective.oracle.v1beta1, syntax proto3) /* eslint-disable */ // @ts-nocheck import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Message, proto3, protoInt64 } from "@bufbuild/protobuf"; import { PythPriceState } from "./oracle_pb.js"; /** * @generated from message injective.oracle.v1beta1.SetChainlinkPriceEvent */ export class SetChainlinkPriceEvent extends Message { /** * @generated from field: string feed_id = 1; */ feedId = ""; /** * @generated from field: string answer = 2; */ answer = ""; /** * @generated from field: uint64 timestamp = 3; */ timestamp = protoInt64.zero; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "injective.oracle.v1beta1.SetChainlinkPriceEvent"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "feed_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "answer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "timestamp", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): SetChainlinkPriceEvent { return new SetChainlinkPriceEvent().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): SetChainlinkPriceEvent { return new SetChainlinkPriceEvent().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): SetChainlinkPriceEvent { return new SetChainlinkPriceEvent().fromJsonString(jsonString, options); } static equals(a: SetChainlinkPriceEvent | PlainMessage | undefined, b: SetChainlinkPriceEvent | PlainMessage | undefined): boolean { return proto3.util.equals(SetChainlinkPriceEvent, a, b); } } /** * Event type upon set ref * * @generated from message injective.oracle.v1beta1.SetBandPriceEvent */ export class SetBandPriceEvent extends Message { /** * @generated from field: string relayer = 1; */ relayer = ""; /** * @generated from field: string symbol = 2; */ symbol = ""; /** * @generated from field: string price = 3; */ price = ""; /** * @generated from field: uint64 resolve_time = 4; */ resolveTime = protoInt64.zero; /** * @generated from field: uint64 request_id = 5; */ requestId = protoInt64.zero; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "injective.oracle.v1beta1.SetBandPriceEvent"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "relayer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "symbol", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 4, name: "resolve_time", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 5, name: "request_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): SetBandPriceEvent { return new SetBandPriceEvent().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): SetBandPriceEvent { return new SetBandPriceEvent().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): SetBandPriceEvent { return new SetBandPriceEvent().fromJsonString(jsonString, options); } static equals(a: SetBandPriceEvent | PlainMessage | undefined, b: SetBandPriceEvent | PlainMessage | undefined): boolean { return proto3.util.equals(SetBandPriceEvent, a, b); } } /** * @generated from message injective.oracle.v1beta1.SetBandIBCPriceEvent */ export class SetBandIBCPriceEvent extends Message { /** * @generated from field: string relayer = 1; */ relayer = ""; /** * @generated from field: repeated string symbols = 2; */ symbols: string[] = []; /** * @generated from field: repeated string prices = 3; */ prices: string[] = []; /** * @generated from field: uint64 resolve_time = 4; */ resolveTime = protoInt64.zero; /** * @generated from field: uint64 request_id = 5; */ requestId = protoInt64.zero; /** * @generated from field: int64 client_id = 6; */ clientId = protoInt64.zero; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "injective.oracle.v1beta1.SetBandIBCPriceEvent"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "relayer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "symbols", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, { no: 3, name: "prices", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, { no: 4, name: "resolve_time", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 5, name: "request_id", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 6, name: "client_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): SetBandIBCPriceEvent { return new SetBandIBCPriceEvent().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): SetBandIBCPriceEvent { return new SetBandIBCPriceEvent().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): SetBandIBCPriceEvent { return new SetBandIBCPriceEvent().fromJsonString(jsonString, options); } static equals(a: SetBandIBCPriceEvent | PlainMessage | undefined, b: SetBandIBCPriceEvent | PlainMessage | undefined): boolean { return proto3.util.equals(SetBandIBCPriceEvent, a, b); } } /** * @generated from message injective.oracle.v1beta1.EventBandIBCAckSuccess */ export class EventBandIBCAckSuccess extends Message { /** * @generated from field: string ack_result = 1; */ ackResult = ""; /** * @generated from field: int64 client_id = 2; */ clientId = protoInt64.zero; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "injective.oracle.v1beta1.EventBandIBCAckSuccess"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "ack_result", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "client_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): EventBandIBCAckSuccess { return new EventBandIBCAckSuccess().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): EventBandIBCAckSuccess { return new EventBandIBCAckSuccess().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): EventBandIBCAckSuccess { return new EventBandIBCAckSuccess().fromJsonString(jsonString, options); } static equals(a: EventBandIBCAckSuccess | PlainMessage | undefined, b: EventBandIBCAckSuccess | PlainMessage | undefined): boolean { return proto3.util.equals(EventBandIBCAckSuccess, a, b); } } /** * @generated from message injective.oracle.v1beta1.EventBandIBCAckError */ export class EventBandIBCAckError extends Message { /** * @generated from field: string ack_error = 1; */ ackError = ""; /** * @generated from field: int64 client_id = 2; */ clientId = protoInt64.zero; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "injective.oracle.v1beta1.EventBandIBCAckError"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "ack_error", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "client_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): EventBandIBCAckError { return new EventBandIBCAckError().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): EventBandIBCAckError { return new EventBandIBCAckError().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): EventBandIBCAckError { return new EventBandIBCAckError().fromJsonString(jsonString, options); } static equals(a: EventBandIBCAckError | PlainMessage | undefined, b: EventBandIBCAckError | PlainMessage | undefined): boolean { return proto3.util.equals(EventBandIBCAckError, a, b); } } /** * @generated from message injective.oracle.v1beta1.EventBandIBCResponseTimeout */ export class EventBandIBCResponseTimeout extends Message { /** * @generated from field: int64 client_id = 1; */ clientId = protoInt64.zero; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "injective.oracle.v1beta1.EventBandIBCResponseTimeout"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "client_id", kind: "scalar", T: 3 /* ScalarType.INT64 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): EventBandIBCResponseTimeout { return new EventBandIBCResponseTimeout().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): EventBandIBCResponseTimeout { return new EventBandIBCResponseTimeout().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): EventBandIBCResponseTimeout { return new EventBandIBCResponseTimeout().fromJsonString(jsonString, options); } static equals(a: EventBandIBCResponseTimeout | PlainMessage | undefined, b: EventBandIBCResponseTimeout | PlainMessage | undefined): boolean { return proto3.util.equals(EventBandIBCResponseTimeout, a, b); } } /** * @generated from message injective.oracle.v1beta1.SetPriceFeedPriceEvent */ export class SetPriceFeedPriceEvent extends Message { /** * @generated from field: string relayer = 1; */ relayer = ""; /** * @generated from field: string base = 2; */ base = ""; /** * @generated from field: string quote = 3; */ quote = ""; /** * price defines the price of the oracle base and quote * * @generated from field: string price = 4; */ price = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "injective.oracle.v1beta1.SetPriceFeedPriceEvent"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "relayer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "base", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "quote", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 4, name: "price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): SetPriceFeedPriceEvent { return new SetPriceFeedPriceEvent().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): SetPriceFeedPriceEvent { return new SetPriceFeedPriceEvent().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): SetPriceFeedPriceEvent { return new SetPriceFeedPriceEvent().fromJsonString(jsonString, options); } static equals(a: SetPriceFeedPriceEvent | PlainMessage | undefined, b: SetPriceFeedPriceEvent | PlainMessage | undefined): boolean { return proto3.util.equals(SetPriceFeedPriceEvent, a, b); } } /** * @generated from message injective.oracle.v1beta1.SetProviderPriceEvent */ export class SetProviderPriceEvent extends Message { /** * @generated from field: string provider = 1; */ provider = ""; /** * @generated from field: string relayer = 2; */ relayer = ""; /** * @generated from field: string symbol = 3; */ symbol = ""; /** * @generated from field: string price = 4; */ price = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "injective.oracle.v1beta1.SetProviderPriceEvent"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "provider", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "relayer", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "symbol", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 4, name: "price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): SetProviderPriceEvent { return new SetProviderPriceEvent().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): SetProviderPriceEvent { return new SetProviderPriceEvent().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): SetProviderPriceEvent { return new SetProviderPriceEvent().fromJsonString(jsonString, options); } static equals(a: SetProviderPriceEvent | PlainMessage | undefined, b: SetProviderPriceEvent | PlainMessage | undefined): boolean { return proto3.util.equals(SetProviderPriceEvent, a, b); } } /** * @generated from message injective.oracle.v1beta1.SetCoinbasePriceEvent */ export class SetCoinbasePriceEvent extends Message { /** * @generated from field: string symbol = 1; */ symbol = ""; /** * @generated from field: string price = 2; */ price = ""; /** * @generated from field: uint64 timestamp = 3; */ timestamp = protoInt64.zero; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "injective.oracle.v1beta1.SetCoinbasePriceEvent"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "symbol", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "timestamp", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): SetCoinbasePriceEvent { return new SetCoinbasePriceEvent().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): SetCoinbasePriceEvent { return new SetCoinbasePriceEvent().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): SetCoinbasePriceEvent { return new SetCoinbasePriceEvent().fromJsonString(jsonString, options); } static equals(a: SetCoinbasePriceEvent | PlainMessage | undefined, b: SetCoinbasePriceEvent | PlainMessage | undefined): boolean { return proto3.util.equals(SetCoinbasePriceEvent, a, b); } } /** * @generated from message injective.oracle.v1beta1.EventSetPythPrices */ export class EventSetPythPrices extends Message { /** * @generated from field: repeated injective.oracle.v1beta1.PythPriceState prices = 1; */ prices: PythPriceState[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "injective.oracle.v1beta1.EventSetPythPrices"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "prices", kind: "message", T: PythPriceState, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): EventSetPythPrices { return new EventSetPythPrices().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): EventSetPythPrices { return new EventSetPythPrices().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): EventSetPythPrices { return new EventSetPythPrices().fromJsonString(jsonString, options); } static equals(a: EventSetPythPrices | PlainMessage | undefined, b: EventSetPythPrices | PlainMessage | undefined): boolean { return proto3.util.equals(EventSetPythPrices, a, b); } }