Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@injectivelabs/chain-api

Package Overview
Dependencies
Maintainers
8
Versions
133
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@injectivelabs/chain-api - npm Package Compare versions

Comparing version 1.1.12 to 1.1.13

4

injective/orders/v1beta1/orders_pb.d.ts

@@ -403,2 +403,5 @@ // package: injective.orders.v1beta1

getMargin(): string;
setMargin(value: string): void;
serializeBinary(): Uint8Array;

@@ -421,2 +424,3 @@ toObject(includeInstance?: boolean): PositionInfo.AsObject;

cumulativefundingentry: string,
margin: string,
}

@@ -423,0 +427,0 @@ }

@@ -142,2 +142,11 @@ // package: injective.orders.v1beta1

type QueryQueryUnderMarginedAccounts = {
readonly methodName: string;
readonly service: typeof Query;
readonly requestStream: false;
readonly responseStream: false;
readonly requestType: typeof injective_orders_v1beta1_query_pb.QueryUnderMarginedAccountsRequest;
readonly responseType: typeof injective_orders_v1beta1_query_pb.QueryUnderMarginedAccountsResponse;
};
export class Query {

@@ -160,2 +169,3 @@ static readonly serviceName: string;

static readonly QueryTraderSubaccountsInfo: QueryQueryTraderSubaccountsInfo;
static readonly QueryUnderMarginedAccounts: QueryQueryUnderMarginedAccounts;
}

@@ -330,3 +340,12 @@

): UnaryResponse;
queryUnderMarginedAccounts(
requestMessage: injective_orders_v1beta1_query_pb.QueryUnderMarginedAccountsRequest,
metadata: grpc.Metadata,
callback: (error: ServiceError|null, responseMessage: injective_orders_v1beta1_query_pb.QueryUnderMarginedAccountsResponse|null) => void
): UnaryResponse;
queryUnderMarginedAccounts(
requestMessage: injective_orders_v1beta1_query_pb.QueryUnderMarginedAccountsRequest,
callback: (error: ServiceError|null, responseMessage: injective_orders_v1beta1_query_pb.QueryUnderMarginedAccountsResponse|null) => void
): UnaryResponse;
}

@@ -148,2 +148,11 @@ // package: injective.orders.v1beta1

Query.QueryUnderMarginedAccounts = {
methodName: "QueryUnderMarginedAccounts",
service: Query,
requestStream: false,
responseStream: false,
requestType: injective_orders_v1beta1_query_pb.QueryUnderMarginedAccountsRequest,
responseType: injective_orders_v1beta1_query_pb.QueryUnderMarginedAccountsResponse
};
exports.Query = Query;

@@ -621,3 +630,34 @@

QueryClient.prototype.queryUnderMarginedAccounts = function queryUnderMarginedAccounts(requestMessage, metadata, callback) {
if (arguments.length === 2) {
callback = arguments[1];
}
var client = grpc.unary(Query.QueryUnderMarginedAccounts, {
request: requestMessage,
host: this.serviceHost,
metadata: metadata,
transport: this.options.transport,
debug: this.options.debug,
onEnd: function (response) {
if (callback) {
if (response.status !== grpc.Code.OK) {
var err = new Error(response.statusMessage);
err.code = response.status;
err.metadata = response.trailers;
callback(err, null);
} else {
callback(null, response.message);
}
}
}
});
return {
cancel: function () {
callback = null;
client.close();
}
};
};
exports.QueryClient = QueryClient;

@@ -406,2 +406,80 @@ // package: injective.orders.v1beta1

export class QueryUnderMarginedAccountsRequest extends jspb.Message {
getBaseCurrency(): string;
setBaseCurrency(value: string): void;
getExchangeAddress(): string;
setExchangeAddress(value: string): void;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): QueryUnderMarginedAccountsRequest.AsObject;
static toObject(includeInstance: boolean, msg: QueryUnderMarginedAccountsRequest): QueryUnderMarginedAccountsRequest.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
static serializeBinaryToWriter(message: QueryUnderMarginedAccountsRequest, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): QueryUnderMarginedAccountsRequest;
static deserializeBinaryFromReader(message: QueryUnderMarginedAccountsRequest, reader: jspb.BinaryReader): QueryUnderMarginedAccountsRequest;
}
export namespace QueryUnderMarginedAccountsRequest {
export type AsObject = {
baseCurrency: string,
exchangeAddress: string,
}
}
export class QueryUnderMarginedAccountsResponse extends jspb.Message {
clearAccountsList(): void;
getAccountsList(): Array<UnderMarginedAccount>;
setAccountsList(value: Array<UnderMarginedAccount>): void;
addAccounts(value?: UnderMarginedAccount, index?: number): UnderMarginedAccount;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): QueryUnderMarginedAccountsResponse.AsObject;
static toObject(includeInstance: boolean, msg: QueryUnderMarginedAccountsResponse): QueryUnderMarginedAccountsResponse.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
static serializeBinaryToWriter(message: QueryUnderMarginedAccountsResponse, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): QueryUnderMarginedAccountsResponse;
static deserializeBinaryFromReader(message: QueryUnderMarginedAccountsResponse, reader: jspb.BinaryReader): QueryUnderMarginedAccountsResponse;
}
export namespace QueryUnderMarginedAccountsResponse {
export type AsObject = {
accountsList: Array<UnderMarginedAccount.AsObject>,
}
}
export class UnderMarginedAccount extends jspb.Message {
getMakerAddress(): string;
setMakerAddress(value: string): void;
getSubaccountNonce(): string;
setSubaccountNonce(value: string): void;
getSubaccountId(): string;
setSubaccountId(value: string): void;
getMissingAmount(): string;
setMissingAmount(value: string): void;
serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): UnderMarginedAccount.AsObject;
static toObject(includeInstance: boolean, msg: UnderMarginedAccount): UnderMarginedAccount.AsObject;
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
static serializeBinaryToWriter(message: UnderMarginedAccount, writer: jspb.BinaryWriter): void;
static deserializeBinary(bytes: Uint8Array): UnderMarginedAccount;
static deserializeBinaryFromReader(message: UnderMarginedAccount, reader: jspb.BinaryReader): UnderMarginedAccount;
}
export namespace UnderMarginedAccount {
export type AsObject = {
makerAddress: string,
subaccountNonce: string,
subaccountId: string,
missingAmount: string,
}
}
export class OrderFilters extends jspb.Message {

@@ -408,0 +486,0 @@ getContractPriceBound(): string;

2

package.json
{
"name": "@injectivelabs/chain-api",
"version": "1.1.12",
"version": "1.1.13",
"description": "Injective Chain API Query client with generated gRPC bindings.",

@@ -5,0 +5,0 @@ "scripts": {

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 not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc