@injectivelabs/indexer-proto-ts
Advanced tools
Comparing version 1.11.56 to 1.11.57
@@ -43,2 +43,4 @@ import { grpc } from "@injectivelabs/grpc-web"; | ||
txHash: Uint8Array; | ||
/** Set only if it's a BeginBlock or EndBlock event */ | ||
mode: string; | ||
} | ||
@@ -49,2 +51,3 @@ export interface GetBlockEventsRPCRequest { | ||
height: number; | ||
humanReadable: boolean; | ||
} | ||
@@ -132,2 +135,14 @@ export interface GetBlockEventsRPCResponse { | ||
} | ||
export interface GetABCIBlockEventsAtHeightRequest { | ||
height: number; | ||
} | ||
export interface GetABCIBlockEventsAtHeightResponse { | ||
/** Response version. */ | ||
v: string; | ||
/** Status of the response. */ | ||
s: string; | ||
/** Error message. */ | ||
e: string; | ||
rawBlock: RawBlock | undefined; | ||
} | ||
export declare const GetLatestHeightRequest: { | ||
@@ -285,2 +300,18 @@ encode(_: GetLatestHeightRequest, writer?: _m0.Writer): _m0.Writer; | ||
}; | ||
export declare const GetABCIBlockEventsAtHeightRequest: { | ||
encode(message: GetABCIBlockEventsAtHeightRequest, writer?: _m0.Writer): _m0.Writer; | ||
decode(input: _m0.Reader | Uint8Array, length?: number): GetABCIBlockEventsAtHeightRequest; | ||
fromJSON(object: any): GetABCIBlockEventsAtHeightRequest; | ||
toJSON(message: GetABCIBlockEventsAtHeightRequest): unknown; | ||
create(base?: DeepPartial<GetABCIBlockEventsAtHeightRequest>): GetABCIBlockEventsAtHeightRequest; | ||
fromPartial(object: DeepPartial<GetABCIBlockEventsAtHeightRequest>): GetABCIBlockEventsAtHeightRequest; | ||
}; | ||
export declare const GetABCIBlockEventsAtHeightResponse: { | ||
encode(message: GetABCIBlockEventsAtHeightResponse, writer?: _m0.Writer): _m0.Writer; | ||
decode(input: _m0.Reader | Uint8Array, length?: number): GetABCIBlockEventsAtHeightResponse; | ||
fromJSON(object: any): GetABCIBlockEventsAtHeightResponse; | ||
toJSON(message: GetABCIBlockEventsAtHeightResponse): unknown; | ||
create(base?: DeepPartial<GetABCIBlockEventsAtHeightResponse>): GetABCIBlockEventsAtHeightResponse; | ||
fromPartial(object: DeepPartial<GetABCIBlockEventsAtHeightResponse>): GetABCIBlockEventsAtHeightResponse; | ||
}; | ||
/** EventProviderAPI provides processed block events for different backends. */ | ||
@@ -298,2 +329,4 @@ export interface EventProviderAPI { | ||
GetABCIBlockEvents(request: DeepPartial<GetABCIBlockEventsRequest>, metadata?: grpc.Metadata): Promise<GetABCIBlockEventsResponse>; | ||
/** Get all raw block events for selected height */ | ||
GetABCIBlockEventsAtHeight(request: DeepPartial<GetABCIBlockEventsAtHeightRequest>, metadata?: grpc.Metadata): Promise<GetABCIBlockEventsAtHeightResponse>; | ||
} | ||
@@ -308,2 +341,3 @@ export declare class EventProviderAPIClientImpl implements EventProviderAPI { | ||
GetABCIBlockEvents(request: DeepPartial<GetABCIBlockEventsRequest>, metadata?: grpc.Metadata): Promise<GetABCIBlockEventsResponse>; | ||
GetABCIBlockEventsAtHeight(request: DeepPartial<GetABCIBlockEventsAtHeightRequest>, metadata?: grpc.Metadata): Promise<GetABCIBlockEventsAtHeightResponse>; | ||
} | ||
@@ -318,2 +352,3 @@ export declare const EventProviderAPIDesc: { | ||
export declare const EventProviderAPIGetABCIBlockEventsDesc: UnaryMethodDefinitionish; | ||
export declare const EventProviderAPIGetABCIBlockEventsAtHeightDesc: UnaryMethodDefinitionish; | ||
interface UnaryMethodDefinitionishR extends grpc.UnaryMethodDefinition<any, any> { | ||
@@ -320,0 +355,0 @@ requestStream: any; |
@@ -24,2 +24,4 @@ import { grpc } from "@injectivelabs/grpc-web"; | ||
horacleTimestamp: number; | ||
/** Migration version of the database. */ | ||
migrationLastVersion: number; | ||
} | ||
@@ -26,0 +28,0 @@ export declare const GetStatusRequest: { |
@@ -125,3 +125,3 @@ "use strict"; | ||
function createBaseHealthStatus() { | ||
return { localHeight: 0, localTimestamp: 0, horacleHeight: 0, horacleTimestamp: 0 }; | ||
return { localHeight: 0, localTimestamp: 0, horacleHeight: 0, horacleTimestamp: 0, migrationLastVersion: 0 }; | ||
} | ||
@@ -142,2 +142,5 @@ exports.HealthStatus = { | ||
} | ||
if (message.migrationLastVersion !== 0) { | ||
writer.uint32(40).sint32(message.migrationLastVersion); | ||
} | ||
return writer; | ||
@@ -164,2 +167,5 @@ }, | ||
break; | ||
case 5: | ||
message.migrationLastVersion = reader.sint32(); | ||
break; | ||
default: | ||
@@ -178,2 +184,3 @@ reader.skipType(tag & 7); | ||
horacleTimestamp: isSet(object.horacleTimestamp) ? Number(object.horacleTimestamp) : 0, | ||
migrationLastVersion: isSet(object.migrationLastVersion) ? Number(object.migrationLastVersion) : 0, | ||
}; | ||
@@ -187,2 +194,3 @@ }, | ||
message.horacleTimestamp !== undefined && (obj.horacleTimestamp = Math.round(message.horacleTimestamp)); | ||
message.migrationLastVersion !== undefined && (obj.migrationLastVersion = Math.round(message.migrationLastVersion)); | ||
return obj; | ||
@@ -194,3 +202,3 @@ }, | ||
fromPartial(object) { | ||
var _a, _b, _c, _d; | ||
var _a, _b, _c, _d, _e; | ||
const message = createBaseHealthStatus(); | ||
@@ -201,2 +209,3 @@ message.localHeight = (_a = object.localHeight) !== null && _a !== void 0 ? _a : 0; | ||
message.horacleTimestamp = (_d = object.horacleTimestamp) !== null && _d !== void 0 ? _d : 0; | ||
message.migrationLastVersion = (_e = object.migrationLastVersion) !== null && _e !== void 0 ? _e : 0; | ||
return message; | ||
@@ -203,0 +212,0 @@ }, |
@@ -328,2 +328,4 @@ import { grpc } from "@injectivelabs/grpc-web"; | ||
cid: string; | ||
/** Fee recipient address */ | ||
feeRecipient: string; | ||
} | ||
@@ -396,2 +398,4 @@ export interface TradesResponse { | ||
cid: string; | ||
/** Fee recipient address */ | ||
feeRecipient: string; | ||
} | ||
@@ -440,2 +444,4 @@ export interface StreamTradesResponse { | ||
cid: string; | ||
/** Fee recipient address */ | ||
feeRecipient: string; | ||
} | ||
@@ -482,2 +488,4 @@ export interface TradesV2Response { | ||
cid: string; | ||
/** Fee recipient address */ | ||
feeRecipient: string; | ||
} | ||
@@ -484,0 +492,0 @@ export interface StreamTradesV2Response { |
@@ -30,2 +30,9 @@ import { grpc } from "@injectivelabs/grpc-web"; | ||
marketType: string; | ||
/** | ||
* The last executed timestamp in UNIX milliseconds for the last executed time | ||
* of the trading strategy | ||
*/ | ||
lastExecutedTime: string; | ||
/** Include TVL in the response */ | ||
withTvl: boolean; | ||
} | ||
@@ -106,2 +113,14 @@ export interface ListTradingStrategiesResponse { | ||
marketType: string; | ||
/** lastExecutedAt timestamp in UNIX millis. */ | ||
lastExecutedAt: string; | ||
/** trailing up price */ | ||
trailUpPrice: string; | ||
/** trailing down price */ | ||
trailDownPrice: string; | ||
/** trailing up counter */ | ||
trailUpCounter: string; | ||
/** trailing down counter */ | ||
trailDownCounter: string; | ||
/** TVL of the trading strategy */ | ||
tvl: string; | ||
} | ||
@@ -127,2 +146,12 @@ export interface ExitConfig { | ||
} | ||
export interface GetTradingStatsRequest { | ||
} | ||
export interface GetTradingStatsResponse { | ||
/** Total of unique active trading strategies */ | ||
activeTradingStrategies: string; | ||
/** Total number of created trading strategies */ | ||
totalTradingStrategiesCreated: string; | ||
/** Total TVL of all active trading strategies */ | ||
totalTvl: string; | ||
} | ||
export declare const ListTradingStrategiesRequest: { | ||
@@ -168,2 +197,18 @@ encode(message: ListTradingStrategiesRequest, writer?: _m0.Writer): _m0.Writer; | ||
}; | ||
export declare const GetTradingStatsRequest: { | ||
encode(_: GetTradingStatsRequest, writer?: _m0.Writer): _m0.Writer; | ||
decode(input: _m0.Reader | Uint8Array, length?: number): GetTradingStatsRequest; | ||
fromJSON(_: any): GetTradingStatsRequest; | ||
toJSON(_: GetTradingStatsRequest): unknown; | ||
create(base?: DeepPartial<GetTradingStatsRequest>): GetTradingStatsRequest; | ||
fromPartial(_: DeepPartial<GetTradingStatsRequest>): GetTradingStatsRequest; | ||
}; | ||
export declare const GetTradingStatsResponse: { | ||
encode(message: GetTradingStatsResponse, writer?: _m0.Writer): _m0.Writer; | ||
decode(input: _m0.Reader | Uint8Array, length?: number): GetTradingStatsResponse; | ||
fromJSON(object: any): GetTradingStatsResponse; | ||
toJSON(message: GetTradingStatsResponse): unknown; | ||
create(base?: DeepPartial<GetTradingStatsResponse>): GetTradingStatsResponse; | ||
fromPartial(object: DeepPartial<GetTradingStatsResponse>): GetTradingStatsResponse; | ||
}; | ||
/** | ||
@@ -176,2 +221,4 @@ * InjectiveTradingStrategiesRPC defined a gRPC service for Injective Trading | ||
ListTradingStrategies(request: DeepPartial<ListTradingStrategiesRequest>, metadata?: grpc.Metadata): Promise<ListTradingStrategiesResponse>; | ||
/** GetStats returns global statistics in the last 24hs */ | ||
GetTradingStats(request: DeepPartial<GetTradingStatsRequest>, metadata?: grpc.Metadata): Promise<GetTradingStatsResponse>; | ||
} | ||
@@ -182,2 +229,3 @@ export declare class InjectiveTradingRPCClientImpl implements InjectiveTradingRPC { | ||
ListTradingStrategies(request: DeepPartial<ListTradingStrategiesRequest>, metadata?: grpc.Metadata): Promise<ListTradingStrategiesResponse>; | ||
GetTradingStats(request: DeepPartial<GetTradingStatsRequest>, metadata?: grpc.Metadata): Promise<GetTradingStatsResponse>; | ||
} | ||
@@ -188,2 +236,3 @@ export declare const InjectiveTradingRPCDesc: { | ||
export declare const InjectiveTradingRPCListTradingStrategiesDesc: UnaryMethodDefinitionish; | ||
export declare const InjectiveTradingRPCGetTradingStatsDesc: UnaryMethodDefinitionish; | ||
interface UnaryMethodDefinitionishR extends grpc.UnaryMethodDefinition<any, any> { | ||
@@ -190,0 +239,0 @@ requestStream: any; |
@@ -6,3 +6,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.GrpcWebError = exports.GrpcWebImpl = exports.InjectiveTradingRPCListTradingStrategiesDesc = exports.InjectiveTradingRPCDesc = exports.InjectiveTradingRPCClientImpl = exports.Paging = exports.ExitConfig = exports.TradingStrategy = exports.ListTradingStrategiesResponse = exports.ListTradingStrategiesRequest = exports.protobufPackage = void 0; | ||
exports.GrpcWebError = exports.GrpcWebImpl = exports.InjectiveTradingRPCGetTradingStatsDesc = exports.InjectiveTradingRPCListTradingStrategiesDesc = exports.InjectiveTradingRPCDesc = exports.InjectiveTradingRPCClientImpl = exports.GetTradingStatsResponse = exports.GetTradingStatsRequest = exports.Paging = exports.ExitConfig = exports.TradingStrategy = exports.ListTradingStrategiesResponse = exports.ListTradingStrategiesRequest = exports.protobufPackage = void 0; | ||
/* eslint-disable */ | ||
@@ -27,2 +27,4 @@ const grpc_web_1 = require("@injectivelabs/grpc-web"); | ||
marketType: "", | ||
lastExecutedTime: "0", | ||
withTvl: false, | ||
}; | ||
@@ -65,2 +67,8 @@ } | ||
} | ||
if (message.lastExecutedTime !== "0") { | ||
writer.uint32(96).sint64(message.lastExecutedTime); | ||
} | ||
if (message.withTvl === true) { | ||
writer.uint32(104).bool(message.withTvl); | ||
} | ||
return writer; | ||
@@ -108,2 +116,8 @@ }, | ||
break; | ||
case 12: | ||
message.lastExecutedTime = longToString(reader.sint64()); | ||
break; | ||
case 13: | ||
message.withTvl = reader.bool(); | ||
break; | ||
default: | ||
@@ -129,2 +143,4 @@ reader.skipType(tag & 7); | ||
marketType: isSet(object.marketType) ? String(object.marketType) : "", | ||
lastExecutedTime: isSet(object.lastExecutedTime) ? String(object.lastExecutedTime) : "0", | ||
withTvl: isSet(object.withTvl) ? Boolean(object.withTvl) : false, | ||
}; | ||
@@ -150,2 +166,4 @@ }, | ||
message.marketType !== undefined && (obj.marketType = message.marketType); | ||
message.lastExecutedTime !== undefined && (obj.lastExecutedTime = message.lastExecutedTime); | ||
message.withTvl !== undefined && (obj.withTvl = message.withTvl); | ||
return obj; | ||
@@ -157,3 +175,3 @@ }, | ||
fromPartial(object) { | ||
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l; | ||
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o; | ||
const message = createBaseListTradingStrategiesRequest(); | ||
@@ -171,2 +189,4 @@ message.state = (_a = object.state) !== null && _a !== void 0 ? _a : ""; | ||
message.marketType = (_l = object.marketType) !== null && _l !== void 0 ? _l : ""; | ||
message.lastExecutedTime = (_m = object.lastExecutedTime) !== null && _m !== void 0 ? _m : "0"; | ||
message.withTvl = (_o = object.withTvl) !== null && _o !== void 0 ? _o : false; | ||
return message; | ||
@@ -275,2 +295,8 @@ }, | ||
marketType: "", | ||
lastExecutedAt: "0", | ||
trailUpPrice: "", | ||
trailDownPrice: "", | ||
trailUpCounter: "0", | ||
trailDownCounter: "0", | ||
tvl: "", | ||
}; | ||
@@ -379,2 +405,20 @@ } | ||
} | ||
if (message.lastExecutedAt !== "0") { | ||
writer.uint32(272).sint64(message.lastExecutedAt); | ||
} | ||
if (message.trailUpPrice !== "") { | ||
writer.uint32(282).string(message.trailUpPrice); | ||
} | ||
if (message.trailDownPrice !== "") { | ||
writer.uint32(290).string(message.trailDownPrice); | ||
} | ||
if (message.trailUpCounter !== "0") { | ||
writer.uint32(296).sint64(message.trailUpCounter); | ||
} | ||
if (message.trailDownCounter !== "0") { | ||
writer.uint32(304).sint64(message.trailDownCounter); | ||
} | ||
if (message.tvl !== "") { | ||
writer.uint32(314).string(message.tvl); | ||
} | ||
return writer; | ||
@@ -488,2 +532,20 @@ }, | ||
break; | ||
case 34: | ||
message.lastExecutedAt = longToString(reader.sint64()); | ||
break; | ||
case 35: | ||
message.trailUpPrice = reader.string(); | ||
break; | ||
case 36: | ||
message.trailDownPrice = reader.string(); | ||
break; | ||
case 37: | ||
message.trailUpCounter = longToString(reader.sint64()); | ||
break; | ||
case 38: | ||
message.trailDownCounter = longToString(reader.sint64()); | ||
break; | ||
case 39: | ||
message.tvl = reader.string(); | ||
break; | ||
default: | ||
@@ -533,2 +595,8 @@ reader.skipType(tag & 7); | ||
marketType: isSet(object.marketType) ? String(object.marketType) : "", | ||
lastExecutedAt: isSet(object.lastExecutedAt) ? String(object.lastExecutedAt) : "0", | ||
trailUpPrice: isSet(object.trailUpPrice) ? String(object.trailUpPrice) : "", | ||
trailDownPrice: isSet(object.trailDownPrice) ? String(object.trailDownPrice) : "", | ||
trailUpCounter: isSet(object.trailUpCounter) ? String(object.trailUpCounter) : "0", | ||
trailDownCounter: isSet(object.trailDownCounter) ? String(object.trailDownCounter) : "0", | ||
tvl: isSet(object.tvl) ? String(object.tvl) : "", | ||
}; | ||
@@ -574,2 +642,8 @@ }, | ||
message.marketType !== undefined && (obj.marketType = message.marketType); | ||
message.lastExecutedAt !== undefined && (obj.lastExecutedAt = message.lastExecutedAt); | ||
message.trailUpPrice !== undefined && (obj.trailUpPrice = message.trailUpPrice); | ||
message.trailDownPrice !== undefined && (obj.trailDownPrice = message.trailDownPrice); | ||
message.trailUpCounter !== undefined && (obj.trailUpCounter = message.trailUpCounter); | ||
message.trailDownCounter !== undefined && (obj.trailDownCounter = message.trailDownCounter); | ||
message.tvl !== undefined && (obj.tvl = message.tvl); | ||
return obj; | ||
@@ -581,3 +655,3 @@ }, | ||
fromPartial(object) { | ||
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6; | ||
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12; | ||
const message = createBaseTradingStrategy(); | ||
@@ -621,2 +695,8 @@ message.state = (_a = object.state) !== null && _a !== void 0 ? _a : ""; | ||
message.marketType = (_6 = object.marketType) !== null && _6 !== void 0 ? _6 : ""; | ||
message.lastExecutedAt = (_7 = object.lastExecutedAt) !== null && _7 !== void 0 ? _7 : "0"; | ||
message.trailUpPrice = (_8 = object.trailUpPrice) !== null && _8 !== void 0 ? _8 : ""; | ||
message.trailDownPrice = (_9 = object.trailDownPrice) !== null && _9 !== void 0 ? _9 : ""; | ||
message.trailUpCounter = (_10 = object.trailUpCounter) !== null && _10 !== void 0 ? _10 : "0"; | ||
message.trailDownCounter = (_11 = object.trailDownCounter) !== null && _11 !== void 0 ? _11 : "0"; | ||
message.tvl = (_12 = object.tvl) !== null && _12 !== void 0 ? _12 : ""; | ||
return message; | ||
@@ -769,2 +849,106 @@ }, | ||
}; | ||
function createBaseGetTradingStatsRequest() { | ||
return {}; | ||
} | ||
exports.GetTradingStatsRequest = { | ||
encode(_, writer = minimal_1.default.Writer.create()) { | ||
return writer; | ||
}, | ||
decode(input, length) { | ||
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input); | ||
let end = length === undefined ? reader.len : reader.pos + length; | ||
const message = createBaseGetTradingStatsRequest(); | ||
while (reader.pos < end) { | ||
const tag = reader.uint32(); | ||
switch (tag >>> 3) { | ||
default: | ||
reader.skipType(tag & 7); | ||
break; | ||
} | ||
} | ||
return message; | ||
}, | ||
fromJSON(_) { | ||
return {}; | ||
}, | ||
toJSON(_) { | ||
const obj = {}; | ||
return obj; | ||
}, | ||
create(base) { | ||
return exports.GetTradingStatsRequest.fromPartial(base !== null && base !== void 0 ? base : {}); | ||
}, | ||
fromPartial(_) { | ||
const message = createBaseGetTradingStatsRequest(); | ||
return message; | ||
}, | ||
}; | ||
function createBaseGetTradingStatsResponse() { | ||
return { activeTradingStrategies: "0", totalTradingStrategiesCreated: "0", totalTvl: "" }; | ||
} | ||
exports.GetTradingStatsResponse = { | ||
encode(message, writer = minimal_1.default.Writer.create()) { | ||
if (message.activeTradingStrategies !== "0") { | ||
writer.uint32(8).uint64(message.activeTradingStrategies); | ||
} | ||
if (message.totalTradingStrategiesCreated !== "0") { | ||
writer.uint32(16).uint64(message.totalTradingStrategiesCreated); | ||
} | ||
if (message.totalTvl !== "") { | ||
writer.uint32(26).string(message.totalTvl); | ||
} | ||
return writer; | ||
}, | ||
decode(input, length) { | ||
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input); | ||
let end = length === undefined ? reader.len : reader.pos + length; | ||
const message = createBaseGetTradingStatsResponse(); | ||
while (reader.pos < end) { | ||
const tag = reader.uint32(); | ||
switch (tag >>> 3) { | ||
case 1: | ||
message.activeTradingStrategies = longToString(reader.uint64()); | ||
break; | ||
case 2: | ||
message.totalTradingStrategiesCreated = longToString(reader.uint64()); | ||
break; | ||
case 3: | ||
message.totalTvl = reader.string(); | ||
break; | ||
default: | ||
reader.skipType(tag & 7); | ||
break; | ||
} | ||
} | ||
return message; | ||
}, | ||
fromJSON(object) { | ||
return { | ||
activeTradingStrategies: isSet(object.activeTradingStrategies) ? String(object.activeTradingStrategies) : "0", | ||
totalTradingStrategiesCreated: isSet(object.totalTradingStrategiesCreated) | ||
? String(object.totalTradingStrategiesCreated) | ||
: "0", | ||
totalTvl: isSet(object.totalTvl) ? String(object.totalTvl) : "", | ||
}; | ||
}, | ||
toJSON(message) { | ||
const obj = {}; | ||
message.activeTradingStrategies !== undefined && (obj.activeTradingStrategies = message.activeTradingStrategies); | ||
message.totalTradingStrategiesCreated !== undefined && | ||
(obj.totalTradingStrategiesCreated = message.totalTradingStrategiesCreated); | ||
message.totalTvl !== undefined && (obj.totalTvl = message.totalTvl); | ||
return obj; | ||
}, | ||
create(base) { | ||
return exports.GetTradingStatsResponse.fromPartial(base !== null && base !== void 0 ? base : {}); | ||
}, | ||
fromPartial(object) { | ||
var _a, _b, _c; | ||
const message = createBaseGetTradingStatsResponse(); | ||
message.activeTradingStrategies = (_a = object.activeTradingStrategies) !== null && _a !== void 0 ? _a : "0"; | ||
message.totalTradingStrategiesCreated = (_b = object.totalTradingStrategiesCreated) !== null && _b !== void 0 ? _b : "0"; | ||
message.totalTvl = (_c = object.totalTvl) !== null && _c !== void 0 ? _c : ""; | ||
return message; | ||
}, | ||
}; | ||
class InjectiveTradingRPCClientImpl { | ||
@@ -774,2 +958,3 @@ constructor(rpc) { | ||
this.ListTradingStrategies = this.ListTradingStrategies.bind(this); | ||
this.GetTradingStats = this.GetTradingStats.bind(this); | ||
} | ||
@@ -779,2 +964,5 @@ ListTradingStrategies(request, metadata) { | ||
} | ||
GetTradingStats(request, metadata) { | ||
return this.rpc.unary(exports.InjectiveTradingRPCGetTradingStatsDesc, exports.GetTradingStatsRequest.fromPartial(request), metadata); | ||
} | ||
} | ||
@@ -802,2 +990,21 @@ exports.InjectiveTradingRPCClientImpl = InjectiveTradingRPCClientImpl; | ||
}; | ||
exports.InjectiveTradingRPCGetTradingStatsDesc = { | ||
methodName: "GetTradingStats", | ||
service: exports.InjectiveTradingRPCDesc, | ||
requestStream: false, | ||
responseStream: false, | ||
requestType: { | ||
serializeBinary() { | ||
return exports.GetTradingStatsRequest.encode(this).finish(); | ||
}, | ||
}, | ||
responseType: { | ||
deserializeBinary(data) { | ||
const value = exports.GetTradingStatsResponse.decode(data); | ||
return Object.assign(Object.assign({}, value), { toObject() { | ||
return value; | ||
} }); | ||
}, | ||
}, | ||
}; | ||
class GrpcWebImpl { | ||
@@ -804,0 +1011,0 @@ constructor(host, options) { |
@@ -43,2 +43,4 @@ import { grpc } from "@injectivelabs/grpc-web"; | ||
txHash: Uint8Array; | ||
/** Set only if it's a BeginBlock or EndBlock event */ | ||
mode: string; | ||
} | ||
@@ -49,2 +51,3 @@ export interface GetBlockEventsRPCRequest { | ||
height: number; | ||
humanReadable: boolean; | ||
} | ||
@@ -132,2 +135,14 @@ export interface GetBlockEventsRPCResponse { | ||
} | ||
export interface GetABCIBlockEventsAtHeightRequest { | ||
height: number; | ||
} | ||
export interface GetABCIBlockEventsAtHeightResponse { | ||
/** Response version. */ | ||
v: string; | ||
/** Status of the response. */ | ||
s: string; | ||
/** Error message. */ | ||
e: string; | ||
rawBlock: RawBlock | undefined; | ||
} | ||
export declare const GetLatestHeightRequest: { | ||
@@ -285,2 +300,18 @@ encode(_: GetLatestHeightRequest, writer?: _m0.Writer): _m0.Writer; | ||
}; | ||
export declare const GetABCIBlockEventsAtHeightRequest: { | ||
encode(message: GetABCIBlockEventsAtHeightRequest, writer?: _m0.Writer): _m0.Writer; | ||
decode(input: _m0.Reader | Uint8Array, length?: number): GetABCIBlockEventsAtHeightRequest; | ||
fromJSON(object: any): GetABCIBlockEventsAtHeightRequest; | ||
toJSON(message: GetABCIBlockEventsAtHeightRequest): unknown; | ||
create(base?: DeepPartial<GetABCIBlockEventsAtHeightRequest>): GetABCIBlockEventsAtHeightRequest; | ||
fromPartial(object: DeepPartial<GetABCIBlockEventsAtHeightRequest>): GetABCIBlockEventsAtHeightRequest; | ||
}; | ||
export declare const GetABCIBlockEventsAtHeightResponse: { | ||
encode(message: GetABCIBlockEventsAtHeightResponse, writer?: _m0.Writer): _m0.Writer; | ||
decode(input: _m0.Reader | Uint8Array, length?: number): GetABCIBlockEventsAtHeightResponse; | ||
fromJSON(object: any): GetABCIBlockEventsAtHeightResponse; | ||
toJSON(message: GetABCIBlockEventsAtHeightResponse): unknown; | ||
create(base?: DeepPartial<GetABCIBlockEventsAtHeightResponse>): GetABCIBlockEventsAtHeightResponse; | ||
fromPartial(object: DeepPartial<GetABCIBlockEventsAtHeightResponse>): GetABCIBlockEventsAtHeightResponse; | ||
}; | ||
/** EventProviderAPI provides processed block events for different backends. */ | ||
@@ -298,2 +329,4 @@ export interface EventProviderAPI { | ||
GetABCIBlockEvents(request: DeepPartial<GetABCIBlockEventsRequest>, metadata?: grpc.Metadata): Promise<GetABCIBlockEventsResponse>; | ||
/** Get all raw block events for selected height */ | ||
GetABCIBlockEventsAtHeight(request: DeepPartial<GetABCIBlockEventsAtHeightRequest>, metadata?: grpc.Metadata): Promise<GetABCIBlockEventsAtHeightResponse>; | ||
} | ||
@@ -308,2 +341,3 @@ export declare class EventProviderAPIClientImpl implements EventProviderAPI { | ||
GetABCIBlockEvents(request: DeepPartial<GetABCIBlockEventsRequest>, metadata?: grpc.Metadata): Promise<GetABCIBlockEventsResponse>; | ||
GetABCIBlockEventsAtHeight(request: DeepPartial<GetABCIBlockEventsAtHeightRequest>, metadata?: grpc.Metadata): Promise<GetABCIBlockEventsAtHeightResponse>; | ||
} | ||
@@ -318,2 +352,3 @@ export declare const EventProviderAPIDesc: { | ||
export declare const EventProviderAPIGetABCIBlockEventsDesc: UnaryMethodDefinitionish; | ||
export declare const EventProviderAPIGetABCIBlockEventsAtHeightDesc: UnaryMethodDefinitionish; | ||
interface UnaryMethodDefinitionishR extends grpc.UnaryMethodDefinition<any, any> { | ||
@@ -320,0 +355,0 @@ requestStream: any; |
@@ -24,2 +24,4 @@ import { grpc } from "@injectivelabs/grpc-web"; | ||
horacleTimestamp: number; | ||
/** Migration version of the database. */ | ||
migrationLastVersion: number; | ||
} | ||
@@ -26,0 +28,0 @@ export declare const GetStatusRequest: { |
@@ -119,3 +119,3 @@ /* eslint-disable */ | ||
function createBaseHealthStatus() { | ||
return { localHeight: 0, localTimestamp: 0, horacleHeight: 0, horacleTimestamp: 0 }; | ||
return { localHeight: 0, localTimestamp: 0, horacleHeight: 0, horacleTimestamp: 0, migrationLastVersion: 0 }; | ||
} | ||
@@ -136,2 +136,5 @@ export const HealthStatus = { | ||
} | ||
if (message.migrationLastVersion !== 0) { | ||
writer.uint32(40).sint32(message.migrationLastVersion); | ||
} | ||
return writer; | ||
@@ -158,2 +161,5 @@ }, | ||
break; | ||
case 5: | ||
message.migrationLastVersion = reader.sint32(); | ||
break; | ||
default: | ||
@@ -172,2 +178,3 @@ reader.skipType(tag & 7); | ||
horacleTimestamp: isSet(object.horacleTimestamp) ? Number(object.horacleTimestamp) : 0, | ||
migrationLastVersion: isSet(object.migrationLastVersion) ? Number(object.migrationLastVersion) : 0, | ||
}; | ||
@@ -181,2 +188,3 @@ }, | ||
message.horacleTimestamp !== undefined && (obj.horacleTimestamp = Math.round(message.horacleTimestamp)); | ||
message.migrationLastVersion !== undefined && (obj.migrationLastVersion = Math.round(message.migrationLastVersion)); | ||
return obj; | ||
@@ -188,3 +196,3 @@ }, | ||
fromPartial(object) { | ||
var _a, _b, _c, _d; | ||
var _a, _b, _c, _d, _e; | ||
const message = createBaseHealthStatus(); | ||
@@ -195,2 +203,3 @@ message.localHeight = (_a = object.localHeight) !== null && _a !== void 0 ? _a : 0; | ||
message.horacleTimestamp = (_d = object.horacleTimestamp) !== null && _d !== void 0 ? _d : 0; | ||
message.migrationLastVersion = (_e = object.migrationLastVersion) !== null && _e !== void 0 ? _e : 0; | ||
return message; | ||
@@ -197,0 +206,0 @@ }, |
@@ -328,2 +328,4 @@ import { grpc } from "@injectivelabs/grpc-web"; | ||
cid: string; | ||
/** Fee recipient address */ | ||
feeRecipient: string; | ||
} | ||
@@ -396,2 +398,4 @@ export interface TradesResponse { | ||
cid: string; | ||
/** Fee recipient address */ | ||
feeRecipient: string; | ||
} | ||
@@ -440,2 +444,4 @@ export interface StreamTradesResponse { | ||
cid: string; | ||
/** Fee recipient address */ | ||
feeRecipient: string; | ||
} | ||
@@ -482,2 +488,4 @@ export interface TradesV2Response { | ||
cid: string; | ||
/** Fee recipient address */ | ||
feeRecipient: string; | ||
} | ||
@@ -484,0 +492,0 @@ export interface StreamTradesV2Response { |
@@ -30,2 +30,9 @@ import { grpc } from "@injectivelabs/grpc-web"; | ||
marketType: string; | ||
/** | ||
* The last executed timestamp in UNIX milliseconds for the last executed time | ||
* of the trading strategy | ||
*/ | ||
lastExecutedTime: string; | ||
/** Include TVL in the response */ | ||
withTvl: boolean; | ||
} | ||
@@ -106,2 +113,14 @@ export interface ListTradingStrategiesResponse { | ||
marketType: string; | ||
/** lastExecutedAt timestamp in UNIX millis. */ | ||
lastExecutedAt: string; | ||
/** trailing up price */ | ||
trailUpPrice: string; | ||
/** trailing down price */ | ||
trailDownPrice: string; | ||
/** trailing up counter */ | ||
trailUpCounter: string; | ||
/** trailing down counter */ | ||
trailDownCounter: string; | ||
/** TVL of the trading strategy */ | ||
tvl: string; | ||
} | ||
@@ -127,2 +146,12 @@ export interface ExitConfig { | ||
} | ||
export interface GetTradingStatsRequest { | ||
} | ||
export interface GetTradingStatsResponse { | ||
/** Total of unique active trading strategies */ | ||
activeTradingStrategies: string; | ||
/** Total number of created trading strategies */ | ||
totalTradingStrategiesCreated: string; | ||
/** Total TVL of all active trading strategies */ | ||
totalTvl: string; | ||
} | ||
export declare const ListTradingStrategiesRequest: { | ||
@@ -168,2 +197,18 @@ encode(message: ListTradingStrategiesRequest, writer?: _m0.Writer): _m0.Writer; | ||
}; | ||
export declare const GetTradingStatsRequest: { | ||
encode(_: GetTradingStatsRequest, writer?: _m0.Writer): _m0.Writer; | ||
decode(input: _m0.Reader | Uint8Array, length?: number): GetTradingStatsRequest; | ||
fromJSON(_: any): GetTradingStatsRequest; | ||
toJSON(_: GetTradingStatsRequest): unknown; | ||
create(base?: DeepPartial<GetTradingStatsRequest>): GetTradingStatsRequest; | ||
fromPartial(_: DeepPartial<GetTradingStatsRequest>): GetTradingStatsRequest; | ||
}; | ||
export declare const GetTradingStatsResponse: { | ||
encode(message: GetTradingStatsResponse, writer?: _m0.Writer): _m0.Writer; | ||
decode(input: _m0.Reader | Uint8Array, length?: number): GetTradingStatsResponse; | ||
fromJSON(object: any): GetTradingStatsResponse; | ||
toJSON(message: GetTradingStatsResponse): unknown; | ||
create(base?: DeepPartial<GetTradingStatsResponse>): GetTradingStatsResponse; | ||
fromPartial(object: DeepPartial<GetTradingStatsResponse>): GetTradingStatsResponse; | ||
}; | ||
/** | ||
@@ -176,2 +221,4 @@ * InjectiveTradingStrategiesRPC defined a gRPC service for Injective Trading | ||
ListTradingStrategies(request: DeepPartial<ListTradingStrategiesRequest>, metadata?: grpc.Metadata): Promise<ListTradingStrategiesResponse>; | ||
/** GetStats returns global statistics in the last 24hs */ | ||
GetTradingStats(request: DeepPartial<GetTradingStatsRequest>, metadata?: grpc.Metadata): Promise<GetTradingStatsResponse>; | ||
} | ||
@@ -182,2 +229,3 @@ export declare class InjectiveTradingRPCClientImpl implements InjectiveTradingRPC { | ||
ListTradingStrategies(request: DeepPartial<ListTradingStrategiesRequest>, metadata?: grpc.Metadata): Promise<ListTradingStrategiesResponse>; | ||
GetTradingStats(request: DeepPartial<GetTradingStatsRequest>, metadata?: grpc.Metadata): Promise<GetTradingStatsResponse>; | ||
} | ||
@@ -188,2 +236,3 @@ export declare const InjectiveTradingRPCDesc: { | ||
export declare const InjectiveTradingRPCListTradingStrategiesDesc: UnaryMethodDefinitionish; | ||
export declare const InjectiveTradingRPCGetTradingStatsDesc: UnaryMethodDefinitionish; | ||
interface UnaryMethodDefinitionishR extends grpc.UnaryMethodDefinition<any, any> { | ||
@@ -190,0 +239,0 @@ requestStream: any; |
@@ -20,2 +20,4 @@ /* eslint-disable */ | ||
marketType: "", | ||
lastExecutedTime: "0", | ||
withTvl: false, | ||
}; | ||
@@ -58,2 +60,8 @@ } | ||
} | ||
if (message.lastExecutedTime !== "0") { | ||
writer.uint32(96).sint64(message.lastExecutedTime); | ||
} | ||
if (message.withTvl === true) { | ||
writer.uint32(104).bool(message.withTvl); | ||
} | ||
return writer; | ||
@@ -101,2 +109,8 @@ }, | ||
break; | ||
case 12: | ||
message.lastExecutedTime = longToString(reader.sint64()); | ||
break; | ||
case 13: | ||
message.withTvl = reader.bool(); | ||
break; | ||
default: | ||
@@ -122,2 +136,4 @@ reader.skipType(tag & 7); | ||
marketType: isSet(object.marketType) ? String(object.marketType) : "", | ||
lastExecutedTime: isSet(object.lastExecutedTime) ? String(object.lastExecutedTime) : "0", | ||
withTvl: isSet(object.withTvl) ? Boolean(object.withTvl) : false, | ||
}; | ||
@@ -143,2 +159,4 @@ }, | ||
message.marketType !== undefined && (obj.marketType = message.marketType); | ||
message.lastExecutedTime !== undefined && (obj.lastExecutedTime = message.lastExecutedTime); | ||
message.withTvl !== undefined && (obj.withTvl = message.withTvl); | ||
return obj; | ||
@@ -150,3 +168,3 @@ }, | ||
fromPartial(object) { | ||
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l; | ||
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o; | ||
const message = createBaseListTradingStrategiesRequest(); | ||
@@ -164,2 +182,4 @@ message.state = (_a = object.state) !== null && _a !== void 0 ? _a : ""; | ||
message.marketType = (_l = object.marketType) !== null && _l !== void 0 ? _l : ""; | ||
message.lastExecutedTime = (_m = object.lastExecutedTime) !== null && _m !== void 0 ? _m : "0"; | ||
message.withTvl = (_o = object.withTvl) !== null && _o !== void 0 ? _o : false; | ||
return message; | ||
@@ -268,2 +288,8 @@ }, | ||
marketType: "", | ||
lastExecutedAt: "0", | ||
trailUpPrice: "", | ||
trailDownPrice: "", | ||
trailUpCounter: "0", | ||
trailDownCounter: "0", | ||
tvl: "", | ||
}; | ||
@@ -372,2 +398,20 @@ } | ||
} | ||
if (message.lastExecutedAt !== "0") { | ||
writer.uint32(272).sint64(message.lastExecutedAt); | ||
} | ||
if (message.trailUpPrice !== "") { | ||
writer.uint32(282).string(message.trailUpPrice); | ||
} | ||
if (message.trailDownPrice !== "") { | ||
writer.uint32(290).string(message.trailDownPrice); | ||
} | ||
if (message.trailUpCounter !== "0") { | ||
writer.uint32(296).sint64(message.trailUpCounter); | ||
} | ||
if (message.trailDownCounter !== "0") { | ||
writer.uint32(304).sint64(message.trailDownCounter); | ||
} | ||
if (message.tvl !== "") { | ||
writer.uint32(314).string(message.tvl); | ||
} | ||
return writer; | ||
@@ -481,2 +525,20 @@ }, | ||
break; | ||
case 34: | ||
message.lastExecutedAt = longToString(reader.sint64()); | ||
break; | ||
case 35: | ||
message.trailUpPrice = reader.string(); | ||
break; | ||
case 36: | ||
message.trailDownPrice = reader.string(); | ||
break; | ||
case 37: | ||
message.trailUpCounter = longToString(reader.sint64()); | ||
break; | ||
case 38: | ||
message.trailDownCounter = longToString(reader.sint64()); | ||
break; | ||
case 39: | ||
message.tvl = reader.string(); | ||
break; | ||
default: | ||
@@ -526,2 +588,8 @@ reader.skipType(tag & 7); | ||
marketType: isSet(object.marketType) ? String(object.marketType) : "", | ||
lastExecutedAt: isSet(object.lastExecutedAt) ? String(object.lastExecutedAt) : "0", | ||
trailUpPrice: isSet(object.trailUpPrice) ? String(object.trailUpPrice) : "", | ||
trailDownPrice: isSet(object.trailDownPrice) ? String(object.trailDownPrice) : "", | ||
trailUpCounter: isSet(object.trailUpCounter) ? String(object.trailUpCounter) : "0", | ||
trailDownCounter: isSet(object.trailDownCounter) ? String(object.trailDownCounter) : "0", | ||
tvl: isSet(object.tvl) ? String(object.tvl) : "", | ||
}; | ||
@@ -567,2 +635,8 @@ }, | ||
message.marketType !== undefined && (obj.marketType = message.marketType); | ||
message.lastExecutedAt !== undefined && (obj.lastExecutedAt = message.lastExecutedAt); | ||
message.trailUpPrice !== undefined && (obj.trailUpPrice = message.trailUpPrice); | ||
message.trailDownPrice !== undefined && (obj.trailDownPrice = message.trailDownPrice); | ||
message.trailUpCounter !== undefined && (obj.trailUpCounter = message.trailUpCounter); | ||
message.trailDownCounter !== undefined && (obj.trailDownCounter = message.trailDownCounter); | ||
message.tvl !== undefined && (obj.tvl = message.tvl); | ||
return obj; | ||
@@ -574,3 +648,3 @@ }, | ||
fromPartial(object) { | ||
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6; | ||
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12; | ||
const message = createBaseTradingStrategy(); | ||
@@ -614,2 +688,8 @@ message.state = (_a = object.state) !== null && _a !== void 0 ? _a : ""; | ||
message.marketType = (_6 = object.marketType) !== null && _6 !== void 0 ? _6 : ""; | ||
message.lastExecutedAt = (_7 = object.lastExecutedAt) !== null && _7 !== void 0 ? _7 : "0"; | ||
message.trailUpPrice = (_8 = object.trailUpPrice) !== null && _8 !== void 0 ? _8 : ""; | ||
message.trailDownPrice = (_9 = object.trailDownPrice) !== null && _9 !== void 0 ? _9 : ""; | ||
message.trailUpCounter = (_10 = object.trailUpCounter) !== null && _10 !== void 0 ? _10 : "0"; | ||
message.trailDownCounter = (_11 = object.trailDownCounter) !== null && _11 !== void 0 ? _11 : "0"; | ||
message.tvl = (_12 = object.tvl) !== null && _12 !== void 0 ? _12 : ""; | ||
return message; | ||
@@ -762,2 +842,106 @@ }, | ||
}; | ||
function createBaseGetTradingStatsRequest() { | ||
return {}; | ||
} | ||
export const GetTradingStatsRequest = { | ||
encode(_, writer = _m0.Writer.create()) { | ||
return writer; | ||
}, | ||
decode(input, length) { | ||
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); | ||
let end = length === undefined ? reader.len : reader.pos + length; | ||
const message = createBaseGetTradingStatsRequest(); | ||
while (reader.pos < end) { | ||
const tag = reader.uint32(); | ||
switch (tag >>> 3) { | ||
default: | ||
reader.skipType(tag & 7); | ||
break; | ||
} | ||
} | ||
return message; | ||
}, | ||
fromJSON(_) { | ||
return {}; | ||
}, | ||
toJSON(_) { | ||
const obj = {}; | ||
return obj; | ||
}, | ||
create(base) { | ||
return GetTradingStatsRequest.fromPartial(base !== null && base !== void 0 ? base : {}); | ||
}, | ||
fromPartial(_) { | ||
const message = createBaseGetTradingStatsRequest(); | ||
return message; | ||
}, | ||
}; | ||
function createBaseGetTradingStatsResponse() { | ||
return { activeTradingStrategies: "0", totalTradingStrategiesCreated: "0", totalTvl: "" }; | ||
} | ||
export const GetTradingStatsResponse = { | ||
encode(message, writer = _m0.Writer.create()) { | ||
if (message.activeTradingStrategies !== "0") { | ||
writer.uint32(8).uint64(message.activeTradingStrategies); | ||
} | ||
if (message.totalTradingStrategiesCreated !== "0") { | ||
writer.uint32(16).uint64(message.totalTradingStrategiesCreated); | ||
} | ||
if (message.totalTvl !== "") { | ||
writer.uint32(26).string(message.totalTvl); | ||
} | ||
return writer; | ||
}, | ||
decode(input, length) { | ||
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); | ||
let end = length === undefined ? reader.len : reader.pos + length; | ||
const message = createBaseGetTradingStatsResponse(); | ||
while (reader.pos < end) { | ||
const tag = reader.uint32(); | ||
switch (tag >>> 3) { | ||
case 1: | ||
message.activeTradingStrategies = longToString(reader.uint64()); | ||
break; | ||
case 2: | ||
message.totalTradingStrategiesCreated = longToString(reader.uint64()); | ||
break; | ||
case 3: | ||
message.totalTvl = reader.string(); | ||
break; | ||
default: | ||
reader.skipType(tag & 7); | ||
break; | ||
} | ||
} | ||
return message; | ||
}, | ||
fromJSON(object) { | ||
return { | ||
activeTradingStrategies: isSet(object.activeTradingStrategies) ? String(object.activeTradingStrategies) : "0", | ||
totalTradingStrategiesCreated: isSet(object.totalTradingStrategiesCreated) | ||
? String(object.totalTradingStrategiesCreated) | ||
: "0", | ||
totalTvl: isSet(object.totalTvl) ? String(object.totalTvl) : "", | ||
}; | ||
}, | ||
toJSON(message) { | ||
const obj = {}; | ||
message.activeTradingStrategies !== undefined && (obj.activeTradingStrategies = message.activeTradingStrategies); | ||
message.totalTradingStrategiesCreated !== undefined && | ||
(obj.totalTradingStrategiesCreated = message.totalTradingStrategiesCreated); | ||
message.totalTvl !== undefined && (obj.totalTvl = message.totalTvl); | ||
return obj; | ||
}, | ||
create(base) { | ||
return GetTradingStatsResponse.fromPartial(base !== null && base !== void 0 ? base : {}); | ||
}, | ||
fromPartial(object) { | ||
var _a, _b, _c; | ||
const message = createBaseGetTradingStatsResponse(); | ||
message.activeTradingStrategies = (_a = object.activeTradingStrategies) !== null && _a !== void 0 ? _a : "0"; | ||
message.totalTradingStrategiesCreated = (_b = object.totalTradingStrategiesCreated) !== null && _b !== void 0 ? _b : "0"; | ||
message.totalTvl = (_c = object.totalTvl) !== null && _c !== void 0 ? _c : ""; | ||
return message; | ||
}, | ||
}; | ||
export class InjectiveTradingRPCClientImpl { | ||
@@ -767,2 +951,3 @@ constructor(rpc) { | ||
this.ListTradingStrategies = this.ListTradingStrategies.bind(this); | ||
this.GetTradingStats = this.GetTradingStats.bind(this); | ||
} | ||
@@ -772,2 +957,5 @@ ListTradingStrategies(request, metadata) { | ||
} | ||
GetTradingStats(request, metadata) { | ||
return this.rpc.unary(InjectiveTradingRPCGetTradingStatsDesc, GetTradingStatsRequest.fromPartial(request), metadata); | ||
} | ||
} | ||
@@ -794,2 +982,21 @@ export const InjectiveTradingRPCDesc = { serviceName: "injective_trading_rpc.InjectiveTradingRPC" }; | ||
}; | ||
export const InjectiveTradingRPCGetTradingStatsDesc = { | ||
methodName: "GetTradingStats", | ||
service: InjectiveTradingRPCDesc, | ||
requestStream: false, | ||
responseStream: false, | ||
requestType: { | ||
serializeBinary() { | ||
return GetTradingStatsRequest.encode(this).finish(); | ||
}, | ||
}, | ||
responseType: { | ||
deserializeBinary(data) { | ||
const value = GetTradingStatsResponse.decode(data); | ||
return Object.assign(Object.assign({}, value), { toObject() { | ||
return value; | ||
} }); | ||
}, | ||
}, | ||
}; | ||
export class GrpcWebImpl { | ||
@@ -796,0 +1003,0 @@ constructor(host, options) { |
{ | ||
"name": "@injectivelabs/indexer-proto-ts", | ||
"version": "1.11.56", | ||
"version": "1.11.57", | ||
"description": "Injective Indexer API client with generated gRPC bindings.", | ||
@@ -5,0 +5,0 @@ "sideEffects": false, |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
3975107
94248