@injectivelabs/indexer-proto-ts
Advanced tools
Comparing version 1.11.48 to 1.11.49
@@ -119,2 +119,20 @@ import { grpc } from "@injectivelabs/grpc-web"; | ||
} | ||
export interface DenomHoldersRequest { | ||
/** Denom address */ | ||
denom: string; | ||
/** Token for pagination */ | ||
token: string; | ||
limit: number; | ||
} | ||
export interface DenomHoldersResponse { | ||
holders: Holder[]; | ||
/** Next tokens for pagination */ | ||
next: string[]; | ||
} | ||
export interface Holder { | ||
/** Account address for the holder */ | ||
accountAddress: string; | ||
/** The balance of the holder */ | ||
balance: string; | ||
} | ||
export declare const BalanceRequest: { | ||
@@ -264,2 +282,26 @@ encode(message: BalanceRequest, writer?: _m0.Writer): _m0.Writer; | ||
}; | ||
export declare const DenomHoldersRequest: { | ||
encode(message: DenomHoldersRequest, writer?: _m0.Writer): _m0.Writer; | ||
decode(input: _m0.Reader | Uint8Array, length?: number): DenomHoldersRequest; | ||
fromJSON(object: any): DenomHoldersRequest; | ||
toJSON(message: DenomHoldersRequest): unknown; | ||
create(base?: DeepPartial<DenomHoldersRequest>): DenomHoldersRequest; | ||
fromPartial(object: DeepPartial<DenomHoldersRequest>): DenomHoldersRequest; | ||
}; | ||
export declare const DenomHoldersResponse: { | ||
encode(message: DenomHoldersResponse, writer?: _m0.Writer): _m0.Writer; | ||
decode(input: _m0.Reader | Uint8Array, length?: number): DenomHoldersResponse; | ||
fromJSON(object: any): DenomHoldersResponse; | ||
toJSON(message: DenomHoldersResponse): unknown; | ||
create(base?: DeepPartial<DenomHoldersResponse>): DenomHoldersResponse; | ||
fromPartial(object: DeepPartial<DenomHoldersResponse>): DenomHoldersResponse; | ||
}; | ||
export declare const Holder: { | ||
encode(message: Holder, writer?: _m0.Writer): _m0.Writer; | ||
decode(input: _m0.Reader | Uint8Array, length?: number): Holder; | ||
fromJSON(object: any): Holder; | ||
toJSON(message: Holder): unknown; | ||
create(base?: DeepPartial<Holder>): Holder; | ||
fromPartial(object: DeepPartial<Holder>): Holder; | ||
}; | ||
/** InjectiveArchiverRPC defines gRPC API of Archiver provider. */ | ||
@@ -281,2 +323,4 @@ export interface InjectiveArchiverRPC { | ||
VolLeaderboardFixedResolution(request: DeepPartial<VolLeaderboardFixedResolutionRequest>, metadata?: grpc.Metadata): Promise<VolLeaderboardFixedResolutionResponse>; | ||
/** Provide a list of addresses holding a specific denom */ | ||
DenomHolders(request: DeepPartial<DenomHoldersRequest>, metadata?: grpc.Metadata): Promise<DenomHoldersResponse>; | ||
} | ||
@@ -293,2 +337,3 @@ export declare class InjectiveArchiverRPCClientImpl implements InjectiveArchiverRPC { | ||
VolLeaderboardFixedResolution(request: DeepPartial<VolLeaderboardFixedResolutionRequest>, metadata?: grpc.Metadata): Promise<VolLeaderboardFixedResolutionResponse>; | ||
DenomHolders(request: DeepPartial<DenomHoldersRequest>, metadata?: grpc.Metadata): Promise<DenomHoldersResponse>; | ||
} | ||
@@ -305,2 +350,3 @@ export declare const InjectiveArchiverRPCDesc: { | ||
export declare const InjectiveArchiverRPCVolLeaderboardFixedResolutionDesc: UnaryMethodDefinitionish; | ||
export declare const InjectiveArchiverRPCDenomHoldersDesc: UnaryMethodDefinitionish; | ||
interface UnaryMethodDefinitionishR extends grpc.UnaryMethodDefinition<any, any> { | ||
@@ -307,0 +353,0 @@ requestStream: any; |
@@ -6,3 +6,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.GrpcWebError = exports.GrpcWebImpl = exports.InjectiveArchiverRPCVolLeaderboardFixedResolutionDesc = exports.InjectiveArchiverRPCPnlLeaderboardFixedResolutionDesc = exports.InjectiveArchiverRPCVolLeaderboardDesc = exports.InjectiveArchiverRPCPnlLeaderboardDesc = exports.InjectiveArchiverRPCVolumesDesc = exports.InjectiveArchiverRPCRpnlDesc = exports.InjectiveArchiverRPCBalanceDesc = exports.InjectiveArchiverRPCDesc = exports.InjectiveArchiverRPCClientImpl = exports.VolLeaderboardFixedResolutionResponse = exports.VolLeaderboardFixedResolutionRequest = exports.PnlLeaderboardFixedResolutionResponse = exports.PnlLeaderboardFixedResolutionRequest = exports.VolLeaderboardResponse = exports.VolLeaderboardRequest = exports.LeaderboardRow = exports.PnlLeaderboardResponse = exports.PnlLeaderboardRequest = exports.HistoricalVolumes = exports.VolumesResponse = exports.VolumesRequest = exports.HistoricalRPNL = exports.RpnlResponse = exports.RpnlRequest = exports.HistoricalBalance = exports.BalanceResponse = exports.BalanceRequest = exports.protobufPackage = void 0; | ||
exports.GrpcWebError = exports.GrpcWebImpl = exports.InjectiveArchiverRPCDenomHoldersDesc = exports.InjectiveArchiverRPCVolLeaderboardFixedResolutionDesc = exports.InjectiveArchiverRPCPnlLeaderboardFixedResolutionDesc = exports.InjectiveArchiverRPCVolLeaderboardDesc = exports.InjectiveArchiverRPCPnlLeaderboardDesc = exports.InjectiveArchiverRPCVolumesDesc = exports.InjectiveArchiverRPCRpnlDesc = exports.InjectiveArchiverRPCBalanceDesc = exports.InjectiveArchiverRPCDesc = exports.InjectiveArchiverRPCClientImpl = exports.Holder = exports.DenomHoldersResponse = exports.DenomHoldersRequest = exports.VolLeaderboardFixedResolutionResponse = exports.VolLeaderboardFixedResolutionRequest = exports.PnlLeaderboardFixedResolutionResponse = exports.PnlLeaderboardFixedResolutionRequest = exports.VolLeaderboardResponse = exports.VolLeaderboardRequest = exports.LeaderboardRow = exports.PnlLeaderboardResponse = exports.PnlLeaderboardRequest = exports.HistoricalVolumes = exports.VolumesResponse = exports.VolumesRequest = exports.HistoricalRPNL = exports.RpnlResponse = exports.RpnlRequest = exports.HistoricalBalance = exports.BalanceResponse = exports.BalanceRequest = exports.protobufPackage = void 0; | ||
/* eslint-disable */ | ||
@@ -1189,2 +1189,189 @@ const grpc_web_1 = require("@injectivelabs/grpc-web"); | ||
}; | ||
function createBaseDenomHoldersRequest() { | ||
return { denom: "", token: "", limit: 0 }; | ||
} | ||
exports.DenomHoldersRequest = { | ||
encode(message, writer = minimal_1.default.Writer.create()) { | ||
if (message.denom !== "") { | ||
writer.uint32(10).string(message.denom); | ||
} | ||
if (message.token !== "") { | ||
writer.uint32(18).string(message.token); | ||
} | ||
if (message.limit !== 0) { | ||
writer.uint32(24).sint32(message.limit); | ||
} | ||
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 = createBaseDenomHoldersRequest(); | ||
while (reader.pos < end) { | ||
const tag = reader.uint32(); | ||
switch (tag >>> 3) { | ||
case 1: | ||
message.denom = reader.string(); | ||
break; | ||
case 2: | ||
message.token = reader.string(); | ||
break; | ||
case 3: | ||
message.limit = reader.sint32(); | ||
break; | ||
default: | ||
reader.skipType(tag & 7); | ||
break; | ||
} | ||
} | ||
return message; | ||
}, | ||
fromJSON(object) { | ||
return { | ||
denom: isSet(object.denom) ? String(object.denom) : "", | ||
token: isSet(object.token) ? String(object.token) : "", | ||
limit: isSet(object.limit) ? Number(object.limit) : 0, | ||
}; | ||
}, | ||
toJSON(message) { | ||
const obj = {}; | ||
message.denom !== undefined && (obj.denom = message.denom); | ||
message.token !== undefined && (obj.token = message.token); | ||
message.limit !== undefined && (obj.limit = Math.round(message.limit)); | ||
return obj; | ||
}, | ||
create(base) { | ||
return exports.DenomHoldersRequest.fromPartial(base !== null && base !== void 0 ? base : {}); | ||
}, | ||
fromPartial(object) { | ||
var _a, _b, _c; | ||
const message = createBaseDenomHoldersRequest(); | ||
message.denom = (_a = object.denom) !== null && _a !== void 0 ? _a : ""; | ||
message.token = (_b = object.token) !== null && _b !== void 0 ? _b : ""; | ||
message.limit = (_c = object.limit) !== null && _c !== void 0 ? _c : 0; | ||
return message; | ||
}, | ||
}; | ||
function createBaseDenomHoldersResponse() { | ||
return { holders: [], next: [] }; | ||
} | ||
exports.DenomHoldersResponse = { | ||
encode(message, writer = minimal_1.default.Writer.create()) { | ||
for (const v of message.holders) { | ||
exports.Holder.encode(v, writer.uint32(10).fork()).ldelim(); | ||
} | ||
for (const v of message.next) { | ||
writer.uint32(18).string(v); | ||
} | ||
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 = createBaseDenomHoldersResponse(); | ||
while (reader.pos < end) { | ||
const tag = reader.uint32(); | ||
switch (tag >>> 3) { | ||
case 1: | ||
message.holders.push(exports.Holder.decode(reader, reader.uint32())); | ||
break; | ||
case 2: | ||
message.next.push(reader.string()); | ||
break; | ||
default: | ||
reader.skipType(tag & 7); | ||
break; | ||
} | ||
} | ||
return message; | ||
}, | ||
fromJSON(object) { | ||
return { | ||
holders: Array.isArray(object === null || object === void 0 ? void 0 : object.holders) ? object.holders.map((e) => exports.Holder.fromJSON(e)) : [], | ||
next: Array.isArray(object === null || object === void 0 ? void 0 : object.next) ? object.next.map((e) => String(e)) : [], | ||
}; | ||
}, | ||
toJSON(message) { | ||
const obj = {}; | ||
if (message.holders) { | ||
obj.holders = message.holders.map((e) => e ? exports.Holder.toJSON(e) : undefined); | ||
} | ||
else { | ||
obj.holders = []; | ||
} | ||
if (message.next) { | ||
obj.next = message.next.map((e) => e); | ||
} | ||
else { | ||
obj.next = []; | ||
} | ||
return obj; | ||
}, | ||
create(base) { | ||
return exports.DenomHoldersResponse.fromPartial(base !== null && base !== void 0 ? base : {}); | ||
}, | ||
fromPartial(object) { | ||
var _a, _b; | ||
const message = createBaseDenomHoldersResponse(); | ||
message.holders = ((_a = object.holders) === null || _a === void 0 ? void 0 : _a.map((e) => exports.Holder.fromPartial(e))) || []; | ||
message.next = ((_b = object.next) === null || _b === void 0 ? void 0 : _b.map((e) => e)) || []; | ||
return message; | ||
}, | ||
}; | ||
function createBaseHolder() { | ||
return { accountAddress: "", balance: "" }; | ||
} | ||
exports.Holder = { | ||
encode(message, writer = minimal_1.default.Writer.create()) { | ||
if (message.accountAddress !== "") { | ||
writer.uint32(10).string(message.accountAddress); | ||
} | ||
if (message.balance !== "") { | ||
writer.uint32(18).string(message.balance); | ||
} | ||
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 = createBaseHolder(); | ||
while (reader.pos < end) { | ||
const tag = reader.uint32(); | ||
switch (tag >>> 3) { | ||
case 1: | ||
message.accountAddress = reader.string(); | ||
break; | ||
case 2: | ||
message.balance = reader.string(); | ||
break; | ||
default: | ||
reader.skipType(tag & 7); | ||
break; | ||
} | ||
} | ||
return message; | ||
}, | ||
fromJSON(object) { | ||
return { | ||
accountAddress: isSet(object.accountAddress) ? String(object.accountAddress) : "", | ||
balance: isSet(object.balance) ? String(object.balance) : "", | ||
}; | ||
}, | ||
toJSON(message) { | ||
const obj = {}; | ||
message.accountAddress !== undefined && (obj.accountAddress = message.accountAddress); | ||
message.balance !== undefined && (obj.balance = message.balance); | ||
return obj; | ||
}, | ||
create(base) { | ||
return exports.Holder.fromPartial(base !== null && base !== void 0 ? base : {}); | ||
}, | ||
fromPartial(object) { | ||
var _a, _b; | ||
const message = createBaseHolder(); | ||
message.accountAddress = (_a = object.accountAddress) !== null && _a !== void 0 ? _a : ""; | ||
message.balance = (_b = object.balance) !== null && _b !== void 0 ? _b : ""; | ||
return message; | ||
}, | ||
}; | ||
class InjectiveArchiverRPCClientImpl { | ||
@@ -1200,2 +1387,3 @@ constructor(rpc) { | ||
this.VolLeaderboardFixedResolution = this.VolLeaderboardFixedResolution.bind(this); | ||
this.DenomHolders = this.DenomHolders.bind(this); | ||
} | ||
@@ -1223,2 +1411,5 @@ Balance(request, metadata) { | ||
} | ||
DenomHolders(request, metadata) { | ||
return this.rpc.unary(exports.InjectiveArchiverRPCDenomHoldersDesc, exports.DenomHoldersRequest.fromPartial(request), metadata); | ||
} | ||
} | ||
@@ -1360,2 +1551,21 @@ exports.InjectiveArchiverRPCClientImpl = InjectiveArchiverRPCClientImpl; | ||
}; | ||
exports.InjectiveArchiverRPCDenomHoldersDesc = { | ||
methodName: "DenomHolders", | ||
service: exports.InjectiveArchiverRPCDesc, | ||
requestStream: false, | ||
responseStream: false, | ||
requestType: { | ||
serializeBinary() { | ||
return exports.DenomHoldersRequest.encode(this).finish(); | ||
}, | ||
}, | ||
responseType: { | ||
deserializeBinary(data) { | ||
const value = exports.DenomHoldersResponse.decode(data); | ||
return Object.assign(Object.assign({}, value), { toObject() { | ||
return value; | ||
} }); | ||
}, | ||
}, | ||
}; | ||
class GrpcWebImpl { | ||
@@ -1362,0 +1572,0 @@ constructor(host, options) { |
@@ -30,3 +30,3 @@ import { grpc } from "@injectivelabs/grpc-web"; | ||
expiry: string; | ||
/** Token metadata for the deposit asset, only for Ethereum-based assets */ | ||
/** Token metadata for the deposit asset */ | ||
depositTokenMeta: TokenMeta | undefined; | ||
@@ -37,3 +37,3 @@ } | ||
name: string; | ||
/** Token Ethereum contract address */ | ||
/** Token contract address (native or not) */ | ||
address: string; | ||
@@ -40,0 +40,0 @@ /** Token symbol short name */ |
@@ -30,7 +30,7 @@ import { grpc } from "@injectivelabs/grpc-web"; | ||
baseDenom: string; | ||
/** Token metadata for base asset, only for Ethereum-based assets */ | ||
/** Token metadata for base asset */ | ||
baseTokenMeta: TokenMeta | undefined; | ||
/** Coin denom used for the quote asset. */ | ||
quoteDenom: string; | ||
/** Token metadata for quote asset, only for Ethereum-based assets */ | ||
/** Token metadata for quote asset */ | ||
quoteTokenMeta: TokenMeta | undefined; | ||
@@ -53,3 +53,3 @@ /** Defines the fee percentage makers pay when trading (in quote asset) */ | ||
name: string; | ||
/** Token Ethereum contract address */ | ||
/** Token contract address (native or not) */ | ||
address: string; | ||
@@ -56,0 +56,0 @@ /** Token symbol short name */ |
@@ -119,2 +119,20 @@ import { grpc } from "@injectivelabs/grpc-web"; | ||
} | ||
export interface DenomHoldersRequest { | ||
/** Denom address */ | ||
denom: string; | ||
/** Token for pagination */ | ||
token: string; | ||
limit: number; | ||
} | ||
export interface DenomHoldersResponse { | ||
holders: Holder[]; | ||
/** Next tokens for pagination */ | ||
next: string[]; | ||
} | ||
export interface Holder { | ||
/** Account address for the holder */ | ||
accountAddress: string; | ||
/** The balance of the holder */ | ||
balance: string; | ||
} | ||
export declare const BalanceRequest: { | ||
@@ -264,2 +282,26 @@ encode(message: BalanceRequest, writer?: _m0.Writer): _m0.Writer; | ||
}; | ||
export declare const DenomHoldersRequest: { | ||
encode(message: DenomHoldersRequest, writer?: _m0.Writer): _m0.Writer; | ||
decode(input: _m0.Reader | Uint8Array, length?: number): DenomHoldersRequest; | ||
fromJSON(object: any): DenomHoldersRequest; | ||
toJSON(message: DenomHoldersRequest): unknown; | ||
create(base?: DeepPartial<DenomHoldersRequest>): DenomHoldersRequest; | ||
fromPartial(object: DeepPartial<DenomHoldersRequest>): DenomHoldersRequest; | ||
}; | ||
export declare const DenomHoldersResponse: { | ||
encode(message: DenomHoldersResponse, writer?: _m0.Writer): _m0.Writer; | ||
decode(input: _m0.Reader | Uint8Array, length?: number): DenomHoldersResponse; | ||
fromJSON(object: any): DenomHoldersResponse; | ||
toJSON(message: DenomHoldersResponse): unknown; | ||
create(base?: DeepPartial<DenomHoldersResponse>): DenomHoldersResponse; | ||
fromPartial(object: DeepPartial<DenomHoldersResponse>): DenomHoldersResponse; | ||
}; | ||
export declare const Holder: { | ||
encode(message: Holder, writer?: _m0.Writer): _m0.Writer; | ||
decode(input: _m0.Reader | Uint8Array, length?: number): Holder; | ||
fromJSON(object: any): Holder; | ||
toJSON(message: Holder): unknown; | ||
create(base?: DeepPartial<Holder>): Holder; | ||
fromPartial(object: DeepPartial<Holder>): Holder; | ||
}; | ||
/** InjectiveArchiverRPC defines gRPC API of Archiver provider. */ | ||
@@ -281,2 +323,4 @@ export interface InjectiveArchiverRPC { | ||
VolLeaderboardFixedResolution(request: DeepPartial<VolLeaderboardFixedResolutionRequest>, metadata?: grpc.Metadata): Promise<VolLeaderboardFixedResolutionResponse>; | ||
/** Provide a list of addresses holding a specific denom */ | ||
DenomHolders(request: DeepPartial<DenomHoldersRequest>, metadata?: grpc.Metadata): Promise<DenomHoldersResponse>; | ||
} | ||
@@ -293,2 +337,3 @@ export declare class InjectiveArchiverRPCClientImpl implements InjectiveArchiverRPC { | ||
VolLeaderboardFixedResolution(request: DeepPartial<VolLeaderboardFixedResolutionRequest>, metadata?: grpc.Metadata): Promise<VolLeaderboardFixedResolutionResponse>; | ||
DenomHolders(request: DeepPartial<DenomHoldersRequest>, metadata?: grpc.Metadata): Promise<DenomHoldersResponse>; | ||
} | ||
@@ -305,2 +350,3 @@ export declare const InjectiveArchiverRPCDesc: { | ||
export declare const InjectiveArchiverRPCVolLeaderboardFixedResolutionDesc: UnaryMethodDefinitionish; | ||
export declare const InjectiveArchiverRPCDenomHoldersDesc: UnaryMethodDefinitionish; | ||
interface UnaryMethodDefinitionishR extends grpc.UnaryMethodDefinition<any, any> { | ||
@@ -307,0 +353,0 @@ requestStream: any; |
@@ -1182,2 +1182,189 @@ /* eslint-disable */ | ||
}; | ||
function createBaseDenomHoldersRequest() { | ||
return { denom: "", token: "", limit: 0 }; | ||
} | ||
export const DenomHoldersRequest = { | ||
encode(message, writer = _m0.Writer.create()) { | ||
if (message.denom !== "") { | ||
writer.uint32(10).string(message.denom); | ||
} | ||
if (message.token !== "") { | ||
writer.uint32(18).string(message.token); | ||
} | ||
if (message.limit !== 0) { | ||
writer.uint32(24).sint32(message.limit); | ||
} | ||
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 = createBaseDenomHoldersRequest(); | ||
while (reader.pos < end) { | ||
const tag = reader.uint32(); | ||
switch (tag >>> 3) { | ||
case 1: | ||
message.denom = reader.string(); | ||
break; | ||
case 2: | ||
message.token = reader.string(); | ||
break; | ||
case 3: | ||
message.limit = reader.sint32(); | ||
break; | ||
default: | ||
reader.skipType(tag & 7); | ||
break; | ||
} | ||
} | ||
return message; | ||
}, | ||
fromJSON(object) { | ||
return { | ||
denom: isSet(object.denom) ? String(object.denom) : "", | ||
token: isSet(object.token) ? String(object.token) : "", | ||
limit: isSet(object.limit) ? Number(object.limit) : 0, | ||
}; | ||
}, | ||
toJSON(message) { | ||
const obj = {}; | ||
message.denom !== undefined && (obj.denom = message.denom); | ||
message.token !== undefined && (obj.token = message.token); | ||
message.limit !== undefined && (obj.limit = Math.round(message.limit)); | ||
return obj; | ||
}, | ||
create(base) { | ||
return DenomHoldersRequest.fromPartial(base !== null && base !== void 0 ? base : {}); | ||
}, | ||
fromPartial(object) { | ||
var _a, _b, _c; | ||
const message = createBaseDenomHoldersRequest(); | ||
message.denom = (_a = object.denom) !== null && _a !== void 0 ? _a : ""; | ||
message.token = (_b = object.token) !== null && _b !== void 0 ? _b : ""; | ||
message.limit = (_c = object.limit) !== null && _c !== void 0 ? _c : 0; | ||
return message; | ||
}, | ||
}; | ||
function createBaseDenomHoldersResponse() { | ||
return { holders: [], next: [] }; | ||
} | ||
export const DenomHoldersResponse = { | ||
encode(message, writer = _m0.Writer.create()) { | ||
for (const v of message.holders) { | ||
Holder.encode(v, writer.uint32(10).fork()).ldelim(); | ||
} | ||
for (const v of message.next) { | ||
writer.uint32(18).string(v); | ||
} | ||
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 = createBaseDenomHoldersResponse(); | ||
while (reader.pos < end) { | ||
const tag = reader.uint32(); | ||
switch (tag >>> 3) { | ||
case 1: | ||
message.holders.push(Holder.decode(reader, reader.uint32())); | ||
break; | ||
case 2: | ||
message.next.push(reader.string()); | ||
break; | ||
default: | ||
reader.skipType(tag & 7); | ||
break; | ||
} | ||
} | ||
return message; | ||
}, | ||
fromJSON(object) { | ||
return { | ||
holders: Array.isArray(object === null || object === void 0 ? void 0 : object.holders) ? object.holders.map((e) => Holder.fromJSON(e)) : [], | ||
next: Array.isArray(object === null || object === void 0 ? void 0 : object.next) ? object.next.map((e) => String(e)) : [], | ||
}; | ||
}, | ||
toJSON(message) { | ||
const obj = {}; | ||
if (message.holders) { | ||
obj.holders = message.holders.map((e) => e ? Holder.toJSON(e) : undefined); | ||
} | ||
else { | ||
obj.holders = []; | ||
} | ||
if (message.next) { | ||
obj.next = message.next.map((e) => e); | ||
} | ||
else { | ||
obj.next = []; | ||
} | ||
return obj; | ||
}, | ||
create(base) { | ||
return DenomHoldersResponse.fromPartial(base !== null && base !== void 0 ? base : {}); | ||
}, | ||
fromPartial(object) { | ||
var _a, _b; | ||
const message = createBaseDenomHoldersResponse(); | ||
message.holders = ((_a = object.holders) === null || _a === void 0 ? void 0 : _a.map((e) => Holder.fromPartial(e))) || []; | ||
message.next = ((_b = object.next) === null || _b === void 0 ? void 0 : _b.map((e) => e)) || []; | ||
return message; | ||
}, | ||
}; | ||
function createBaseHolder() { | ||
return { accountAddress: "", balance: "" }; | ||
} | ||
export const Holder = { | ||
encode(message, writer = _m0.Writer.create()) { | ||
if (message.accountAddress !== "") { | ||
writer.uint32(10).string(message.accountAddress); | ||
} | ||
if (message.balance !== "") { | ||
writer.uint32(18).string(message.balance); | ||
} | ||
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 = createBaseHolder(); | ||
while (reader.pos < end) { | ||
const tag = reader.uint32(); | ||
switch (tag >>> 3) { | ||
case 1: | ||
message.accountAddress = reader.string(); | ||
break; | ||
case 2: | ||
message.balance = reader.string(); | ||
break; | ||
default: | ||
reader.skipType(tag & 7); | ||
break; | ||
} | ||
} | ||
return message; | ||
}, | ||
fromJSON(object) { | ||
return { | ||
accountAddress: isSet(object.accountAddress) ? String(object.accountAddress) : "", | ||
balance: isSet(object.balance) ? String(object.balance) : "", | ||
}; | ||
}, | ||
toJSON(message) { | ||
const obj = {}; | ||
message.accountAddress !== undefined && (obj.accountAddress = message.accountAddress); | ||
message.balance !== undefined && (obj.balance = message.balance); | ||
return obj; | ||
}, | ||
create(base) { | ||
return Holder.fromPartial(base !== null && base !== void 0 ? base : {}); | ||
}, | ||
fromPartial(object) { | ||
var _a, _b; | ||
const message = createBaseHolder(); | ||
message.accountAddress = (_a = object.accountAddress) !== null && _a !== void 0 ? _a : ""; | ||
message.balance = (_b = object.balance) !== null && _b !== void 0 ? _b : ""; | ||
return message; | ||
}, | ||
}; | ||
export class InjectiveArchiverRPCClientImpl { | ||
@@ -1193,2 +1380,3 @@ constructor(rpc) { | ||
this.VolLeaderboardFixedResolution = this.VolLeaderboardFixedResolution.bind(this); | ||
this.DenomHolders = this.DenomHolders.bind(this); | ||
} | ||
@@ -1216,2 +1404,5 @@ Balance(request, metadata) { | ||
} | ||
DenomHolders(request, metadata) { | ||
return this.rpc.unary(InjectiveArchiverRPCDenomHoldersDesc, DenomHoldersRequest.fromPartial(request), metadata); | ||
} | ||
} | ||
@@ -1352,2 +1543,21 @@ export const InjectiveArchiverRPCDesc = { serviceName: "injective_archiver_rpc.InjectiveArchiverRPC" }; | ||
}; | ||
export const InjectiveArchiverRPCDenomHoldersDesc = { | ||
methodName: "DenomHolders", | ||
service: InjectiveArchiverRPCDesc, | ||
requestStream: false, | ||
responseStream: false, | ||
requestType: { | ||
serializeBinary() { | ||
return DenomHoldersRequest.encode(this).finish(); | ||
}, | ||
}, | ||
responseType: { | ||
deserializeBinary(data) { | ||
const value = DenomHoldersResponse.decode(data); | ||
return Object.assign(Object.assign({}, value), { toObject() { | ||
return value; | ||
} }); | ||
}, | ||
}, | ||
}; | ||
export class GrpcWebImpl { | ||
@@ -1354,0 +1564,0 @@ constructor(host, options) { |
@@ -30,3 +30,3 @@ import { grpc } from "@injectivelabs/grpc-web"; | ||
expiry: string; | ||
/** Token metadata for the deposit asset, only for Ethereum-based assets */ | ||
/** Token metadata for the deposit asset */ | ||
depositTokenMeta: TokenMeta | undefined; | ||
@@ -37,3 +37,3 @@ } | ||
name: string; | ||
/** Token Ethereum contract address */ | ||
/** Token contract address (native or not) */ | ||
address: string; | ||
@@ -40,0 +40,0 @@ /** Token symbol short name */ |
@@ -30,7 +30,7 @@ import { grpc } from "@injectivelabs/grpc-web"; | ||
baseDenom: string; | ||
/** Token metadata for base asset, only for Ethereum-based assets */ | ||
/** Token metadata for base asset */ | ||
baseTokenMeta: TokenMeta | undefined; | ||
/** Coin denom used for the quote asset. */ | ||
quoteDenom: string; | ||
/** Token metadata for quote asset, only for Ethereum-based assets */ | ||
/** Token metadata for quote asset */ | ||
quoteTokenMeta: TokenMeta | undefined; | ||
@@ -53,3 +53,3 @@ /** Defines the fee percentage makers pay when trading (in quote asset) */ | ||
name: string; | ||
/** Token Ethereum contract address */ | ||
/** Token contract address (native or not) */ | ||
address: string; | ||
@@ -56,0 +56,0 @@ /** Token symbol short name */ |
{ | ||
"name": "@injectivelabs/indexer-proto-ts", | ||
"version": "1.11.48", | ||
"version": "1.11.49", | ||
"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
3869522
91874