@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.
Files changed (79) hide show
  1. package/generated/event_provider_api_pb.client.d.ts +156 -0
  2. package/generated/event_provider_api_pb.client.js +76 -0
  3. package/generated/event_provider_api_pb.d.ts +1980 -0
  4. package/generated/event_provider_api_pb.js +1776 -0
  5. package/generated/health_pb.client.d.ts +53 -0
  6. package/generated/health_pb.client.js +22 -0
  7. package/generated/health_pb.d.ts +309 -0
  8. package/generated/health_pb.js +265 -0
  9. package/generated/injective_accounts_rpc_pb.client.d.ts +211 -0
  10. package/generated/injective_accounts_rpc_pb.client.js +105 -0
  11. package/generated/injective_accounts_rpc_pb.d.ts +5307 -0
  12. package/generated/injective_accounts_rpc_pb.js +4784 -0
  13. package/generated/injective_archiver_rpc_pb.client.d.ts +224 -0
  14. package/generated/injective_archiver_rpc_pb.client.js +112 -0
  15. package/generated/injective_archiver_rpc_pb.d.ts +2944 -0
  16. package/generated/injective_archiver_rpc_pb.js +2603 -0
  17. package/generated/injective_auction_rpc_pb.client.d.ts +190 -0
  18. package/generated/injective_auction_rpc_pb.client.js +94 -0
  19. package/generated/injective_auction_rpc_pb.d.ts +2131 -0
  20. package/generated/injective_auction_rpc_pb.js +1917 -0
  21. package/generated/injective_campaign_rpc_pb.client.d.ts +138 -0
  22. package/generated/injective_campaign_rpc_pb.client.js +67 -0
  23. package/generated/injective_campaign_rpc_pb.d.ts +2766 -0
  24. package/generated/injective_campaign_rpc_pb.js +2542 -0
  25. package/generated/injective_chart_rpc_pb.client.d.ts +159 -0
  26. package/generated/injective_chart_rpc_pb.client.js +78 -0
  27. package/generated/injective_chart_rpc_pb.d.ts +1840 -0
  28. package/generated/injective_chart_rpc_pb.js +1690 -0
  29. package/generated/injective_derivative_exchange_rpc_pb.client.d.ts +504 -0
  30. package/generated/injective_derivative_exchange_rpc_pb.client.js +259 -0
  31. package/generated/injective_derivative_exchange_rpc_pb.d.ts +9214 -0
  32. package/generated/injective_derivative_exchange_rpc_pb.js +8407 -0
  33. package/generated/injective_exchange_rpc_pb.client.d.ts +155 -0
  34. package/generated/injective_exchange_rpc_pb.client.js +76 -0
  35. package/generated/injective_exchange_rpc_pb.d.ts +1925 -0
  36. package/generated/injective_exchange_rpc_pb.js +1740 -0
  37. package/generated/injective_explorer_rpc_pb.client.d.ts +495 -0
  38. package/generated/injective_explorer_rpc_pb.client.js +255 -0
  39. package/generated/injective_explorer_rpc_pb.d.ts +9394 -0
  40. package/generated/injective_explorer_rpc_pb.js +8921 -0
  41. package/generated/injective_insurance_rpc_pb.client.d.ts +87 -0
  42. package/generated/injective_insurance_rpc_pb.client.js +40 -0
  43. package/generated/injective_insurance_rpc_pb.d.ts +904 -0
  44. package/generated/injective_insurance_rpc_pb.js +807 -0
  45. package/generated/injective_megavault_rpc_pb.client.d.ts +155 -0
  46. package/generated/injective_megavault_rpc_pb.client.js +76 -0
  47. package/generated/injective_megavault_rpc_pb.d.ts +3408 -0
  48. package/generated/injective_megavault_rpc_pb.js +3019 -0
  49. package/generated/injective_meta_rpc_pb.client.d.ts +124 -0
  50. package/generated/injective_meta_rpc_pb.client.js +59 -0
  51. package/generated/injective_meta_rpc_pb.d.ts +825 -0
  52. package/generated/injective_meta_rpc_pb.js +716 -0
  53. package/generated/injective_oracle_rpc_pb.client.d.ts +124 -0
  54. package/generated/injective_oracle_rpc_pb.client.js +59 -0
  55. package/generated/injective_oracle_rpc_pb.d.ts +1117 -0
  56. package/generated/injective_oracle_rpc_pb.js +987 -0
  57. package/generated/injective_portfolio_rpc_pb.client.d.ts +105 -0
  58. package/generated/injective_portfolio_rpc_pb.client.js +49 -0
  59. package/generated/injective_portfolio_rpc_pb.d.ts +1492 -0
  60. package/generated/injective_portfolio_rpc_pb.js +1314 -0
  61. package/generated/injective_referral_rpc_pb.client.d.ts +89 -0
  62. package/generated/injective_referral_rpc_pb.client.js +41 -0
  63. package/generated/injective_referral_rpc_pb.d.ts +575 -0
  64. package/generated/injective_referral_rpc_pb.js +497 -0
  65. package/generated/injective_rfqrpc_pb.client.d.ts +208 -0
  66. package/generated/injective_rfqrpc_pb.client.js +103 -0
  67. package/generated/injective_rfqrpc_pb.d.ts +2241 -0
  68. package/generated/injective_rfqrpc_pb.js +1940 -0
  69. package/generated/injective_spot_exchange_rpc_pb.client.d.ts +343 -0
  70. package/generated/injective_spot_exchange_rpc_pb.client.js +175 -0
  71. package/generated/injective_spot_exchange_rpc_pb.d.ts +5958 -0
  72. package/generated/injective_spot_exchange_rpc_pb.js +5426 -0
  73. package/generated/injective_trading_rpc_pb.client.d.ts +90 -0
  74. package/generated/injective_trading_rpc_pb.client.js +40 -0
  75. package/generated/injective_trading_rpc_pb.d.ts +1882 -0
  76. package/generated/injective_trading_rpc_pb.js +1754 -0
  77. package/index.d.ts +43 -0
  78. package/index.js +78 -0
  79. package/package.json +37 -0
@@ -0,0 +1,211 @@
1
+ // @generated by protobuf-ts 2.11.1 with parameter add_pb_suffix
2
+ // @generated from protobuf file "injective_accounts_rpc.proto" (package "injective_accounts_rpc", syntax proto3)
3
+ // tslint:disable
4
+ //
5
+ // Code generated with goa v3.7.0, DO NOT EDIT.
6
+ //
7
+ // InjectiveAccountsRPC 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 { InjectiveAccountsRPC } from "./injective_accounts_rpc_pb";
15
+ import type { StreamAccountDataResponse } from "./injective_accounts_rpc_pb";
16
+ import type { StreamAccountDataRequest } from "./injective_accounts_rpc_pb";
17
+ import type { RewardsResponse } from "./injective_accounts_rpc_pb";
18
+ import type { RewardsRequest } from "./injective_accounts_rpc_pb";
19
+ import type { SubaccountOrderSummaryResponse } from "./injective_accounts_rpc_pb";
20
+ import type { SubaccountOrderSummaryRequest } from "./injective_accounts_rpc_pb";
21
+ import type { SubaccountHistoryResponse } from "./injective_accounts_rpc_pb";
22
+ import type { SubaccountHistoryRequest } from "./injective_accounts_rpc_pb";
23
+ import type { StreamSubaccountBalanceResponse } from "./injective_accounts_rpc_pb";
24
+ import type { StreamSubaccountBalanceRequest } from "./injective_accounts_rpc_pb";
25
+ import type { ServerStreamingCall } from "@protobuf-ts/runtime-rpc";
26
+ import type { SubaccountBalanceEndpointResponse } from "./injective_accounts_rpc_pb";
27
+ import type { SubaccountBalanceEndpointRequest } from "./injective_accounts_rpc_pb";
28
+ import type { SubaccountBalancesListResponse } from "./injective_accounts_rpc_pb";
29
+ import type { SubaccountBalancesListRequest } from "./injective_accounts_rpc_pb";
30
+ import type { SubaccountsListResponse } from "./injective_accounts_rpc_pb";
31
+ import type { SubaccountsListRequest } from "./injective_accounts_rpc_pb";
32
+ import type { OrderStatesResponse } from "./injective_accounts_rpc_pb";
33
+ import type { OrderStatesRequest } from "./injective_accounts_rpc_pb";
34
+ import { stackIntercept } from "@protobuf-ts/runtime-rpc";
35
+ import type { PortfolioResponse } from "./injective_accounts_rpc_pb";
36
+ import type { PortfolioRequest } from "./injective_accounts_rpc_pb";
37
+ import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
38
+ import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
39
+ /**
40
+ * InjectiveAccountsRPC defines API of Exchange Accounts provider.
41
+ *
42
+ * @generated from protobuf service injective_accounts_rpc.InjectiveAccountsRPC
43
+ */
44
+ export interface IInjectiveAccountsRPCClient {
45
+ /**
46
+ * Provide the account's portfolio value in USD.
47
+ *
48
+ * @generated from protobuf rpc: Portfolio
49
+ */
50
+ portfolio(input: PortfolioRequest, options?: RpcOptions): UnaryCall<PortfolioRequest, PortfolioResponse>;
51
+ /**
52
+ * List order states by order hashes
53
+ *
54
+ * @generated from protobuf rpc: OrderStates
55
+ */
56
+ orderStates(input: OrderStatesRequest, options?: RpcOptions): UnaryCall<OrderStatesRequest, OrderStatesResponse>;
57
+ /**
58
+ * List all subaccounts IDs of an account address
59
+ *
60
+ * @generated from protobuf rpc: SubaccountsList
61
+ */
62
+ subaccountsList(input: SubaccountsListRequest, options?: RpcOptions): UnaryCall<SubaccountsListRequest, SubaccountsListResponse>;
63
+ /**
64
+ * List subaccount balances for the provided denoms.
65
+ *
66
+ * @generated from protobuf rpc: SubaccountBalancesList
67
+ */
68
+ subaccountBalancesList(input: SubaccountBalancesListRequest, options?: RpcOptions): UnaryCall<SubaccountBalancesListRequest, SubaccountBalancesListResponse>;
69
+ /**
70
+ * Gets a balance for specific coin denom
71
+ *
72
+ * @generated from protobuf rpc: SubaccountBalanceEndpoint
73
+ */
74
+ subaccountBalanceEndpoint(input: SubaccountBalanceEndpointRequest, options?: RpcOptions): UnaryCall<SubaccountBalanceEndpointRequest, SubaccountBalanceEndpointResponse>;
75
+ /**
76
+ * StreamSubaccountBalance streams new balance changes for a specified
77
+ * subaccount and denoms. If no denoms are provided, all denom changes are
78
+ * streamed.
79
+ *
80
+ * @generated from protobuf rpc: StreamSubaccountBalance
81
+ */
82
+ streamSubaccountBalance(input: StreamSubaccountBalanceRequest, options?: RpcOptions): ServerStreamingCall<StreamSubaccountBalanceRequest, StreamSubaccountBalanceResponse>;
83
+ /**
84
+ * Get subaccount's deposits and withdrawals history
85
+ *
86
+ * @generated from protobuf rpc: SubaccountHistory
87
+ */
88
+ subaccountHistory(input: SubaccountHistoryRequest, options?: RpcOptions): UnaryCall<SubaccountHistoryRequest, SubaccountHistoryResponse>;
89
+ /**
90
+ * Get subaccount's orders summary
91
+ *
92
+ * @generated from protobuf rpc: SubaccountOrderSummary
93
+ */
94
+ subaccountOrderSummary(input: SubaccountOrderSummaryRequest, options?: RpcOptions): UnaryCall<SubaccountOrderSummaryRequest, SubaccountOrderSummaryResponse>;
95
+ /**
96
+ * Provide historical trading rewards
97
+ *
98
+ * @generated from protobuf rpc: Rewards
99
+ */
100
+ rewards(input: RewardsRequest, options?: RpcOptions): UnaryCall<RewardsRequest, RewardsResponse>;
101
+ /**
102
+ * Stream live data for an account and respective data
103
+ *
104
+ * @generated from protobuf rpc: StreamAccountData
105
+ */
106
+ streamAccountData(input: StreamAccountDataRequest, options?: RpcOptions): ServerStreamingCall<StreamAccountDataRequest, StreamAccountDataResponse>;
107
+ }
108
+ /**
109
+ * InjectiveAccountsRPC defines API of Exchange Accounts provider.
110
+ *
111
+ * @generated from protobuf service injective_accounts_rpc.InjectiveAccountsRPC
112
+ */
113
+ export class InjectiveAccountsRPCClient implements IInjectiveAccountsRPCClient, ServiceInfo {
114
+ typeName = InjectiveAccountsRPC.typeName;
115
+ methods = InjectiveAccountsRPC.methods;
116
+ options = InjectiveAccountsRPC.options;
117
+ constructor(private readonly _transport: RpcTransport) {
118
+ }
119
+ /**
120
+ * Provide the account's portfolio value in USD.
121
+ *
122
+ * @generated from protobuf rpc: Portfolio
123
+ */
124
+ portfolio(input: PortfolioRequest, options?: RpcOptions): UnaryCall<PortfolioRequest, PortfolioResponse> {
125
+ const method = this.methods[0], opt = this._transport.mergeOptions(options);
126
+ return stackIntercept<PortfolioRequest, PortfolioResponse>("unary", this._transport, method, opt, input);
127
+ }
128
+ /**
129
+ * List order states by order hashes
130
+ *
131
+ * @generated from protobuf rpc: OrderStates
132
+ */
133
+ orderStates(input: OrderStatesRequest, options?: RpcOptions): UnaryCall<OrderStatesRequest, OrderStatesResponse> {
134
+ const method = this.methods[1], opt = this._transport.mergeOptions(options);
135
+ return stackIntercept<OrderStatesRequest, OrderStatesResponse>("unary", this._transport, method, opt, input);
136
+ }
137
+ /**
138
+ * List all subaccounts IDs of an account address
139
+ *
140
+ * @generated from protobuf rpc: SubaccountsList
141
+ */
142
+ subaccountsList(input: SubaccountsListRequest, options?: RpcOptions): UnaryCall<SubaccountsListRequest, SubaccountsListResponse> {
143
+ const method = this.methods[2], opt = this._transport.mergeOptions(options);
144
+ return stackIntercept<SubaccountsListRequest, SubaccountsListResponse>("unary", this._transport, method, opt, input);
145
+ }
146
+ /**
147
+ * List subaccount balances for the provided denoms.
148
+ *
149
+ * @generated from protobuf rpc: SubaccountBalancesList
150
+ */
151
+ subaccountBalancesList(input: SubaccountBalancesListRequest, options?: RpcOptions): UnaryCall<SubaccountBalancesListRequest, SubaccountBalancesListResponse> {
152
+ const method = this.methods[3], opt = this._transport.mergeOptions(options);
153
+ return stackIntercept<SubaccountBalancesListRequest, SubaccountBalancesListResponse>("unary", this._transport, method, opt, input);
154
+ }
155
+ /**
156
+ * Gets a balance for specific coin denom
157
+ *
158
+ * @generated from protobuf rpc: SubaccountBalanceEndpoint
159
+ */
160
+ subaccountBalanceEndpoint(input: SubaccountBalanceEndpointRequest, options?: RpcOptions): UnaryCall<SubaccountBalanceEndpointRequest, SubaccountBalanceEndpointResponse> {
161
+ const method = this.methods[4], opt = this._transport.mergeOptions(options);
162
+ return stackIntercept<SubaccountBalanceEndpointRequest, SubaccountBalanceEndpointResponse>("unary", this._transport, method, opt, input);
163
+ }
164
+ /**
165
+ * StreamSubaccountBalance streams new balance changes for a specified
166
+ * subaccount and denoms. If no denoms are provided, all denom changes are
167
+ * streamed.
168
+ *
169
+ * @generated from protobuf rpc: StreamSubaccountBalance
170
+ */
171
+ streamSubaccountBalance(input: StreamSubaccountBalanceRequest, options?: RpcOptions): ServerStreamingCall<StreamSubaccountBalanceRequest, StreamSubaccountBalanceResponse> {
172
+ const method = this.methods[5], opt = this._transport.mergeOptions(options);
173
+ return stackIntercept<StreamSubaccountBalanceRequest, StreamSubaccountBalanceResponse>("serverStreaming", this._transport, method, opt, input);
174
+ }
175
+ /**
176
+ * Get subaccount's deposits and withdrawals history
177
+ *
178
+ * @generated from protobuf rpc: SubaccountHistory
179
+ */
180
+ subaccountHistory(input: SubaccountHistoryRequest, options?: RpcOptions): UnaryCall<SubaccountHistoryRequest, SubaccountHistoryResponse> {
181
+ const method = this.methods[6], opt = this._transport.mergeOptions(options);
182
+ return stackIntercept<SubaccountHistoryRequest, SubaccountHistoryResponse>("unary", this._transport, method, opt, input);
183
+ }
184
+ /**
185
+ * Get subaccount's orders summary
186
+ *
187
+ * @generated from protobuf rpc: SubaccountOrderSummary
188
+ */
189
+ subaccountOrderSummary(input: SubaccountOrderSummaryRequest, options?: RpcOptions): UnaryCall<SubaccountOrderSummaryRequest, SubaccountOrderSummaryResponse> {
190
+ const method = this.methods[7], opt = this._transport.mergeOptions(options);
191
+ return stackIntercept<SubaccountOrderSummaryRequest, SubaccountOrderSummaryResponse>("unary", this._transport, method, opt, input);
192
+ }
193
+ /**
194
+ * Provide historical trading rewards
195
+ *
196
+ * @generated from protobuf rpc: Rewards
197
+ */
198
+ rewards(input: RewardsRequest, options?: RpcOptions): UnaryCall<RewardsRequest, RewardsResponse> {
199
+ const method = this.methods[8], opt = this._transport.mergeOptions(options);
200
+ return stackIntercept<RewardsRequest, RewardsResponse>("unary", this._transport, method, opt, input);
201
+ }
202
+ /**
203
+ * Stream live data for an account and respective data
204
+ *
205
+ * @generated from protobuf rpc: StreamAccountData
206
+ */
207
+ streamAccountData(input: StreamAccountDataRequest, options?: RpcOptions): ServerStreamingCall<StreamAccountDataRequest, StreamAccountDataResponse> {
208
+ const method = this.methods[9], opt = this._transport.mergeOptions(options);
209
+ return stackIntercept<StreamAccountDataRequest, StreamAccountDataResponse>("serverStreaming", this._transport, method, opt, input);
210
+ }
211
+ }
@@ -0,0 +1,105 @@
1
+ import { InjectiveAccountsRPC } from "./injective_accounts_rpc_pb.js";
2
+ import { stackIntercept } from "@protobuf-ts/runtime-rpc";
3
+ class InjectiveAccountsRPCClient {
4
+ constructor(_transport) {
5
+ this._transport = _transport;
6
+ this.typeName = InjectiveAccountsRPC.typeName;
7
+ this.methods = InjectiveAccountsRPC.methods;
8
+ this.options = InjectiveAccountsRPC.options;
9
+ }
10
+ /**
11
+ * Provide the account's portfolio value in USD.
12
+ *
13
+ * @generated from protobuf rpc: Portfolio
14
+ */
15
+ portfolio(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
+ * List order states by order hashes
21
+ *
22
+ * @generated from protobuf rpc: OrderStates
23
+ */
24
+ orderStates(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
+ * List all subaccounts IDs of an account address
30
+ *
31
+ * @generated from protobuf rpc: SubaccountsList
32
+ */
33
+ subaccountsList(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
+ * List subaccount balances for the provided denoms.
39
+ *
40
+ * @generated from protobuf rpc: SubaccountBalancesList
41
+ */
42
+ subaccountBalancesList(input, options) {
43
+ const method = this.methods[3], opt = this._transport.mergeOptions(options);
44
+ return stackIntercept("unary", this._transport, method, opt, input);
45
+ }
46
+ /**
47
+ * Gets a balance for specific coin denom
48
+ *
49
+ * @generated from protobuf rpc: SubaccountBalanceEndpoint
50
+ */
51
+ subaccountBalanceEndpoint(input, options) {
52
+ const method = this.methods[4], opt = this._transport.mergeOptions(options);
53
+ return stackIntercept("unary", this._transport, method, opt, input);
54
+ }
55
+ /**
56
+ * StreamSubaccountBalance streams new balance changes for a specified
57
+ * subaccount and denoms. If no denoms are provided, all denom changes are
58
+ * streamed.
59
+ *
60
+ * @generated from protobuf rpc: StreamSubaccountBalance
61
+ */
62
+ streamSubaccountBalance(input, options) {
63
+ const method = this.methods[5], opt = this._transport.mergeOptions(options);
64
+ return stackIntercept("serverStreaming", this._transport, method, opt, input);
65
+ }
66
+ /**
67
+ * Get subaccount's deposits and withdrawals history
68
+ *
69
+ * @generated from protobuf rpc: SubaccountHistory
70
+ */
71
+ subaccountHistory(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
+ * Get subaccount's orders summary
77
+ *
78
+ * @generated from protobuf rpc: SubaccountOrderSummary
79
+ */
80
+ subaccountOrderSummary(input, options) {
81
+ const method = this.methods[7], opt = this._transport.mergeOptions(options);
82
+ return stackIntercept("unary", this._transport, method, opt, input);
83
+ }
84
+ /**
85
+ * Provide historical trading rewards
86
+ *
87
+ * @generated from protobuf rpc: Rewards
88
+ */
89
+ rewards(input, options) {
90
+ const method = this.methods[8], opt = this._transport.mergeOptions(options);
91
+ return stackIntercept("unary", this._transport, method, opt, input);
92
+ }
93
+ /**
94
+ * Stream live data for an account and respective data
95
+ *
96
+ * @generated from protobuf rpc: StreamAccountData
97
+ */
98
+ streamAccountData(input, options) {
99
+ const method = this.methods[9], opt = this._transport.mergeOptions(options);
100
+ return stackIntercept("serverStreaming", this._transport, method, opt, input);
101
+ }
102
+ }
103
+ export {
104
+ InjectiveAccountsRPCClient
105
+ };