@injectivelabs/indexer-proto-ts-v2 1.0.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/generated/event_provider_api_pb.client.d.ts +156 -0
- package/generated/event_provider_api_pb.client.js +76 -0
- package/generated/event_provider_api_pb.d.ts +1980 -0
- package/generated/event_provider_api_pb.js +1776 -0
- package/generated/health_pb.client.d.ts +53 -0
- package/generated/health_pb.client.js +22 -0
- package/generated/health_pb.d.ts +309 -0
- package/generated/health_pb.js +265 -0
- package/generated/injective_accounts_rpc_pb.client.d.ts +211 -0
- package/generated/injective_accounts_rpc_pb.client.js +105 -0
- package/generated/injective_accounts_rpc_pb.d.ts +5307 -0
- package/generated/injective_accounts_rpc_pb.js +4784 -0
- package/generated/injective_archiver_rpc_pb.client.d.ts +224 -0
- package/generated/injective_archiver_rpc_pb.client.js +112 -0
- package/generated/injective_archiver_rpc_pb.d.ts +2944 -0
- package/generated/injective_archiver_rpc_pb.js +2603 -0
- package/generated/injective_auction_rpc_pb.client.d.ts +190 -0
- package/generated/injective_auction_rpc_pb.client.js +94 -0
- package/generated/injective_auction_rpc_pb.d.ts +2131 -0
- package/generated/injective_auction_rpc_pb.js +1917 -0
- package/generated/injective_campaign_rpc_pb.client.d.ts +138 -0
- package/generated/injective_campaign_rpc_pb.client.js +67 -0
- package/generated/injective_campaign_rpc_pb.d.ts +2766 -0
- package/generated/injective_campaign_rpc_pb.js +2542 -0
- package/generated/injective_chart_rpc_pb.client.d.ts +159 -0
- package/generated/injective_chart_rpc_pb.client.js +78 -0
- package/generated/injective_chart_rpc_pb.d.ts +1840 -0
- package/generated/injective_chart_rpc_pb.js +1690 -0
- package/generated/injective_derivative_exchange_rpc_pb.client.d.ts +504 -0
- package/generated/injective_derivative_exchange_rpc_pb.client.js +259 -0
- package/generated/injective_derivative_exchange_rpc_pb.d.ts +9214 -0
- package/generated/injective_derivative_exchange_rpc_pb.js +8407 -0
- package/generated/injective_exchange_rpc_pb.client.d.ts +155 -0
- package/generated/injective_exchange_rpc_pb.client.js +76 -0
- package/generated/injective_exchange_rpc_pb.d.ts +1925 -0
- package/generated/injective_exchange_rpc_pb.js +1740 -0
- package/generated/injective_explorer_rpc_pb.client.d.ts +495 -0
- package/generated/injective_explorer_rpc_pb.client.js +255 -0
- package/generated/injective_explorer_rpc_pb.d.ts +9394 -0
- package/generated/injective_explorer_rpc_pb.js +8921 -0
- package/generated/injective_insurance_rpc_pb.client.d.ts +87 -0
- package/generated/injective_insurance_rpc_pb.client.js +40 -0
- package/generated/injective_insurance_rpc_pb.d.ts +904 -0
- package/generated/injective_insurance_rpc_pb.js +807 -0
- package/generated/injective_megavault_rpc_pb.client.d.ts +155 -0
- package/generated/injective_megavault_rpc_pb.client.js +76 -0
- package/generated/injective_megavault_rpc_pb.d.ts +3408 -0
- package/generated/injective_megavault_rpc_pb.js +3019 -0
- package/generated/injective_meta_rpc_pb.client.d.ts +124 -0
- package/generated/injective_meta_rpc_pb.client.js +59 -0
- package/generated/injective_meta_rpc_pb.d.ts +825 -0
- package/generated/injective_meta_rpc_pb.js +716 -0
- package/generated/injective_oracle_rpc_pb.client.d.ts +124 -0
- package/generated/injective_oracle_rpc_pb.client.js +59 -0
- package/generated/injective_oracle_rpc_pb.d.ts +1117 -0
- package/generated/injective_oracle_rpc_pb.js +987 -0
- package/generated/injective_portfolio_rpc_pb.client.d.ts +105 -0
- package/generated/injective_portfolio_rpc_pb.client.js +49 -0
- package/generated/injective_portfolio_rpc_pb.d.ts +1492 -0
- package/generated/injective_portfolio_rpc_pb.js +1314 -0
- package/generated/injective_referral_rpc_pb.client.d.ts +89 -0
- package/generated/injective_referral_rpc_pb.client.js +41 -0
- package/generated/injective_referral_rpc_pb.d.ts +575 -0
- package/generated/injective_referral_rpc_pb.js +497 -0
- package/generated/injective_rfqrpc_pb.client.d.ts +208 -0
- package/generated/injective_rfqrpc_pb.client.js +103 -0
- package/generated/injective_rfqrpc_pb.d.ts +2241 -0
- package/generated/injective_rfqrpc_pb.js +1940 -0
- package/generated/injective_spot_exchange_rpc_pb.client.d.ts +343 -0
- package/generated/injective_spot_exchange_rpc_pb.client.js +175 -0
- package/generated/injective_spot_exchange_rpc_pb.d.ts +5958 -0
- package/generated/injective_spot_exchange_rpc_pb.js +5426 -0
- package/generated/injective_trading_rpc_pb.client.d.ts +90 -0
- package/generated/injective_trading_rpc_pb.client.js +40 -0
- package/generated/injective_trading_rpc_pb.d.ts +1882 -0
- package/generated/injective_trading_rpc_pb.js +1754 -0
- package/index.d.ts +43 -0
- package/index.js +78 -0
- package/package.json +37 -0
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
// @generated by protobuf-ts 2.11.1 with parameter add_pb_suffix
|
|
2
|
+
// @generated from protobuf file "injective_chart_rpc.proto" (package "injective_chart_rpc", syntax proto3)
|
|
3
|
+
// tslint:disable
|
|
4
|
+
//
|
|
5
|
+
// Code generated with goa v3.7.0, DO NOT EDIT.
|
|
6
|
+
//
|
|
7
|
+
// InjectiveChartRPC 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 { InjectiveChartRPC } from "./injective_chart_rpc_pb";
|
|
15
|
+
import type { MarketSnapshotResponse } from "./injective_chart_rpc_pb";
|
|
16
|
+
import type { MarketSnapshotRequest } from "./injective_chart_rpc_pb";
|
|
17
|
+
import type { AllDerivativeMarketSummaryResponse } from "./injective_chart_rpc_pb";
|
|
18
|
+
import type { AllDerivativeMarketSummaryRequest } from "./injective_chart_rpc_pb";
|
|
19
|
+
import type { DerivativeMarketSummaryResponse } from "./injective_chart_rpc_pb";
|
|
20
|
+
import type { DerivativeMarketSummaryRequest } from "./injective_chart_rpc_pb";
|
|
21
|
+
import type { AllSpotMarketSummaryResponse } from "./injective_chart_rpc_pb";
|
|
22
|
+
import type { AllSpotMarketSummaryRequest } from "./injective_chart_rpc_pb";
|
|
23
|
+
import type { SpotMarketSummaryResponse } from "./injective_chart_rpc_pb";
|
|
24
|
+
import type { SpotMarketSummaryRequest } from "./injective_chart_rpc_pb";
|
|
25
|
+
import type { DerivativeMarketHistoryResponse } from "./injective_chart_rpc_pb";
|
|
26
|
+
import type { DerivativeMarketHistoryRequest } from "./injective_chart_rpc_pb";
|
|
27
|
+
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
|
|
28
|
+
import type { SpotMarketHistoryResponse } from "./injective_chart_rpc_pb";
|
|
29
|
+
import type { SpotMarketHistoryRequest } from "./injective_chart_rpc_pb";
|
|
30
|
+
import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
|
|
31
|
+
import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
|
|
32
|
+
/**
|
|
33
|
+
* InjectiveChartRPC implements historical chart data retrieval.
|
|
34
|
+
*
|
|
35
|
+
* @generated from protobuf service injective_chart_rpc.InjectiveChartRPC
|
|
36
|
+
*/
|
|
37
|
+
export interface IInjectiveChartRPCClient {
|
|
38
|
+
/**
|
|
39
|
+
* Request for history bars of spotMarket for TradingView.
|
|
40
|
+
*
|
|
41
|
+
* @generated from protobuf rpc: SpotMarketHistory
|
|
42
|
+
*/
|
|
43
|
+
spotMarketHistory(input: SpotMarketHistoryRequest, options?: RpcOptions): UnaryCall<SpotMarketHistoryRequest, SpotMarketHistoryResponse>;
|
|
44
|
+
/**
|
|
45
|
+
* Request for history bars of derivativeMarket for TradingView.
|
|
46
|
+
*
|
|
47
|
+
* @generated from protobuf rpc: DerivativeMarketHistory
|
|
48
|
+
*/
|
|
49
|
+
derivativeMarketHistory(input: DerivativeMarketHistoryRequest, options?: RpcOptions): UnaryCall<DerivativeMarketHistoryRequest, DerivativeMarketHistoryResponse>;
|
|
50
|
+
/**
|
|
51
|
+
* Gets spot market summary for the latest interval (hour, day, month)
|
|
52
|
+
*
|
|
53
|
+
* @generated from protobuf rpc: SpotMarketSummary
|
|
54
|
+
*/
|
|
55
|
+
spotMarketSummary(input: SpotMarketSummaryRequest, options?: RpcOptions): UnaryCall<SpotMarketSummaryRequest, SpotMarketSummaryResponse>;
|
|
56
|
+
/**
|
|
57
|
+
* Gets batch summary for all active markets, for the latest interval (hour,
|
|
58
|
+
* day, month)
|
|
59
|
+
*
|
|
60
|
+
* @generated from protobuf rpc: AllSpotMarketSummary
|
|
61
|
+
*/
|
|
62
|
+
allSpotMarketSummary(input: AllSpotMarketSummaryRequest, options?: RpcOptions): UnaryCall<AllSpotMarketSummaryRequest, AllSpotMarketSummaryResponse>;
|
|
63
|
+
/**
|
|
64
|
+
* Gets derivative market summary for the latest interval (hour, day, month)
|
|
65
|
+
*
|
|
66
|
+
* @generated from protobuf rpc: DerivativeMarketSummary
|
|
67
|
+
*/
|
|
68
|
+
derivativeMarketSummary(input: DerivativeMarketSummaryRequest, options?: RpcOptions): UnaryCall<DerivativeMarketSummaryRequest, DerivativeMarketSummaryResponse>;
|
|
69
|
+
/**
|
|
70
|
+
* Gets batch summary for all active markets, for the latest interval (hour,
|
|
71
|
+
* day, month)
|
|
72
|
+
*
|
|
73
|
+
* @generated from protobuf rpc: AllDerivativeMarketSummary
|
|
74
|
+
*/
|
|
75
|
+
allDerivativeMarketSummary(input: AllDerivativeMarketSummaryRequest, options?: RpcOptions): UnaryCall<AllDerivativeMarketSummaryRequest, AllDerivativeMarketSummaryResponse>;
|
|
76
|
+
/**
|
|
77
|
+
* Request for cached markets history bars. Max age is 1h.
|
|
78
|
+
*
|
|
79
|
+
* @generated from protobuf rpc: MarketSnapshot
|
|
80
|
+
*/
|
|
81
|
+
marketSnapshot(input: MarketSnapshotRequest, options?: RpcOptions): UnaryCall<MarketSnapshotRequest, MarketSnapshotResponse>;
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* InjectiveChartRPC implements historical chart data retrieval.
|
|
85
|
+
*
|
|
86
|
+
* @generated from protobuf service injective_chart_rpc.InjectiveChartRPC
|
|
87
|
+
*/
|
|
88
|
+
export class InjectiveChartRPCClient implements IInjectiveChartRPCClient, ServiceInfo {
|
|
89
|
+
typeName = InjectiveChartRPC.typeName;
|
|
90
|
+
methods = InjectiveChartRPC.methods;
|
|
91
|
+
options = InjectiveChartRPC.options;
|
|
92
|
+
constructor(private readonly _transport: RpcTransport) {
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Request for history bars of spotMarket for TradingView.
|
|
96
|
+
*
|
|
97
|
+
* @generated from protobuf rpc: SpotMarketHistory
|
|
98
|
+
*/
|
|
99
|
+
spotMarketHistory(input: SpotMarketHistoryRequest, options?: RpcOptions): UnaryCall<SpotMarketHistoryRequest, SpotMarketHistoryResponse> {
|
|
100
|
+
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
|
101
|
+
return stackIntercept<SpotMarketHistoryRequest, SpotMarketHistoryResponse>("unary", this._transport, method, opt, input);
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Request for history bars of derivativeMarket for TradingView.
|
|
105
|
+
*
|
|
106
|
+
* @generated from protobuf rpc: DerivativeMarketHistory
|
|
107
|
+
*/
|
|
108
|
+
derivativeMarketHistory(input: DerivativeMarketHistoryRequest, options?: RpcOptions): UnaryCall<DerivativeMarketHistoryRequest, DerivativeMarketHistoryResponse> {
|
|
109
|
+
const method = this.methods[1], opt = this._transport.mergeOptions(options);
|
|
110
|
+
return stackIntercept<DerivativeMarketHistoryRequest, DerivativeMarketHistoryResponse>("unary", this._transport, method, opt, input);
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Gets spot market summary for the latest interval (hour, day, month)
|
|
114
|
+
*
|
|
115
|
+
* @generated from protobuf rpc: SpotMarketSummary
|
|
116
|
+
*/
|
|
117
|
+
spotMarketSummary(input: SpotMarketSummaryRequest, options?: RpcOptions): UnaryCall<SpotMarketSummaryRequest, SpotMarketSummaryResponse> {
|
|
118
|
+
const method = this.methods[2], opt = this._transport.mergeOptions(options);
|
|
119
|
+
return stackIntercept<SpotMarketSummaryRequest, SpotMarketSummaryResponse>("unary", this._transport, method, opt, input);
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* Gets batch summary for all active markets, for the latest interval (hour,
|
|
123
|
+
* day, month)
|
|
124
|
+
*
|
|
125
|
+
* @generated from protobuf rpc: AllSpotMarketSummary
|
|
126
|
+
*/
|
|
127
|
+
allSpotMarketSummary(input: AllSpotMarketSummaryRequest, options?: RpcOptions): UnaryCall<AllSpotMarketSummaryRequest, AllSpotMarketSummaryResponse> {
|
|
128
|
+
const method = this.methods[3], opt = this._transport.mergeOptions(options);
|
|
129
|
+
return stackIntercept<AllSpotMarketSummaryRequest, AllSpotMarketSummaryResponse>("unary", this._transport, method, opt, input);
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* Gets derivative market summary for the latest interval (hour, day, month)
|
|
133
|
+
*
|
|
134
|
+
* @generated from protobuf rpc: DerivativeMarketSummary
|
|
135
|
+
*/
|
|
136
|
+
derivativeMarketSummary(input: DerivativeMarketSummaryRequest, options?: RpcOptions): UnaryCall<DerivativeMarketSummaryRequest, DerivativeMarketSummaryResponse> {
|
|
137
|
+
const method = this.methods[4], opt = this._transport.mergeOptions(options);
|
|
138
|
+
return stackIntercept<DerivativeMarketSummaryRequest, DerivativeMarketSummaryResponse>("unary", this._transport, method, opt, input);
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* Gets batch summary for all active markets, for the latest interval (hour,
|
|
142
|
+
* day, month)
|
|
143
|
+
*
|
|
144
|
+
* @generated from protobuf rpc: AllDerivativeMarketSummary
|
|
145
|
+
*/
|
|
146
|
+
allDerivativeMarketSummary(input: AllDerivativeMarketSummaryRequest, options?: RpcOptions): UnaryCall<AllDerivativeMarketSummaryRequest, AllDerivativeMarketSummaryResponse> {
|
|
147
|
+
const method = this.methods[5], opt = this._transport.mergeOptions(options);
|
|
148
|
+
return stackIntercept<AllDerivativeMarketSummaryRequest, AllDerivativeMarketSummaryResponse>("unary", this._transport, method, opt, input);
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* Request for cached markets history bars. Max age is 1h.
|
|
152
|
+
*
|
|
153
|
+
* @generated from protobuf rpc: MarketSnapshot
|
|
154
|
+
*/
|
|
155
|
+
marketSnapshot(input: MarketSnapshotRequest, options?: RpcOptions): UnaryCall<MarketSnapshotRequest, MarketSnapshotResponse> {
|
|
156
|
+
const method = this.methods[6], opt = this._transport.mergeOptions(options);
|
|
157
|
+
return stackIntercept<MarketSnapshotRequest, MarketSnapshotResponse>("unary", this._transport, method, opt, input);
|
|
158
|
+
}
|
|
159
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { InjectiveChartRPC } from "./injective_chart_rpc_pb.js";
|
|
2
|
+
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
|
|
3
|
+
class InjectiveChartRPCClient {
|
|
4
|
+
constructor(_transport) {
|
|
5
|
+
this._transport = _transport;
|
|
6
|
+
this.typeName = InjectiveChartRPC.typeName;
|
|
7
|
+
this.methods = InjectiveChartRPC.methods;
|
|
8
|
+
this.options = InjectiveChartRPC.options;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Request for history bars of spotMarket for TradingView.
|
|
12
|
+
*
|
|
13
|
+
* @generated from protobuf rpc: SpotMarketHistory
|
|
14
|
+
*/
|
|
15
|
+
spotMarketHistory(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
|
+
* Request for history bars of derivativeMarket for TradingView.
|
|
21
|
+
*
|
|
22
|
+
* @generated from protobuf rpc: DerivativeMarketHistory
|
|
23
|
+
*/
|
|
24
|
+
derivativeMarketHistory(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
|
+
* Gets spot market summary for the latest interval (hour, day, month)
|
|
30
|
+
*
|
|
31
|
+
* @generated from protobuf rpc: SpotMarketSummary
|
|
32
|
+
*/
|
|
33
|
+
spotMarketSummary(input, options) {
|
|
34
|
+
const method = this.methods[2], opt = this._transport.mergeOptions(options);
|
|
35
|
+
return stackIntercept("unary", this._transport, method, opt, input);
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Gets batch summary for all active markets, for the latest interval (hour,
|
|
39
|
+
* day, month)
|
|
40
|
+
*
|
|
41
|
+
* @generated from protobuf rpc: AllSpotMarketSummary
|
|
42
|
+
*/
|
|
43
|
+
allSpotMarketSummary(input, options) {
|
|
44
|
+
const method = this.methods[3], opt = this._transport.mergeOptions(options);
|
|
45
|
+
return stackIntercept("unary", this._transport, method, opt, input);
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Gets derivative market summary for the latest interval (hour, day, month)
|
|
49
|
+
*
|
|
50
|
+
* @generated from protobuf rpc: DerivativeMarketSummary
|
|
51
|
+
*/
|
|
52
|
+
derivativeMarketSummary(input, options) {
|
|
53
|
+
const method = this.methods[4], opt = this._transport.mergeOptions(options);
|
|
54
|
+
return stackIntercept("unary", this._transport, method, opt, input);
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Gets batch summary for all active markets, for the latest interval (hour,
|
|
58
|
+
* day, month)
|
|
59
|
+
*
|
|
60
|
+
* @generated from protobuf rpc: AllDerivativeMarketSummary
|
|
61
|
+
*/
|
|
62
|
+
allDerivativeMarketSummary(input, options) {
|
|
63
|
+
const method = this.methods[5], opt = this._transport.mergeOptions(options);
|
|
64
|
+
return stackIntercept("unary", this._transport, method, opt, input);
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Request for cached markets history bars. Max age is 1h.
|
|
68
|
+
*
|
|
69
|
+
* @generated from protobuf rpc: MarketSnapshot
|
|
70
|
+
*/
|
|
71
|
+
marketSnapshot(input, options) {
|
|
72
|
+
const method = this.methods[6], opt = this._transport.mergeOptions(options);
|
|
73
|
+
return stackIntercept("unary", this._transport, method, opt, input);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
export {
|
|
77
|
+
InjectiveChartRPCClient
|
|
78
|
+
};
|