@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,255 @@
1
+ import { InjectiveExplorerRPC } from "./injective_explorer_rpc_pb.js";
2
+ import { stackIntercept } from "@protobuf-ts/runtime-rpc";
3
+ class InjectiveExplorerRPCClient {
4
+ constructor(_transport) {
5
+ this._transport = _transport;
6
+ this.typeName = InjectiveExplorerRPC.typeName;
7
+ this.methods = InjectiveExplorerRPC.methods;
8
+ this.options = InjectiveExplorerRPC.options;
9
+ }
10
+ /**
11
+ * GetAccountTxs returns transactions involving in an account based upon
12
+ * params. Deprecated: use GetAccountTxsV2 instead.
13
+ *
14
+ * @generated from protobuf rpc: GetAccountTxs
15
+ */
16
+ getAccountTxs(input, options) {
17
+ const method = this.methods[0], opt = this._transport.mergeOptions(options);
18
+ return stackIntercept("unary", this._transport, method, opt, input);
19
+ }
20
+ /**
21
+ * GetAccountTxs returns tranctions involving in an account based upon params.
22
+ *
23
+ * @generated from protobuf rpc: GetAccountTxsV2
24
+ */
25
+ getAccountTxsV2(input, options) {
26
+ const method = this.methods[1], opt = this._transport.mergeOptions(options);
27
+ return stackIntercept("unary", this._transport, method, opt, input);
28
+ }
29
+ /**
30
+ * GetContractTxs returns contract-related transactions. Deprecated: use
31
+ * GetContractTxsV2 instead.
32
+ *
33
+ * @generated from protobuf rpc: GetContractTxs
34
+ */
35
+ getContractTxs(input, options) {
36
+ const method = this.methods[2], opt = this._transport.mergeOptions(options);
37
+ return stackIntercept("unary", this._transport, method, opt, input);
38
+ }
39
+ /**
40
+ * GetContractTxs returns contract-related transactions
41
+ *
42
+ * @generated from protobuf rpc: GetContractTxsV2
43
+ */
44
+ getContractTxsV2(input, options) {
45
+ const method = this.methods[3], opt = this._transport.mergeOptions(options);
46
+ return stackIntercept("unary", this._transport, method, opt, input);
47
+ }
48
+ /**
49
+ * GetBlocks returns blocks based upon the request params. Deprecated: use
50
+ * GetBlocksV2 instead.
51
+ *
52
+ * @generated from protobuf rpc: GetBlocks
53
+ */
54
+ getBlocks(input, options) {
55
+ const method = this.methods[4], opt = this._transport.mergeOptions(options);
56
+ return stackIntercept("unary", this._transport, method, opt, input);
57
+ }
58
+ /**
59
+ * GetBlocks returns blocks based upon the request params
60
+ *
61
+ * @generated from protobuf rpc: GetBlocksV2
62
+ */
63
+ getBlocksV2(input, options) {
64
+ const method = this.methods[5], opt = this._transport.mergeOptions(options);
65
+ return stackIntercept("unary", this._transport, method, opt, input);
66
+ }
67
+ /**
68
+ * GetBlock returns block based upon the height or hash
69
+ *
70
+ * @generated from protobuf rpc: GetBlock
71
+ */
72
+ getBlock(input, options) {
73
+ const method = this.methods[6], opt = this._transport.mergeOptions(options);
74
+ return stackIntercept("unary", this._transport, method, opt, input);
75
+ }
76
+ /**
77
+ * GetValidators returns validators on the active chain
78
+ *
79
+ * @generated from protobuf rpc: GetValidators
80
+ */
81
+ getValidators(input, options) {
82
+ const method = this.methods[7], opt = this._transport.mergeOptions(options);
83
+ return stackIntercept("unary", this._transport, method, opt, input);
84
+ }
85
+ /**
86
+ * GetValidator returns validator information on the active chain
87
+ *
88
+ * @generated from protobuf rpc: GetValidator
89
+ */
90
+ getValidator(input, options) {
91
+ const method = this.methods[8], opt = this._transport.mergeOptions(options);
92
+ return stackIntercept("unary", this._transport, method, opt, input);
93
+ }
94
+ /**
95
+ * GetValidatorUptime returns validator uptime information on the active chain
96
+ *
97
+ * @generated from protobuf rpc: GetValidatorUptime
98
+ */
99
+ getValidatorUptime(input, options) {
100
+ const method = this.methods[9], opt = this._transport.mergeOptions(options);
101
+ return stackIntercept("unary", this._transport, method, opt, input);
102
+ }
103
+ /**
104
+ * GetTxs returns transactions based upon the request params. Deprecated: use
105
+ * GetTxsV2 instead.
106
+ *
107
+ * @generated from protobuf rpc: GetTxs
108
+ */
109
+ getTxs(input, options) {
110
+ const method = this.methods[10], opt = this._transport.mergeOptions(options);
111
+ return stackIntercept("unary", this._transport, method, opt, input);
112
+ }
113
+ /**
114
+ * GetTxs returns transactions based upon the request params
115
+ *
116
+ * @generated from protobuf rpc: GetTxsV2
117
+ */
118
+ getTxsV2(input, options) {
119
+ const method = this.methods[11], opt = this._transport.mergeOptions(options);
120
+ return stackIntercept("unary", this._transport, method, opt, input);
121
+ }
122
+ /**
123
+ * GetTxByTxHash returns certain transaction information by its tx hash.
124
+ *
125
+ * @generated from protobuf rpc: GetTxByTxHash
126
+ */
127
+ getTxByTxHash(input, options) {
128
+ const method = this.methods[12], opt = this._transport.mergeOptions(options);
129
+ return stackIntercept("unary", this._transport, method, opt, input);
130
+ }
131
+ /**
132
+ * GetPeggyDepositTxs returns the peggy deposit transactions based upon the
133
+ * request params
134
+ *
135
+ * @generated from protobuf rpc: GetPeggyDepositTxs
136
+ */
137
+ getPeggyDepositTxs(input, options) {
138
+ const method = this.methods[13], opt = this._transport.mergeOptions(options);
139
+ return stackIntercept("unary", this._transport, method, opt, input);
140
+ }
141
+ /**
142
+ * GetPeggyWithdrawalTxs returns the peggy withdrawal transactions based upon
143
+ * the request params
144
+ *
145
+ * @generated from protobuf rpc: GetPeggyWithdrawalTxs
146
+ */
147
+ getPeggyWithdrawalTxs(input, options) {
148
+ const method = this.methods[14], opt = this._transport.mergeOptions(options);
149
+ return stackIntercept("unary", this._transport, method, opt, input);
150
+ }
151
+ /**
152
+ * GetIBCTransferTxs returns the ibc transfer transactions based upon the
153
+ * request params
154
+ *
155
+ * @generated from protobuf rpc: GetIBCTransferTxs
156
+ */
157
+ getIBCTransferTxs(input, options) {
158
+ const method = this.methods[15], opt = this._transport.mergeOptions(options);
159
+ return stackIntercept("unary", this._transport, method, opt, input);
160
+ }
161
+ /**
162
+ * GetWasmCodes lists all stored code
163
+ *
164
+ * @generated from protobuf rpc: GetWasmCodes
165
+ */
166
+ getWasmCodes(input, options) {
167
+ const method = this.methods[16], opt = this._transport.mergeOptions(options);
168
+ return stackIntercept("unary", this._transport, method, opt, input);
169
+ }
170
+ /**
171
+ * GetWasmCodeById list cosmwasm code infor by ID
172
+ *
173
+ * @generated from protobuf rpc: GetWasmCodeByID
174
+ */
175
+ getWasmCodeByID(input, options) {
176
+ const method = this.methods[17], opt = this._transport.mergeOptions(options);
177
+ return stackIntercept("unary", this._transport, method, opt, input);
178
+ }
179
+ /**
180
+ * GetWasmContracts lists all contracts
181
+ *
182
+ * @generated from protobuf rpc: GetWasmContracts
183
+ */
184
+ getWasmContracts(input, options) {
185
+ const method = this.methods[18], opt = this._transport.mergeOptions(options);
186
+ return stackIntercept("unary", this._transport, method, opt, input);
187
+ }
188
+ /**
189
+ * GetWasmContractByAddress list cosmwasm contract info by its address
190
+ *
191
+ * @generated from protobuf rpc: GetWasmContractByAddress
192
+ */
193
+ getWasmContractByAddress(input, options) {
194
+ const method = this.methods[19], opt = this._transport.mergeOptions(options);
195
+ return stackIntercept("unary", this._transport, method, opt, input);
196
+ }
197
+ /**
198
+ * GetCw20Balance lists all cw20 balances of an injective account
199
+ *
200
+ * @generated from protobuf rpc: GetCw20Balance
201
+ */
202
+ getCw20Balance(input, options) {
203
+ const method = this.methods[20], opt = this._transport.mergeOptions(options);
204
+ return stackIntercept("unary", this._transport, method, opt, input);
205
+ }
206
+ /**
207
+ * Request relayers infos by marketIDs. If no ids are provided, all market with
208
+ * associated relayers are returned
209
+ *
210
+ * @generated from protobuf rpc: Relayers
211
+ */
212
+ relayers(input, options) {
213
+ const method = this.methods[21], opt = this._transport.mergeOptions(options);
214
+ return stackIntercept("unary", this._transport, method, opt, input);
215
+ }
216
+ /**
217
+ * GetBankTransfers returns bank transfers.
218
+ *
219
+ * @generated from protobuf rpc: GetBankTransfers
220
+ */
221
+ getBankTransfers(input, options) {
222
+ const method = this.methods[22], opt = this._transport.mergeOptions(options);
223
+ return stackIntercept("unary", this._transport, method, opt, input);
224
+ }
225
+ /**
226
+ * StreamTxs returns transactions based upon the request params
227
+ *
228
+ * @generated from protobuf rpc: StreamTxs
229
+ */
230
+ streamTxs(input, options) {
231
+ const method = this.methods[23], opt = this._transport.mergeOptions(options);
232
+ return stackIntercept("serverStreaming", this._transport, method, opt, input);
233
+ }
234
+ /**
235
+ * StreamBlocks returns the latest blocks
236
+ *
237
+ * @generated from protobuf rpc: StreamBlocks
238
+ */
239
+ streamBlocks(input, options) {
240
+ const method = this.methods[24], opt = this._transport.mergeOptions(options);
241
+ return stackIntercept("serverStreaming", this._transport, method, opt, input);
242
+ }
243
+ /**
244
+ * GetStats returns global exchange statistics in the last 24hs
245
+ *
246
+ * @generated from protobuf rpc: GetStats
247
+ */
248
+ getStats(input, options) {
249
+ const method = this.methods[25], opt = this._transport.mergeOptions(options);
250
+ return stackIntercept("unary", this._transport, method, opt, input);
251
+ }
252
+ }
253
+ export {
254
+ InjectiveExplorerRPCClient
255
+ };