// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" // @generated from file injective/exchange/v1beta1/events.proto (package injective.exchange.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 { AccountRewards, BinaryOptionsMarket, CampaignRewardPool, DepositUpdate, DerivativeLimitOrder, DerivativeMarket, DerivativeMarketOrder, DerivativeOrder, DerivativeTradeLog, ExecutionType, ExpiryFuturesMarketInfo, FeeDiscountSchedule, Level, MarketFeeMultiplier, PerpetualMarketFunding, PerpetualMarketInfo, SpotLimitOrder, SpotMarket, SubaccountPosition, TradeLog, TradingRewardCampaignInfo } from "./exchange_pb.js"; import { Coin } from "../../../cosmos/base/v1beta1/coin_pb.js"; /** * @generated from message injective.exchange.v1beta1.EventBatchSpotExecution */ export class EventBatchSpotExecution extends Message { /** * @generated from field: string market_id = 1; */ marketId = ""; /** * @generated from field: bool is_buy = 2; */ isBuy = false; /** * @generated from field: injective.exchange.v1beta1.ExecutionType executionType = 3; */ executionType = ExecutionType.UnspecifiedExecutionType; /** * @generated from field: repeated injective.exchange.v1beta1.TradeLog trades = 4; */ trades: TradeLog[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "injective.exchange.v1beta1.EventBatchSpotExecution"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "is_buy", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 3, name: "executionType", kind: "enum", T: proto3.getEnumType(ExecutionType) }, { no: 4, name: "trades", kind: "message", T: TradeLog, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): EventBatchSpotExecution { return new EventBatchSpotExecution().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): EventBatchSpotExecution { return new EventBatchSpotExecution().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): EventBatchSpotExecution { return new EventBatchSpotExecution().fromJsonString(jsonString, options); } static equals(a: EventBatchSpotExecution | PlainMessage | undefined, b: EventBatchSpotExecution | PlainMessage | undefined): boolean { return proto3.util.equals(EventBatchSpotExecution, a, b); } } /** * @generated from message injective.exchange.v1beta1.EventBatchDerivativeExecution */ export class EventBatchDerivativeExecution extends Message { /** * @generated from field: string market_id = 1; */ marketId = ""; /** * @generated from field: bool is_buy = 2; */ isBuy = false; /** * @generated from field: bool is_liquidation = 3; */ isLiquidation = false; /** * nil for time expiry futures * * @generated from field: string cumulative_funding = 4; */ cumulativeFunding = ""; /** * @generated from field: injective.exchange.v1beta1.ExecutionType executionType = 5; */ executionType = ExecutionType.UnspecifiedExecutionType; /** * @generated from field: repeated injective.exchange.v1beta1.DerivativeTradeLog trades = 6; */ trades: DerivativeTradeLog[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "injective.exchange.v1beta1.EventBatchDerivativeExecution"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "is_buy", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 3, name: "is_liquidation", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 4, name: "cumulative_funding", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 5, name: "executionType", kind: "enum", T: proto3.getEnumType(ExecutionType) }, { no: 6, name: "trades", kind: "message", T: DerivativeTradeLog, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): EventBatchDerivativeExecution { return new EventBatchDerivativeExecution().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): EventBatchDerivativeExecution { return new EventBatchDerivativeExecution().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): EventBatchDerivativeExecution { return new EventBatchDerivativeExecution().fromJsonString(jsonString, options); } static equals(a: EventBatchDerivativeExecution | PlainMessage | undefined, b: EventBatchDerivativeExecution | PlainMessage | undefined): boolean { return proto3.util.equals(EventBatchDerivativeExecution, a, b); } } /** * @generated from message injective.exchange.v1beta1.EventLostFundsFromLiquidation */ export class EventLostFundsFromLiquidation extends Message { /** * @generated from field: string market_id = 1; */ marketId = ""; /** * @generated from field: bytes subaccount_id = 2; */ subaccountId = new Uint8Array(0); /** * @generated from field: string lost_funds_from_available_during_payout = 3; */ lostFundsFromAvailableDuringPayout = ""; /** * @generated from field: string lost_funds_from_order_cancels = 4; */ lostFundsFromOrderCancels = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "injective.exchange.v1beta1.EventLostFundsFromLiquidation"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "subaccount_id", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, { no: 3, name: "lost_funds_from_available_during_payout", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 4, name: "lost_funds_from_order_cancels", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): EventLostFundsFromLiquidation { return new EventLostFundsFromLiquidation().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): EventLostFundsFromLiquidation { return new EventLostFundsFromLiquidation().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): EventLostFundsFromLiquidation { return new EventLostFundsFromLiquidation().fromJsonString(jsonString, options); } static equals(a: EventLostFundsFromLiquidation | PlainMessage | undefined, b: EventLostFundsFromLiquidation | PlainMessage | undefined): boolean { return proto3.util.equals(EventLostFundsFromLiquidation, a, b); } } /** * @generated from message injective.exchange.v1beta1.EventBatchDerivativePosition */ export class EventBatchDerivativePosition extends Message { /** * @generated from field: string market_id = 1; */ marketId = ""; /** * @generated from field: repeated injective.exchange.v1beta1.SubaccountPosition positions = 2; */ positions: SubaccountPosition[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "injective.exchange.v1beta1.EventBatchDerivativePosition"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "positions", kind: "message", T: SubaccountPosition, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): EventBatchDerivativePosition { return new EventBatchDerivativePosition().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): EventBatchDerivativePosition { return new EventBatchDerivativePosition().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): EventBatchDerivativePosition { return new EventBatchDerivativePosition().fromJsonString(jsonString, options); } static equals(a: EventBatchDerivativePosition | PlainMessage | undefined, b: EventBatchDerivativePosition | PlainMessage | undefined): boolean { return proto3.util.equals(EventBatchDerivativePosition, a, b); } } /** * @generated from message injective.exchange.v1beta1.EventDerivativeMarketPaused */ export class EventDerivativeMarketPaused extends Message { /** * @generated from field: string market_id = 1; */ marketId = ""; /** * @generated from field: string settle_price = 2; */ settlePrice = ""; /** * @generated from field: string total_missing_funds = 3; */ totalMissingFunds = ""; /** * @generated from field: string missing_funds_rate = 4; */ missingFundsRate = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "injective.exchange.v1beta1.EventDerivativeMarketPaused"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "settle_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "total_missing_funds", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 4, name: "missing_funds_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): EventDerivativeMarketPaused { return new EventDerivativeMarketPaused().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): EventDerivativeMarketPaused { return new EventDerivativeMarketPaused().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): EventDerivativeMarketPaused { return new EventDerivativeMarketPaused().fromJsonString(jsonString, options); } static equals(a: EventDerivativeMarketPaused | PlainMessage | undefined, b: EventDerivativeMarketPaused | PlainMessage | undefined): boolean { return proto3.util.equals(EventDerivativeMarketPaused, a, b); } } /** * @generated from message injective.exchange.v1beta1.EventMarketBeyondBankruptcy */ export class EventMarketBeyondBankruptcy extends Message { /** * @generated from field: string market_id = 1; */ marketId = ""; /** * @generated from field: string settle_price = 2; */ settlePrice = ""; /** * @generated from field: string missing_market_funds = 3; */ missingMarketFunds = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "injective.exchange.v1beta1.EventMarketBeyondBankruptcy"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "settle_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "missing_market_funds", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): EventMarketBeyondBankruptcy { return new EventMarketBeyondBankruptcy().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): EventMarketBeyondBankruptcy { return new EventMarketBeyondBankruptcy().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): EventMarketBeyondBankruptcy { return new EventMarketBeyondBankruptcy().fromJsonString(jsonString, options); } static equals(a: EventMarketBeyondBankruptcy | PlainMessage | undefined, b: EventMarketBeyondBankruptcy | PlainMessage | undefined): boolean { return proto3.util.equals(EventMarketBeyondBankruptcy, a, b); } } /** * @generated from message injective.exchange.v1beta1.EventAllPositionsHaircut */ export class EventAllPositionsHaircut extends Message { /** * @generated from field: string market_id = 1; */ marketId = ""; /** * @generated from field: string settle_price = 2; */ settlePrice = ""; /** * @generated from field: string missing_funds_rate = 3; */ missingFundsRate = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "injective.exchange.v1beta1.EventAllPositionsHaircut"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "settle_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "missing_funds_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): EventAllPositionsHaircut { return new EventAllPositionsHaircut().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): EventAllPositionsHaircut { return new EventAllPositionsHaircut().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): EventAllPositionsHaircut { return new EventAllPositionsHaircut().fromJsonString(jsonString, options); } static equals(a: EventAllPositionsHaircut | PlainMessage | undefined, b: EventAllPositionsHaircut | PlainMessage | undefined): boolean { return proto3.util.equals(EventAllPositionsHaircut, a, b); } } /** * @generated from message injective.exchange.v1beta1.EventBinaryOptionsMarketUpdate */ export class EventBinaryOptionsMarketUpdate extends Message { /** * @generated from field: injective.exchange.v1beta1.BinaryOptionsMarket market = 1; */ market?: BinaryOptionsMarket; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "injective.exchange.v1beta1.EventBinaryOptionsMarketUpdate"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "market", kind: "message", T: BinaryOptionsMarket }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): EventBinaryOptionsMarketUpdate { return new EventBinaryOptionsMarketUpdate().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): EventBinaryOptionsMarketUpdate { return new EventBinaryOptionsMarketUpdate().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): EventBinaryOptionsMarketUpdate { return new EventBinaryOptionsMarketUpdate().fromJsonString(jsonString, options); } static equals(a: EventBinaryOptionsMarketUpdate | PlainMessage | undefined, b: EventBinaryOptionsMarketUpdate | PlainMessage | undefined): boolean { return proto3.util.equals(EventBinaryOptionsMarketUpdate, a, b); } } /** * @generated from message injective.exchange.v1beta1.EventNewSpotOrders */ export class EventNewSpotOrders extends Message { /** * @generated from field: string market_id = 1; */ marketId = ""; /** * @generated from field: repeated injective.exchange.v1beta1.SpotLimitOrder buy_orders = 2; */ buyOrders: SpotLimitOrder[] = []; /** * @generated from field: repeated injective.exchange.v1beta1.SpotLimitOrder sell_orders = 3; */ sellOrders: SpotLimitOrder[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "injective.exchange.v1beta1.EventNewSpotOrders"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "buy_orders", kind: "message", T: SpotLimitOrder, repeated: true }, { no: 3, name: "sell_orders", kind: "message", T: SpotLimitOrder, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): EventNewSpotOrders { return new EventNewSpotOrders().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): EventNewSpotOrders { return new EventNewSpotOrders().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): EventNewSpotOrders { return new EventNewSpotOrders().fromJsonString(jsonString, options); } static equals(a: EventNewSpotOrders | PlainMessage | undefined, b: EventNewSpotOrders | PlainMessage | undefined): boolean { return proto3.util.equals(EventNewSpotOrders, a, b); } } /** * @generated from message injective.exchange.v1beta1.EventNewDerivativeOrders */ export class EventNewDerivativeOrders extends Message { /** * @generated from field: string market_id = 1; */ marketId = ""; /** * @generated from field: repeated injective.exchange.v1beta1.DerivativeLimitOrder buy_orders = 2; */ buyOrders: DerivativeLimitOrder[] = []; /** * @generated from field: repeated injective.exchange.v1beta1.DerivativeLimitOrder sell_orders = 3; */ sellOrders: DerivativeLimitOrder[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "injective.exchange.v1beta1.EventNewDerivativeOrders"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "buy_orders", kind: "message", T: DerivativeLimitOrder, repeated: true }, { no: 3, name: "sell_orders", kind: "message", T: DerivativeLimitOrder, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): EventNewDerivativeOrders { return new EventNewDerivativeOrders().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): EventNewDerivativeOrders { return new EventNewDerivativeOrders().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): EventNewDerivativeOrders { return new EventNewDerivativeOrders().fromJsonString(jsonString, options); } static equals(a: EventNewDerivativeOrders | PlainMessage | undefined, b: EventNewDerivativeOrders | PlainMessage | undefined): boolean { return proto3.util.equals(EventNewDerivativeOrders, a, b); } } /** * @generated from message injective.exchange.v1beta1.EventCancelSpotOrder */ export class EventCancelSpotOrder extends Message { /** * @generated from field: string market_id = 1; */ marketId = ""; /** * @generated from field: injective.exchange.v1beta1.SpotLimitOrder order = 2; */ order?: SpotLimitOrder; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "injective.exchange.v1beta1.EventCancelSpotOrder"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "order", kind: "message", T: SpotLimitOrder }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): EventCancelSpotOrder { return new EventCancelSpotOrder().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): EventCancelSpotOrder { return new EventCancelSpotOrder().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): EventCancelSpotOrder { return new EventCancelSpotOrder().fromJsonString(jsonString, options); } static equals(a: EventCancelSpotOrder | PlainMessage | undefined, b: EventCancelSpotOrder | PlainMessage | undefined): boolean { return proto3.util.equals(EventCancelSpotOrder, a, b); } } /** * @generated from message injective.exchange.v1beta1.EventSpotMarketUpdate */ export class EventSpotMarketUpdate extends Message { /** * @generated from field: injective.exchange.v1beta1.SpotMarket market = 1; */ market?: SpotMarket; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "injective.exchange.v1beta1.EventSpotMarketUpdate"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "market", kind: "message", T: SpotMarket }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): EventSpotMarketUpdate { return new EventSpotMarketUpdate().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): EventSpotMarketUpdate { return new EventSpotMarketUpdate().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): EventSpotMarketUpdate { return new EventSpotMarketUpdate().fromJsonString(jsonString, options); } static equals(a: EventSpotMarketUpdate | PlainMessage | undefined, b: EventSpotMarketUpdate | PlainMessage | undefined): boolean { return proto3.util.equals(EventSpotMarketUpdate, a, b); } } /** * @generated from message injective.exchange.v1beta1.EventPerpetualMarketUpdate */ export class EventPerpetualMarketUpdate extends Message { /** * @generated from field: injective.exchange.v1beta1.DerivativeMarket market = 1; */ market?: DerivativeMarket; /** * @generated from field: injective.exchange.v1beta1.PerpetualMarketInfo perpetual_market_info = 2; */ perpetualMarketInfo?: PerpetualMarketInfo; /** * @generated from field: injective.exchange.v1beta1.PerpetualMarketFunding funding = 3; */ funding?: PerpetualMarketFunding; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "injective.exchange.v1beta1.EventPerpetualMarketUpdate"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "market", kind: "message", T: DerivativeMarket }, { no: 2, name: "perpetual_market_info", kind: "message", T: PerpetualMarketInfo }, { no: 3, name: "funding", kind: "message", T: PerpetualMarketFunding }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): EventPerpetualMarketUpdate { return new EventPerpetualMarketUpdate().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): EventPerpetualMarketUpdate { return new EventPerpetualMarketUpdate().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): EventPerpetualMarketUpdate { return new EventPerpetualMarketUpdate().fromJsonString(jsonString, options); } static equals(a: EventPerpetualMarketUpdate | PlainMessage | undefined, b: EventPerpetualMarketUpdate | PlainMessage | undefined): boolean { return proto3.util.equals(EventPerpetualMarketUpdate, a, b); } } /** * @generated from message injective.exchange.v1beta1.EventExpiryFuturesMarketUpdate */ export class EventExpiryFuturesMarketUpdate extends Message { /** * @generated from field: injective.exchange.v1beta1.DerivativeMarket market = 1; */ market?: DerivativeMarket; /** * @generated from field: injective.exchange.v1beta1.ExpiryFuturesMarketInfo expiry_futures_market_info = 3; */ expiryFuturesMarketInfo?: ExpiryFuturesMarketInfo; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "injective.exchange.v1beta1.EventExpiryFuturesMarketUpdate"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "market", kind: "message", T: DerivativeMarket }, { no: 3, name: "expiry_futures_market_info", kind: "message", T: ExpiryFuturesMarketInfo }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): EventExpiryFuturesMarketUpdate { return new EventExpiryFuturesMarketUpdate().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): EventExpiryFuturesMarketUpdate { return new EventExpiryFuturesMarketUpdate().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): EventExpiryFuturesMarketUpdate { return new EventExpiryFuturesMarketUpdate().fromJsonString(jsonString, options); } static equals(a: EventExpiryFuturesMarketUpdate | PlainMessage | undefined, b: EventExpiryFuturesMarketUpdate | PlainMessage | undefined): boolean { return proto3.util.equals(EventExpiryFuturesMarketUpdate, a, b); } } /** * @generated from message injective.exchange.v1beta1.EventPerpetualMarketFundingUpdate */ export class EventPerpetualMarketFundingUpdate extends Message { /** * @generated from field: string market_id = 1; */ marketId = ""; /** * @generated from field: injective.exchange.v1beta1.PerpetualMarketFunding funding = 2; */ funding?: PerpetualMarketFunding; /** * @generated from field: bool is_hourly_funding = 3; */ isHourlyFunding = false; /** * @generated from field: string funding_rate = 4; */ fundingRate = ""; /** * @generated from field: string mark_price = 5; */ markPrice = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "injective.exchange.v1beta1.EventPerpetualMarketFundingUpdate"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "funding", kind: "message", T: PerpetualMarketFunding }, { no: 3, name: "is_hourly_funding", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 4, name: "funding_rate", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 5, name: "mark_price", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): EventPerpetualMarketFundingUpdate { return new EventPerpetualMarketFundingUpdate().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): EventPerpetualMarketFundingUpdate { return new EventPerpetualMarketFundingUpdate().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): EventPerpetualMarketFundingUpdate { return new EventPerpetualMarketFundingUpdate().fromJsonString(jsonString, options); } static equals(a: EventPerpetualMarketFundingUpdate | PlainMessage | undefined, b: EventPerpetualMarketFundingUpdate | PlainMessage | undefined): boolean { return proto3.util.equals(EventPerpetualMarketFundingUpdate, a, b); } } /** * @generated from message injective.exchange.v1beta1.EventSubaccountDeposit */ export class EventSubaccountDeposit extends Message { /** * @generated from field: string src_address = 1; */ srcAddress = ""; /** * @generated from field: bytes subaccount_id = 2; */ subaccountId = new Uint8Array(0); /** * @generated from field: cosmos.base.v1beta1.Coin amount = 3; */ amount?: Coin; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "injective.exchange.v1beta1.EventSubaccountDeposit"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "src_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "subaccount_id", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, { no: 3, name: "amount", kind: "message", T: Coin }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): EventSubaccountDeposit { return new EventSubaccountDeposit().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): EventSubaccountDeposit { return new EventSubaccountDeposit().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): EventSubaccountDeposit { return new EventSubaccountDeposit().fromJsonString(jsonString, options); } static equals(a: EventSubaccountDeposit | PlainMessage | undefined, b: EventSubaccountDeposit | PlainMessage | undefined): boolean { return proto3.util.equals(EventSubaccountDeposit, a, b); } } /** * @generated from message injective.exchange.v1beta1.EventSubaccountWithdraw */ export class EventSubaccountWithdraw extends Message { /** * @generated from field: bytes subaccount_id = 1; */ subaccountId = new Uint8Array(0); /** * @generated from field: string dst_address = 2; */ dstAddress = ""; /** * @generated from field: cosmos.base.v1beta1.Coin amount = 3; */ amount?: Coin; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "injective.exchange.v1beta1.EventSubaccountWithdraw"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "subaccount_id", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, { no: 2, name: "dst_address", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "amount", kind: "message", T: Coin }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): EventSubaccountWithdraw { return new EventSubaccountWithdraw().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): EventSubaccountWithdraw { return new EventSubaccountWithdraw().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): EventSubaccountWithdraw { return new EventSubaccountWithdraw().fromJsonString(jsonString, options); } static equals(a: EventSubaccountWithdraw | PlainMessage | undefined, b: EventSubaccountWithdraw | PlainMessage | undefined): boolean { return proto3.util.equals(EventSubaccountWithdraw, a, b); } } /** * @generated from message injective.exchange.v1beta1.EventSubaccountBalanceTransfer */ export class EventSubaccountBalanceTransfer extends Message { /** * @generated from field: string src_subaccount_id = 1; */ srcSubaccountId = ""; /** * @generated from field: string dst_subaccount_id = 2; */ dstSubaccountId = ""; /** * @generated from field: cosmos.base.v1beta1.Coin amount = 3; */ amount?: Coin; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "injective.exchange.v1beta1.EventSubaccountBalanceTransfer"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "src_subaccount_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "dst_subaccount_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 3, name: "amount", kind: "message", T: Coin }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): EventSubaccountBalanceTransfer { return new EventSubaccountBalanceTransfer().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): EventSubaccountBalanceTransfer { return new EventSubaccountBalanceTransfer().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): EventSubaccountBalanceTransfer { return new EventSubaccountBalanceTransfer().fromJsonString(jsonString, options); } static equals(a: EventSubaccountBalanceTransfer | PlainMessage | undefined, b: EventSubaccountBalanceTransfer | PlainMessage | undefined): boolean { return proto3.util.equals(EventSubaccountBalanceTransfer, a, b); } } /** * @generated from message injective.exchange.v1beta1.EventBatchDepositUpdate */ export class EventBatchDepositUpdate extends Message { /** * @generated from field: repeated injective.exchange.v1beta1.DepositUpdate deposit_updates = 1; */ depositUpdates: DepositUpdate[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "injective.exchange.v1beta1.EventBatchDepositUpdate"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "deposit_updates", kind: "message", T: DepositUpdate, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): EventBatchDepositUpdate { return new EventBatchDepositUpdate().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): EventBatchDepositUpdate { return new EventBatchDepositUpdate().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): EventBatchDepositUpdate { return new EventBatchDepositUpdate().fromJsonString(jsonString, options); } static equals(a: EventBatchDepositUpdate | PlainMessage | undefined, b: EventBatchDepositUpdate | PlainMessage | undefined): boolean { return proto3.util.equals(EventBatchDepositUpdate, a, b); } } /** * @generated from message injective.exchange.v1beta1.DerivativeMarketOrderCancel */ export class DerivativeMarketOrderCancel extends Message { /** * @generated from field: injective.exchange.v1beta1.DerivativeMarketOrder market_order = 1; */ marketOrder?: DerivativeMarketOrder; /** * @generated from field: string cancel_quantity = 2; */ cancelQuantity = ""; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "injective.exchange.v1beta1.DerivativeMarketOrderCancel"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "market_order", kind: "message", T: DerivativeMarketOrder }, { no: 2, name: "cancel_quantity", kind: "scalar", T: 9 /* ScalarType.STRING */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): DerivativeMarketOrderCancel { return new DerivativeMarketOrderCancel().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): DerivativeMarketOrderCancel { return new DerivativeMarketOrderCancel().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): DerivativeMarketOrderCancel { return new DerivativeMarketOrderCancel().fromJsonString(jsonString, options); } static equals(a: DerivativeMarketOrderCancel | PlainMessage | undefined, b: DerivativeMarketOrderCancel | PlainMessage | undefined): boolean { return proto3.util.equals(DerivativeMarketOrderCancel, a, b); } } /** * @generated from message injective.exchange.v1beta1.EventCancelDerivativeOrder */ export class EventCancelDerivativeOrder extends Message { /** * @generated from field: string market_id = 1; */ marketId = ""; /** * @generated from field: bool isLimitCancel = 2; */ isLimitCancel = false; /** * @generated from field: injective.exchange.v1beta1.DerivativeLimitOrder limit_order = 3; */ limitOrder?: DerivativeLimitOrder; /** * @generated from field: injective.exchange.v1beta1.DerivativeMarketOrderCancel market_order_cancel = 4; */ marketOrderCancel?: DerivativeMarketOrderCancel; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "injective.exchange.v1beta1.EventCancelDerivativeOrder"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "isLimitCancel", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 3, name: "limit_order", kind: "message", T: DerivativeLimitOrder }, { no: 4, name: "market_order_cancel", kind: "message", T: DerivativeMarketOrderCancel }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): EventCancelDerivativeOrder { return new EventCancelDerivativeOrder().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): EventCancelDerivativeOrder { return new EventCancelDerivativeOrder().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): EventCancelDerivativeOrder { return new EventCancelDerivativeOrder().fromJsonString(jsonString, options); } static equals(a: EventCancelDerivativeOrder | PlainMessage | undefined, b: EventCancelDerivativeOrder | PlainMessage | undefined): boolean { return proto3.util.equals(EventCancelDerivativeOrder, a, b); } } /** * @generated from message injective.exchange.v1beta1.EventFeeDiscountSchedule */ export class EventFeeDiscountSchedule extends Message { /** * @generated from field: injective.exchange.v1beta1.FeeDiscountSchedule schedule = 1; */ schedule?: FeeDiscountSchedule; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "injective.exchange.v1beta1.EventFeeDiscountSchedule"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "schedule", kind: "message", T: FeeDiscountSchedule }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): EventFeeDiscountSchedule { return new EventFeeDiscountSchedule().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): EventFeeDiscountSchedule { return new EventFeeDiscountSchedule().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): EventFeeDiscountSchedule { return new EventFeeDiscountSchedule().fromJsonString(jsonString, options); } static equals(a: EventFeeDiscountSchedule | PlainMessage | undefined, b: EventFeeDiscountSchedule | PlainMessage | undefined): boolean { return proto3.util.equals(EventFeeDiscountSchedule, a, b); } } /** * @generated from message injective.exchange.v1beta1.EventTradingRewardCampaignUpdate */ export class EventTradingRewardCampaignUpdate extends Message { /** * @generated from field: injective.exchange.v1beta1.TradingRewardCampaignInfo campaign_info = 1; */ campaignInfo?: TradingRewardCampaignInfo; /** * @generated from field: repeated injective.exchange.v1beta1.CampaignRewardPool campaign_reward_pools = 2; */ campaignRewardPools: CampaignRewardPool[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "injective.exchange.v1beta1.EventTradingRewardCampaignUpdate"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "campaign_info", kind: "message", T: TradingRewardCampaignInfo }, { no: 2, name: "campaign_reward_pools", kind: "message", T: CampaignRewardPool, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): EventTradingRewardCampaignUpdate { return new EventTradingRewardCampaignUpdate().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): EventTradingRewardCampaignUpdate { return new EventTradingRewardCampaignUpdate().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): EventTradingRewardCampaignUpdate { return new EventTradingRewardCampaignUpdate().fromJsonString(jsonString, options); } static equals(a: EventTradingRewardCampaignUpdate | PlainMessage | undefined, b: EventTradingRewardCampaignUpdate | PlainMessage | undefined): boolean { return proto3.util.equals(EventTradingRewardCampaignUpdate, a, b); } } /** * @generated from message injective.exchange.v1beta1.EventTradingRewardDistribution */ export class EventTradingRewardDistribution extends Message { /** * @generated from field: repeated injective.exchange.v1beta1.AccountRewards account_rewards = 1; */ accountRewards: AccountRewards[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "injective.exchange.v1beta1.EventTradingRewardDistribution"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "account_rewards", kind: "message", T: AccountRewards, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): EventTradingRewardDistribution { return new EventTradingRewardDistribution().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): EventTradingRewardDistribution { return new EventTradingRewardDistribution().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): EventTradingRewardDistribution { return new EventTradingRewardDistribution().fromJsonString(jsonString, options); } static equals(a: EventTradingRewardDistribution | PlainMessage | undefined, b: EventTradingRewardDistribution | PlainMessage | undefined): boolean { return proto3.util.equals(EventTradingRewardDistribution, a, b); } } /** * @generated from message injective.exchange.v1beta1.EventNewConditionalDerivativeOrder */ export class EventNewConditionalDerivativeOrder extends Message { /** * @generated from field: string market_id = 1; */ marketId = ""; /** * @generated from field: injective.exchange.v1beta1.DerivativeOrder order = 2; */ order?: DerivativeOrder; /** * @generated from field: bytes hash = 3; */ hash = new Uint8Array(0); /** * @generated from field: bool is_market = 4; */ isMarket = false; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "injective.exchange.v1beta1.EventNewConditionalDerivativeOrder"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "order", kind: "message", T: DerivativeOrder }, { no: 3, name: "hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, { no: 4, name: "is_market", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): EventNewConditionalDerivativeOrder { return new EventNewConditionalDerivativeOrder().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): EventNewConditionalDerivativeOrder { return new EventNewConditionalDerivativeOrder().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): EventNewConditionalDerivativeOrder { return new EventNewConditionalDerivativeOrder().fromJsonString(jsonString, options); } static equals(a: EventNewConditionalDerivativeOrder | PlainMessage | undefined, b: EventNewConditionalDerivativeOrder | PlainMessage | undefined): boolean { return proto3.util.equals(EventNewConditionalDerivativeOrder, a, b); } } /** * @generated from message injective.exchange.v1beta1.EventCancelConditionalDerivativeOrder */ export class EventCancelConditionalDerivativeOrder extends Message { /** * @generated from field: string market_id = 1; */ marketId = ""; /** * @generated from field: bool isLimitCancel = 2; */ isLimitCancel = false; /** * @generated from field: injective.exchange.v1beta1.DerivativeLimitOrder limit_order = 3; */ limitOrder?: DerivativeLimitOrder; /** * @generated from field: injective.exchange.v1beta1.DerivativeMarketOrder market_order = 4; */ marketOrder?: DerivativeMarketOrder; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "injective.exchange.v1beta1.EventCancelConditionalDerivativeOrder"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "market_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "isLimitCancel", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 3, name: "limit_order", kind: "message", T: DerivativeLimitOrder }, { no: 4, name: "market_order", kind: "message", T: DerivativeMarketOrder }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): EventCancelConditionalDerivativeOrder { return new EventCancelConditionalDerivativeOrder().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): EventCancelConditionalDerivativeOrder { return new EventCancelConditionalDerivativeOrder().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): EventCancelConditionalDerivativeOrder { return new EventCancelConditionalDerivativeOrder().fromJsonString(jsonString, options); } static equals(a: EventCancelConditionalDerivativeOrder | PlainMessage | undefined, b: EventCancelConditionalDerivativeOrder | PlainMessage | undefined): boolean { return proto3.util.equals(EventCancelConditionalDerivativeOrder, a, b); } } /** * @generated from message injective.exchange.v1beta1.EventConditionalDerivativeOrderTrigger */ export class EventConditionalDerivativeOrderTrigger extends Message { /** * @generated from field: bytes market_id = 1; */ marketId = new Uint8Array(0); /** * @generated from field: bool isLimitTrigger = 2; */ isLimitTrigger = false; /** * @generated from field: bytes triggered_order_hash = 3; */ triggeredOrderHash = new Uint8Array(0); /** * @generated from field: bytes placed_order_hash = 4; */ placedOrderHash = new Uint8Array(0); constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "injective.exchange.v1beta1.EventConditionalDerivativeOrderTrigger"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "market_id", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, { no: 2, name: "isLimitTrigger", kind: "scalar", T: 8 /* ScalarType.BOOL */ }, { no: 3, name: "triggered_order_hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, { no: 4, name: "placed_order_hash", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): EventConditionalDerivativeOrderTrigger { return new EventConditionalDerivativeOrderTrigger().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): EventConditionalDerivativeOrderTrigger { return new EventConditionalDerivativeOrderTrigger().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): EventConditionalDerivativeOrderTrigger { return new EventConditionalDerivativeOrderTrigger().fromJsonString(jsonString, options); } static equals(a: EventConditionalDerivativeOrderTrigger | PlainMessage | undefined, b: EventConditionalDerivativeOrderTrigger | PlainMessage | undefined): boolean { return proto3.util.equals(EventConditionalDerivativeOrderTrigger, a, b); } } /** * @generated from message injective.exchange.v1beta1.EventOrderFail */ export class EventOrderFail extends Message { /** * @generated from field: bytes account = 1; */ account = new Uint8Array(0); /** * @generated from field: repeated bytes hashes = 2; */ hashes: Uint8Array[] = []; /** * @generated from field: repeated uint32 flags = 3; */ flags: number[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "injective.exchange.v1beta1.EventOrderFail"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "account", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, { no: 2, name: "hashes", kind: "scalar", T: 12 /* ScalarType.BYTES */, repeated: true }, { no: 3, name: "flags", kind: "scalar", T: 13 /* ScalarType.UINT32 */, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): EventOrderFail { return new EventOrderFail().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): EventOrderFail { return new EventOrderFail().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): EventOrderFail { return new EventOrderFail().fromJsonString(jsonString, options); } static equals(a: EventOrderFail | PlainMessage | undefined, b: EventOrderFail | PlainMessage | undefined): boolean { return proto3.util.equals(EventOrderFail, a, b); } } /** * @generated from message injective.exchange.v1beta1.EventAtomicMarketOrderFeeMultipliersUpdated */ export class EventAtomicMarketOrderFeeMultipliersUpdated extends Message { /** * @generated from field: repeated injective.exchange.v1beta1.MarketFeeMultiplier market_fee_multipliers = 1; */ marketFeeMultipliers: MarketFeeMultiplier[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "injective.exchange.v1beta1.EventAtomicMarketOrderFeeMultipliersUpdated"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "market_fee_multipliers", kind: "message", T: MarketFeeMultiplier, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): EventAtomicMarketOrderFeeMultipliersUpdated { return new EventAtomicMarketOrderFeeMultipliersUpdated().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): EventAtomicMarketOrderFeeMultipliersUpdated { return new EventAtomicMarketOrderFeeMultipliersUpdated().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): EventAtomicMarketOrderFeeMultipliersUpdated { return new EventAtomicMarketOrderFeeMultipliersUpdated().fromJsonString(jsonString, options); } static equals(a: EventAtomicMarketOrderFeeMultipliersUpdated | PlainMessage | undefined, b: EventAtomicMarketOrderFeeMultipliersUpdated | PlainMessage | undefined): boolean { return proto3.util.equals(EventAtomicMarketOrderFeeMultipliersUpdated, a, b); } } /** * @generated from message injective.exchange.v1beta1.EventOrderbookUpdate */ export class EventOrderbookUpdate extends Message { /** * @generated from field: repeated injective.exchange.v1beta1.OrderbookUpdate spot_updates = 1; */ spotUpdates: OrderbookUpdate[] = []; /** * @generated from field: repeated injective.exchange.v1beta1.OrderbookUpdate derivative_updates = 2; */ derivativeUpdates: OrderbookUpdate[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "injective.exchange.v1beta1.EventOrderbookUpdate"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "spot_updates", kind: "message", T: OrderbookUpdate, repeated: true }, { no: 2, name: "derivative_updates", kind: "message", T: OrderbookUpdate, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): EventOrderbookUpdate { return new EventOrderbookUpdate().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): EventOrderbookUpdate { return new EventOrderbookUpdate().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): EventOrderbookUpdate { return new EventOrderbookUpdate().fromJsonString(jsonString, options); } static equals(a: EventOrderbookUpdate | PlainMessage | undefined, b: EventOrderbookUpdate | PlainMessage | undefined): boolean { return proto3.util.equals(EventOrderbookUpdate, a, b); } } /** * @generated from message injective.exchange.v1beta1.OrderbookUpdate */ export class OrderbookUpdate extends Message { /** * @generated from field: uint64 seq = 1; */ seq = protoInt64.zero; /** * @generated from field: injective.exchange.v1beta1.Orderbook orderbook = 2; */ orderbook?: Orderbook; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "injective.exchange.v1beta1.OrderbookUpdate"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "seq", kind: "scalar", T: 4 /* ScalarType.UINT64 */ }, { no: 2, name: "orderbook", kind: "message", T: Orderbook }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): OrderbookUpdate { return new OrderbookUpdate().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): OrderbookUpdate { return new OrderbookUpdate().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): OrderbookUpdate { return new OrderbookUpdate().fromJsonString(jsonString, options); } static equals(a: OrderbookUpdate | PlainMessage | undefined, b: OrderbookUpdate | PlainMessage | undefined): boolean { return proto3.util.equals(OrderbookUpdate, a, b); } } /** * @generated from message injective.exchange.v1beta1.Orderbook */ export class Orderbook extends Message { /** * @generated from field: bytes market_id = 1; */ marketId = new Uint8Array(0); /** * @generated from field: repeated injective.exchange.v1beta1.Level buy_levels = 2; */ buyLevels: Level[] = []; /** * @generated from field: repeated injective.exchange.v1beta1.Level sell_levels = 3; */ sellLevels: Level[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "injective.exchange.v1beta1.Orderbook"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "market_id", kind: "scalar", T: 12 /* ScalarType.BYTES */ }, { no: 2, name: "buy_levels", kind: "message", T: Level, repeated: true }, { no: 3, name: "sell_levels", kind: "message", T: Level, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): Orderbook { return new Orderbook().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): Orderbook { return new Orderbook().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): Orderbook { return new Orderbook().fromJsonString(jsonString, options); } static equals(a: Orderbook | PlainMessage | undefined, b: Orderbook | PlainMessage | undefined): boolean { return proto3.util.equals(Orderbook, a, b); } }