@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,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
|
+
};
|