@injectivelabs/indexer-proto-ts
Advanced tools
Comparing version 1.11.47 to 1.11.48
@@ -50,6 +50,6 @@ import { grpc } from "@injectivelabs/grpc-web"; | ||
export interface PnlLeaderboardRequest { | ||
/** Start date of the leaderboard period in unix time */ | ||
startDate: number; | ||
/** End date of the leaderboard period in unix time */ | ||
endDate: number; | ||
/** Start date of the leaderboard period in unix time (ms) */ | ||
startDate: string; | ||
/** End date of the leaderboard period in unix time (ms) */ | ||
endDate: string; | ||
/** Number of leaderboard entries to return */ | ||
@@ -77,6 +77,6 @@ limit: number; | ||
export interface VolLeaderboardRequest { | ||
/** Start date of the leaderboard period in unix time */ | ||
startDate: number; | ||
/** End date of the leaderboard period in unix time */ | ||
endDate: number; | ||
/** Start date of the leaderboard period in unix time (ms) */ | ||
startDate: string; | ||
/** End date of the leaderboard period in unix time (ms) */ | ||
endDate: string; | ||
/** Number of leaderboard entries to return */ | ||
@@ -83,0 +83,0 @@ limit: number; |
@@ -10,2 +10,3 @@ "use strict"; | ||
const browser_headers_1 = require("browser-headers"); | ||
const long_1 = __importDefault(require("long")); | ||
const minimal_1 = __importDefault(require("protobufjs/minimal")); | ||
@@ -593,11 +594,11 @@ exports.protobufPackage = "injective_archiver_rpc"; | ||
function createBasePnlLeaderboardRequest() { | ||
return { startDate: 0, endDate: 0, limit: 0 }; | ||
return { startDate: "0", endDate: "0", limit: 0 }; | ||
} | ||
exports.PnlLeaderboardRequest = { | ||
encode(message, writer = minimal_1.default.Writer.create()) { | ||
if (message.startDate !== 0) { | ||
writer.uint32(8).sint32(message.startDate); | ||
if (message.startDate !== "0") { | ||
writer.uint32(8).sint64(message.startDate); | ||
} | ||
if (message.endDate !== 0) { | ||
writer.uint32(16).sint32(message.endDate); | ||
if (message.endDate !== "0") { | ||
writer.uint32(16).sint64(message.endDate); | ||
} | ||
@@ -617,6 +618,6 @@ if (message.limit !== 0) { | ||
case 1: | ||
message.startDate = reader.sint32(); | ||
message.startDate = longToString(reader.sint64()); | ||
break; | ||
case 2: | ||
message.endDate = reader.sint32(); | ||
message.endDate = longToString(reader.sint64()); | ||
break; | ||
@@ -635,4 +636,4 @@ case 3: | ||
return { | ||
startDate: isSet(object.startDate) ? Number(object.startDate) : 0, | ||
endDate: isSet(object.endDate) ? Number(object.endDate) : 0, | ||
startDate: isSet(object.startDate) ? String(object.startDate) : "0", | ||
endDate: isSet(object.endDate) ? String(object.endDate) : "0", | ||
limit: isSet(object.limit) ? Number(object.limit) : 0, | ||
@@ -643,4 +644,4 @@ }; | ||
const obj = {}; | ||
message.startDate !== undefined && (obj.startDate = Math.round(message.startDate)); | ||
message.endDate !== undefined && (obj.endDate = Math.round(message.endDate)); | ||
message.startDate !== undefined && (obj.startDate = message.startDate); | ||
message.endDate !== undefined && (obj.endDate = message.endDate); | ||
message.limit !== undefined && (obj.limit = Math.round(message.limit)); | ||
@@ -655,4 +656,4 @@ return obj; | ||
const message = createBasePnlLeaderboardRequest(); | ||
message.startDate = (_a = object.startDate) !== null && _a !== void 0 ? _a : 0; | ||
message.endDate = (_b = object.endDate) !== null && _b !== void 0 ? _b : 0; | ||
message.startDate = (_a = object.startDate) !== null && _a !== void 0 ? _a : "0"; | ||
message.endDate = (_b = object.endDate) !== null && _b !== void 0 ? _b : "0"; | ||
message.limit = (_c = object.limit) !== null && _c !== void 0 ? _c : 0; | ||
@@ -807,11 +808,11 @@ return message; | ||
function createBaseVolLeaderboardRequest() { | ||
return { startDate: 0, endDate: 0, limit: 0 }; | ||
return { startDate: "0", endDate: "0", limit: 0 }; | ||
} | ||
exports.VolLeaderboardRequest = { | ||
encode(message, writer = minimal_1.default.Writer.create()) { | ||
if (message.startDate !== 0) { | ||
writer.uint32(8).sint32(message.startDate); | ||
if (message.startDate !== "0") { | ||
writer.uint32(8).sint64(message.startDate); | ||
} | ||
if (message.endDate !== 0) { | ||
writer.uint32(16).sint32(message.endDate); | ||
if (message.endDate !== "0") { | ||
writer.uint32(16).sint64(message.endDate); | ||
} | ||
@@ -831,6 +832,6 @@ if (message.limit !== 0) { | ||
case 1: | ||
message.startDate = reader.sint32(); | ||
message.startDate = longToString(reader.sint64()); | ||
break; | ||
case 2: | ||
message.endDate = reader.sint32(); | ||
message.endDate = longToString(reader.sint64()); | ||
break; | ||
@@ -849,4 +850,4 @@ case 3: | ||
return { | ||
startDate: isSet(object.startDate) ? Number(object.startDate) : 0, | ||
endDate: isSet(object.endDate) ? Number(object.endDate) : 0, | ||
startDate: isSet(object.startDate) ? String(object.startDate) : "0", | ||
endDate: isSet(object.endDate) ? String(object.endDate) : "0", | ||
limit: isSet(object.limit) ? Number(object.limit) : 0, | ||
@@ -857,4 +858,4 @@ }; | ||
const obj = {}; | ||
message.startDate !== undefined && (obj.startDate = Math.round(message.startDate)); | ||
message.endDate !== undefined && (obj.endDate = Math.round(message.endDate)); | ||
message.startDate !== undefined && (obj.startDate = message.startDate); | ||
message.endDate !== undefined && (obj.endDate = message.endDate); | ||
message.limit !== undefined && (obj.limit = Math.round(message.limit)); | ||
@@ -869,4 +870,4 @@ return obj; | ||
const message = createBaseVolLeaderboardRequest(); | ||
message.startDate = (_a = object.startDate) !== null && _a !== void 0 ? _a : 0; | ||
message.endDate = (_b = object.endDate) !== null && _b !== void 0 ? _b : 0; | ||
message.startDate = (_a = object.startDate) !== null && _a !== void 0 ? _a : "0"; | ||
message.endDate = (_b = object.endDate) !== null && _b !== void 0 ? _b : "0"; | ||
message.limit = (_c = object.limit) !== null && _c !== void 0 ? _c : 0; | ||
@@ -1413,2 +1414,9 @@ return message; | ||
})(); | ||
function longToString(long) { | ||
return long.toString(); | ||
} | ||
if (minimal_1.default.util.Long !== long_1.default) { | ||
minimal_1.default.util.Long = long_1.default; | ||
minimal_1.default.configure(); | ||
} | ||
function isSet(value) { | ||
@@ -1415,0 +1423,0 @@ return value !== null && value !== undefined; |
@@ -50,6 +50,6 @@ import { grpc } from "@injectivelabs/grpc-web"; | ||
export interface PnlLeaderboardRequest { | ||
/** Start date of the leaderboard period in unix time */ | ||
startDate: number; | ||
/** End date of the leaderboard period in unix time */ | ||
endDate: number; | ||
/** Start date of the leaderboard period in unix time (ms) */ | ||
startDate: string; | ||
/** End date of the leaderboard period in unix time (ms) */ | ||
endDate: string; | ||
/** Number of leaderboard entries to return */ | ||
@@ -77,6 +77,6 @@ limit: number; | ||
export interface VolLeaderboardRequest { | ||
/** Start date of the leaderboard period in unix time */ | ||
startDate: number; | ||
/** End date of the leaderboard period in unix time */ | ||
endDate: number; | ||
/** Start date of the leaderboard period in unix time (ms) */ | ||
startDate: string; | ||
/** End date of the leaderboard period in unix time (ms) */ | ||
endDate: string; | ||
/** Number of leaderboard entries to return */ | ||
@@ -83,0 +83,0 @@ limit: number; |
/* eslint-disable */ | ||
import { grpc } from "@injectivelabs/grpc-web"; | ||
import { BrowserHeaders } from "browser-headers"; | ||
import Long from "long"; | ||
import _m0 from "protobufjs/minimal"; | ||
@@ -586,11 +587,11 @@ export const protobufPackage = "injective_archiver_rpc"; | ||
function createBasePnlLeaderboardRequest() { | ||
return { startDate: 0, endDate: 0, limit: 0 }; | ||
return { startDate: "0", endDate: "0", limit: 0 }; | ||
} | ||
export const PnlLeaderboardRequest = { | ||
encode(message, writer = _m0.Writer.create()) { | ||
if (message.startDate !== 0) { | ||
writer.uint32(8).sint32(message.startDate); | ||
if (message.startDate !== "0") { | ||
writer.uint32(8).sint64(message.startDate); | ||
} | ||
if (message.endDate !== 0) { | ||
writer.uint32(16).sint32(message.endDate); | ||
if (message.endDate !== "0") { | ||
writer.uint32(16).sint64(message.endDate); | ||
} | ||
@@ -610,6 +611,6 @@ if (message.limit !== 0) { | ||
case 1: | ||
message.startDate = reader.sint32(); | ||
message.startDate = longToString(reader.sint64()); | ||
break; | ||
case 2: | ||
message.endDate = reader.sint32(); | ||
message.endDate = longToString(reader.sint64()); | ||
break; | ||
@@ -628,4 +629,4 @@ case 3: | ||
return { | ||
startDate: isSet(object.startDate) ? Number(object.startDate) : 0, | ||
endDate: isSet(object.endDate) ? Number(object.endDate) : 0, | ||
startDate: isSet(object.startDate) ? String(object.startDate) : "0", | ||
endDate: isSet(object.endDate) ? String(object.endDate) : "0", | ||
limit: isSet(object.limit) ? Number(object.limit) : 0, | ||
@@ -636,4 +637,4 @@ }; | ||
const obj = {}; | ||
message.startDate !== undefined && (obj.startDate = Math.round(message.startDate)); | ||
message.endDate !== undefined && (obj.endDate = Math.round(message.endDate)); | ||
message.startDate !== undefined && (obj.startDate = message.startDate); | ||
message.endDate !== undefined && (obj.endDate = message.endDate); | ||
message.limit !== undefined && (obj.limit = Math.round(message.limit)); | ||
@@ -648,4 +649,4 @@ return obj; | ||
const message = createBasePnlLeaderboardRequest(); | ||
message.startDate = (_a = object.startDate) !== null && _a !== void 0 ? _a : 0; | ||
message.endDate = (_b = object.endDate) !== null && _b !== void 0 ? _b : 0; | ||
message.startDate = (_a = object.startDate) !== null && _a !== void 0 ? _a : "0"; | ||
message.endDate = (_b = object.endDate) !== null && _b !== void 0 ? _b : "0"; | ||
message.limit = (_c = object.limit) !== null && _c !== void 0 ? _c : 0; | ||
@@ -800,11 +801,11 @@ return message; | ||
function createBaseVolLeaderboardRequest() { | ||
return { startDate: 0, endDate: 0, limit: 0 }; | ||
return { startDate: "0", endDate: "0", limit: 0 }; | ||
} | ||
export const VolLeaderboardRequest = { | ||
encode(message, writer = _m0.Writer.create()) { | ||
if (message.startDate !== 0) { | ||
writer.uint32(8).sint32(message.startDate); | ||
if (message.startDate !== "0") { | ||
writer.uint32(8).sint64(message.startDate); | ||
} | ||
if (message.endDate !== 0) { | ||
writer.uint32(16).sint32(message.endDate); | ||
if (message.endDate !== "0") { | ||
writer.uint32(16).sint64(message.endDate); | ||
} | ||
@@ -824,6 +825,6 @@ if (message.limit !== 0) { | ||
case 1: | ||
message.startDate = reader.sint32(); | ||
message.startDate = longToString(reader.sint64()); | ||
break; | ||
case 2: | ||
message.endDate = reader.sint32(); | ||
message.endDate = longToString(reader.sint64()); | ||
break; | ||
@@ -842,4 +843,4 @@ case 3: | ||
return { | ||
startDate: isSet(object.startDate) ? Number(object.startDate) : 0, | ||
endDate: isSet(object.endDate) ? Number(object.endDate) : 0, | ||
startDate: isSet(object.startDate) ? String(object.startDate) : "0", | ||
endDate: isSet(object.endDate) ? String(object.endDate) : "0", | ||
limit: isSet(object.limit) ? Number(object.limit) : 0, | ||
@@ -850,4 +851,4 @@ }; | ||
const obj = {}; | ||
message.startDate !== undefined && (obj.startDate = Math.round(message.startDate)); | ||
message.endDate !== undefined && (obj.endDate = Math.round(message.endDate)); | ||
message.startDate !== undefined && (obj.startDate = message.startDate); | ||
message.endDate !== undefined && (obj.endDate = message.endDate); | ||
message.limit !== undefined && (obj.limit = Math.round(message.limit)); | ||
@@ -862,4 +863,4 @@ return obj; | ||
const message = createBaseVolLeaderboardRequest(); | ||
message.startDate = (_a = object.startDate) !== null && _a !== void 0 ? _a : 0; | ||
message.endDate = (_b = object.endDate) !== null && _b !== void 0 ? _b : 0; | ||
message.startDate = (_a = object.startDate) !== null && _a !== void 0 ? _a : "0"; | ||
message.endDate = (_b = object.endDate) !== null && _b !== void 0 ? _b : "0"; | ||
message.limit = (_c = object.limit) !== null && _c !== void 0 ? _c : 0; | ||
@@ -1404,2 +1405,9 @@ return message; | ||
})(); | ||
function longToString(long) { | ||
return long.toString(); | ||
} | ||
if (_m0.util.Long !== Long) { | ||
_m0.util.Long = Long; | ||
_m0.configure(); | ||
} | ||
function isSet(value) { | ||
@@ -1406,0 +1414,0 @@ return value !== null && value !== undefined; |
{ | ||
"name": "@injectivelabs/indexer-proto-ts", | ||
"version": "1.11.47", | ||
"version": "1.11.48", | ||
"description": "Injective Indexer API client with generated gRPC bindings.", | ||
@@ -5,0 +5,0 @@ "sideEffects": false, |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
3848463
91329
0