@injectivelabs/indexer-proto-ts
Advanced tools
Comparing version 1.13.0 to 1.13.1
import { grpc } from "@injectivelabs/grpc-web"; | ||
import _m0 from "protobufjs/minimal"; | ||
import _m0 from "protobufjs/minimal.js"; | ||
import { Observable } from "rxjs"; | ||
@@ -4,0 +4,0 @@ export declare const protobufPackage = "event_provider_api"; |
import { grpc } from "@injectivelabs/grpc-web"; | ||
import _m0 from "protobufjs/minimal"; | ||
import _m0 from "protobufjs/minimal.js"; | ||
export declare const protobufPackage = "api.v1"; | ||
@@ -4,0 +4,0 @@ export interface GetStatusRequest { |
@@ -10,3 +10,3 @@ "use strict"; | ||
const browser_headers_1 = require("browser-headers"); | ||
const minimal_1 = __importDefault(require("protobufjs/minimal")); | ||
const minimal_js_1 = __importDefault(require("protobufjs/minimal.js")); | ||
exports.protobufPackage = "api.v1"; | ||
@@ -17,7 +17,7 @@ function createBaseGetStatusRequest() { | ||
exports.GetStatusRequest = { | ||
encode(_, writer = minimal_1.default.Writer.create()) { | ||
encode(_, writer = minimal_js_1.default.Writer.create()) { | ||
return writer; | ||
}, | ||
decode(input, length) { | ||
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input); | ||
const reader = input instanceof minimal_js_1.default.Reader ? input : new minimal_js_1.default.Reader(input); | ||
let end = length === undefined ? reader.len : reader.pos + length; | ||
@@ -54,3 +54,3 @@ const message = createBaseGetStatusRequest(); | ||
exports.GetStatusResponse = { | ||
encode(message, writer = minimal_1.default.Writer.create()) { | ||
encode(message, writer = minimal_js_1.default.Writer.create()) { | ||
if (message.s !== "") { | ||
@@ -71,3 +71,3 @@ writer.uint32(10).string(message.s); | ||
decode(input, length) { | ||
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input); | ||
const reader = input instanceof minimal_js_1.default.Reader ? input : new minimal_js_1.default.Reader(input); | ||
let end = length === undefined ? reader.len : reader.pos + length; | ||
@@ -132,3 +132,3 @@ const message = createBaseGetStatusResponse(); | ||
exports.HealthStatus = { | ||
encode(message, writer = minimal_1.default.Writer.create()) { | ||
encode(message, writer = minimal_js_1.default.Writer.create()) { | ||
if (message.localHeight !== 0) { | ||
@@ -152,3 +152,3 @@ writer.uint32(8).sint32(message.localHeight); | ||
decode(input, length) { | ||
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input); | ||
const reader = input instanceof minimal_js_1.default.Reader ? input : new minimal_js_1.default.Reader(input); | ||
let end = length === undefined ? reader.len : reader.pos + length; | ||
@@ -155,0 +155,0 @@ const message = createBaseHealthStatus(); |
import { grpc } from "@injectivelabs/grpc-web"; | ||
import _m0 from "protobufjs/minimal"; | ||
import _m0 from "protobufjs/minimal.js"; | ||
import { Observable } from "rxjs"; | ||
@@ -4,0 +4,0 @@ export declare const protobufPackage = "injective_accounts_rpc"; |
import { grpc } from "@injectivelabs/grpc-web"; | ||
import _m0 from "protobufjs/minimal"; | ||
import _m0 from "protobufjs/minimal.js"; | ||
export declare const protobufPackage = "injective_archiver_rpc"; | ||
@@ -4,0 +4,0 @@ export interface BalanceRequest { |
import { grpc } from "@injectivelabs/grpc-web"; | ||
import _m0 from "protobufjs/minimal"; | ||
import _m0 from "protobufjs/minimal.js"; | ||
import { Observable } from "rxjs"; | ||
@@ -4,0 +4,0 @@ export declare const protobufPackage = "injective_auction_rpc"; |
@@ -11,3 +11,3 @@ "use strict"; | ||
const long_1 = __importDefault(require("long")); | ||
const minimal_1 = __importDefault(require("protobufjs/minimal")); | ||
const minimal_js_1 = __importDefault(require("protobufjs/minimal.js")); | ||
const rxjs_1 = require("rxjs"); | ||
@@ -20,3 +20,3 @@ const operators_1 = require("rxjs/operators"); | ||
exports.AuctionEndpointRequest = { | ||
encode(message, writer = minimal_1.default.Writer.create()) { | ||
encode(message, writer = minimal_js_1.default.Writer.create()) { | ||
if (message.round !== "0") { | ||
@@ -28,3 +28,3 @@ writer.uint32(8).sint64(message.round); | ||
decode(input, length) { | ||
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input); | ||
const reader = input instanceof minimal_js_1.default.Reader ? input : new minimal_js_1.default.Reader(input); | ||
let end = length === undefined ? reader.len : reader.pos + length; | ||
@@ -67,3 +67,3 @@ const message = createBaseAuctionEndpointRequest(); | ||
exports.AuctionEndpointResponse = { | ||
encode(message, writer = minimal_1.default.Writer.create()) { | ||
encode(message, writer = minimal_js_1.default.Writer.create()) { | ||
if (message.auction !== undefined) { | ||
@@ -78,3 +78,3 @@ exports.Auction.encode(message.auction, writer.uint32(10).fork()).ldelim(); | ||
decode(input, length) { | ||
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input); | ||
const reader = input instanceof minimal_js_1.default.Reader ? input : new minimal_js_1.default.Reader(input); | ||
let end = length === undefined ? reader.len : reader.pos + length; | ||
@@ -132,3 +132,3 @@ const message = createBaseAuctionEndpointResponse(); | ||
exports.Auction = { | ||
encode(message, writer = minimal_1.default.Writer.create()) { | ||
encode(message, writer = minimal_js_1.default.Writer.create()) { | ||
if (message.winner !== "") { | ||
@@ -155,3 +155,3 @@ writer.uint32(10).string(message.winner); | ||
decode(input, length) { | ||
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input); | ||
const reader = input instanceof minimal_js_1.default.Reader ? input : new minimal_js_1.default.Reader(input); | ||
let end = length === undefined ? reader.len : reader.pos + length; | ||
@@ -231,3 +231,3 @@ const message = createBaseAuction(); | ||
exports.Coin = { | ||
encode(message, writer = minimal_1.default.Writer.create()) { | ||
encode(message, writer = minimal_js_1.default.Writer.create()) { | ||
if (message.denom !== "") { | ||
@@ -242,3 +242,3 @@ writer.uint32(10).string(message.denom); | ||
decode(input, length) { | ||
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input); | ||
const reader = input instanceof minimal_js_1.default.Reader ? input : new minimal_js_1.default.Reader(input); | ||
let end = length === undefined ? reader.len : reader.pos + length; | ||
@@ -289,3 +289,3 @@ const message = createBaseCoin(); | ||
exports.Bid = { | ||
encode(message, writer = minimal_1.default.Writer.create()) { | ||
encode(message, writer = minimal_js_1.default.Writer.create()) { | ||
if (message.bidder !== "") { | ||
@@ -303,3 +303,3 @@ writer.uint32(10).string(message.bidder); | ||
decode(input, length) { | ||
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input); | ||
const reader = input instanceof minimal_js_1.default.Reader ? input : new minimal_js_1.default.Reader(input); | ||
let end = length === undefined ? reader.len : reader.pos + length; | ||
@@ -356,7 +356,7 @@ const message = createBaseBid(); | ||
exports.AuctionsRequest = { | ||
encode(_, writer = minimal_1.default.Writer.create()) { | ||
encode(_, writer = minimal_js_1.default.Writer.create()) { | ||
return writer; | ||
}, | ||
decode(input, length) { | ||
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input); | ||
const reader = input instanceof minimal_js_1.default.Reader ? input : new minimal_js_1.default.Reader(input); | ||
let end = length === undefined ? reader.len : reader.pos + length; | ||
@@ -393,3 +393,3 @@ const message = createBaseAuctionsRequest(); | ||
exports.AuctionsResponse = { | ||
encode(message, writer = minimal_1.default.Writer.create()) { | ||
encode(message, writer = minimal_js_1.default.Writer.create()) { | ||
for (const v of message.auctions) { | ||
@@ -401,3 +401,3 @@ exports.Auction.encode(v, writer.uint32(10).fork()).ldelim(); | ||
decode(input, length) { | ||
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input); | ||
const reader = input instanceof minimal_js_1.default.Reader ? input : new minimal_js_1.default.Reader(input); | ||
let end = length === undefined ? reader.len : reader.pos + length; | ||
@@ -445,7 +445,7 @@ const message = createBaseAuctionsResponse(); | ||
exports.StreamBidsRequest = { | ||
encode(_, writer = minimal_1.default.Writer.create()) { | ||
encode(_, writer = minimal_js_1.default.Writer.create()) { | ||
return writer; | ||
}, | ||
decode(input, length) { | ||
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input); | ||
const reader = input instanceof minimal_js_1.default.Reader ? input : new minimal_js_1.default.Reader(input); | ||
let end = length === undefined ? reader.len : reader.pos + length; | ||
@@ -482,3 +482,3 @@ const message = createBaseStreamBidsRequest(); | ||
exports.StreamBidsResponse = { | ||
encode(message, writer = minimal_1.default.Writer.create()) { | ||
encode(message, writer = minimal_js_1.default.Writer.create()) { | ||
if (message.bidder !== "") { | ||
@@ -499,3 +499,3 @@ writer.uint32(10).string(message.bidder); | ||
decode(input, length) { | ||
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input); | ||
const reader = input instanceof minimal_js_1.default.Reader ? input : new minimal_js_1.default.Reader(input); | ||
let end = length === undefined ? reader.len : reader.pos + length; | ||
@@ -721,5 +721,5 @@ const message = createBaseStreamBidsResponse(); | ||
} | ||
if (minimal_1.default.util.Long !== long_1.default) { | ||
minimal_1.default.util.Long = long_1.default; | ||
minimal_1.default.configure(); | ||
if (minimal_js_1.default.util.Long !== long_1.default) { | ||
minimal_js_1.default.util.Long = long_1.default; | ||
minimal_js_1.default.configure(); | ||
} | ||
@@ -726,0 +726,0 @@ function isSet(value) { |
import { grpc } from "@injectivelabs/grpc-web"; | ||
import _m0 from "protobufjs/minimal"; | ||
import _m0 from "protobufjs/minimal.js"; | ||
export declare const protobufPackage = "injective_campaign_rpc"; | ||
@@ -4,0 +4,0 @@ export interface RankingRequest { |
import { grpc } from "@injectivelabs/grpc-web"; | ||
import _m0 from "protobufjs/minimal"; | ||
import _m0 from "protobufjs/minimal.js"; | ||
export declare const protobufPackage = "injective_exchange_rpc"; | ||
@@ -4,0 +4,0 @@ export interface GetTxRequest { |
import { grpc } from "@injectivelabs/grpc-web"; | ||
import _m0 from "protobufjs/minimal"; | ||
import _m0 from "protobufjs/minimal.js"; | ||
export declare const protobufPackage = "injective_insurance_rpc"; | ||
@@ -4,0 +4,0 @@ export interface FundsRequest { |
@@ -11,3 +11,3 @@ "use strict"; | ||
const long_1 = __importDefault(require("long")); | ||
const minimal_1 = __importDefault(require("protobufjs/minimal")); | ||
const minimal_js_1 = __importDefault(require("protobufjs/minimal.js")); | ||
exports.protobufPackage = "injective_insurance_rpc"; | ||
@@ -18,7 +18,7 @@ function createBaseFundsRequest() { | ||
exports.FundsRequest = { | ||
encode(_, writer = minimal_1.default.Writer.create()) { | ||
encode(_, writer = minimal_js_1.default.Writer.create()) { | ||
return writer; | ||
}, | ||
decode(input, length) { | ||
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input); | ||
const reader = input instanceof minimal_js_1.default.Reader ? input : new minimal_js_1.default.Reader(input); | ||
let end = length === undefined ? reader.len : reader.pos + length; | ||
@@ -55,3 +55,3 @@ const message = createBaseFundsRequest(); | ||
exports.FundsResponse = { | ||
encode(message, writer = minimal_1.default.Writer.create()) { | ||
encode(message, writer = minimal_js_1.default.Writer.create()) { | ||
for (const v of message.funds) { | ||
@@ -63,3 +63,3 @@ exports.InsuranceFund.encode(v, writer.uint32(10).fork()).ldelim(); | ||
decode(input, length) { | ||
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input); | ||
const reader = input instanceof minimal_js_1.default.Reader ? input : new minimal_js_1.default.Reader(input); | ||
let end = length === undefined ? reader.len : reader.pos + length; | ||
@@ -120,3 +120,3 @@ const message = createBaseFundsResponse(); | ||
exports.InsuranceFund = { | ||
encode(message, writer = minimal_1.default.Writer.create()) { | ||
encode(message, writer = minimal_js_1.default.Writer.create()) { | ||
if (message.marketTicker !== "") { | ||
@@ -161,3 +161,3 @@ writer.uint32(10).string(message.marketTicker); | ||
decode(input, length) { | ||
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input); | ||
const reader = input instanceof minimal_js_1.default.Reader ? input : new minimal_js_1.default.Reader(input); | ||
let end = length === undefined ? reader.len : reader.pos + length; | ||
@@ -274,3 +274,3 @@ const message = createBaseInsuranceFund(); | ||
exports.TokenMeta = { | ||
encode(message, writer = minimal_1.default.Writer.create()) { | ||
encode(message, writer = minimal_js_1.default.Writer.create()) { | ||
if (message.name !== "") { | ||
@@ -297,3 +297,3 @@ writer.uint32(10).string(message.name); | ||
decode(input, length) { | ||
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input); | ||
const reader = input instanceof minimal_js_1.default.Reader ? input : new minimal_js_1.default.Reader(input); | ||
let end = length === undefined ? reader.len : reader.pos + length; | ||
@@ -368,3 +368,3 @@ const message = createBaseTokenMeta(); | ||
exports.FundRequest = { | ||
encode(message, writer = minimal_1.default.Writer.create()) { | ||
encode(message, writer = minimal_js_1.default.Writer.create()) { | ||
if (message.denom !== "") { | ||
@@ -376,3 +376,3 @@ writer.uint32(10).string(message.denom); | ||
decode(input, length) { | ||
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input); | ||
const reader = input instanceof minimal_js_1.default.Reader ? input : new minimal_js_1.default.Reader(input); | ||
let end = length === undefined ? reader.len : reader.pos + length; | ||
@@ -415,3 +415,3 @@ const message = createBaseFundRequest(); | ||
exports.FundResponse = { | ||
encode(message, writer = minimal_1.default.Writer.create()) { | ||
encode(message, writer = minimal_js_1.default.Writer.create()) { | ||
if (message.fund !== undefined) { | ||
@@ -423,3 +423,3 @@ exports.InsuranceFund.encode(message.fund, writer.uint32(10).fork()).ldelim(); | ||
decode(input, length) { | ||
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input); | ||
const reader = input instanceof minimal_js_1.default.Reader ? input : new minimal_js_1.default.Reader(input); | ||
let end = length === undefined ? reader.len : reader.pos + length; | ||
@@ -463,3 +463,3 @@ const message = createBaseFundResponse(); | ||
exports.RedemptionsRequest = { | ||
encode(message, writer = minimal_1.default.Writer.create()) { | ||
encode(message, writer = minimal_js_1.default.Writer.create()) { | ||
if (message.redeemer !== "") { | ||
@@ -477,3 +477,3 @@ writer.uint32(10).string(message.redeemer); | ||
decode(input, length) { | ||
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input); | ||
const reader = input instanceof minimal_js_1.default.Reader ? input : new minimal_js_1.default.Reader(input); | ||
let end = length === undefined ? reader.len : reader.pos + length; | ||
@@ -530,3 +530,3 @@ const message = createBaseRedemptionsRequest(); | ||
exports.RedemptionsResponse = { | ||
encode(message, writer = minimal_1.default.Writer.create()) { | ||
encode(message, writer = minimal_js_1.default.Writer.create()) { | ||
for (const v of message.redemptionSchedules) { | ||
@@ -538,3 +538,3 @@ exports.RedemptionSchedule.encode(v, writer.uint32(10).fork()).ldelim(); | ||
decode(input, length) { | ||
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input); | ||
const reader = input instanceof minimal_js_1.default.Reader ? input : new minimal_js_1.default.Reader(input); | ||
let end = length === undefined ? reader.len : reader.pos + length; | ||
@@ -597,3 +597,3 @@ const message = createBaseRedemptionsResponse(); | ||
exports.RedemptionSchedule = { | ||
encode(message, writer = minimal_1.default.Writer.create()) { | ||
encode(message, writer = minimal_js_1.default.Writer.create()) { | ||
if (message.redemptionId !== "0") { | ||
@@ -632,3 +632,3 @@ writer.uint32(8).uint64(message.redemptionId); | ||
decode(input, length) { | ||
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input); | ||
const reader = input instanceof minimal_js_1.default.Reader ? input : new minimal_js_1.default.Reader(input); | ||
let end = length === undefined ? reader.len : reader.pos + length; | ||
@@ -849,5 +849,5 @@ const message = createBaseRedemptionSchedule(); | ||
} | ||
if (minimal_1.default.util.Long !== long_1.default) { | ||
minimal_1.default.util.Long = long_1.default; | ||
minimal_1.default.configure(); | ||
if (minimal_js_1.default.util.Long !== long_1.default) { | ||
minimal_js_1.default.util.Long = long_1.default; | ||
minimal_js_1.default.configure(); | ||
} | ||
@@ -854,0 +854,0 @@ function isSet(value) { |
import { grpc } from "@injectivelabs/grpc-web"; | ||
import _m0 from "protobufjs/minimal"; | ||
import _m0 from "protobufjs/minimal.js"; | ||
import { Observable } from "rxjs"; | ||
@@ -4,0 +4,0 @@ export declare const protobufPackage = "injective_meta_rpc"; |
@@ -11,3 +11,3 @@ "use strict"; | ||
const long_1 = __importDefault(require("long")); | ||
const minimal_1 = __importDefault(require("protobufjs/minimal")); | ||
const minimal_js_1 = __importDefault(require("protobufjs/minimal.js")); | ||
const rxjs_1 = require("rxjs"); | ||
@@ -20,7 +20,7 @@ const operators_1 = require("rxjs/operators"); | ||
exports.PingRequest = { | ||
encode(_, writer = minimal_1.default.Writer.create()) { | ||
encode(_, writer = minimal_js_1.default.Writer.create()) { | ||
return writer; | ||
}, | ||
decode(input, length) { | ||
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input); | ||
const reader = input instanceof minimal_js_1.default.Reader ? input : new minimal_js_1.default.Reader(input); | ||
let end = length === undefined ? reader.len : reader.pos + length; | ||
@@ -57,7 +57,7 @@ const message = createBasePingRequest(); | ||
exports.PingResponse = { | ||
encode(_, writer = minimal_1.default.Writer.create()) { | ||
encode(_, writer = minimal_js_1.default.Writer.create()) { | ||
return writer; | ||
}, | ||
decode(input, length) { | ||
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input); | ||
const reader = input instanceof minimal_js_1.default.Reader ? input : new minimal_js_1.default.Reader(input); | ||
let end = length === undefined ? reader.len : reader.pos + length; | ||
@@ -94,7 +94,7 @@ const message = createBasePingResponse(); | ||
exports.VersionRequest = { | ||
encode(_, writer = minimal_1.default.Writer.create()) { | ||
encode(_, writer = minimal_js_1.default.Writer.create()) { | ||
return writer; | ||
}, | ||
decode(input, length) { | ||
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input); | ||
const reader = input instanceof minimal_js_1.default.Reader ? input : new minimal_js_1.default.Reader(input); | ||
let end = length === undefined ? reader.len : reader.pos + length; | ||
@@ -131,3 +131,3 @@ const message = createBaseVersionRequest(); | ||
exports.VersionResponse = { | ||
encode(message, writer = minimal_1.default.Writer.create()) { | ||
encode(message, writer = minimal_js_1.default.Writer.create()) { | ||
if (message.version !== "") { | ||
@@ -142,3 +142,3 @@ writer.uint32(10).string(message.version); | ||
decode(input, length) { | ||
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input); | ||
const reader = input instanceof minimal_js_1.default.Reader ? input : new minimal_js_1.default.Reader(input); | ||
let end = length === undefined ? reader.len : reader.pos + length; | ||
@@ -207,3 +207,3 @@ const message = createBaseVersionResponse(); | ||
exports.VersionResponse_BuildEntry = { | ||
encode(message, writer = minimal_1.default.Writer.create()) { | ||
encode(message, writer = minimal_js_1.default.Writer.create()) { | ||
if (message.key !== "") { | ||
@@ -218,3 +218,3 @@ writer.uint32(10).string(message.key); | ||
decode(input, length) { | ||
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input); | ||
const reader = input instanceof minimal_js_1.default.Reader ? input : new minimal_js_1.default.Reader(input); | ||
let end = length === undefined ? reader.len : reader.pos + length; | ||
@@ -262,3 +262,3 @@ const message = createBaseVersionResponse_BuildEntry(); | ||
exports.InfoRequest = { | ||
encode(message, writer = minimal_1.default.Writer.create()) { | ||
encode(message, writer = minimal_js_1.default.Writer.create()) { | ||
if (message.timestamp !== "0") { | ||
@@ -270,3 +270,3 @@ writer.uint32(8).sint64(message.timestamp); | ||
decode(input, length) { | ||
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input); | ||
const reader = input instanceof minimal_js_1.default.Reader ? input : new minimal_js_1.default.Reader(input); | ||
let end = length === undefined ? reader.len : reader.pos + length; | ||
@@ -309,3 +309,3 @@ const message = createBaseInfoRequest(); | ||
exports.InfoResponse = { | ||
encode(message, writer = minimal_1.default.Writer.create()) { | ||
encode(message, writer = minimal_js_1.default.Writer.create()) { | ||
if (message.timestamp !== "0") { | ||
@@ -329,3 +329,3 @@ writer.uint32(8).sint64(message.timestamp); | ||
decode(input, length) { | ||
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input); | ||
const reader = input instanceof minimal_js_1.default.Reader ? input : new minimal_js_1.default.Reader(input); | ||
let end = length === undefined ? reader.len : reader.pos + length; | ||
@@ -412,3 +412,3 @@ const message = createBaseInfoResponse(); | ||
exports.InfoResponse_BuildEntry = { | ||
encode(message, writer = minimal_1.default.Writer.create()) { | ||
encode(message, writer = minimal_js_1.default.Writer.create()) { | ||
if (message.key !== "") { | ||
@@ -423,3 +423,3 @@ writer.uint32(10).string(message.key); | ||
decode(input, length) { | ||
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input); | ||
const reader = input instanceof minimal_js_1.default.Reader ? input : new minimal_js_1.default.Reader(input); | ||
let end = length === undefined ? reader.len : reader.pos + length; | ||
@@ -467,7 +467,7 @@ const message = createBaseInfoResponse_BuildEntry(); | ||
exports.StreamKeepaliveRequest = { | ||
encode(_, writer = minimal_1.default.Writer.create()) { | ||
encode(_, writer = minimal_js_1.default.Writer.create()) { | ||
return writer; | ||
}, | ||
decode(input, length) { | ||
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input); | ||
const reader = input instanceof minimal_js_1.default.Reader ? input : new minimal_js_1.default.Reader(input); | ||
let end = length === undefined ? reader.len : reader.pos + length; | ||
@@ -504,3 +504,3 @@ const message = createBaseStreamKeepaliveRequest(); | ||
exports.StreamKeepaliveResponse = { | ||
encode(message, writer = minimal_1.default.Writer.create()) { | ||
encode(message, writer = minimal_js_1.default.Writer.create()) { | ||
if (message.event !== "") { | ||
@@ -518,3 +518,3 @@ writer.uint32(10).string(message.event); | ||
decode(input, length) { | ||
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input); | ||
const reader = input instanceof minimal_js_1.default.Reader ? input : new minimal_js_1.default.Reader(input); | ||
let end = length === undefined ? reader.len : reader.pos + length; | ||
@@ -571,3 +571,3 @@ const message = createBaseStreamKeepaliveResponse(); | ||
exports.TokenMetadataRequest = { | ||
encode(message, writer = minimal_1.default.Writer.create()) { | ||
encode(message, writer = minimal_js_1.default.Writer.create()) { | ||
for (const v of message.denoms) { | ||
@@ -579,3 +579,3 @@ writer.uint32(10).string(v); | ||
decode(input, length) { | ||
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input); | ||
const reader = input instanceof minimal_js_1.default.Reader ? input : new minimal_js_1.default.Reader(input); | ||
let end = length === undefined ? reader.len : reader.pos + length; | ||
@@ -623,3 +623,3 @@ const message = createBaseTokenMetadataRequest(); | ||
exports.TokenMetadataResponse = { | ||
encode(message, writer = minimal_1.default.Writer.create()) { | ||
encode(message, writer = minimal_js_1.default.Writer.create()) { | ||
for (const v of message.tokens) { | ||
@@ -631,3 +631,3 @@ exports.TokenMetadataElement.encode(v, writer.uint32(10).fork()).ldelim(); | ||
decode(input, length) { | ||
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input); | ||
const reader = input instanceof minimal_js_1.default.Reader ? input : new minimal_js_1.default.Reader(input); | ||
let end = length === undefined ? reader.len : reader.pos + length; | ||
@@ -677,3 +677,3 @@ const message = createBaseTokenMetadataResponse(); | ||
exports.TokenMetadataElement = { | ||
encode(message, writer = minimal_1.default.Writer.create()) { | ||
encode(message, writer = minimal_js_1.default.Writer.create()) { | ||
if (message.ethereumAddress !== "") { | ||
@@ -703,3 +703,3 @@ writer.uint32(10).string(message.ethereumAddress); | ||
decode(input, length) { | ||
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input); | ||
const reader = input instanceof minimal_js_1.default.Reader ? input : new minimal_js_1.default.Reader(input); | ||
let end = length === undefined ? reader.len : reader.pos + length; | ||
@@ -989,5 +989,5 @@ const message = createBaseTokenMetadataElement(); | ||
} | ||
if (minimal_1.default.util.Long !== long_1.default) { | ||
minimal_1.default.util.Long = long_1.default; | ||
minimal_1.default.configure(); | ||
if (minimal_js_1.default.util.Long !== long_1.default) { | ||
minimal_js_1.default.util.Long = long_1.default; | ||
minimal_js_1.default.configure(); | ||
} | ||
@@ -994,0 +994,0 @@ function isObject(value) { |
import { grpc } from "@injectivelabs/grpc-web"; | ||
import _m0 from "protobufjs/minimal"; | ||
import _m0 from "protobufjs/minimal.js"; | ||
import { Observable } from "rxjs"; | ||
@@ -4,0 +4,0 @@ export declare const protobufPackage = "injective_oracle_rpc"; |
@@ -11,3 +11,3 @@ "use strict"; | ||
const long_1 = __importDefault(require("long")); | ||
const minimal_1 = __importDefault(require("protobufjs/minimal")); | ||
const minimal_js_1 = __importDefault(require("protobufjs/minimal.js")); | ||
const rxjs_1 = require("rxjs"); | ||
@@ -20,7 +20,7 @@ const operators_1 = require("rxjs/operators"); | ||
exports.OracleListRequest = { | ||
encode(_, writer = minimal_1.default.Writer.create()) { | ||
encode(_, writer = minimal_js_1.default.Writer.create()) { | ||
return writer; | ||
}, | ||
decode(input, length) { | ||
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input); | ||
const reader = input instanceof minimal_js_1.default.Reader ? input : new minimal_js_1.default.Reader(input); | ||
let end = length === undefined ? reader.len : reader.pos + length; | ||
@@ -57,3 +57,3 @@ const message = createBaseOracleListRequest(); | ||
exports.OracleListResponse = { | ||
encode(message, writer = minimal_1.default.Writer.create()) { | ||
encode(message, writer = minimal_js_1.default.Writer.create()) { | ||
for (const v of message.oracles) { | ||
@@ -65,3 +65,3 @@ exports.Oracle.encode(v, writer.uint32(10).fork()).ldelim(); | ||
decode(input, length) { | ||
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input); | ||
const reader = input instanceof minimal_js_1.default.Reader ? input : new minimal_js_1.default.Reader(input); | ||
let end = length === undefined ? reader.len : reader.pos + length; | ||
@@ -109,3 +109,3 @@ const message = createBaseOracleListResponse(); | ||
exports.Oracle = { | ||
encode(message, writer = minimal_1.default.Writer.create()) { | ||
encode(message, writer = minimal_js_1.default.Writer.create()) { | ||
if (message.symbol !== "") { | ||
@@ -129,3 +129,3 @@ writer.uint32(10).string(message.symbol); | ||
decode(input, length) { | ||
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input); | ||
const reader = input instanceof minimal_js_1.default.Reader ? input : new minimal_js_1.default.Reader(input); | ||
let end = length === undefined ? reader.len : reader.pos + length; | ||
@@ -194,3 +194,3 @@ const message = createBaseOracle(); | ||
exports.PriceRequest = { | ||
encode(message, writer = minimal_1.default.Writer.create()) { | ||
encode(message, writer = minimal_js_1.default.Writer.create()) { | ||
if (message.baseSymbol !== "") { | ||
@@ -211,3 +211,3 @@ writer.uint32(10).string(message.baseSymbol); | ||
decode(input, length) { | ||
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input); | ||
const reader = input instanceof minimal_js_1.default.Reader ? input : new minimal_js_1.default.Reader(input); | ||
let end = length === undefined ? reader.len : reader.pos + length; | ||
@@ -270,3 +270,3 @@ const message = createBasePriceRequest(); | ||
exports.PriceResponse = { | ||
encode(message, writer = minimal_1.default.Writer.create()) { | ||
encode(message, writer = minimal_js_1.default.Writer.create()) { | ||
if (message.price !== "") { | ||
@@ -278,3 +278,3 @@ writer.uint32(10).string(message.price); | ||
decode(input, length) { | ||
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input); | ||
const reader = input instanceof minimal_js_1.default.Reader ? input : new minimal_js_1.default.Reader(input); | ||
let end = length === undefined ? reader.len : reader.pos + length; | ||
@@ -317,3 +317,3 @@ const message = createBasePriceResponse(); | ||
exports.StreamPricesRequest = { | ||
encode(message, writer = minimal_1.default.Writer.create()) { | ||
encode(message, writer = minimal_js_1.default.Writer.create()) { | ||
if (message.baseSymbol !== "") { | ||
@@ -331,3 +331,3 @@ writer.uint32(10).string(message.baseSymbol); | ||
decode(input, length) { | ||
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input); | ||
const reader = input instanceof minimal_js_1.default.Reader ? input : new minimal_js_1.default.Reader(input); | ||
let end = length === undefined ? reader.len : reader.pos + length; | ||
@@ -384,3 +384,3 @@ const message = createBaseStreamPricesRequest(); | ||
exports.StreamPricesResponse = { | ||
encode(message, writer = minimal_1.default.Writer.create()) { | ||
encode(message, writer = minimal_js_1.default.Writer.create()) { | ||
if (message.price !== "") { | ||
@@ -395,3 +395,3 @@ writer.uint32(10).string(message.price); | ||
decode(input, length) { | ||
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input); | ||
const reader = input instanceof minimal_js_1.default.Reader ? input : new minimal_js_1.default.Reader(input); | ||
let end = length === undefined ? reader.len : reader.pos + length; | ||
@@ -442,3 +442,3 @@ const message = createBaseStreamPricesResponse(); | ||
exports.StreamPricesByMarketsRequest = { | ||
encode(message, writer = minimal_1.default.Writer.create()) { | ||
encode(message, writer = minimal_js_1.default.Writer.create()) { | ||
for (const v of message.marketIds) { | ||
@@ -450,3 +450,3 @@ writer.uint32(10).string(v); | ||
decode(input, length) { | ||
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input); | ||
const reader = input instanceof minimal_js_1.default.Reader ? input : new minimal_js_1.default.Reader(input); | ||
let end = length === undefined ? reader.len : reader.pos + length; | ||
@@ -494,3 +494,3 @@ const message = createBaseStreamPricesByMarketsRequest(); | ||
exports.StreamPricesByMarketsResponse = { | ||
encode(message, writer = minimal_1.default.Writer.create()) { | ||
encode(message, writer = minimal_js_1.default.Writer.create()) { | ||
if (message.price !== "") { | ||
@@ -508,3 +508,3 @@ writer.uint32(10).string(message.price); | ||
decode(input, length) { | ||
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input); | ||
const reader = input instanceof minimal_js_1.default.Reader ? input : new minimal_js_1.default.Reader(input); | ||
let end = length === undefined ? reader.len : reader.pos + length; | ||
@@ -747,5 +747,5 @@ const message = createBaseStreamPricesByMarketsResponse(); | ||
} | ||
if (minimal_1.default.util.Long !== long_1.default) { | ||
minimal_1.default.util.Long = long_1.default; | ||
minimal_1.default.configure(); | ||
if (minimal_js_1.default.util.Long !== long_1.default) { | ||
minimal_js_1.default.util.Long = long_1.default; | ||
minimal_js_1.default.configure(); | ||
} | ||
@@ -752,0 +752,0 @@ function isSet(value) { |
import { grpc } from "@injectivelabs/grpc-web"; | ||
import _m0 from "protobufjs/minimal"; | ||
import _m0 from "protobufjs/minimal.js"; | ||
import { Observable } from "rxjs"; | ||
@@ -4,0 +4,0 @@ export declare const protobufPackage = "injective_portfolio_rpc"; |
@@ -11,3 +11,3 @@ "use strict"; | ||
const long_1 = __importDefault(require("long")); | ||
const minimal_1 = __importDefault(require("protobufjs/minimal")); | ||
const minimal_js_1 = __importDefault(require("protobufjs/minimal.js")); | ||
const rxjs_1 = require("rxjs"); | ||
@@ -20,3 +20,3 @@ const operators_1 = require("rxjs/operators"); | ||
exports.TokenHoldersRequest = { | ||
encode(message, writer = minimal_1.default.Writer.create()) { | ||
encode(message, writer = minimal_js_1.default.Writer.create()) { | ||
if (message.denom !== "") { | ||
@@ -34,3 +34,3 @@ writer.uint32(10).string(message.denom); | ||
decode(input, length) { | ||
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input); | ||
const reader = input instanceof minimal_js_1.default.Reader ? input : new minimal_js_1.default.Reader(input); | ||
let end = length === undefined ? reader.len : reader.pos + length; | ||
@@ -87,3 +87,3 @@ const message = createBaseTokenHoldersRequest(); | ||
exports.TokenHoldersResponse = { | ||
encode(message, writer = minimal_1.default.Writer.create()) { | ||
encode(message, writer = minimal_js_1.default.Writer.create()) { | ||
for (const v of message.holders) { | ||
@@ -98,3 +98,3 @@ exports.Holder.encode(v, writer.uint32(10).fork()).ldelim(); | ||
decode(input, length) { | ||
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input); | ||
const reader = input instanceof minimal_js_1.default.Reader ? input : new minimal_js_1.default.Reader(input); | ||
let end = length === undefined ? reader.len : reader.pos + length; | ||
@@ -155,3 +155,3 @@ const message = createBaseTokenHoldersResponse(); | ||
exports.Holder = { | ||
encode(message, writer = minimal_1.default.Writer.create()) { | ||
encode(message, writer = minimal_js_1.default.Writer.create()) { | ||
if (message.accountAddress !== "") { | ||
@@ -166,3 +166,3 @@ writer.uint32(10).string(message.accountAddress); | ||
decode(input, length) { | ||
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input); | ||
const reader = input instanceof minimal_js_1.default.Reader ? input : new minimal_js_1.default.Reader(input); | ||
let end = length === undefined ? reader.len : reader.pos + length; | ||
@@ -213,3 +213,3 @@ const message = createBaseHolder(); | ||
exports.AccountPortfolioRequest = { | ||
encode(message, writer = minimal_1.default.Writer.create()) { | ||
encode(message, writer = minimal_js_1.default.Writer.create()) { | ||
if (message.accountAddress !== "") { | ||
@@ -221,3 +221,3 @@ writer.uint32(10).string(message.accountAddress); | ||
decode(input, length) { | ||
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input); | ||
const reader = input instanceof minimal_js_1.default.Reader ? input : new minimal_js_1.default.Reader(input); | ||
let end = length === undefined ? reader.len : reader.pos + length; | ||
@@ -260,3 +260,3 @@ const message = createBaseAccountPortfolioRequest(); | ||
exports.AccountPortfolioResponse = { | ||
encode(message, writer = minimal_1.default.Writer.create()) { | ||
encode(message, writer = minimal_js_1.default.Writer.create()) { | ||
if (message.portfolio !== undefined) { | ||
@@ -268,3 +268,3 @@ exports.Portfolio.encode(message.portfolio, writer.uint32(10).fork()).ldelim(); | ||
decode(input, length) { | ||
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input); | ||
const reader = input instanceof minimal_js_1.default.Reader ? input : new minimal_js_1.default.Reader(input); | ||
let end = length === undefined ? reader.len : reader.pos + length; | ||
@@ -309,3 +309,3 @@ const message = createBaseAccountPortfolioResponse(); | ||
exports.Portfolio = { | ||
encode(message, writer = minimal_1.default.Writer.create()) { | ||
encode(message, writer = minimal_js_1.default.Writer.create()) { | ||
if (message.accountAddress !== "") { | ||
@@ -326,3 +326,3 @@ writer.uint32(10).string(message.accountAddress); | ||
decode(input, length) { | ||
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input); | ||
const reader = input instanceof minimal_js_1.default.Reader ? input : new minimal_js_1.default.Reader(input); | ||
let end = length === undefined ? reader.len : reader.pos + length; | ||
@@ -404,3 +404,3 @@ const message = createBasePortfolio(); | ||
exports.Coin = { | ||
encode(message, writer = minimal_1.default.Writer.create()) { | ||
encode(message, writer = minimal_js_1.default.Writer.create()) { | ||
if (message.denom !== "") { | ||
@@ -415,3 +415,3 @@ writer.uint32(10).string(message.denom); | ||
decode(input, length) { | ||
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input); | ||
const reader = input instanceof minimal_js_1.default.Reader ? input : new minimal_js_1.default.Reader(input); | ||
let end = length === undefined ? reader.len : reader.pos + length; | ||
@@ -462,3 +462,3 @@ const message = createBaseCoin(); | ||
exports.SubaccountBalanceV2 = { | ||
encode(message, writer = minimal_1.default.Writer.create()) { | ||
encode(message, writer = minimal_js_1.default.Writer.create()) { | ||
if (message.subaccountId !== "") { | ||
@@ -476,3 +476,3 @@ writer.uint32(10).string(message.subaccountId); | ||
decode(input, length) { | ||
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input); | ||
const reader = input instanceof minimal_js_1.default.Reader ? input : new minimal_js_1.default.Reader(input); | ||
let end = length === undefined ? reader.len : reader.pos + length; | ||
@@ -532,3 +532,3 @@ const message = createBaseSubaccountBalanceV2(); | ||
exports.SubaccountDeposit = { | ||
encode(message, writer = minimal_1.default.Writer.create()) { | ||
encode(message, writer = minimal_js_1.default.Writer.create()) { | ||
if (message.totalBalance !== "") { | ||
@@ -543,3 +543,3 @@ writer.uint32(10).string(message.totalBalance); | ||
decode(input, length) { | ||
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input); | ||
const reader = input instanceof minimal_js_1.default.Reader ? input : new minimal_js_1.default.Reader(input); | ||
let end = length === undefined ? reader.len : reader.pos + length; | ||
@@ -590,3 +590,3 @@ const message = createBaseSubaccountDeposit(); | ||
exports.PositionsWithUPNL = { | ||
encode(message, writer = minimal_1.default.Writer.create()) { | ||
encode(message, writer = minimal_js_1.default.Writer.create()) { | ||
if (message.position !== undefined) { | ||
@@ -601,3 +601,3 @@ exports.DerivativePosition.encode(message.position, writer.uint32(10).fork()).ldelim(); | ||
decode(input, length) { | ||
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input); | ||
const reader = input instanceof minimal_js_1.default.Reader ? input : new minimal_js_1.default.Reader(input); | ||
let end = length === undefined ? reader.len : reader.pos + length; | ||
@@ -664,3 +664,3 @@ const message = createBasePositionsWithUPNL(); | ||
exports.DerivativePosition = { | ||
encode(message, writer = minimal_1.default.Writer.create()) { | ||
encode(message, writer = minimal_js_1.default.Writer.create()) { | ||
if (message.ticker !== "") { | ||
@@ -705,3 +705,3 @@ writer.uint32(10).string(message.ticker); | ||
decode(input, length) { | ||
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input); | ||
const reader = input instanceof minimal_js_1.default.Reader ? input : new minimal_js_1.default.Reader(input); | ||
let end = length === undefined ? reader.len : reader.pos + length; | ||
@@ -815,3 +815,3 @@ const message = createBaseDerivativePosition(); | ||
exports.AccountPortfolioBalancesRequest = { | ||
encode(message, writer = minimal_1.default.Writer.create()) { | ||
encode(message, writer = minimal_js_1.default.Writer.create()) { | ||
if (message.accountAddress !== "") { | ||
@@ -823,3 +823,3 @@ writer.uint32(10).string(message.accountAddress); | ||
decode(input, length) { | ||
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input); | ||
const reader = input instanceof minimal_js_1.default.Reader ? input : new minimal_js_1.default.Reader(input); | ||
let end = length === undefined ? reader.len : reader.pos + length; | ||
@@ -862,3 +862,3 @@ const message = createBaseAccountPortfolioBalancesRequest(); | ||
exports.AccountPortfolioBalancesResponse = { | ||
encode(message, writer = minimal_1.default.Writer.create()) { | ||
encode(message, writer = minimal_js_1.default.Writer.create()) { | ||
if (message.portfolio !== undefined) { | ||
@@ -870,3 +870,3 @@ exports.PortfolioBalances.encode(message.portfolio, writer.uint32(10).fork()).ldelim(); | ||
decode(input, length) { | ||
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input); | ||
const reader = input instanceof minimal_js_1.default.Reader ? input : new minimal_js_1.default.Reader(input); | ||
let end = length === undefined ? reader.len : reader.pos + length; | ||
@@ -911,3 +911,3 @@ const message = createBaseAccountPortfolioBalancesResponse(); | ||
exports.PortfolioBalances = { | ||
encode(message, writer = minimal_1.default.Writer.create()) { | ||
encode(message, writer = minimal_js_1.default.Writer.create()) { | ||
if (message.accountAddress !== "") { | ||
@@ -925,3 +925,3 @@ writer.uint32(10).string(message.accountAddress); | ||
decode(input, length) { | ||
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input); | ||
const reader = input instanceof minimal_js_1.default.Reader ? input : new minimal_js_1.default.Reader(input); | ||
let end = length === undefined ? reader.len : reader.pos + length; | ||
@@ -990,3 +990,3 @@ const message = createBasePortfolioBalances(); | ||
exports.StreamAccountPortfolioRequest = { | ||
encode(message, writer = minimal_1.default.Writer.create()) { | ||
encode(message, writer = minimal_js_1.default.Writer.create()) { | ||
if (message.accountAddress !== "") { | ||
@@ -1004,3 +1004,3 @@ writer.uint32(10).string(message.accountAddress); | ||
decode(input, length) { | ||
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input); | ||
const reader = input instanceof minimal_js_1.default.Reader ? input : new minimal_js_1.default.Reader(input); | ||
let end = length === undefined ? reader.len : reader.pos + length; | ||
@@ -1057,3 +1057,3 @@ const message = createBaseStreamAccountPortfolioRequest(); | ||
exports.StreamAccountPortfolioResponse = { | ||
encode(message, writer = minimal_1.default.Writer.create()) { | ||
encode(message, writer = minimal_js_1.default.Writer.create()) { | ||
if (message.type !== "") { | ||
@@ -1077,3 +1077,3 @@ writer.uint32(10).string(message.type); | ||
decode(input, length) { | ||
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input); | ||
const reader = input instanceof minimal_js_1.default.Reader ? input : new minimal_js_1.default.Reader(input); | ||
let end = length === undefined ? reader.len : reader.pos + length; | ||
@@ -1328,5 +1328,5 @@ const message = createBaseStreamAccountPortfolioResponse(); | ||
} | ||
if (minimal_1.default.util.Long !== long_1.default) { | ||
minimal_1.default.util.Long = long_1.default; | ||
minimal_1.default.configure(); | ||
if (minimal_js_1.default.util.Long !== long_1.default) { | ||
minimal_js_1.default.util.Long = long_1.default; | ||
minimal_js_1.default.configure(); | ||
} | ||
@@ -1333,0 +1333,0 @@ function isSet(value) { |
import { grpc } from "@injectivelabs/grpc-web"; | ||
import _m0 from "protobufjs/minimal"; | ||
import _m0 from "protobufjs/minimal.js"; | ||
import { Observable } from "rxjs"; | ||
@@ -4,0 +4,0 @@ export declare const protobufPackage = "injective_spot_exchange_rpc"; |
import { grpc } from "@injectivelabs/grpc-web"; | ||
import _m0 from "protobufjs/minimal"; | ||
import _m0 from "protobufjs/minimal.js"; | ||
export declare const protobufPackage = "injective_trading_rpc"; | ||
@@ -4,0 +4,0 @@ export interface ListTradingStrategiesRequest { |
@@ -11,3 +11,3 @@ "use strict"; | ||
const long_1 = __importDefault(require("long")); | ||
const minimal_1 = __importDefault(require("protobufjs/minimal")); | ||
const minimal_js_1 = __importDefault(require("protobufjs/minimal.js")); | ||
exports.protobufPackage = "injective_trading_rpc"; | ||
@@ -32,3 +32,3 @@ function createBaseListTradingStrategiesRequest() { | ||
exports.ListTradingStrategiesRequest = { | ||
encode(message, writer = minimal_1.default.Writer.create()) { | ||
encode(message, writer = minimal_js_1.default.Writer.create()) { | ||
if (message.state !== "") { | ||
@@ -76,3 +76,3 @@ writer.uint32(10).string(message.state); | ||
decode(input, length) { | ||
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input); | ||
const reader = input instanceof minimal_js_1.default.Reader ? input : new minimal_js_1.default.Reader(input); | ||
let end = length === undefined ? reader.len : reader.pos + length; | ||
@@ -194,3 +194,3 @@ const message = createBaseListTradingStrategiesRequest(); | ||
exports.ListTradingStrategiesResponse = { | ||
encode(message, writer = minimal_1.default.Writer.create()) { | ||
encode(message, writer = minimal_js_1.default.Writer.create()) { | ||
for (const v of message.strategies) { | ||
@@ -205,3 +205,3 @@ exports.TradingStrategy.encode(v, writer.uint32(10).fork()).ldelim(); | ||
decode(input, length) { | ||
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input); | ||
const reader = input instanceof minimal_js_1.default.Reader ? input : new minimal_js_1.default.Reader(input); | ||
let end = length === undefined ? reader.len : reader.pos + length; | ||
@@ -301,3 +301,3 @@ const message = createBaseListTradingStrategiesResponse(); | ||
exports.TradingStrategy = { | ||
encode(message, writer = minimal_1.default.Writer.create()) { | ||
encode(message, writer = minimal_js_1.default.Writer.create()) { | ||
if (message.state !== "") { | ||
@@ -423,3 +423,3 @@ writer.uint32(10).string(message.state); | ||
decode(input, length) { | ||
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input); | ||
const reader = input instanceof minimal_js_1.default.Reader ? input : new minimal_js_1.default.Reader(input); | ||
let end = length === undefined ? reader.len : reader.pos + length; | ||
@@ -701,3 +701,3 @@ const message = createBaseTradingStrategy(); | ||
exports.ExitConfig = { | ||
encode(message, writer = minimal_1.default.Writer.create()) { | ||
encode(message, writer = minimal_js_1.default.Writer.create()) { | ||
if (message.exitType !== "") { | ||
@@ -712,3 +712,3 @@ writer.uint32(10).string(message.exitType); | ||
decode(input, length) { | ||
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input); | ||
const reader = input instanceof minimal_js_1.default.Reader ? input : new minimal_js_1.default.Reader(input); | ||
let end = length === undefined ? reader.len : reader.pos + length; | ||
@@ -759,3 +759,3 @@ const message = createBaseExitConfig(); | ||
exports.Paging = { | ||
encode(message, writer = minimal_1.default.Writer.create()) { | ||
encode(message, writer = minimal_js_1.default.Writer.create()) { | ||
if (message.total !== "0") { | ||
@@ -779,3 +779,3 @@ writer.uint32(8).sint64(message.total); | ||
decode(input, length) { | ||
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input); | ||
const reader = input instanceof minimal_js_1.default.Reader ? input : new minimal_js_1.default.Reader(input); | ||
let end = length === undefined ? reader.len : reader.pos + length; | ||
@@ -849,7 +849,7 @@ const message = createBasePaging(); | ||
exports.GetTradingStatsRequest = { | ||
encode(_, writer = minimal_1.default.Writer.create()) { | ||
encode(_, writer = minimal_js_1.default.Writer.create()) { | ||
return writer; | ||
}, | ||
decode(input, length) { | ||
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input); | ||
const reader = input instanceof minimal_js_1.default.Reader ? input : new minimal_js_1.default.Reader(input); | ||
let end = length === undefined ? reader.len : reader.pos + length; | ||
@@ -886,3 +886,3 @@ const message = createBaseGetTradingStatsRequest(); | ||
exports.GetTradingStatsResponse = { | ||
encode(message, writer = minimal_1.default.Writer.create()) { | ||
encode(message, writer = minimal_js_1.default.Writer.create()) { | ||
if (message.activeTradingStrategies !== "0") { | ||
@@ -900,3 +900,3 @@ writer.uint32(8).uint64(message.activeTradingStrategies); | ||
decode(input, length) { | ||
const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input); | ||
const reader = input instanceof minimal_js_1.default.Reader ? input : new minimal_js_1.default.Reader(input); | ||
let end = length === undefined ? reader.len : reader.pos + length; | ||
@@ -1055,5 +1055,5 @@ const message = createBaseGetTradingStatsResponse(); | ||
} | ||
if (minimal_1.default.util.Long !== long_1.default) { | ||
minimal_1.default.util.Long = long_1.default; | ||
minimal_1.default.configure(); | ||
if (minimal_js_1.default.util.Long !== long_1.default) { | ||
minimal_js_1.default.util.Long = long_1.default; | ||
minimal_js_1.default.configure(); | ||
} | ||
@@ -1060,0 +1060,0 @@ function isSet(value) { |
@@ -9,3 +9,3 @@ { | ||
"google-protobuf": "^3.14.0", | ||
"protobufjs": "^7.0.0", | ||
"protobufjs": "^7.4.0", | ||
"rxjs": "^7.4.0" | ||
@@ -12,0 +12,0 @@ }, |
import { grpc } from "@injectivelabs/grpc-web"; | ||
import _m0 from "protobufjs/minimal"; | ||
import _m0 from "protobufjs/minimal.js"; | ||
import { Observable } from "rxjs"; | ||
@@ -4,0 +4,0 @@ export declare const protobufPackage = "event_provider_api"; |
@@ -5,3 +5,3 @@ /* eslint-disable */ | ||
import Long from "long"; | ||
import _m0 from "protobufjs/minimal"; | ||
import _m0 from "protobufjs/minimal.js"; | ||
import { Observable } from "rxjs"; | ||
@@ -8,0 +8,0 @@ import { share } from "rxjs/operators"; |
import { grpc } from "@injectivelabs/grpc-web"; | ||
import _m0 from "protobufjs/minimal"; | ||
import _m0 from "protobufjs/minimal.js"; | ||
export declare const protobufPackage = "api.v1"; | ||
@@ -4,0 +4,0 @@ export interface GetStatusRequest { |
/* eslint-disable */ | ||
import { grpc } from "@injectivelabs/grpc-web"; | ||
import { BrowserHeaders } from "browser-headers"; | ||
import _m0 from "protobufjs/minimal"; | ||
import _m0 from "protobufjs/minimal.js"; | ||
export const protobufPackage = "api.v1"; | ||
@@ -6,0 +6,0 @@ function createBaseGetStatusRequest() { |
import { grpc } from "@injectivelabs/grpc-web"; | ||
import _m0 from "protobufjs/minimal"; | ||
import _m0 from "protobufjs/minimal.js"; | ||
import { Observable } from "rxjs"; | ||
@@ -4,0 +4,0 @@ export declare const protobufPackage = "injective_accounts_rpc"; |
import { grpc } from "@injectivelabs/grpc-web"; | ||
import _m0 from "protobufjs/minimal"; | ||
import _m0 from "protobufjs/minimal.js"; | ||
export declare const protobufPackage = "injective_archiver_rpc"; | ||
@@ -4,0 +4,0 @@ export interface BalanceRequest { |
@@ -5,3 +5,3 @@ /* eslint-disable */ | ||
import Long from "long"; | ||
import _m0 from "protobufjs/minimal"; | ||
import _m0 from "protobufjs/minimal.js"; | ||
export const protobufPackage = "injective_archiver_rpc"; | ||
@@ -8,0 +8,0 @@ function createBaseBalanceRequest() { |
import { grpc } from "@injectivelabs/grpc-web"; | ||
import _m0 from "protobufjs/minimal"; | ||
import _m0 from "protobufjs/minimal.js"; | ||
import { Observable } from "rxjs"; | ||
@@ -4,0 +4,0 @@ export declare const protobufPackage = "injective_auction_rpc"; |
@@ -5,3 +5,3 @@ /* eslint-disable */ | ||
import Long from "long"; | ||
import _m0 from "protobufjs/minimal"; | ||
import _m0 from "protobufjs/minimal.js"; | ||
import { Observable } from "rxjs"; | ||
@@ -8,0 +8,0 @@ import { share } from "rxjs/operators"; |
import { grpc } from "@injectivelabs/grpc-web"; | ||
import _m0 from "protobufjs/minimal"; | ||
import _m0 from "protobufjs/minimal.js"; | ||
export declare const protobufPackage = "injective_campaign_rpc"; | ||
@@ -4,0 +4,0 @@ export interface RankingRequest { |
import { grpc } from "@injectivelabs/grpc-web"; | ||
import _m0 from "protobufjs/minimal"; | ||
import _m0 from "protobufjs/minimal.js"; | ||
export declare const protobufPackage = "injective_exchange_rpc"; | ||
@@ -4,0 +4,0 @@ export interface GetTxRequest { |
import { grpc } from "@injectivelabs/grpc-web"; | ||
import _m0 from "protobufjs/minimal"; | ||
import _m0 from "protobufjs/minimal.js"; | ||
export declare const protobufPackage = "injective_insurance_rpc"; | ||
@@ -4,0 +4,0 @@ export interface FundsRequest { |
@@ -5,3 +5,3 @@ /* eslint-disable */ | ||
import Long from "long"; | ||
import _m0 from "protobufjs/minimal"; | ||
import _m0 from "protobufjs/minimal.js"; | ||
export const protobufPackage = "injective_insurance_rpc"; | ||
@@ -8,0 +8,0 @@ function createBaseFundsRequest() { |
import { grpc } from "@injectivelabs/grpc-web"; | ||
import _m0 from "protobufjs/minimal"; | ||
import _m0 from "protobufjs/minimal.js"; | ||
import { Observable } from "rxjs"; | ||
@@ -4,0 +4,0 @@ export declare const protobufPackage = "injective_meta_rpc"; |
@@ -5,3 +5,3 @@ /* eslint-disable */ | ||
import Long from "long"; | ||
import _m0 from "protobufjs/minimal"; | ||
import _m0 from "protobufjs/minimal.js"; | ||
import { Observable } from "rxjs"; | ||
@@ -8,0 +8,0 @@ import { share } from "rxjs/operators"; |
import { grpc } from "@injectivelabs/grpc-web"; | ||
import _m0 from "protobufjs/minimal"; | ||
import _m0 from "protobufjs/minimal.js"; | ||
import { Observable } from "rxjs"; | ||
@@ -4,0 +4,0 @@ export declare const protobufPackage = "injective_oracle_rpc"; |
@@ -5,3 +5,3 @@ /* eslint-disable */ | ||
import Long from "long"; | ||
import _m0 from "protobufjs/minimal"; | ||
import _m0 from "protobufjs/minimal.js"; | ||
import { Observable } from "rxjs"; | ||
@@ -8,0 +8,0 @@ import { share } from "rxjs/operators"; |
import { grpc } from "@injectivelabs/grpc-web"; | ||
import _m0 from "protobufjs/minimal"; | ||
import _m0 from "protobufjs/minimal.js"; | ||
import { Observable } from "rxjs"; | ||
@@ -4,0 +4,0 @@ export declare const protobufPackage = "injective_portfolio_rpc"; |
@@ -5,3 +5,3 @@ /* eslint-disable */ | ||
import Long from "long"; | ||
import _m0 from "protobufjs/minimal"; | ||
import _m0 from "protobufjs/minimal.js"; | ||
import { Observable } from "rxjs"; | ||
@@ -8,0 +8,0 @@ import { share } from "rxjs/operators"; |
import { grpc } from "@injectivelabs/grpc-web"; | ||
import _m0 from "protobufjs/minimal"; | ||
import _m0 from "protobufjs/minimal.js"; | ||
import { Observable } from "rxjs"; | ||
@@ -4,0 +4,0 @@ export declare const protobufPackage = "injective_spot_exchange_rpc"; |
import { grpc } from "@injectivelabs/grpc-web"; | ||
import _m0 from "protobufjs/minimal"; | ||
import _m0 from "protobufjs/minimal.js"; | ||
export declare const protobufPackage = "injective_trading_rpc"; | ||
@@ -4,0 +4,0 @@ export interface ListTradingStrategiesRequest { |
@@ -5,3 +5,3 @@ /* eslint-disable */ | ||
import Long from "long"; | ||
import _m0 from "protobufjs/minimal"; | ||
import _m0 from "protobufjs/minimal.js"; | ||
export const protobufPackage = "injective_trading_rpc"; | ||
@@ -8,0 +8,0 @@ function createBaseListTradingStrategiesRequest() { |
@@ -9,3 +9,3 @@ { | ||
"google-protobuf": "^3.14.0", | ||
"protobufjs": "^7.0.0", | ||
"protobufjs": "^7.4.0", | ||
"rxjs": "^7.4.0" | ||
@@ -12,0 +12,0 @@ }, |
{ | ||
"name": "@injectivelabs/indexer-proto-ts", | ||
"version": "1.13.0", | ||
"version": "1.13.1", | ||
"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
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
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
3878679