@injectivelabs/indexer-proto-ts-v2 1.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/generated/event_provider_api_pb.client.d.ts +156 -0
- package/esm/generated/event_provider_api_pb.client.mjs +76 -0
- package/esm/generated/event_provider_api_pb.d.ts +1966 -0
- package/esm/generated/event_provider_api_pb.mjs +1761 -0
- package/esm/generated/health_pb.client.d.ts +53 -0
- package/esm/generated/health_pb.client.mjs +22 -0
- package/esm/generated/health_pb.d.ts +309 -0
- package/esm/generated/health_pb.mjs +265 -0
- package/esm/generated/injective_accounts_rpc_pb.client.d.ts +211 -0
- package/esm/generated/injective_accounts_rpc_pb.client.mjs +105 -0
- package/esm/generated/injective_accounts_rpc_pb.d.ts +5307 -0
- package/esm/generated/injective_accounts_rpc_pb.mjs +4784 -0
- package/esm/generated/injective_archiver_rpc_pb.client.d.ts +224 -0
- package/esm/generated/injective_archiver_rpc_pb.client.mjs +112 -0
- package/esm/generated/injective_archiver_rpc_pb.d.ts +2902 -0
- package/esm/generated/injective_archiver_rpc_pb.mjs +2561 -0
- package/esm/generated/injective_auction_rpc_pb.client.d.ts +173 -0
- package/esm/generated/injective_auction_rpc_pb.client.mjs +85 -0
- package/esm/generated/injective_auction_rpc_pb.d.ts +1986 -0
- package/esm/generated/injective_auction_rpc_pb.mjs +1787 -0
- package/esm/generated/injective_campaign_rpc_pb.client.d.ts +138 -0
- package/esm/generated/injective_campaign_rpc_pb.client.mjs +67 -0
- package/esm/generated/injective_campaign_rpc_pb.d.ts +2766 -0
- package/esm/generated/injective_campaign_rpc_pb.mjs +2542 -0
- package/esm/generated/injective_chart_rpc_pb.client.d.ts +159 -0
- package/esm/generated/injective_chart_rpc_pb.client.mjs +78 -0
- package/esm/generated/injective_chart_rpc_pb.d.ts +1840 -0
- package/esm/generated/injective_chart_rpc_pb.mjs +1690 -0
- package/esm/generated/injective_derivative_exchange_rpc_pb.client.d.ts +504 -0
- package/esm/generated/injective_derivative_exchange_rpc_pb.client.mjs +259 -0
- package/esm/generated/injective_derivative_exchange_rpc_pb.d.ts +9158 -0
- package/esm/generated/injective_derivative_exchange_rpc_pb.mjs +8351 -0
- package/esm/generated/injective_exchange_rpc_pb.client.d.ts +155 -0
- package/esm/generated/injective_exchange_rpc_pb.client.mjs +76 -0
- package/esm/generated/injective_exchange_rpc_pb.d.ts +1925 -0
- package/esm/generated/injective_exchange_rpc_pb.mjs +1740 -0
- package/esm/generated/injective_explorer_rpc_pb.client.d.ts +495 -0
- package/esm/generated/injective_explorer_rpc_pb.client.mjs +255 -0
- package/esm/generated/injective_explorer_rpc_pb.d.ts +9394 -0
- package/esm/generated/injective_explorer_rpc_pb.mjs +8921 -0
- package/esm/generated/injective_insurance_rpc_pb.client.d.ts +87 -0
- package/esm/generated/injective_insurance_rpc_pb.client.mjs +40 -0
- package/esm/generated/injective_insurance_rpc_pb.d.ts +904 -0
- package/esm/generated/injective_insurance_rpc_pb.mjs +807 -0
- package/esm/generated/injective_megavault_rpc_pb.client.d.ts +155 -0
- package/esm/generated/injective_megavault_rpc_pb.client.mjs +76 -0
- package/esm/generated/injective_megavault_rpc_pb.d.ts +3380 -0
- package/esm/generated/injective_megavault_rpc_pb.mjs +2987 -0
- package/esm/generated/injective_meta_rpc_pb.client.d.ts +124 -0
- package/esm/generated/injective_meta_rpc_pb.client.mjs +59 -0
- package/esm/generated/injective_meta_rpc_pb.d.ts +825 -0
- package/esm/generated/injective_meta_rpc_pb.mjs +716 -0
- package/esm/generated/injective_oracle_rpc_pb.client.d.ts +124 -0
- package/esm/generated/injective_oracle_rpc_pb.client.mjs +59 -0
- package/esm/generated/injective_oracle_rpc_pb.d.ts +1044 -0
- package/esm/generated/injective_oracle_rpc_pb.mjs +915 -0
- package/esm/generated/injective_portfolio_rpc_pb.client.d.ts +105 -0
- package/esm/generated/injective_portfolio_rpc_pb.client.mjs +49 -0
- package/esm/generated/injective_portfolio_rpc_pb.d.ts +1464 -0
- package/esm/generated/injective_portfolio_rpc_pb.mjs +1286 -0
- package/esm/generated/injective_referral_rpc_pb.client.d.ts +89 -0
- package/esm/generated/injective_referral_rpc_pb.client.mjs +41 -0
- package/esm/generated/injective_referral_rpc_pb.d.ts +575 -0
- package/esm/generated/injective_referral_rpc_pb.mjs +497 -0
- package/esm/generated/injective_spot_exchange_rpc_pb.client.d.ts +343 -0
- package/esm/generated/injective_spot_exchange_rpc_pb.client.mjs +175 -0
- package/esm/generated/injective_spot_exchange_rpc_pb.d.ts +5958 -0
- package/esm/generated/injective_spot_exchange_rpc_pb.mjs +5426 -0
- package/esm/generated/injective_trading_rpc_pb.client.d.ts +90 -0
- package/esm/generated/injective_trading_rpc_pb.client.mjs +40 -0
- package/esm/generated/injective_trading_rpc_pb.d.ts +1882 -0
- package/esm/generated/injective_trading_rpc_pb.mjs +1754 -0
- package/esm/index.d.ts +42 -0
- package/esm/index.mjs +74 -0
- package/package.json +48 -0
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
// @generated by protobuf-ts 2.11.1 with parameter add_pb_suffix
|
|
2
|
+
// @generated from protobuf file "injective_trading_rpc.proto" (package "injective_trading_rpc", syntax proto3)
|
|
3
|
+
// tslint:disable
|
|
4
|
+
//
|
|
5
|
+
// Code generated with goa v3.7.0, DO NOT EDIT.
|
|
6
|
+
//
|
|
7
|
+
// InjectiveTradingRPC protocol buffer definition
|
|
8
|
+
//
|
|
9
|
+
// Command:
|
|
10
|
+
// $ goa gen github.com/InjectiveLabs/injective-indexer/api/design -o ../
|
|
11
|
+
//
|
|
12
|
+
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
|
|
13
|
+
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
|
|
14
|
+
import { InjectiveTradingRPC } from "./injective_trading_rpc_pb";
|
|
15
|
+
import type { StreamStrategyResponse } from "./injective_trading_rpc_pb";
|
|
16
|
+
import type { StreamStrategyRequest } from "./injective_trading_rpc_pb";
|
|
17
|
+
import type { ServerStreamingCall } from "@protobuf-ts/runtime-rpc";
|
|
18
|
+
import type { GetTradingStatsResponse } from "./injective_trading_rpc_pb";
|
|
19
|
+
import type { GetTradingStatsRequest } from "./injective_trading_rpc_pb";
|
|
20
|
+
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
|
|
21
|
+
import type { ListTradingStrategiesResponse } from "./injective_trading_rpc_pb";
|
|
22
|
+
import type { ListTradingStrategiesRequest } from "./injective_trading_rpc_pb";
|
|
23
|
+
import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
|
|
24
|
+
import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
|
|
25
|
+
/**
|
|
26
|
+
* InjectiveTradingStrategiesRPC defined a gRPC service for Injective Trading
|
|
27
|
+
* Strategies.
|
|
28
|
+
*
|
|
29
|
+
* @generated from protobuf service injective_trading_rpc.InjectiveTradingRPC
|
|
30
|
+
*/
|
|
31
|
+
export interface IInjectiveTradingRPCClient {
|
|
32
|
+
/**
|
|
33
|
+
* Lists all trading strategies
|
|
34
|
+
*
|
|
35
|
+
* @generated from protobuf rpc: ListTradingStrategies
|
|
36
|
+
*/
|
|
37
|
+
listTradingStrategies(input: ListTradingStrategiesRequest, options?: RpcOptions): UnaryCall<ListTradingStrategiesRequest, ListTradingStrategiesResponse>;
|
|
38
|
+
/**
|
|
39
|
+
* GetStats returns global statistics in the last 24hs
|
|
40
|
+
*
|
|
41
|
+
* @generated from protobuf rpc: GetTradingStats
|
|
42
|
+
*/
|
|
43
|
+
getTradingStats(input: GetTradingStatsRequest, options?: RpcOptions): UnaryCall<GetTradingStatsRequest, GetTradingStatsResponse>;
|
|
44
|
+
/**
|
|
45
|
+
* StreamStrategy streams the trading strategies on state change
|
|
46
|
+
*
|
|
47
|
+
* @generated from protobuf rpc: StreamStrategy
|
|
48
|
+
*/
|
|
49
|
+
streamStrategy(input: StreamStrategyRequest, options?: RpcOptions): ServerStreamingCall<StreamStrategyRequest, StreamStrategyResponse>;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* InjectiveTradingStrategiesRPC defined a gRPC service for Injective Trading
|
|
53
|
+
* Strategies.
|
|
54
|
+
*
|
|
55
|
+
* @generated from protobuf service injective_trading_rpc.InjectiveTradingRPC
|
|
56
|
+
*/
|
|
57
|
+
export class InjectiveTradingRPCClient implements IInjectiveTradingRPCClient, ServiceInfo {
|
|
58
|
+
typeName = InjectiveTradingRPC.typeName;
|
|
59
|
+
methods = InjectiveTradingRPC.methods;
|
|
60
|
+
options = InjectiveTradingRPC.options;
|
|
61
|
+
constructor(private readonly _transport: RpcTransport) {
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Lists all trading strategies
|
|
65
|
+
*
|
|
66
|
+
* @generated from protobuf rpc: ListTradingStrategies
|
|
67
|
+
*/
|
|
68
|
+
listTradingStrategies(input: ListTradingStrategiesRequest, options?: RpcOptions): UnaryCall<ListTradingStrategiesRequest, ListTradingStrategiesResponse> {
|
|
69
|
+
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
|
70
|
+
return stackIntercept<ListTradingStrategiesRequest, ListTradingStrategiesResponse>("unary", this._transport, method, opt, input);
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* GetStats returns global statistics in the last 24hs
|
|
74
|
+
*
|
|
75
|
+
* @generated from protobuf rpc: GetTradingStats
|
|
76
|
+
*/
|
|
77
|
+
getTradingStats(input: GetTradingStatsRequest, options?: RpcOptions): UnaryCall<GetTradingStatsRequest, GetTradingStatsResponse> {
|
|
78
|
+
const method = this.methods[1], opt = this._transport.mergeOptions(options);
|
|
79
|
+
return stackIntercept<GetTradingStatsRequest, GetTradingStatsResponse>("unary", this._transport, method, opt, input);
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* StreamStrategy streams the trading strategies on state change
|
|
83
|
+
*
|
|
84
|
+
* @generated from protobuf rpc: StreamStrategy
|
|
85
|
+
*/
|
|
86
|
+
streamStrategy(input: StreamStrategyRequest, options?: RpcOptions): ServerStreamingCall<StreamStrategyRequest, StreamStrategyResponse> {
|
|
87
|
+
const method = this.methods[2], opt = this._transport.mergeOptions(options);
|
|
88
|
+
return stackIntercept<StreamStrategyRequest, StreamStrategyResponse>("serverStreaming", this._transport, method, opt, input);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { InjectiveTradingRPC } from "./injective_trading_rpc_pb.mjs";
|
|
2
|
+
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
|
|
3
|
+
class InjectiveTradingRPCClient {
|
|
4
|
+
constructor(_transport) {
|
|
5
|
+
this._transport = _transport;
|
|
6
|
+
this.typeName = InjectiveTradingRPC.typeName;
|
|
7
|
+
this.methods = InjectiveTradingRPC.methods;
|
|
8
|
+
this.options = InjectiveTradingRPC.options;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Lists all trading strategies
|
|
12
|
+
*
|
|
13
|
+
* @generated from protobuf rpc: ListTradingStrategies
|
|
14
|
+
*/
|
|
15
|
+
listTradingStrategies(input, options) {
|
|
16
|
+
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
|
17
|
+
return stackIntercept("unary", this._transport, method, opt, input);
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* GetStats returns global statistics in the last 24hs
|
|
21
|
+
*
|
|
22
|
+
* @generated from protobuf rpc: GetTradingStats
|
|
23
|
+
*/
|
|
24
|
+
getTradingStats(input, options) {
|
|
25
|
+
const method = this.methods[1], opt = this._transport.mergeOptions(options);
|
|
26
|
+
return stackIntercept("unary", this._transport, method, opt, input);
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* StreamStrategy streams the trading strategies on state change
|
|
30
|
+
*
|
|
31
|
+
* @generated from protobuf rpc: StreamStrategy
|
|
32
|
+
*/
|
|
33
|
+
streamStrategy(input, options) {
|
|
34
|
+
const method = this.methods[2], opt = this._transport.mergeOptions(options);
|
|
35
|
+
return stackIntercept("serverStreaming", this._transport, method, opt, input);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
export {
|
|
39
|
+
InjectiveTradingRPCClient
|
|
40
|
+
};
|