// @generated by protoc-gen-es v1.2.0 with parameter "target=ts" // @generated from file injective/exchange/v1beta1/authz.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 } from "@bufbuild/protobuf"; /** * spot authz messages * * @generated from message injective.exchange.v1beta1.CreateSpotLimitOrderAuthz */ export class CreateSpotLimitOrderAuthz extends Message { /** * @generated from field: string subaccount_id = 1; */ subaccountId = ""; /** * @generated from field: repeated string market_ids = 2; */ marketIds: string[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "injective.exchange.v1beta1.CreateSpotLimitOrderAuthz"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "subaccount_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "market_ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): CreateSpotLimitOrderAuthz { return new CreateSpotLimitOrderAuthz().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): CreateSpotLimitOrderAuthz { return new CreateSpotLimitOrderAuthz().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): CreateSpotLimitOrderAuthz { return new CreateSpotLimitOrderAuthz().fromJsonString(jsonString, options); } static equals(a: CreateSpotLimitOrderAuthz | PlainMessage | undefined, b: CreateSpotLimitOrderAuthz | PlainMessage | undefined): boolean { return proto3.util.equals(CreateSpotLimitOrderAuthz, a, b); } } /** * @generated from message injective.exchange.v1beta1.CreateSpotMarketOrderAuthz */ export class CreateSpotMarketOrderAuthz extends Message { /** * @generated from field: string subaccount_id = 1; */ subaccountId = ""; /** * @generated from field: repeated string market_ids = 2; */ marketIds: string[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "injective.exchange.v1beta1.CreateSpotMarketOrderAuthz"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "subaccount_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "market_ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): CreateSpotMarketOrderAuthz { return new CreateSpotMarketOrderAuthz().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): CreateSpotMarketOrderAuthz { return new CreateSpotMarketOrderAuthz().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): CreateSpotMarketOrderAuthz { return new CreateSpotMarketOrderAuthz().fromJsonString(jsonString, options); } static equals(a: CreateSpotMarketOrderAuthz | PlainMessage | undefined, b: CreateSpotMarketOrderAuthz | PlainMessage | undefined): boolean { return proto3.util.equals(CreateSpotMarketOrderAuthz, a, b); } } /** * @generated from message injective.exchange.v1beta1.BatchCreateSpotLimitOrdersAuthz */ export class BatchCreateSpotLimitOrdersAuthz extends Message { /** * @generated from field: string subaccount_id = 1; */ subaccountId = ""; /** * @generated from field: repeated string market_ids = 2; */ marketIds: string[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "injective.exchange.v1beta1.BatchCreateSpotLimitOrdersAuthz"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "subaccount_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "market_ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): BatchCreateSpotLimitOrdersAuthz { return new BatchCreateSpotLimitOrdersAuthz().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): BatchCreateSpotLimitOrdersAuthz { return new BatchCreateSpotLimitOrdersAuthz().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): BatchCreateSpotLimitOrdersAuthz { return new BatchCreateSpotLimitOrdersAuthz().fromJsonString(jsonString, options); } static equals(a: BatchCreateSpotLimitOrdersAuthz | PlainMessage | undefined, b: BatchCreateSpotLimitOrdersAuthz | PlainMessage | undefined): boolean { return proto3.util.equals(BatchCreateSpotLimitOrdersAuthz, a, b); } } /** * @generated from message injective.exchange.v1beta1.CancelSpotOrderAuthz */ export class CancelSpotOrderAuthz extends Message { /** * @generated from field: string subaccount_id = 1; */ subaccountId = ""; /** * @generated from field: repeated string market_ids = 2; */ marketIds: string[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "injective.exchange.v1beta1.CancelSpotOrderAuthz"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "subaccount_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "market_ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): CancelSpotOrderAuthz { return new CancelSpotOrderAuthz().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): CancelSpotOrderAuthz { return new CancelSpotOrderAuthz().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): CancelSpotOrderAuthz { return new CancelSpotOrderAuthz().fromJsonString(jsonString, options); } static equals(a: CancelSpotOrderAuthz | PlainMessage | undefined, b: CancelSpotOrderAuthz | PlainMessage | undefined): boolean { return proto3.util.equals(CancelSpotOrderAuthz, a, b); } } /** * @generated from message injective.exchange.v1beta1.BatchCancelSpotOrdersAuthz */ export class BatchCancelSpotOrdersAuthz extends Message { /** * @generated from field: string subaccount_id = 1; */ subaccountId = ""; /** * @generated from field: repeated string market_ids = 2; */ marketIds: string[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "injective.exchange.v1beta1.BatchCancelSpotOrdersAuthz"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "subaccount_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "market_ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): BatchCancelSpotOrdersAuthz { return new BatchCancelSpotOrdersAuthz().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): BatchCancelSpotOrdersAuthz { return new BatchCancelSpotOrdersAuthz().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): BatchCancelSpotOrdersAuthz { return new BatchCancelSpotOrdersAuthz().fromJsonString(jsonString, options); } static equals(a: BatchCancelSpotOrdersAuthz | PlainMessage | undefined, b: BatchCancelSpotOrdersAuthz | PlainMessage | undefined): boolean { return proto3.util.equals(BatchCancelSpotOrdersAuthz, a, b); } } /** * derivative authz messages * * @generated from message injective.exchange.v1beta1.CreateDerivativeLimitOrderAuthz */ export class CreateDerivativeLimitOrderAuthz extends Message { /** * @generated from field: string subaccount_id = 1; */ subaccountId = ""; /** * @generated from field: repeated string market_ids = 2; */ marketIds: string[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "injective.exchange.v1beta1.CreateDerivativeLimitOrderAuthz"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "subaccount_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "market_ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): CreateDerivativeLimitOrderAuthz { return new CreateDerivativeLimitOrderAuthz().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): CreateDerivativeLimitOrderAuthz { return new CreateDerivativeLimitOrderAuthz().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): CreateDerivativeLimitOrderAuthz { return new CreateDerivativeLimitOrderAuthz().fromJsonString(jsonString, options); } static equals(a: CreateDerivativeLimitOrderAuthz | PlainMessage | undefined, b: CreateDerivativeLimitOrderAuthz | PlainMessage | undefined): boolean { return proto3.util.equals(CreateDerivativeLimitOrderAuthz, a, b); } } /** * @generated from message injective.exchange.v1beta1.CreateDerivativeMarketOrderAuthz */ export class CreateDerivativeMarketOrderAuthz extends Message { /** * @generated from field: string subaccount_id = 1; */ subaccountId = ""; /** * @generated from field: repeated string market_ids = 2; */ marketIds: string[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "injective.exchange.v1beta1.CreateDerivativeMarketOrderAuthz"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "subaccount_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "market_ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): CreateDerivativeMarketOrderAuthz { return new CreateDerivativeMarketOrderAuthz().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): CreateDerivativeMarketOrderAuthz { return new CreateDerivativeMarketOrderAuthz().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): CreateDerivativeMarketOrderAuthz { return new CreateDerivativeMarketOrderAuthz().fromJsonString(jsonString, options); } static equals(a: CreateDerivativeMarketOrderAuthz | PlainMessage | undefined, b: CreateDerivativeMarketOrderAuthz | PlainMessage | undefined): boolean { return proto3.util.equals(CreateDerivativeMarketOrderAuthz, a, b); } } /** * @generated from message injective.exchange.v1beta1.BatchCreateDerivativeLimitOrdersAuthz */ export class BatchCreateDerivativeLimitOrdersAuthz extends Message { /** * @generated from field: string subaccount_id = 1; */ subaccountId = ""; /** * @generated from field: repeated string market_ids = 2; */ marketIds: string[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "injective.exchange.v1beta1.BatchCreateDerivativeLimitOrdersAuthz"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "subaccount_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "market_ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): BatchCreateDerivativeLimitOrdersAuthz { return new BatchCreateDerivativeLimitOrdersAuthz().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): BatchCreateDerivativeLimitOrdersAuthz { return new BatchCreateDerivativeLimitOrdersAuthz().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): BatchCreateDerivativeLimitOrdersAuthz { return new BatchCreateDerivativeLimitOrdersAuthz().fromJsonString(jsonString, options); } static equals(a: BatchCreateDerivativeLimitOrdersAuthz | PlainMessage | undefined, b: BatchCreateDerivativeLimitOrdersAuthz | PlainMessage | undefined): boolean { return proto3.util.equals(BatchCreateDerivativeLimitOrdersAuthz, a, b); } } /** * @generated from message injective.exchange.v1beta1.CancelDerivativeOrderAuthz */ export class CancelDerivativeOrderAuthz extends Message { /** * @generated from field: string subaccount_id = 1; */ subaccountId = ""; /** * @generated from field: repeated string market_ids = 2; */ marketIds: string[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "injective.exchange.v1beta1.CancelDerivativeOrderAuthz"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "subaccount_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "market_ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): CancelDerivativeOrderAuthz { return new CancelDerivativeOrderAuthz().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): CancelDerivativeOrderAuthz { return new CancelDerivativeOrderAuthz().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): CancelDerivativeOrderAuthz { return new CancelDerivativeOrderAuthz().fromJsonString(jsonString, options); } static equals(a: CancelDerivativeOrderAuthz | PlainMessage | undefined, b: CancelDerivativeOrderAuthz | PlainMessage | undefined): boolean { return proto3.util.equals(CancelDerivativeOrderAuthz, a, b); } } /** * @generated from message injective.exchange.v1beta1.BatchCancelDerivativeOrdersAuthz */ export class BatchCancelDerivativeOrdersAuthz extends Message { /** * @generated from field: string subaccount_id = 1; */ subaccountId = ""; /** * @generated from field: repeated string market_ids = 2; */ marketIds: string[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "injective.exchange.v1beta1.BatchCancelDerivativeOrdersAuthz"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "subaccount_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "market_ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): BatchCancelDerivativeOrdersAuthz { return new BatchCancelDerivativeOrdersAuthz().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): BatchCancelDerivativeOrdersAuthz { return new BatchCancelDerivativeOrdersAuthz().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): BatchCancelDerivativeOrdersAuthz { return new BatchCancelDerivativeOrdersAuthz().fromJsonString(jsonString, options); } static equals(a: BatchCancelDerivativeOrdersAuthz | PlainMessage | undefined, b: BatchCancelDerivativeOrdersAuthz | PlainMessage | undefined): boolean { return proto3.util.equals(BatchCancelDerivativeOrdersAuthz, a, b); } } /** * common authz message used in both spot & derivative markets * * @generated from message injective.exchange.v1beta1.BatchUpdateOrdersAuthz */ export class BatchUpdateOrdersAuthz extends Message { /** * @generated from field: string subaccount_id = 1; */ subaccountId = ""; /** * @generated from field: repeated string spot_markets = 2; */ spotMarkets: string[] = []; /** * @generated from field: repeated string derivative_markets = 3; */ derivativeMarkets: string[] = []; constructor(data?: PartialMessage) { super(); proto3.util.initPartial(data, this); } static readonly runtime: typeof proto3 = proto3; static readonly typeName = "injective.exchange.v1beta1.BatchUpdateOrdersAuthz"; static readonly fields: FieldList = proto3.util.newFieldList(() => [ { no: 1, name: "subaccount_id", kind: "scalar", T: 9 /* ScalarType.STRING */ }, { no: 2, name: "spot_markets", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, { no: 3, name: "derivative_markets", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true }, ]); static fromBinary(bytes: Uint8Array, options?: Partial): BatchUpdateOrdersAuthz { return new BatchUpdateOrdersAuthz().fromBinary(bytes, options); } static fromJson(jsonValue: JsonValue, options?: Partial): BatchUpdateOrdersAuthz { return new BatchUpdateOrdersAuthz().fromJson(jsonValue, options); } static fromJsonString(jsonString: string, options?: Partial): BatchUpdateOrdersAuthz { return new BatchUpdateOrdersAuthz().fromJsonString(jsonString, options); } static equals(a: BatchUpdateOrdersAuthz | PlainMessage | undefined, b: BatchUpdateOrdersAuthz | PlainMessage | undefined): boolean { return proto3.util.equals(BatchUpdateOrdersAuthz, a, b); } }