@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,3408 @@
|
|
|
1
|
+
// @generated by protobuf-ts 2.11.1 with parameter add_pb_suffix
|
|
2
|
+
// @generated from protobuf file "injective_megavault_rpc.proto" (package "injective_megavault_rpc", syntax proto3)
|
|
3
|
+
// tslint:disable
|
|
4
|
+
//
|
|
5
|
+
// Code generated with goa v3.7.0, DO NOT EDIT.
|
|
6
|
+
//
|
|
7
|
+
// InjectiveMegavaultRPC protocol buffer definition
|
|
8
|
+
//
|
|
9
|
+
// Command:
|
|
10
|
+
// $ goa gen github.com/InjectiveLabs/injective-indexer/api/design -o ../
|
|
11
|
+
//
|
|
12
|
+
import { ServiceType } from "@protobuf-ts/runtime-rpc";
|
|
13
|
+
import type { BinaryWriteOptions } from "@protobuf-ts/runtime";
|
|
14
|
+
import type { IBinaryWriter } from "@protobuf-ts/runtime";
|
|
15
|
+
import { WireType } from "@protobuf-ts/runtime";
|
|
16
|
+
import type { BinaryReadOptions } from "@protobuf-ts/runtime";
|
|
17
|
+
import type { IBinaryReader } from "@protobuf-ts/runtime";
|
|
18
|
+
import { UnknownFieldHandler } from "@protobuf-ts/runtime";
|
|
19
|
+
import type { PartialMessage } from "@protobuf-ts/runtime";
|
|
20
|
+
import { reflectionMergePartial } from "@protobuf-ts/runtime";
|
|
21
|
+
import { MessageType } from "@protobuf-ts/runtime";
|
|
22
|
+
/**
|
|
23
|
+
* @generated from protobuf message injective_megavault_rpc.GetVaultRequest
|
|
24
|
+
*/
|
|
25
|
+
export interface GetVaultRequest {
|
|
26
|
+
/**
|
|
27
|
+
* Vault address
|
|
28
|
+
*
|
|
29
|
+
* @generated from protobuf field: string vault_address = 1
|
|
30
|
+
*/
|
|
31
|
+
vaultAddress: string;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* @generated from protobuf message injective_megavault_rpc.GetVaultResponse
|
|
35
|
+
*/
|
|
36
|
+
export interface GetVaultResponse {
|
|
37
|
+
/**
|
|
38
|
+
* The vault
|
|
39
|
+
*
|
|
40
|
+
* @generated from protobuf field: injective_megavault_rpc.Vault vault = 1
|
|
41
|
+
*/
|
|
42
|
+
vault?: Vault;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* @generated from protobuf message injective_megavault_rpc.Vault
|
|
46
|
+
*/
|
|
47
|
+
export interface Vault {
|
|
48
|
+
/**
|
|
49
|
+
* Contract address
|
|
50
|
+
*
|
|
51
|
+
* @generated from protobuf field: string contract_address = 1
|
|
52
|
+
*/
|
|
53
|
+
contractAddress: string;
|
|
54
|
+
/**
|
|
55
|
+
* Contract name
|
|
56
|
+
*
|
|
57
|
+
* @generated from protobuf field: string contract_name = 2
|
|
58
|
+
*/
|
|
59
|
+
contractName: string;
|
|
60
|
+
/**
|
|
61
|
+
* Contract version
|
|
62
|
+
*
|
|
63
|
+
* @generated from protobuf field: string contract_version = 3
|
|
64
|
+
*/
|
|
65
|
+
contractVersion: string;
|
|
66
|
+
/**
|
|
67
|
+
* Admin
|
|
68
|
+
*
|
|
69
|
+
* @generated from protobuf field: string admin = 4
|
|
70
|
+
*/
|
|
71
|
+
admin: string;
|
|
72
|
+
/**
|
|
73
|
+
* LP denom
|
|
74
|
+
*
|
|
75
|
+
* @generated from protobuf field: string lp_denom = 5
|
|
76
|
+
*/
|
|
77
|
+
lpDenom: string;
|
|
78
|
+
/**
|
|
79
|
+
* Quote denom
|
|
80
|
+
*
|
|
81
|
+
* @generated from protobuf field: string quote_denom = 6
|
|
82
|
+
*/
|
|
83
|
+
quoteDenom: string;
|
|
84
|
+
/**
|
|
85
|
+
* Operators
|
|
86
|
+
*
|
|
87
|
+
* @generated from protobuf field: repeated injective_megavault_rpc.Operator operators = 7
|
|
88
|
+
*/
|
|
89
|
+
operators: Operator[];
|
|
90
|
+
/**
|
|
91
|
+
* Incentives
|
|
92
|
+
*
|
|
93
|
+
* @generated from protobuf field: injective_megavault_rpc.Incentives incentives = 8
|
|
94
|
+
*/
|
|
95
|
+
incentives?: Incentives;
|
|
96
|
+
/**
|
|
97
|
+
* TargetApr
|
|
98
|
+
*
|
|
99
|
+
* @generated from protobuf field: injective_megavault_rpc.TargetApr target_apr = 9
|
|
100
|
+
*/
|
|
101
|
+
targetApr?: TargetApr;
|
|
102
|
+
/**
|
|
103
|
+
* Operators
|
|
104
|
+
*
|
|
105
|
+
* @generated from protobuf field: injective_megavault_rpc.VaultStats stats = 10
|
|
106
|
+
*/
|
|
107
|
+
stats?: VaultStats;
|
|
108
|
+
/**
|
|
109
|
+
* Block height when the vault was created.
|
|
110
|
+
*
|
|
111
|
+
* @generated from protobuf field: sint64 created_height = 11
|
|
112
|
+
*/
|
|
113
|
+
createdHeight: bigint;
|
|
114
|
+
/**
|
|
115
|
+
* CreatedAt timestamp in UNIX millis.
|
|
116
|
+
*
|
|
117
|
+
* @generated from protobuf field: sint64 created_at = 12
|
|
118
|
+
*/
|
|
119
|
+
createdAt: bigint;
|
|
120
|
+
/**
|
|
121
|
+
* Block height when the vault was updated.
|
|
122
|
+
*
|
|
123
|
+
* @generated from protobuf field: sint64 updated_height = 13
|
|
124
|
+
*/
|
|
125
|
+
updatedHeight: bigint;
|
|
126
|
+
/**
|
|
127
|
+
* UpdatedAt timestamp in UNIX millis.
|
|
128
|
+
*
|
|
129
|
+
* @generated from protobuf field: sint64 updated_at = 14
|
|
130
|
+
*/
|
|
131
|
+
updatedAt: bigint;
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* @generated from protobuf message injective_megavault_rpc.Operator
|
|
135
|
+
*/
|
|
136
|
+
export interface Operator {
|
|
137
|
+
/**
|
|
138
|
+
* Operator address
|
|
139
|
+
*
|
|
140
|
+
* @generated from protobuf field: string address = 1
|
|
141
|
+
*/
|
|
142
|
+
address: string;
|
|
143
|
+
/**
|
|
144
|
+
* Total amount
|
|
145
|
+
*
|
|
146
|
+
* @generated from protobuf field: string total_amount = 2
|
|
147
|
+
*/
|
|
148
|
+
totalAmount: string;
|
|
149
|
+
/**
|
|
150
|
+
* Total liquid amount
|
|
151
|
+
*
|
|
152
|
+
* @generated from protobuf field: string total_liquid_amount = 3
|
|
153
|
+
*/
|
|
154
|
+
totalLiquidAmount: string;
|
|
155
|
+
/**
|
|
156
|
+
* Block height when the operator was updated.
|
|
157
|
+
*
|
|
158
|
+
* @generated from protobuf field: sint64 updated_height = 4
|
|
159
|
+
*/
|
|
160
|
+
updatedHeight: bigint;
|
|
161
|
+
/**
|
|
162
|
+
* UpdatedAt timestamp in UNIX millis.
|
|
163
|
+
*
|
|
164
|
+
* @generated from protobuf field: sint64 updated_at = 5
|
|
165
|
+
*/
|
|
166
|
+
updatedAt: bigint;
|
|
167
|
+
/**
|
|
168
|
+
* Percentage of the operator
|
|
169
|
+
*
|
|
170
|
+
* @generated from protobuf field: string percentage = 6
|
|
171
|
+
*/
|
|
172
|
+
percentage: string;
|
|
173
|
+
/**
|
|
174
|
+
* Subaccount ID of the operator
|
|
175
|
+
*
|
|
176
|
+
* @generated from protobuf field: string subaccount_id = 7
|
|
177
|
+
*/
|
|
178
|
+
subaccountId: string;
|
|
179
|
+
}
|
|
180
|
+
/**
|
|
181
|
+
* @generated from protobuf message injective_megavault_rpc.Incentives
|
|
182
|
+
*/
|
|
183
|
+
export interface Incentives {
|
|
184
|
+
/**
|
|
185
|
+
* Operator address
|
|
186
|
+
*
|
|
187
|
+
* @generated from protobuf field: string address = 1
|
|
188
|
+
*/
|
|
189
|
+
address: string;
|
|
190
|
+
/**
|
|
191
|
+
* Amount
|
|
192
|
+
*
|
|
193
|
+
* @generated from protobuf field: string amount = 2
|
|
194
|
+
*/
|
|
195
|
+
amount: string;
|
|
196
|
+
/**
|
|
197
|
+
* Block height when the target APR was updated.
|
|
198
|
+
*
|
|
199
|
+
* @generated from protobuf field: sint64 updated_height = 3
|
|
200
|
+
*/
|
|
201
|
+
updatedHeight: bigint;
|
|
202
|
+
/**
|
|
203
|
+
* UpdatedAt timestamp in UNIX millis.
|
|
204
|
+
*
|
|
205
|
+
* @generated from protobuf field: sint64 updated_at = 4
|
|
206
|
+
*/
|
|
207
|
+
updatedAt: bigint;
|
|
208
|
+
}
|
|
209
|
+
/**
|
|
210
|
+
* @generated from protobuf message injective_megavault_rpc.TargetApr
|
|
211
|
+
*/
|
|
212
|
+
export interface TargetApr {
|
|
213
|
+
/**
|
|
214
|
+
* APR
|
|
215
|
+
*
|
|
216
|
+
* @generated from protobuf field: string apr = 1
|
|
217
|
+
*/
|
|
218
|
+
apr: string;
|
|
219
|
+
/**
|
|
220
|
+
* Upper threshold
|
|
221
|
+
*
|
|
222
|
+
* @generated from protobuf field: string upper_threshold = 2
|
|
223
|
+
*/
|
|
224
|
+
upperThreshold: string;
|
|
225
|
+
/**
|
|
226
|
+
* Lower threshold
|
|
227
|
+
*
|
|
228
|
+
* @generated from protobuf field: string lower_threshold = 3
|
|
229
|
+
*/
|
|
230
|
+
lowerThreshold: string;
|
|
231
|
+
/**
|
|
232
|
+
* Block height when the target APR was updated.
|
|
233
|
+
*
|
|
234
|
+
* @generated from protobuf field: sint64 updated_height = 4
|
|
235
|
+
*/
|
|
236
|
+
updatedHeight: bigint;
|
|
237
|
+
/**
|
|
238
|
+
* UpdatedAt timestamp in UNIX millis.
|
|
239
|
+
*
|
|
240
|
+
* @generated from protobuf field: sint64 updated_at = 5
|
|
241
|
+
*/
|
|
242
|
+
updatedAt: bigint;
|
|
243
|
+
}
|
|
244
|
+
/**
|
|
245
|
+
* @generated from protobuf message injective_megavault_rpc.VaultStats
|
|
246
|
+
*/
|
|
247
|
+
export interface VaultStats {
|
|
248
|
+
/**
|
|
249
|
+
* Total subscribed amount in the vault
|
|
250
|
+
*
|
|
251
|
+
* @generated from protobuf field: string total_subscribed_amount = 1
|
|
252
|
+
*/
|
|
253
|
+
totalSubscribedAmount: string;
|
|
254
|
+
/**
|
|
255
|
+
* Total redeemed amount in the vault
|
|
256
|
+
*
|
|
257
|
+
* @generated from protobuf field: string total_redeemed_amount = 2
|
|
258
|
+
*/
|
|
259
|
+
totalRedeemedAmount: string;
|
|
260
|
+
/**
|
|
261
|
+
* Current amount in the vault
|
|
262
|
+
*
|
|
263
|
+
* @generated from protobuf field: string current_amount = 3
|
|
264
|
+
*/
|
|
265
|
+
currentAmount: string;
|
|
266
|
+
/**
|
|
267
|
+
* Current amount in the vault without taking into account the incentives
|
|
268
|
+
*
|
|
269
|
+
* @generated from protobuf field: string current_amount_without_incentives = 4
|
|
270
|
+
*/
|
|
271
|
+
currentAmountWithoutIncentives: string;
|
|
272
|
+
/**
|
|
273
|
+
* Current amount of LP tokens in the vault
|
|
274
|
+
*
|
|
275
|
+
* @generated from protobuf field: string current_lp_amount = 5
|
|
276
|
+
*/
|
|
277
|
+
currentLpAmount: string;
|
|
278
|
+
/**
|
|
279
|
+
* Current LP price
|
|
280
|
+
*
|
|
281
|
+
* @generated from protobuf field: string current_lp_price = 6
|
|
282
|
+
*/
|
|
283
|
+
currentLpPrice: string;
|
|
284
|
+
/**
|
|
285
|
+
* PnL statistics
|
|
286
|
+
*
|
|
287
|
+
* @generated from protobuf field: injective_megavault_rpc.PnlStats pnl = 7
|
|
288
|
+
*/
|
|
289
|
+
pnl?: PnlStats;
|
|
290
|
+
/**
|
|
291
|
+
* Volatility statistics
|
|
292
|
+
*
|
|
293
|
+
* @generated from protobuf field: injective_megavault_rpc.VolatilityStats volatility = 8
|
|
294
|
+
*/
|
|
295
|
+
volatility?: VolatilityStats;
|
|
296
|
+
/**
|
|
297
|
+
* APR statistics
|
|
298
|
+
*
|
|
299
|
+
* @generated from protobuf field: injective_megavault_rpc.AprStats apr = 9
|
|
300
|
+
*/
|
|
301
|
+
apr?: AprStats;
|
|
302
|
+
/**
|
|
303
|
+
* Max drawdown
|
|
304
|
+
*
|
|
305
|
+
* @generated from protobuf field: injective_megavault_rpc.MaxDrawdown max_drawdown = 10
|
|
306
|
+
*/
|
|
307
|
+
maxDrawdown?: MaxDrawdown;
|
|
308
|
+
}
|
|
309
|
+
/**
|
|
310
|
+
* @generated from protobuf message injective_megavault_rpc.PnlStats
|
|
311
|
+
*/
|
|
312
|
+
export interface PnlStats {
|
|
313
|
+
/**
|
|
314
|
+
* Unrealized PnL
|
|
315
|
+
*
|
|
316
|
+
* @generated from protobuf field: injective_megavault_rpc.UnrealizedPnl unrealized = 1
|
|
317
|
+
*/
|
|
318
|
+
unrealized?: UnrealizedPnl;
|
|
319
|
+
/**
|
|
320
|
+
* All-time PnL
|
|
321
|
+
*
|
|
322
|
+
* @generated from protobuf field: injective_megavault_rpc.Pnl all_time = 2
|
|
323
|
+
*/
|
|
324
|
+
allTime?: Pnl;
|
|
325
|
+
}
|
|
326
|
+
/**
|
|
327
|
+
* @generated from protobuf message injective_megavault_rpc.UnrealizedPnl
|
|
328
|
+
*/
|
|
329
|
+
export interface UnrealizedPnl {
|
|
330
|
+
/**
|
|
331
|
+
* Unrealized PnL value
|
|
332
|
+
*
|
|
333
|
+
* @generated from protobuf field: string value = 1
|
|
334
|
+
*/
|
|
335
|
+
value: string;
|
|
336
|
+
/**
|
|
337
|
+
* Unrealized PnL percentage
|
|
338
|
+
*
|
|
339
|
+
* @generated from protobuf field: string percentage = 2
|
|
340
|
+
*/
|
|
341
|
+
percentage: string;
|
|
342
|
+
}
|
|
343
|
+
/**
|
|
344
|
+
* @generated from protobuf message injective_megavault_rpc.Pnl
|
|
345
|
+
*/
|
|
346
|
+
export interface Pnl {
|
|
347
|
+
/**
|
|
348
|
+
* PnL value
|
|
349
|
+
*
|
|
350
|
+
* @generated from protobuf field: string value = 1
|
|
351
|
+
*/
|
|
352
|
+
value: string;
|
|
353
|
+
/**
|
|
354
|
+
* PnL percentage
|
|
355
|
+
*
|
|
356
|
+
* @generated from protobuf field: string percentage = 2
|
|
357
|
+
*/
|
|
358
|
+
percentage: string;
|
|
359
|
+
/**
|
|
360
|
+
* Total amount subscribed
|
|
361
|
+
*
|
|
362
|
+
* @generated from protobuf field: string total_amount_subscribed = 3
|
|
363
|
+
*/
|
|
364
|
+
totalAmountSubscribed: string;
|
|
365
|
+
/**
|
|
366
|
+
* Total amount redeemed
|
|
367
|
+
*
|
|
368
|
+
* @generated from protobuf field: string total_amount_redeemed = 4
|
|
369
|
+
*/
|
|
370
|
+
totalAmountRedeemed: string;
|
|
371
|
+
/**
|
|
372
|
+
* Current amount
|
|
373
|
+
*
|
|
374
|
+
* @generated from protobuf field: string current_amount = 5
|
|
375
|
+
*/
|
|
376
|
+
currentAmount: string;
|
|
377
|
+
}
|
|
378
|
+
/**
|
|
379
|
+
* @generated from protobuf message injective_megavault_rpc.VolatilityStats
|
|
380
|
+
*/
|
|
381
|
+
export interface VolatilityStats {
|
|
382
|
+
/**
|
|
383
|
+
* 30-days volatility
|
|
384
|
+
*
|
|
385
|
+
* @generated from protobuf field: injective_megavault_rpc.Volatility thirty_days = 1
|
|
386
|
+
*/
|
|
387
|
+
thirtyDays?: Volatility;
|
|
388
|
+
}
|
|
389
|
+
/**
|
|
390
|
+
* @generated from protobuf message injective_megavault_rpc.Volatility
|
|
391
|
+
*/
|
|
392
|
+
export interface Volatility {
|
|
393
|
+
/**
|
|
394
|
+
* Volatility value
|
|
395
|
+
*
|
|
396
|
+
* @generated from protobuf field: string value = 1
|
|
397
|
+
*/
|
|
398
|
+
value: string;
|
|
399
|
+
}
|
|
400
|
+
/**
|
|
401
|
+
* @generated from protobuf message injective_megavault_rpc.AprStats
|
|
402
|
+
*/
|
|
403
|
+
export interface AprStats {
|
|
404
|
+
/**
|
|
405
|
+
* 30-day APR
|
|
406
|
+
*
|
|
407
|
+
* @generated from protobuf field: injective_megavault_rpc.Apr thirty_days = 1
|
|
408
|
+
*/
|
|
409
|
+
thirtyDays?: Apr;
|
|
410
|
+
}
|
|
411
|
+
/**
|
|
412
|
+
* @generated from protobuf message injective_megavault_rpc.Apr
|
|
413
|
+
*/
|
|
414
|
+
export interface Apr {
|
|
415
|
+
/**
|
|
416
|
+
* APR value
|
|
417
|
+
*
|
|
418
|
+
* @generated from protobuf field: string value = 1
|
|
419
|
+
*/
|
|
420
|
+
value: string;
|
|
421
|
+
/**
|
|
422
|
+
* Original LP price
|
|
423
|
+
*
|
|
424
|
+
* @generated from protobuf field: string original_lp_price = 2
|
|
425
|
+
*/
|
|
426
|
+
originalLpPrice: string;
|
|
427
|
+
/**
|
|
428
|
+
* Current LP price
|
|
429
|
+
*
|
|
430
|
+
* @generated from protobuf field: string current_lp_price = 3
|
|
431
|
+
*/
|
|
432
|
+
currentLpPrice: string;
|
|
433
|
+
}
|
|
434
|
+
/**
|
|
435
|
+
* @generated from protobuf message injective_megavault_rpc.MaxDrawdown
|
|
436
|
+
*/
|
|
437
|
+
export interface MaxDrawdown {
|
|
438
|
+
/**
|
|
439
|
+
* Max drawdown value
|
|
440
|
+
*
|
|
441
|
+
* @generated from protobuf field: string value = 1
|
|
442
|
+
*/
|
|
443
|
+
value: string;
|
|
444
|
+
/**
|
|
445
|
+
* Latest PnL peak
|
|
446
|
+
*
|
|
447
|
+
* @generated from protobuf field: string latest_pn_l_peak = 2
|
|
448
|
+
*/
|
|
449
|
+
latestPnLPeak: string;
|
|
450
|
+
}
|
|
451
|
+
/**
|
|
452
|
+
* @generated from protobuf message injective_megavault_rpc.GetUserRequest
|
|
453
|
+
*/
|
|
454
|
+
export interface GetUserRequest {
|
|
455
|
+
/**
|
|
456
|
+
* Vault address
|
|
457
|
+
*
|
|
458
|
+
* @generated from protobuf field: string vault_address = 1
|
|
459
|
+
*/
|
|
460
|
+
vaultAddress: string;
|
|
461
|
+
/**
|
|
462
|
+
* User address
|
|
463
|
+
*
|
|
464
|
+
* @generated from protobuf field: string user_address = 2
|
|
465
|
+
*/
|
|
466
|
+
userAddress: string;
|
|
467
|
+
}
|
|
468
|
+
/**
|
|
469
|
+
* @generated from protobuf message injective_megavault_rpc.GetUserResponse
|
|
470
|
+
*/
|
|
471
|
+
export interface GetUserResponse {
|
|
472
|
+
/**
|
|
473
|
+
* The user
|
|
474
|
+
*
|
|
475
|
+
* @generated from protobuf field: injective_megavault_rpc.User user = 1
|
|
476
|
+
*/
|
|
477
|
+
user?: User;
|
|
478
|
+
}
|
|
479
|
+
/**
|
|
480
|
+
* @generated from protobuf message injective_megavault_rpc.User
|
|
481
|
+
*/
|
|
482
|
+
export interface User {
|
|
483
|
+
/**
|
|
484
|
+
* User address
|
|
485
|
+
*
|
|
486
|
+
* @generated from protobuf field: string address = 1
|
|
487
|
+
*/
|
|
488
|
+
address: string;
|
|
489
|
+
/**
|
|
490
|
+
* Contract address
|
|
491
|
+
*
|
|
492
|
+
* @generated from protobuf field: string contract_address = 2
|
|
493
|
+
*/
|
|
494
|
+
contractAddress: string;
|
|
495
|
+
/**
|
|
496
|
+
* User stats
|
|
497
|
+
*
|
|
498
|
+
* @generated from protobuf field: injective_megavault_rpc.UserStats stats = 3
|
|
499
|
+
*/
|
|
500
|
+
stats?: UserStats;
|
|
501
|
+
/**
|
|
502
|
+
* Block height when the vault was created.
|
|
503
|
+
*
|
|
504
|
+
* @generated from protobuf field: sint64 created_height = 4
|
|
505
|
+
*/
|
|
506
|
+
createdHeight: bigint;
|
|
507
|
+
/**
|
|
508
|
+
* CreatedAt timestamp in UNIX millis.
|
|
509
|
+
*
|
|
510
|
+
* @generated from protobuf field: sint64 created_at = 5
|
|
511
|
+
*/
|
|
512
|
+
createdAt: bigint;
|
|
513
|
+
/**
|
|
514
|
+
* Block height when the vault was updated.
|
|
515
|
+
*
|
|
516
|
+
* @generated from protobuf field: sint64 updated_height = 6
|
|
517
|
+
*/
|
|
518
|
+
updatedHeight: bigint;
|
|
519
|
+
/**
|
|
520
|
+
* UpdatedAt timestamp in UNIX millis.
|
|
521
|
+
*
|
|
522
|
+
* @generated from protobuf field: sint64 updated_at = 7
|
|
523
|
+
*/
|
|
524
|
+
updatedAt: bigint;
|
|
525
|
+
}
|
|
526
|
+
/**
|
|
527
|
+
* @generated from protobuf message injective_megavault_rpc.UserStats
|
|
528
|
+
*/
|
|
529
|
+
export interface UserStats {
|
|
530
|
+
/**
|
|
531
|
+
* Current subscribed amount in the vault
|
|
532
|
+
*
|
|
533
|
+
* @generated from protobuf field: string current_amount = 1
|
|
534
|
+
*/
|
|
535
|
+
currentAmount: string;
|
|
536
|
+
/**
|
|
537
|
+
* Current amount of LP tokens in the vault
|
|
538
|
+
*
|
|
539
|
+
* @generated from protobuf field: string current_lp_amount = 2
|
|
540
|
+
*/
|
|
541
|
+
currentLpAmount: string;
|
|
542
|
+
/**
|
|
543
|
+
* PnL statistics
|
|
544
|
+
*
|
|
545
|
+
* @generated from protobuf field: injective_megavault_rpc.PnlStats pnl = 3
|
|
546
|
+
*/
|
|
547
|
+
pnl?: PnlStats;
|
|
548
|
+
/**
|
|
549
|
+
* Current deposisted value
|
|
550
|
+
*
|
|
551
|
+
* @generated from protobuf field: string deposited_value = 4
|
|
552
|
+
*/
|
|
553
|
+
depositedValue: string;
|
|
554
|
+
}
|
|
555
|
+
/**
|
|
556
|
+
* @generated from protobuf message injective_megavault_rpc.ListSubscriptionsRequest
|
|
557
|
+
*/
|
|
558
|
+
export interface ListSubscriptionsRequest {
|
|
559
|
+
/**
|
|
560
|
+
* Vault address
|
|
561
|
+
*
|
|
562
|
+
* @generated from protobuf field: string vault_address = 1
|
|
563
|
+
*/
|
|
564
|
+
vaultAddress: string;
|
|
565
|
+
/**
|
|
566
|
+
* User address
|
|
567
|
+
*
|
|
568
|
+
* @generated from protobuf field: string user_address = 2
|
|
569
|
+
*/
|
|
570
|
+
userAddress: string;
|
|
571
|
+
/**
|
|
572
|
+
* Status of the redemption
|
|
573
|
+
*
|
|
574
|
+
* @generated from protobuf field: string status = 3
|
|
575
|
+
*/
|
|
576
|
+
status: string;
|
|
577
|
+
/**
|
|
578
|
+
* @generated from protobuf field: sint32 per_page = 4
|
|
579
|
+
*/
|
|
580
|
+
perPage: number;
|
|
581
|
+
/**
|
|
582
|
+
* @generated from protobuf field: string token = 5
|
|
583
|
+
*/
|
|
584
|
+
token: string;
|
|
585
|
+
}
|
|
586
|
+
/**
|
|
587
|
+
* @generated from protobuf message injective_megavault_rpc.ListSubscriptionsResponse
|
|
588
|
+
*/
|
|
589
|
+
export interface ListSubscriptionsResponse {
|
|
590
|
+
/**
|
|
591
|
+
* List of subscriptions
|
|
592
|
+
*
|
|
593
|
+
* @generated from protobuf field: repeated injective_megavault_rpc.Subscription subscriptions = 1
|
|
594
|
+
*/
|
|
595
|
+
subscriptions: Subscription[];
|
|
596
|
+
/**
|
|
597
|
+
* Next tokens for pagination
|
|
598
|
+
*
|
|
599
|
+
* @generated from protobuf field: repeated string next = 2
|
|
600
|
+
*/
|
|
601
|
+
next: string[];
|
|
602
|
+
}
|
|
603
|
+
/**
|
|
604
|
+
* @generated from protobuf message injective_megavault_rpc.Subscription
|
|
605
|
+
*/
|
|
606
|
+
export interface Subscription {
|
|
607
|
+
/**
|
|
608
|
+
* Contract address
|
|
609
|
+
*
|
|
610
|
+
* @generated from protobuf field: string contract_address = 1
|
|
611
|
+
*/
|
|
612
|
+
contractAddress: string;
|
|
613
|
+
/**
|
|
614
|
+
* User
|
|
615
|
+
*
|
|
616
|
+
* @generated from protobuf field: string user = 2
|
|
617
|
+
*/
|
|
618
|
+
user: string;
|
|
619
|
+
/**
|
|
620
|
+
* Index number of the subscription
|
|
621
|
+
*
|
|
622
|
+
* @generated from protobuf field: sint64 index = 3
|
|
623
|
+
*/
|
|
624
|
+
index: bigint;
|
|
625
|
+
/**
|
|
626
|
+
* Amount of LP tokens given to the user for the subscription
|
|
627
|
+
*
|
|
628
|
+
* @generated from protobuf field: string lp_amount = 4
|
|
629
|
+
*/
|
|
630
|
+
lpAmount: string;
|
|
631
|
+
/**
|
|
632
|
+
* Amount in USDT the user gave for the subscription
|
|
633
|
+
*
|
|
634
|
+
* @generated from protobuf field: string amount = 5
|
|
635
|
+
*/
|
|
636
|
+
amount: string;
|
|
637
|
+
/**
|
|
638
|
+
* Status of the subscription
|
|
639
|
+
*
|
|
640
|
+
* @generated from protobuf field: string status = 6
|
|
641
|
+
*/
|
|
642
|
+
status: string;
|
|
643
|
+
/**
|
|
644
|
+
* Block height when the subscription was created.
|
|
645
|
+
*
|
|
646
|
+
* @generated from protobuf field: sint64 created_height = 7
|
|
647
|
+
*/
|
|
648
|
+
createdHeight: bigint;
|
|
649
|
+
/**
|
|
650
|
+
* CreatedAt timestamp in UNIX millis.
|
|
651
|
+
*
|
|
652
|
+
* @generated from protobuf field: sint64 created_at = 8
|
|
653
|
+
*/
|
|
654
|
+
createdAt: bigint;
|
|
655
|
+
/**
|
|
656
|
+
* Block height when the subscription was executed.
|
|
657
|
+
*
|
|
658
|
+
* @generated from protobuf field: sint64 executed_height = 9
|
|
659
|
+
*/
|
|
660
|
+
executedHeight: bigint;
|
|
661
|
+
/**
|
|
662
|
+
* ExecutedAt timestamp in UNIX millis.
|
|
663
|
+
*
|
|
664
|
+
* @generated from protobuf field: sint64 executed_at = 10
|
|
665
|
+
*/
|
|
666
|
+
executedAt: bigint;
|
|
667
|
+
/**
|
|
668
|
+
* Subscription status log
|
|
669
|
+
*
|
|
670
|
+
* @generated from protobuf field: repeated injective_megavault_rpc.OperationStatusLogEntry log = 11
|
|
671
|
+
*/
|
|
672
|
+
log: OperationStatusLogEntry[];
|
|
673
|
+
}
|
|
674
|
+
/**
|
|
675
|
+
* @generated from protobuf message injective_megavault_rpc.OperationStatusLogEntry
|
|
676
|
+
*/
|
|
677
|
+
export interface OperationStatusLogEntry {
|
|
678
|
+
/**
|
|
679
|
+
* Status of the subscription at this log entry
|
|
680
|
+
*
|
|
681
|
+
* @generated from protobuf field: string status = 1
|
|
682
|
+
*/
|
|
683
|
+
status: string;
|
|
684
|
+
/**
|
|
685
|
+
* Transaction hash associated with this log entry
|
|
686
|
+
*
|
|
687
|
+
* @generated from protobuf field: string tx_hash = 2
|
|
688
|
+
*/
|
|
689
|
+
txHash: string;
|
|
690
|
+
/**
|
|
691
|
+
* Block height when this log entry occurred
|
|
692
|
+
*
|
|
693
|
+
* @generated from protobuf field: sint64 block_height = 3
|
|
694
|
+
*/
|
|
695
|
+
blockHeight: bigint;
|
|
696
|
+
/**
|
|
697
|
+
* Timestamp when this log entry occurred in UNIX millis.
|
|
698
|
+
*
|
|
699
|
+
* @generated from protobuf field: sint64 block_time = 4
|
|
700
|
+
*/
|
|
701
|
+
blockTime: bigint;
|
|
702
|
+
}
|
|
703
|
+
/**
|
|
704
|
+
* @generated from protobuf message injective_megavault_rpc.ListRedemptionsRequest
|
|
705
|
+
*/
|
|
706
|
+
export interface ListRedemptionsRequest {
|
|
707
|
+
/**
|
|
708
|
+
* Vault address
|
|
709
|
+
*
|
|
710
|
+
* @generated from protobuf field: string vault_address = 1
|
|
711
|
+
*/
|
|
712
|
+
vaultAddress: string;
|
|
713
|
+
/**
|
|
714
|
+
* User address
|
|
715
|
+
*
|
|
716
|
+
* @generated from protobuf field: string user_address = 2
|
|
717
|
+
*/
|
|
718
|
+
userAddress: string;
|
|
719
|
+
/**
|
|
720
|
+
* Status of the redemption
|
|
721
|
+
*
|
|
722
|
+
* @generated from protobuf field: string status = 3
|
|
723
|
+
*/
|
|
724
|
+
status: string;
|
|
725
|
+
/**
|
|
726
|
+
* @generated from protobuf field: sint32 per_page = 4
|
|
727
|
+
*/
|
|
728
|
+
perPage: number;
|
|
729
|
+
/**
|
|
730
|
+
* @generated from protobuf field: string token = 5
|
|
731
|
+
*/
|
|
732
|
+
token: string;
|
|
733
|
+
}
|
|
734
|
+
/**
|
|
735
|
+
* @generated from protobuf message injective_megavault_rpc.ListRedemptionsResponse
|
|
736
|
+
*/
|
|
737
|
+
export interface ListRedemptionsResponse {
|
|
738
|
+
/**
|
|
739
|
+
* List of subscriptions
|
|
740
|
+
*
|
|
741
|
+
* @generated from protobuf field: repeated injective_megavault_rpc.Redemption redemptions = 1
|
|
742
|
+
*/
|
|
743
|
+
redemptions: Redemption[];
|
|
744
|
+
/**
|
|
745
|
+
* Next tokens for pagination
|
|
746
|
+
*
|
|
747
|
+
* @generated from protobuf field: repeated string next = 2
|
|
748
|
+
*/
|
|
749
|
+
next: string[];
|
|
750
|
+
}
|
|
751
|
+
/**
|
|
752
|
+
* @generated from protobuf message injective_megavault_rpc.Redemption
|
|
753
|
+
*/
|
|
754
|
+
export interface Redemption {
|
|
755
|
+
/**
|
|
756
|
+
* Contract address
|
|
757
|
+
*
|
|
758
|
+
* @generated from protobuf field: string contract_address = 1
|
|
759
|
+
*/
|
|
760
|
+
contractAddress: string;
|
|
761
|
+
/**
|
|
762
|
+
* User
|
|
763
|
+
*
|
|
764
|
+
* @generated from protobuf field: string user = 2
|
|
765
|
+
*/
|
|
766
|
+
user: string;
|
|
767
|
+
/**
|
|
768
|
+
* Index number of the redemption
|
|
769
|
+
*
|
|
770
|
+
* @generated from protobuf field: sint64 index = 3
|
|
771
|
+
*/
|
|
772
|
+
index: bigint;
|
|
773
|
+
/**
|
|
774
|
+
* Amount of LP tokens given to the user for the redemption
|
|
775
|
+
*
|
|
776
|
+
* @generated from protobuf field: string lp_amount = 4
|
|
777
|
+
*/
|
|
778
|
+
lpAmount: string;
|
|
779
|
+
/**
|
|
780
|
+
* Amount in USDT the user gave for the redemption
|
|
781
|
+
*
|
|
782
|
+
* @generated from protobuf field: string amount = 5
|
|
783
|
+
*/
|
|
784
|
+
amount: string;
|
|
785
|
+
/**
|
|
786
|
+
* Status of the subscription
|
|
787
|
+
*
|
|
788
|
+
* @generated from protobuf field: string status = 6
|
|
789
|
+
*/
|
|
790
|
+
status: string;
|
|
791
|
+
/**
|
|
792
|
+
* DueAt timestamp in UNIX millis.
|
|
793
|
+
*
|
|
794
|
+
* @generated from protobuf field: sint64 due_at = 7
|
|
795
|
+
*/
|
|
796
|
+
dueAt: bigint;
|
|
797
|
+
/**
|
|
798
|
+
* Block height when the subscription was created.
|
|
799
|
+
*
|
|
800
|
+
* @generated from protobuf field: sint64 created_height = 8
|
|
801
|
+
*/
|
|
802
|
+
createdHeight: bigint;
|
|
803
|
+
/**
|
|
804
|
+
* CreatedAt timestamp in UNIX millis.
|
|
805
|
+
*
|
|
806
|
+
* @generated from protobuf field: sint64 created_at = 9
|
|
807
|
+
*/
|
|
808
|
+
createdAt: bigint;
|
|
809
|
+
/**
|
|
810
|
+
* Block height when the subscription was executed.
|
|
811
|
+
*
|
|
812
|
+
* @generated from protobuf field: sint64 executed_height = 10
|
|
813
|
+
*/
|
|
814
|
+
executedHeight: bigint;
|
|
815
|
+
/**
|
|
816
|
+
* ExecutedAt timestamp in UNIX millis.
|
|
817
|
+
*
|
|
818
|
+
* @generated from protobuf field: sint64 executed_at = 11
|
|
819
|
+
*/
|
|
820
|
+
executedAt: bigint;
|
|
821
|
+
/**
|
|
822
|
+
* Redemption status log
|
|
823
|
+
*
|
|
824
|
+
* @generated from protobuf field: repeated injective_megavault_rpc.OperationStatusLogEntry log = 12
|
|
825
|
+
*/
|
|
826
|
+
log: OperationStatusLogEntry[];
|
|
827
|
+
}
|
|
828
|
+
/**
|
|
829
|
+
* @generated from protobuf message injective_megavault_rpc.GetOperatorRedemptionBucketsRequest
|
|
830
|
+
*/
|
|
831
|
+
export interface GetOperatorRedemptionBucketsRequest {
|
|
832
|
+
/**
|
|
833
|
+
* Vault address
|
|
834
|
+
*
|
|
835
|
+
* @generated from protobuf field: string vault_address = 1
|
|
836
|
+
*/
|
|
837
|
+
vaultAddress: string;
|
|
838
|
+
/**
|
|
839
|
+
* Operator address
|
|
840
|
+
*
|
|
841
|
+
* @generated from protobuf field: string operator_address = 2
|
|
842
|
+
*/
|
|
843
|
+
operatorAddress: string;
|
|
844
|
+
}
|
|
845
|
+
/**
|
|
846
|
+
* @generated from protobuf message injective_megavault_rpc.GetOperatorRedemptionBucketsResponse
|
|
847
|
+
*/
|
|
848
|
+
export interface GetOperatorRedemptionBucketsResponse {
|
|
849
|
+
/**
|
|
850
|
+
* The redemption buckets
|
|
851
|
+
*
|
|
852
|
+
* @generated from protobuf field: repeated injective_megavault_rpc.RedemptionBucket buckets = 1
|
|
853
|
+
*/
|
|
854
|
+
buckets: RedemptionBucket[];
|
|
855
|
+
}
|
|
856
|
+
/**
|
|
857
|
+
* @generated from protobuf message injective_megavault_rpc.RedemptionBucket
|
|
858
|
+
*/
|
|
859
|
+
export interface RedemptionBucket {
|
|
860
|
+
/**
|
|
861
|
+
* Bucket
|
|
862
|
+
*
|
|
863
|
+
* @generated from protobuf field: string bucket = 1
|
|
864
|
+
*/
|
|
865
|
+
bucket: string;
|
|
866
|
+
/**
|
|
867
|
+
* Amount of LP tokens to redeem
|
|
868
|
+
*
|
|
869
|
+
* @generated from protobuf field: string lp_amount_to_redeem = 2
|
|
870
|
+
*/
|
|
871
|
+
lpAmountToRedeem: string;
|
|
872
|
+
/**
|
|
873
|
+
* Amount needed to cover all the redemptions in the bucket
|
|
874
|
+
*
|
|
875
|
+
* @generated from protobuf field: string needed_amount = 3
|
|
876
|
+
*/
|
|
877
|
+
neededAmount: string;
|
|
878
|
+
/**
|
|
879
|
+
* Amount of liquidity missing needed to cover all the redemptions in the bucket
|
|
880
|
+
*
|
|
881
|
+
* @generated from protobuf field: string missing_liquidity = 4
|
|
882
|
+
*/
|
|
883
|
+
missingLiquidity: string;
|
|
884
|
+
}
|
|
885
|
+
/**
|
|
886
|
+
* @generated from protobuf message injective_megavault_rpc.TvlHistoryRequest
|
|
887
|
+
*/
|
|
888
|
+
export interface TvlHistoryRequest {
|
|
889
|
+
/**
|
|
890
|
+
* Vault address
|
|
891
|
+
*
|
|
892
|
+
* @generated from protobuf field: string vault_address = 1
|
|
893
|
+
*/
|
|
894
|
+
vaultAddress: string;
|
|
895
|
+
/**
|
|
896
|
+
* timestamp from which to start the query in milliseconds (UTC)
|
|
897
|
+
*
|
|
898
|
+
* @generated from protobuf field: sint64 since = 2
|
|
899
|
+
*/
|
|
900
|
+
since: bigint;
|
|
901
|
+
/**
|
|
902
|
+
* amount of data points to return
|
|
903
|
+
*
|
|
904
|
+
* @generated from protobuf field: sint32 max_data_points = 3
|
|
905
|
+
*/
|
|
906
|
+
maxDataPoints: number;
|
|
907
|
+
}
|
|
908
|
+
/**
|
|
909
|
+
* @generated from protobuf message injective_megavault_rpc.TvlHistoryResponse
|
|
910
|
+
*/
|
|
911
|
+
export interface TvlHistoryResponse {
|
|
912
|
+
/**
|
|
913
|
+
* @generated from protobuf field: repeated injective_megavault_rpc.HistoricalTVL history = 1
|
|
914
|
+
*/
|
|
915
|
+
history: HistoricalTVL[];
|
|
916
|
+
}
|
|
917
|
+
/**
|
|
918
|
+
* @generated from protobuf message injective_megavault_rpc.HistoricalTVL
|
|
919
|
+
*/
|
|
920
|
+
export interface HistoricalTVL {
|
|
921
|
+
/**
|
|
922
|
+
* Time, Unix timestamp in milliseconds (UTC)
|
|
923
|
+
*
|
|
924
|
+
* @generated from protobuf field: sint64 t = 1
|
|
925
|
+
*/
|
|
926
|
+
t: bigint;
|
|
927
|
+
/**
|
|
928
|
+
* TVL Value
|
|
929
|
+
*
|
|
930
|
+
* @generated from protobuf field: string v = 2
|
|
931
|
+
*/
|
|
932
|
+
v: string;
|
|
933
|
+
}
|
|
934
|
+
/**
|
|
935
|
+
* @generated from protobuf message injective_megavault_rpc.PnlHistoryRequest
|
|
936
|
+
*/
|
|
937
|
+
export interface PnlHistoryRequest {
|
|
938
|
+
/**
|
|
939
|
+
* Vault address
|
|
940
|
+
*
|
|
941
|
+
* @generated from protobuf field: string vault_address = 1
|
|
942
|
+
*/
|
|
943
|
+
vaultAddress: string;
|
|
944
|
+
/**
|
|
945
|
+
* timestamp from which to start the query in milliseconds (UTC)
|
|
946
|
+
*
|
|
947
|
+
* @generated from protobuf field: sint64 since = 2
|
|
948
|
+
*/
|
|
949
|
+
since: bigint;
|
|
950
|
+
/**
|
|
951
|
+
* amount of data points to return
|
|
952
|
+
*
|
|
953
|
+
* @generated from protobuf field: sint32 max_data_points = 3
|
|
954
|
+
*/
|
|
955
|
+
maxDataPoints: number;
|
|
956
|
+
}
|
|
957
|
+
/**
|
|
958
|
+
* @generated from protobuf message injective_megavault_rpc.PnlHistoryResponse
|
|
959
|
+
*/
|
|
960
|
+
export interface PnlHistoryResponse {
|
|
961
|
+
/**
|
|
962
|
+
* @generated from protobuf field: repeated injective_megavault_rpc.HistoricalPnL history = 1
|
|
963
|
+
*/
|
|
964
|
+
history: HistoricalPnL[];
|
|
965
|
+
}
|
|
966
|
+
/**
|
|
967
|
+
* @generated from protobuf message injective_megavault_rpc.HistoricalPnL
|
|
968
|
+
*/
|
|
969
|
+
export interface HistoricalPnL {
|
|
970
|
+
/**
|
|
971
|
+
* Time, Unix timestamp in milliseconds (UTC)
|
|
972
|
+
*
|
|
973
|
+
* @generated from protobuf field: sint64 t = 1
|
|
974
|
+
*/
|
|
975
|
+
t: bigint;
|
|
976
|
+
/**
|
|
977
|
+
* PnL Value
|
|
978
|
+
*
|
|
979
|
+
* @generated from protobuf field: string v = 2
|
|
980
|
+
*/
|
|
981
|
+
v: string;
|
|
982
|
+
}
|
|
983
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
984
|
+
class GetVaultRequest$Type extends MessageType<GetVaultRequest> {
|
|
985
|
+
constructor() {
|
|
986
|
+
super("injective_megavault_rpc.GetVaultRequest", [
|
|
987
|
+
{ no: 1, name: "vault_address", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
988
|
+
]);
|
|
989
|
+
}
|
|
990
|
+
create(value?: PartialMessage<GetVaultRequest>): GetVaultRequest {
|
|
991
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
992
|
+
message.vaultAddress = "";
|
|
993
|
+
if (value !== undefined)
|
|
994
|
+
reflectionMergePartial<GetVaultRequest>(this, message, value);
|
|
995
|
+
return message;
|
|
996
|
+
}
|
|
997
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetVaultRequest): GetVaultRequest {
|
|
998
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
999
|
+
while (reader.pos < end) {
|
|
1000
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1001
|
+
switch (fieldNo) {
|
|
1002
|
+
case /* string vault_address */ 1:
|
|
1003
|
+
message.vaultAddress = reader.string();
|
|
1004
|
+
break;
|
|
1005
|
+
default:
|
|
1006
|
+
let u = options.readUnknownField;
|
|
1007
|
+
if (u === "throw")
|
|
1008
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1009
|
+
let d = reader.skip(wireType);
|
|
1010
|
+
if (u !== false)
|
|
1011
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1012
|
+
}
|
|
1013
|
+
}
|
|
1014
|
+
return message;
|
|
1015
|
+
}
|
|
1016
|
+
internalBinaryWrite(message: GetVaultRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1017
|
+
/* string vault_address = 1; */
|
|
1018
|
+
if (message.vaultAddress !== "")
|
|
1019
|
+
writer.tag(1, WireType.LengthDelimited).string(message.vaultAddress);
|
|
1020
|
+
let u = options.writeUnknownFields;
|
|
1021
|
+
if (u !== false)
|
|
1022
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1023
|
+
return writer;
|
|
1024
|
+
}
|
|
1025
|
+
}
|
|
1026
|
+
/**
|
|
1027
|
+
* @generated MessageType for protobuf message injective_megavault_rpc.GetVaultRequest
|
|
1028
|
+
*/
|
|
1029
|
+
export const GetVaultRequest = new GetVaultRequest$Type();
|
|
1030
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1031
|
+
class GetVaultResponse$Type extends MessageType<GetVaultResponse> {
|
|
1032
|
+
constructor() {
|
|
1033
|
+
super("injective_megavault_rpc.GetVaultResponse", [
|
|
1034
|
+
{ no: 1, name: "vault", kind: "message", T: () => Vault }
|
|
1035
|
+
]);
|
|
1036
|
+
}
|
|
1037
|
+
create(value?: PartialMessage<GetVaultResponse>): GetVaultResponse {
|
|
1038
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1039
|
+
if (value !== undefined)
|
|
1040
|
+
reflectionMergePartial<GetVaultResponse>(this, message, value);
|
|
1041
|
+
return message;
|
|
1042
|
+
}
|
|
1043
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetVaultResponse): GetVaultResponse {
|
|
1044
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1045
|
+
while (reader.pos < end) {
|
|
1046
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1047
|
+
switch (fieldNo) {
|
|
1048
|
+
case /* injective_megavault_rpc.Vault vault */ 1:
|
|
1049
|
+
message.vault = Vault.internalBinaryRead(reader, reader.uint32(), options, message.vault);
|
|
1050
|
+
break;
|
|
1051
|
+
default:
|
|
1052
|
+
let u = options.readUnknownField;
|
|
1053
|
+
if (u === "throw")
|
|
1054
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1055
|
+
let d = reader.skip(wireType);
|
|
1056
|
+
if (u !== false)
|
|
1057
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1058
|
+
}
|
|
1059
|
+
}
|
|
1060
|
+
return message;
|
|
1061
|
+
}
|
|
1062
|
+
internalBinaryWrite(message: GetVaultResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1063
|
+
/* injective_megavault_rpc.Vault vault = 1; */
|
|
1064
|
+
if (message.vault)
|
|
1065
|
+
Vault.internalBinaryWrite(message.vault, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
1066
|
+
let u = options.writeUnknownFields;
|
|
1067
|
+
if (u !== false)
|
|
1068
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1069
|
+
return writer;
|
|
1070
|
+
}
|
|
1071
|
+
}
|
|
1072
|
+
/**
|
|
1073
|
+
* @generated MessageType for protobuf message injective_megavault_rpc.GetVaultResponse
|
|
1074
|
+
*/
|
|
1075
|
+
export const GetVaultResponse = new GetVaultResponse$Type();
|
|
1076
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1077
|
+
class Vault$Type extends MessageType<Vault> {
|
|
1078
|
+
constructor() {
|
|
1079
|
+
super("injective_megavault_rpc.Vault", [
|
|
1080
|
+
{ no: 1, name: "contract_address", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1081
|
+
{ no: 2, name: "contract_name", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1082
|
+
{ no: 3, name: "contract_version", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1083
|
+
{ no: 4, name: "admin", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1084
|
+
{ no: 5, name: "lp_denom", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1085
|
+
{ no: 6, name: "quote_denom", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1086
|
+
{ no: 7, name: "operators", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Operator },
|
|
1087
|
+
{ no: 8, name: "incentives", kind: "message", T: () => Incentives },
|
|
1088
|
+
{ no: 9, name: "target_apr", kind: "message", T: () => TargetApr },
|
|
1089
|
+
{ no: 10, name: "stats", kind: "message", T: () => VaultStats },
|
|
1090
|
+
{ no: 11, name: "created_height", kind: "scalar", T: 18 /*ScalarType.SINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
1091
|
+
{ no: 12, name: "created_at", kind: "scalar", T: 18 /*ScalarType.SINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
1092
|
+
{ no: 13, name: "updated_height", kind: "scalar", T: 18 /*ScalarType.SINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
1093
|
+
{ no: 14, name: "updated_at", kind: "scalar", T: 18 /*ScalarType.SINT64*/, L: 0 /*LongType.BIGINT*/ }
|
|
1094
|
+
]);
|
|
1095
|
+
}
|
|
1096
|
+
create(value?: PartialMessage<Vault>): Vault {
|
|
1097
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1098
|
+
message.contractAddress = "";
|
|
1099
|
+
message.contractName = "";
|
|
1100
|
+
message.contractVersion = "";
|
|
1101
|
+
message.admin = "";
|
|
1102
|
+
message.lpDenom = "";
|
|
1103
|
+
message.quoteDenom = "";
|
|
1104
|
+
message.operators = [];
|
|
1105
|
+
message.createdHeight = 0n;
|
|
1106
|
+
message.createdAt = 0n;
|
|
1107
|
+
message.updatedHeight = 0n;
|
|
1108
|
+
message.updatedAt = 0n;
|
|
1109
|
+
if (value !== undefined)
|
|
1110
|
+
reflectionMergePartial<Vault>(this, message, value);
|
|
1111
|
+
return message;
|
|
1112
|
+
}
|
|
1113
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Vault): Vault {
|
|
1114
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1115
|
+
while (reader.pos < end) {
|
|
1116
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1117
|
+
switch (fieldNo) {
|
|
1118
|
+
case /* string contract_address */ 1:
|
|
1119
|
+
message.contractAddress = reader.string();
|
|
1120
|
+
break;
|
|
1121
|
+
case /* string contract_name */ 2:
|
|
1122
|
+
message.contractName = reader.string();
|
|
1123
|
+
break;
|
|
1124
|
+
case /* string contract_version */ 3:
|
|
1125
|
+
message.contractVersion = reader.string();
|
|
1126
|
+
break;
|
|
1127
|
+
case /* string admin */ 4:
|
|
1128
|
+
message.admin = reader.string();
|
|
1129
|
+
break;
|
|
1130
|
+
case /* string lp_denom */ 5:
|
|
1131
|
+
message.lpDenom = reader.string();
|
|
1132
|
+
break;
|
|
1133
|
+
case /* string quote_denom */ 6:
|
|
1134
|
+
message.quoteDenom = reader.string();
|
|
1135
|
+
break;
|
|
1136
|
+
case /* repeated injective_megavault_rpc.Operator operators */ 7:
|
|
1137
|
+
message.operators.push(Operator.internalBinaryRead(reader, reader.uint32(), options));
|
|
1138
|
+
break;
|
|
1139
|
+
case /* injective_megavault_rpc.Incentives incentives */ 8:
|
|
1140
|
+
message.incentives = Incentives.internalBinaryRead(reader, reader.uint32(), options, message.incentives);
|
|
1141
|
+
break;
|
|
1142
|
+
case /* injective_megavault_rpc.TargetApr target_apr */ 9:
|
|
1143
|
+
message.targetApr = TargetApr.internalBinaryRead(reader, reader.uint32(), options, message.targetApr);
|
|
1144
|
+
break;
|
|
1145
|
+
case /* injective_megavault_rpc.VaultStats stats */ 10:
|
|
1146
|
+
message.stats = VaultStats.internalBinaryRead(reader, reader.uint32(), options, message.stats);
|
|
1147
|
+
break;
|
|
1148
|
+
case /* sint64 created_height */ 11:
|
|
1149
|
+
message.createdHeight = reader.sint64().toBigInt();
|
|
1150
|
+
break;
|
|
1151
|
+
case /* sint64 created_at */ 12:
|
|
1152
|
+
message.createdAt = reader.sint64().toBigInt();
|
|
1153
|
+
break;
|
|
1154
|
+
case /* sint64 updated_height */ 13:
|
|
1155
|
+
message.updatedHeight = reader.sint64().toBigInt();
|
|
1156
|
+
break;
|
|
1157
|
+
case /* sint64 updated_at */ 14:
|
|
1158
|
+
message.updatedAt = reader.sint64().toBigInt();
|
|
1159
|
+
break;
|
|
1160
|
+
default:
|
|
1161
|
+
let u = options.readUnknownField;
|
|
1162
|
+
if (u === "throw")
|
|
1163
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1164
|
+
let d = reader.skip(wireType);
|
|
1165
|
+
if (u !== false)
|
|
1166
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1167
|
+
}
|
|
1168
|
+
}
|
|
1169
|
+
return message;
|
|
1170
|
+
}
|
|
1171
|
+
internalBinaryWrite(message: Vault, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1172
|
+
/* string contract_address = 1; */
|
|
1173
|
+
if (message.contractAddress !== "")
|
|
1174
|
+
writer.tag(1, WireType.LengthDelimited).string(message.contractAddress);
|
|
1175
|
+
/* string contract_name = 2; */
|
|
1176
|
+
if (message.contractName !== "")
|
|
1177
|
+
writer.tag(2, WireType.LengthDelimited).string(message.contractName);
|
|
1178
|
+
/* string contract_version = 3; */
|
|
1179
|
+
if (message.contractVersion !== "")
|
|
1180
|
+
writer.tag(3, WireType.LengthDelimited).string(message.contractVersion);
|
|
1181
|
+
/* string admin = 4; */
|
|
1182
|
+
if (message.admin !== "")
|
|
1183
|
+
writer.tag(4, WireType.LengthDelimited).string(message.admin);
|
|
1184
|
+
/* string lp_denom = 5; */
|
|
1185
|
+
if (message.lpDenom !== "")
|
|
1186
|
+
writer.tag(5, WireType.LengthDelimited).string(message.lpDenom);
|
|
1187
|
+
/* string quote_denom = 6; */
|
|
1188
|
+
if (message.quoteDenom !== "")
|
|
1189
|
+
writer.tag(6, WireType.LengthDelimited).string(message.quoteDenom);
|
|
1190
|
+
/* repeated injective_megavault_rpc.Operator operators = 7; */
|
|
1191
|
+
for (let i = 0; i < message.operators.length; i++)
|
|
1192
|
+
Operator.internalBinaryWrite(message.operators[i], writer.tag(7, WireType.LengthDelimited).fork(), options).join();
|
|
1193
|
+
/* injective_megavault_rpc.Incentives incentives = 8; */
|
|
1194
|
+
if (message.incentives)
|
|
1195
|
+
Incentives.internalBinaryWrite(message.incentives, writer.tag(8, WireType.LengthDelimited).fork(), options).join();
|
|
1196
|
+
/* injective_megavault_rpc.TargetApr target_apr = 9; */
|
|
1197
|
+
if (message.targetApr)
|
|
1198
|
+
TargetApr.internalBinaryWrite(message.targetApr, writer.tag(9, WireType.LengthDelimited).fork(), options).join();
|
|
1199
|
+
/* injective_megavault_rpc.VaultStats stats = 10; */
|
|
1200
|
+
if (message.stats)
|
|
1201
|
+
VaultStats.internalBinaryWrite(message.stats, writer.tag(10, WireType.LengthDelimited).fork(), options).join();
|
|
1202
|
+
/* sint64 created_height = 11; */
|
|
1203
|
+
if (message.createdHeight !== 0n)
|
|
1204
|
+
writer.tag(11, WireType.Varint).sint64(message.createdHeight);
|
|
1205
|
+
/* sint64 created_at = 12; */
|
|
1206
|
+
if (message.createdAt !== 0n)
|
|
1207
|
+
writer.tag(12, WireType.Varint).sint64(message.createdAt);
|
|
1208
|
+
/* sint64 updated_height = 13; */
|
|
1209
|
+
if (message.updatedHeight !== 0n)
|
|
1210
|
+
writer.tag(13, WireType.Varint).sint64(message.updatedHeight);
|
|
1211
|
+
/* sint64 updated_at = 14; */
|
|
1212
|
+
if (message.updatedAt !== 0n)
|
|
1213
|
+
writer.tag(14, WireType.Varint).sint64(message.updatedAt);
|
|
1214
|
+
let u = options.writeUnknownFields;
|
|
1215
|
+
if (u !== false)
|
|
1216
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1217
|
+
return writer;
|
|
1218
|
+
}
|
|
1219
|
+
}
|
|
1220
|
+
/**
|
|
1221
|
+
* @generated MessageType for protobuf message injective_megavault_rpc.Vault
|
|
1222
|
+
*/
|
|
1223
|
+
export const Vault = new Vault$Type();
|
|
1224
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1225
|
+
class Operator$Type extends MessageType<Operator> {
|
|
1226
|
+
constructor() {
|
|
1227
|
+
super("injective_megavault_rpc.Operator", [
|
|
1228
|
+
{ no: 1, name: "address", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1229
|
+
{ no: 2, name: "total_amount", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1230
|
+
{ no: 3, name: "total_liquid_amount", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1231
|
+
{ no: 4, name: "updated_height", kind: "scalar", T: 18 /*ScalarType.SINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
1232
|
+
{ no: 5, name: "updated_at", kind: "scalar", T: 18 /*ScalarType.SINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
1233
|
+
{ no: 6, name: "percentage", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1234
|
+
{ no: 7, name: "subaccount_id", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
1235
|
+
]);
|
|
1236
|
+
}
|
|
1237
|
+
create(value?: PartialMessage<Operator>): Operator {
|
|
1238
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1239
|
+
message.address = "";
|
|
1240
|
+
message.totalAmount = "";
|
|
1241
|
+
message.totalLiquidAmount = "";
|
|
1242
|
+
message.updatedHeight = 0n;
|
|
1243
|
+
message.updatedAt = 0n;
|
|
1244
|
+
message.percentage = "";
|
|
1245
|
+
message.subaccountId = "";
|
|
1246
|
+
if (value !== undefined)
|
|
1247
|
+
reflectionMergePartial<Operator>(this, message, value);
|
|
1248
|
+
return message;
|
|
1249
|
+
}
|
|
1250
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Operator): Operator {
|
|
1251
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1252
|
+
while (reader.pos < end) {
|
|
1253
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1254
|
+
switch (fieldNo) {
|
|
1255
|
+
case /* string address */ 1:
|
|
1256
|
+
message.address = reader.string();
|
|
1257
|
+
break;
|
|
1258
|
+
case /* string total_amount */ 2:
|
|
1259
|
+
message.totalAmount = reader.string();
|
|
1260
|
+
break;
|
|
1261
|
+
case /* string total_liquid_amount */ 3:
|
|
1262
|
+
message.totalLiquidAmount = reader.string();
|
|
1263
|
+
break;
|
|
1264
|
+
case /* sint64 updated_height */ 4:
|
|
1265
|
+
message.updatedHeight = reader.sint64().toBigInt();
|
|
1266
|
+
break;
|
|
1267
|
+
case /* sint64 updated_at */ 5:
|
|
1268
|
+
message.updatedAt = reader.sint64().toBigInt();
|
|
1269
|
+
break;
|
|
1270
|
+
case /* string percentage */ 6:
|
|
1271
|
+
message.percentage = reader.string();
|
|
1272
|
+
break;
|
|
1273
|
+
case /* string subaccount_id */ 7:
|
|
1274
|
+
message.subaccountId = reader.string();
|
|
1275
|
+
break;
|
|
1276
|
+
default:
|
|
1277
|
+
let u = options.readUnknownField;
|
|
1278
|
+
if (u === "throw")
|
|
1279
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1280
|
+
let d = reader.skip(wireType);
|
|
1281
|
+
if (u !== false)
|
|
1282
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1283
|
+
}
|
|
1284
|
+
}
|
|
1285
|
+
return message;
|
|
1286
|
+
}
|
|
1287
|
+
internalBinaryWrite(message: Operator, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1288
|
+
/* string address = 1; */
|
|
1289
|
+
if (message.address !== "")
|
|
1290
|
+
writer.tag(1, WireType.LengthDelimited).string(message.address);
|
|
1291
|
+
/* string total_amount = 2; */
|
|
1292
|
+
if (message.totalAmount !== "")
|
|
1293
|
+
writer.tag(2, WireType.LengthDelimited).string(message.totalAmount);
|
|
1294
|
+
/* string total_liquid_amount = 3; */
|
|
1295
|
+
if (message.totalLiquidAmount !== "")
|
|
1296
|
+
writer.tag(3, WireType.LengthDelimited).string(message.totalLiquidAmount);
|
|
1297
|
+
/* sint64 updated_height = 4; */
|
|
1298
|
+
if (message.updatedHeight !== 0n)
|
|
1299
|
+
writer.tag(4, WireType.Varint).sint64(message.updatedHeight);
|
|
1300
|
+
/* sint64 updated_at = 5; */
|
|
1301
|
+
if (message.updatedAt !== 0n)
|
|
1302
|
+
writer.tag(5, WireType.Varint).sint64(message.updatedAt);
|
|
1303
|
+
/* string percentage = 6; */
|
|
1304
|
+
if (message.percentage !== "")
|
|
1305
|
+
writer.tag(6, WireType.LengthDelimited).string(message.percentage);
|
|
1306
|
+
/* string subaccount_id = 7; */
|
|
1307
|
+
if (message.subaccountId !== "")
|
|
1308
|
+
writer.tag(7, WireType.LengthDelimited).string(message.subaccountId);
|
|
1309
|
+
let u = options.writeUnknownFields;
|
|
1310
|
+
if (u !== false)
|
|
1311
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1312
|
+
return writer;
|
|
1313
|
+
}
|
|
1314
|
+
}
|
|
1315
|
+
/**
|
|
1316
|
+
* @generated MessageType for protobuf message injective_megavault_rpc.Operator
|
|
1317
|
+
*/
|
|
1318
|
+
export const Operator = new Operator$Type();
|
|
1319
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1320
|
+
class Incentives$Type extends MessageType<Incentives> {
|
|
1321
|
+
constructor() {
|
|
1322
|
+
super("injective_megavault_rpc.Incentives", [
|
|
1323
|
+
{ no: 1, name: "address", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1324
|
+
{ no: 2, name: "amount", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1325
|
+
{ no: 3, name: "updated_height", kind: "scalar", T: 18 /*ScalarType.SINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
1326
|
+
{ no: 4, name: "updated_at", kind: "scalar", T: 18 /*ScalarType.SINT64*/, L: 0 /*LongType.BIGINT*/ }
|
|
1327
|
+
]);
|
|
1328
|
+
}
|
|
1329
|
+
create(value?: PartialMessage<Incentives>): Incentives {
|
|
1330
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1331
|
+
message.address = "";
|
|
1332
|
+
message.amount = "";
|
|
1333
|
+
message.updatedHeight = 0n;
|
|
1334
|
+
message.updatedAt = 0n;
|
|
1335
|
+
if (value !== undefined)
|
|
1336
|
+
reflectionMergePartial<Incentives>(this, message, value);
|
|
1337
|
+
return message;
|
|
1338
|
+
}
|
|
1339
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Incentives): Incentives {
|
|
1340
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1341
|
+
while (reader.pos < end) {
|
|
1342
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1343
|
+
switch (fieldNo) {
|
|
1344
|
+
case /* string address */ 1:
|
|
1345
|
+
message.address = reader.string();
|
|
1346
|
+
break;
|
|
1347
|
+
case /* string amount */ 2:
|
|
1348
|
+
message.amount = reader.string();
|
|
1349
|
+
break;
|
|
1350
|
+
case /* sint64 updated_height */ 3:
|
|
1351
|
+
message.updatedHeight = reader.sint64().toBigInt();
|
|
1352
|
+
break;
|
|
1353
|
+
case /* sint64 updated_at */ 4:
|
|
1354
|
+
message.updatedAt = reader.sint64().toBigInt();
|
|
1355
|
+
break;
|
|
1356
|
+
default:
|
|
1357
|
+
let u = options.readUnknownField;
|
|
1358
|
+
if (u === "throw")
|
|
1359
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1360
|
+
let d = reader.skip(wireType);
|
|
1361
|
+
if (u !== false)
|
|
1362
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1363
|
+
}
|
|
1364
|
+
}
|
|
1365
|
+
return message;
|
|
1366
|
+
}
|
|
1367
|
+
internalBinaryWrite(message: Incentives, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1368
|
+
/* string address = 1; */
|
|
1369
|
+
if (message.address !== "")
|
|
1370
|
+
writer.tag(1, WireType.LengthDelimited).string(message.address);
|
|
1371
|
+
/* string amount = 2; */
|
|
1372
|
+
if (message.amount !== "")
|
|
1373
|
+
writer.tag(2, WireType.LengthDelimited).string(message.amount);
|
|
1374
|
+
/* sint64 updated_height = 3; */
|
|
1375
|
+
if (message.updatedHeight !== 0n)
|
|
1376
|
+
writer.tag(3, WireType.Varint).sint64(message.updatedHeight);
|
|
1377
|
+
/* sint64 updated_at = 4; */
|
|
1378
|
+
if (message.updatedAt !== 0n)
|
|
1379
|
+
writer.tag(4, WireType.Varint).sint64(message.updatedAt);
|
|
1380
|
+
let u = options.writeUnknownFields;
|
|
1381
|
+
if (u !== false)
|
|
1382
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1383
|
+
return writer;
|
|
1384
|
+
}
|
|
1385
|
+
}
|
|
1386
|
+
/**
|
|
1387
|
+
* @generated MessageType for protobuf message injective_megavault_rpc.Incentives
|
|
1388
|
+
*/
|
|
1389
|
+
export const Incentives = new Incentives$Type();
|
|
1390
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1391
|
+
class TargetApr$Type extends MessageType<TargetApr> {
|
|
1392
|
+
constructor() {
|
|
1393
|
+
super("injective_megavault_rpc.TargetApr", [
|
|
1394
|
+
{ no: 1, name: "apr", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1395
|
+
{ no: 2, name: "upper_threshold", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1396
|
+
{ no: 3, name: "lower_threshold", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1397
|
+
{ no: 4, name: "updated_height", kind: "scalar", T: 18 /*ScalarType.SINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
1398
|
+
{ no: 5, name: "updated_at", kind: "scalar", T: 18 /*ScalarType.SINT64*/, L: 0 /*LongType.BIGINT*/ }
|
|
1399
|
+
]);
|
|
1400
|
+
}
|
|
1401
|
+
create(value?: PartialMessage<TargetApr>): TargetApr {
|
|
1402
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1403
|
+
message.apr = "";
|
|
1404
|
+
message.upperThreshold = "";
|
|
1405
|
+
message.lowerThreshold = "";
|
|
1406
|
+
message.updatedHeight = 0n;
|
|
1407
|
+
message.updatedAt = 0n;
|
|
1408
|
+
if (value !== undefined)
|
|
1409
|
+
reflectionMergePartial<TargetApr>(this, message, value);
|
|
1410
|
+
return message;
|
|
1411
|
+
}
|
|
1412
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: TargetApr): TargetApr {
|
|
1413
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1414
|
+
while (reader.pos < end) {
|
|
1415
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1416
|
+
switch (fieldNo) {
|
|
1417
|
+
case /* string apr */ 1:
|
|
1418
|
+
message.apr = reader.string();
|
|
1419
|
+
break;
|
|
1420
|
+
case /* string upper_threshold */ 2:
|
|
1421
|
+
message.upperThreshold = reader.string();
|
|
1422
|
+
break;
|
|
1423
|
+
case /* string lower_threshold */ 3:
|
|
1424
|
+
message.lowerThreshold = reader.string();
|
|
1425
|
+
break;
|
|
1426
|
+
case /* sint64 updated_height */ 4:
|
|
1427
|
+
message.updatedHeight = reader.sint64().toBigInt();
|
|
1428
|
+
break;
|
|
1429
|
+
case /* sint64 updated_at */ 5:
|
|
1430
|
+
message.updatedAt = reader.sint64().toBigInt();
|
|
1431
|
+
break;
|
|
1432
|
+
default:
|
|
1433
|
+
let u = options.readUnknownField;
|
|
1434
|
+
if (u === "throw")
|
|
1435
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1436
|
+
let d = reader.skip(wireType);
|
|
1437
|
+
if (u !== false)
|
|
1438
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1439
|
+
}
|
|
1440
|
+
}
|
|
1441
|
+
return message;
|
|
1442
|
+
}
|
|
1443
|
+
internalBinaryWrite(message: TargetApr, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1444
|
+
/* string apr = 1; */
|
|
1445
|
+
if (message.apr !== "")
|
|
1446
|
+
writer.tag(1, WireType.LengthDelimited).string(message.apr);
|
|
1447
|
+
/* string upper_threshold = 2; */
|
|
1448
|
+
if (message.upperThreshold !== "")
|
|
1449
|
+
writer.tag(2, WireType.LengthDelimited).string(message.upperThreshold);
|
|
1450
|
+
/* string lower_threshold = 3; */
|
|
1451
|
+
if (message.lowerThreshold !== "")
|
|
1452
|
+
writer.tag(3, WireType.LengthDelimited).string(message.lowerThreshold);
|
|
1453
|
+
/* sint64 updated_height = 4; */
|
|
1454
|
+
if (message.updatedHeight !== 0n)
|
|
1455
|
+
writer.tag(4, WireType.Varint).sint64(message.updatedHeight);
|
|
1456
|
+
/* sint64 updated_at = 5; */
|
|
1457
|
+
if (message.updatedAt !== 0n)
|
|
1458
|
+
writer.tag(5, WireType.Varint).sint64(message.updatedAt);
|
|
1459
|
+
let u = options.writeUnknownFields;
|
|
1460
|
+
if (u !== false)
|
|
1461
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1462
|
+
return writer;
|
|
1463
|
+
}
|
|
1464
|
+
}
|
|
1465
|
+
/**
|
|
1466
|
+
* @generated MessageType for protobuf message injective_megavault_rpc.TargetApr
|
|
1467
|
+
*/
|
|
1468
|
+
export const TargetApr = new TargetApr$Type();
|
|
1469
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1470
|
+
class VaultStats$Type extends MessageType<VaultStats> {
|
|
1471
|
+
constructor() {
|
|
1472
|
+
super("injective_megavault_rpc.VaultStats", [
|
|
1473
|
+
{ no: 1, name: "total_subscribed_amount", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1474
|
+
{ no: 2, name: "total_redeemed_amount", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1475
|
+
{ no: 3, name: "current_amount", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1476
|
+
{ no: 4, name: "current_amount_without_incentives", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1477
|
+
{ no: 5, name: "current_lp_amount", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1478
|
+
{ no: 6, name: "current_lp_price", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1479
|
+
{ no: 7, name: "pnl", kind: "message", T: () => PnlStats },
|
|
1480
|
+
{ no: 8, name: "volatility", kind: "message", T: () => VolatilityStats },
|
|
1481
|
+
{ no: 9, name: "apr", kind: "message", T: () => AprStats },
|
|
1482
|
+
{ no: 10, name: "max_drawdown", kind: "message", T: () => MaxDrawdown }
|
|
1483
|
+
]);
|
|
1484
|
+
}
|
|
1485
|
+
create(value?: PartialMessage<VaultStats>): VaultStats {
|
|
1486
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1487
|
+
message.totalSubscribedAmount = "";
|
|
1488
|
+
message.totalRedeemedAmount = "";
|
|
1489
|
+
message.currentAmount = "";
|
|
1490
|
+
message.currentAmountWithoutIncentives = "";
|
|
1491
|
+
message.currentLpAmount = "";
|
|
1492
|
+
message.currentLpPrice = "";
|
|
1493
|
+
if (value !== undefined)
|
|
1494
|
+
reflectionMergePartial<VaultStats>(this, message, value);
|
|
1495
|
+
return message;
|
|
1496
|
+
}
|
|
1497
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: VaultStats): VaultStats {
|
|
1498
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1499
|
+
while (reader.pos < end) {
|
|
1500
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1501
|
+
switch (fieldNo) {
|
|
1502
|
+
case /* string total_subscribed_amount */ 1:
|
|
1503
|
+
message.totalSubscribedAmount = reader.string();
|
|
1504
|
+
break;
|
|
1505
|
+
case /* string total_redeemed_amount */ 2:
|
|
1506
|
+
message.totalRedeemedAmount = reader.string();
|
|
1507
|
+
break;
|
|
1508
|
+
case /* string current_amount */ 3:
|
|
1509
|
+
message.currentAmount = reader.string();
|
|
1510
|
+
break;
|
|
1511
|
+
case /* string current_amount_without_incentives */ 4:
|
|
1512
|
+
message.currentAmountWithoutIncentives = reader.string();
|
|
1513
|
+
break;
|
|
1514
|
+
case /* string current_lp_amount */ 5:
|
|
1515
|
+
message.currentLpAmount = reader.string();
|
|
1516
|
+
break;
|
|
1517
|
+
case /* string current_lp_price */ 6:
|
|
1518
|
+
message.currentLpPrice = reader.string();
|
|
1519
|
+
break;
|
|
1520
|
+
case /* injective_megavault_rpc.PnlStats pnl */ 7:
|
|
1521
|
+
message.pnl = PnlStats.internalBinaryRead(reader, reader.uint32(), options, message.pnl);
|
|
1522
|
+
break;
|
|
1523
|
+
case /* injective_megavault_rpc.VolatilityStats volatility */ 8:
|
|
1524
|
+
message.volatility = VolatilityStats.internalBinaryRead(reader, reader.uint32(), options, message.volatility);
|
|
1525
|
+
break;
|
|
1526
|
+
case /* injective_megavault_rpc.AprStats apr */ 9:
|
|
1527
|
+
message.apr = AprStats.internalBinaryRead(reader, reader.uint32(), options, message.apr);
|
|
1528
|
+
break;
|
|
1529
|
+
case /* injective_megavault_rpc.MaxDrawdown max_drawdown */ 10:
|
|
1530
|
+
message.maxDrawdown = MaxDrawdown.internalBinaryRead(reader, reader.uint32(), options, message.maxDrawdown);
|
|
1531
|
+
break;
|
|
1532
|
+
default:
|
|
1533
|
+
let u = options.readUnknownField;
|
|
1534
|
+
if (u === "throw")
|
|
1535
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1536
|
+
let d = reader.skip(wireType);
|
|
1537
|
+
if (u !== false)
|
|
1538
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1539
|
+
}
|
|
1540
|
+
}
|
|
1541
|
+
return message;
|
|
1542
|
+
}
|
|
1543
|
+
internalBinaryWrite(message: VaultStats, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1544
|
+
/* string total_subscribed_amount = 1; */
|
|
1545
|
+
if (message.totalSubscribedAmount !== "")
|
|
1546
|
+
writer.tag(1, WireType.LengthDelimited).string(message.totalSubscribedAmount);
|
|
1547
|
+
/* string total_redeemed_amount = 2; */
|
|
1548
|
+
if (message.totalRedeemedAmount !== "")
|
|
1549
|
+
writer.tag(2, WireType.LengthDelimited).string(message.totalRedeemedAmount);
|
|
1550
|
+
/* string current_amount = 3; */
|
|
1551
|
+
if (message.currentAmount !== "")
|
|
1552
|
+
writer.tag(3, WireType.LengthDelimited).string(message.currentAmount);
|
|
1553
|
+
/* string current_amount_without_incentives = 4; */
|
|
1554
|
+
if (message.currentAmountWithoutIncentives !== "")
|
|
1555
|
+
writer.tag(4, WireType.LengthDelimited).string(message.currentAmountWithoutIncentives);
|
|
1556
|
+
/* string current_lp_amount = 5; */
|
|
1557
|
+
if (message.currentLpAmount !== "")
|
|
1558
|
+
writer.tag(5, WireType.LengthDelimited).string(message.currentLpAmount);
|
|
1559
|
+
/* string current_lp_price = 6; */
|
|
1560
|
+
if (message.currentLpPrice !== "")
|
|
1561
|
+
writer.tag(6, WireType.LengthDelimited).string(message.currentLpPrice);
|
|
1562
|
+
/* injective_megavault_rpc.PnlStats pnl = 7; */
|
|
1563
|
+
if (message.pnl)
|
|
1564
|
+
PnlStats.internalBinaryWrite(message.pnl, writer.tag(7, WireType.LengthDelimited).fork(), options).join();
|
|
1565
|
+
/* injective_megavault_rpc.VolatilityStats volatility = 8; */
|
|
1566
|
+
if (message.volatility)
|
|
1567
|
+
VolatilityStats.internalBinaryWrite(message.volatility, writer.tag(8, WireType.LengthDelimited).fork(), options).join();
|
|
1568
|
+
/* injective_megavault_rpc.AprStats apr = 9; */
|
|
1569
|
+
if (message.apr)
|
|
1570
|
+
AprStats.internalBinaryWrite(message.apr, writer.tag(9, WireType.LengthDelimited).fork(), options).join();
|
|
1571
|
+
/* injective_megavault_rpc.MaxDrawdown max_drawdown = 10; */
|
|
1572
|
+
if (message.maxDrawdown)
|
|
1573
|
+
MaxDrawdown.internalBinaryWrite(message.maxDrawdown, writer.tag(10, WireType.LengthDelimited).fork(), options).join();
|
|
1574
|
+
let u = options.writeUnknownFields;
|
|
1575
|
+
if (u !== false)
|
|
1576
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1577
|
+
return writer;
|
|
1578
|
+
}
|
|
1579
|
+
}
|
|
1580
|
+
/**
|
|
1581
|
+
* @generated MessageType for protobuf message injective_megavault_rpc.VaultStats
|
|
1582
|
+
*/
|
|
1583
|
+
export const VaultStats = new VaultStats$Type();
|
|
1584
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1585
|
+
class PnlStats$Type extends MessageType<PnlStats> {
|
|
1586
|
+
constructor() {
|
|
1587
|
+
super("injective_megavault_rpc.PnlStats", [
|
|
1588
|
+
{ no: 1, name: "unrealized", kind: "message", T: () => UnrealizedPnl },
|
|
1589
|
+
{ no: 2, name: "all_time", kind: "message", T: () => Pnl }
|
|
1590
|
+
]);
|
|
1591
|
+
}
|
|
1592
|
+
create(value?: PartialMessage<PnlStats>): PnlStats {
|
|
1593
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1594
|
+
if (value !== undefined)
|
|
1595
|
+
reflectionMergePartial<PnlStats>(this, message, value);
|
|
1596
|
+
return message;
|
|
1597
|
+
}
|
|
1598
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PnlStats): PnlStats {
|
|
1599
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1600
|
+
while (reader.pos < end) {
|
|
1601
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1602
|
+
switch (fieldNo) {
|
|
1603
|
+
case /* injective_megavault_rpc.UnrealizedPnl unrealized */ 1:
|
|
1604
|
+
message.unrealized = UnrealizedPnl.internalBinaryRead(reader, reader.uint32(), options, message.unrealized);
|
|
1605
|
+
break;
|
|
1606
|
+
case /* injective_megavault_rpc.Pnl all_time */ 2:
|
|
1607
|
+
message.allTime = Pnl.internalBinaryRead(reader, reader.uint32(), options, message.allTime);
|
|
1608
|
+
break;
|
|
1609
|
+
default:
|
|
1610
|
+
let u = options.readUnknownField;
|
|
1611
|
+
if (u === "throw")
|
|
1612
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1613
|
+
let d = reader.skip(wireType);
|
|
1614
|
+
if (u !== false)
|
|
1615
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1616
|
+
}
|
|
1617
|
+
}
|
|
1618
|
+
return message;
|
|
1619
|
+
}
|
|
1620
|
+
internalBinaryWrite(message: PnlStats, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1621
|
+
/* injective_megavault_rpc.UnrealizedPnl unrealized = 1; */
|
|
1622
|
+
if (message.unrealized)
|
|
1623
|
+
UnrealizedPnl.internalBinaryWrite(message.unrealized, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
1624
|
+
/* injective_megavault_rpc.Pnl all_time = 2; */
|
|
1625
|
+
if (message.allTime)
|
|
1626
|
+
Pnl.internalBinaryWrite(message.allTime, writer.tag(2, WireType.LengthDelimited).fork(), options).join();
|
|
1627
|
+
let u = options.writeUnknownFields;
|
|
1628
|
+
if (u !== false)
|
|
1629
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1630
|
+
return writer;
|
|
1631
|
+
}
|
|
1632
|
+
}
|
|
1633
|
+
/**
|
|
1634
|
+
* @generated MessageType for protobuf message injective_megavault_rpc.PnlStats
|
|
1635
|
+
*/
|
|
1636
|
+
export const PnlStats = new PnlStats$Type();
|
|
1637
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1638
|
+
class UnrealizedPnl$Type extends MessageType<UnrealizedPnl> {
|
|
1639
|
+
constructor() {
|
|
1640
|
+
super("injective_megavault_rpc.UnrealizedPnl", [
|
|
1641
|
+
{ no: 1, name: "value", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1642
|
+
{ no: 2, name: "percentage", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
1643
|
+
]);
|
|
1644
|
+
}
|
|
1645
|
+
create(value?: PartialMessage<UnrealizedPnl>): UnrealizedPnl {
|
|
1646
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1647
|
+
message.value = "";
|
|
1648
|
+
message.percentage = "";
|
|
1649
|
+
if (value !== undefined)
|
|
1650
|
+
reflectionMergePartial<UnrealizedPnl>(this, message, value);
|
|
1651
|
+
return message;
|
|
1652
|
+
}
|
|
1653
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UnrealizedPnl): UnrealizedPnl {
|
|
1654
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1655
|
+
while (reader.pos < end) {
|
|
1656
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1657
|
+
switch (fieldNo) {
|
|
1658
|
+
case /* string value */ 1:
|
|
1659
|
+
message.value = reader.string();
|
|
1660
|
+
break;
|
|
1661
|
+
case /* string percentage */ 2:
|
|
1662
|
+
message.percentage = reader.string();
|
|
1663
|
+
break;
|
|
1664
|
+
default:
|
|
1665
|
+
let u = options.readUnknownField;
|
|
1666
|
+
if (u === "throw")
|
|
1667
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1668
|
+
let d = reader.skip(wireType);
|
|
1669
|
+
if (u !== false)
|
|
1670
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1671
|
+
}
|
|
1672
|
+
}
|
|
1673
|
+
return message;
|
|
1674
|
+
}
|
|
1675
|
+
internalBinaryWrite(message: UnrealizedPnl, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1676
|
+
/* string value = 1; */
|
|
1677
|
+
if (message.value !== "")
|
|
1678
|
+
writer.tag(1, WireType.LengthDelimited).string(message.value);
|
|
1679
|
+
/* string percentage = 2; */
|
|
1680
|
+
if (message.percentage !== "")
|
|
1681
|
+
writer.tag(2, WireType.LengthDelimited).string(message.percentage);
|
|
1682
|
+
let u = options.writeUnknownFields;
|
|
1683
|
+
if (u !== false)
|
|
1684
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1685
|
+
return writer;
|
|
1686
|
+
}
|
|
1687
|
+
}
|
|
1688
|
+
/**
|
|
1689
|
+
* @generated MessageType for protobuf message injective_megavault_rpc.UnrealizedPnl
|
|
1690
|
+
*/
|
|
1691
|
+
export const UnrealizedPnl = new UnrealizedPnl$Type();
|
|
1692
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1693
|
+
class Pnl$Type extends MessageType<Pnl> {
|
|
1694
|
+
constructor() {
|
|
1695
|
+
super("injective_megavault_rpc.Pnl", [
|
|
1696
|
+
{ no: 1, name: "value", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1697
|
+
{ no: 2, name: "percentage", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1698
|
+
{ no: 3, name: "total_amount_subscribed", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1699
|
+
{ no: 4, name: "total_amount_redeemed", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1700
|
+
{ no: 5, name: "current_amount", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
1701
|
+
]);
|
|
1702
|
+
}
|
|
1703
|
+
create(value?: PartialMessage<Pnl>): Pnl {
|
|
1704
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1705
|
+
message.value = "";
|
|
1706
|
+
message.percentage = "";
|
|
1707
|
+
message.totalAmountSubscribed = "";
|
|
1708
|
+
message.totalAmountRedeemed = "";
|
|
1709
|
+
message.currentAmount = "";
|
|
1710
|
+
if (value !== undefined)
|
|
1711
|
+
reflectionMergePartial<Pnl>(this, message, value);
|
|
1712
|
+
return message;
|
|
1713
|
+
}
|
|
1714
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Pnl): Pnl {
|
|
1715
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1716
|
+
while (reader.pos < end) {
|
|
1717
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1718
|
+
switch (fieldNo) {
|
|
1719
|
+
case /* string value */ 1:
|
|
1720
|
+
message.value = reader.string();
|
|
1721
|
+
break;
|
|
1722
|
+
case /* string percentage */ 2:
|
|
1723
|
+
message.percentage = reader.string();
|
|
1724
|
+
break;
|
|
1725
|
+
case /* string total_amount_subscribed */ 3:
|
|
1726
|
+
message.totalAmountSubscribed = reader.string();
|
|
1727
|
+
break;
|
|
1728
|
+
case /* string total_amount_redeemed */ 4:
|
|
1729
|
+
message.totalAmountRedeemed = reader.string();
|
|
1730
|
+
break;
|
|
1731
|
+
case /* string current_amount */ 5:
|
|
1732
|
+
message.currentAmount = reader.string();
|
|
1733
|
+
break;
|
|
1734
|
+
default:
|
|
1735
|
+
let u = options.readUnknownField;
|
|
1736
|
+
if (u === "throw")
|
|
1737
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1738
|
+
let d = reader.skip(wireType);
|
|
1739
|
+
if (u !== false)
|
|
1740
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1741
|
+
}
|
|
1742
|
+
}
|
|
1743
|
+
return message;
|
|
1744
|
+
}
|
|
1745
|
+
internalBinaryWrite(message: Pnl, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1746
|
+
/* string value = 1; */
|
|
1747
|
+
if (message.value !== "")
|
|
1748
|
+
writer.tag(1, WireType.LengthDelimited).string(message.value);
|
|
1749
|
+
/* string percentage = 2; */
|
|
1750
|
+
if (message.percentage !== "")
|
|
1751
|
+
writer.tag(2, WireType.LengthDelimited).string(message.percentage);
|
|
1752
|
+
/* string total_amount_subscribed = 3; */
|
|
1753
|
+
if (message.totalAmountSubscribed !== "")
|
|
1754
|
+
writer.tag(3, WireType.LengthDelimited).string(message.totalAmountSubscribed);
|
|
1755
|
+
/* string total_amount_redeemed = 4; */
|
|
1756
|
+
if (message.totalAmountRedeemed !== "")
|
|
1757
|
+
writer.tag(4, WireType.LengthDelimited).string(message.totalAmountRedeemed);
|
|
1758
|
+
/* string current_amount = 5; */
|
|
1759
|
+
if (message.currentAmount !== "")
|
|
1760
|
+
writer.tag(5, WireType.LengthDelimited).string(message.currentAmount);
|
|
1761
|
+
let u = options.writeUnknownFields;
|
|
1762
|
+
if (u !== false)
|
|
1763
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1764
|
+
return writer;
|
|
1765
|
+
}
|
|
1766
|
+
}
|
|
1767
|
+
/**
|
|
1768
|
+
* @generated MessageType for protobuf message injective_megavault_rpc.Pnl
|
|
1769
|
+
*/
|
|
1770
|
+
export const Pnl = new Pnl$Type();
|
|
1771
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1772
|
+
class VolatilityStats$Type extends MessageType<VolatilityStats> {
|
|
1773
|
+
constructor() {
|
|
1774
|
+
super("injective_megavault_rpc.VolatilityStats", [
|
|
1775
|
+
{ no: 1, name: "thirty_days", kind: "message", T: () => Volatility }
|
|
1776
|
+
]);
|
|
1777
|
+
}
|
|
1778
|
+
create(value?: PartialMessage<VolatilityStats>): VolatilityStats {
|
|
1779
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1780
|
+
if (value !== undefined)
|
|
1781
|
+
reflectionMergePartial<VolatilityStats>(this, message, value);
|
|
1782
|
+
return message;
|
|
1783
|
+
}
|
|
1784
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: VolatilityStats): VolatilityStats {
|
|
1785
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1786
|
+
while (reader.pos < end) {
|
|
1787
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1788
|
+
switch (fieldNo) {
|
|
1789
|
+
case /* injective_megavault_rpc.Volatility thirty_days */ 1:
|
|
1790
|
+
message.thirtyDays = Volatility.internalBinaryRead(reader, reader.uint32(), options, message.thirtyDays);
|
|
1791
|
+
break;
|
|
1792
|
+
default:
|
|
1793
|
+
let u = options.readUnknownField;
|
|
1794
|
+
if (u === "throw")
|
|
1795
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1796
|
+
let d = reader.skip(wireType);
|
|
1797
|
+
if (u !== false)
|
|
1798
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1799
|
+
}
|
|
1800
|
+
}
|
|
1801
|
+
return message;
|
|
1802
|
+
}
|
|
1803
|
+
internalBinaryWrite(message: VolatilityStats, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1804
|
+
/* injective_megavault_rpc.Volatility thirty_days = 1; */
|
|
1805
|
+
if (message.thirtyDays)
|
|
1806
|
+
Volatility.internalBinaryWrite(message.thirtyDays, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
1807
|
+
let u = options.writeUnknownFields;
|
|
1808
|
+
if (u !== false)
|
|
1809
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1810
|
+
return writer;
|
|
1811
|
+
}
|
|
1812
|
+
}
|
|
1813
|
+
/**
|
|
1814
|
+
* @generated MessageType for protobuf message injective_megavault_rpc.VolatilityStats
|
|
1815
|
+
*/
|
|
1816
|
+
export const VolatilityStats = new VolatilityStats$Type();
|
|
1817
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1818
|
+
class Volatility$Type extends MessageType<Volatility> {
|
|
1819
|
+
constructor() {
|
|
1820
|
+
super("injective_megavault_rpc.Volatility", [
|
|
1821
|
+
{ no: 1, name: "value", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
1822
|
+
]);
|
|
1823
|
+
}
|
|
1824
|
+
create(value?: PartialMessage<Volatility>): Volatility {
|
|
1825
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1826
|
+
message.value = "";
|
|
1827
|
+
if (value !== undefined)
|
|
1828
|
+
reflectionMergePartial<Volatility>(this, message, value);
|
|
1829
|
+
return message;
|
|
1830
|
+
}
|
|
1831
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Volatility): Volatility {
|
|
1832
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1833
|
+
while (reader.pos < end) {
|
|
1834
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1835
|
+
switch (fieldNo) {
|
|
1836
|
+
case /* string value */ 1:
|
|
1837
|
+
message.value = reader.string();
|
|
1838
|
+
break;
|
|
1839
|
+
default:
|
|
1840
|
+
let u = options.readUnknownField;
|
|
1841
|
+
if (u === "throw")
|
|
1842
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1843
|
+
let d = reader.skip(wireType);
|
|
1844
|
+
if (u !== false)
|
|
1845
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1846
|
+
}
|
|
1847
|
+
}
|
|
1848
|
+
return message;
|
|
1849
|
+
}
|
|
1850
|
+
internalBinaryWrite(message: Volatility, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1851
|
+
/* string value = 1; */
|
|
1852
|
+
if (message.value !== "")
|
|
1853
|
+
writer.tag(1, WireType.LengthDelimited).string(message.value);
|
|
1854
|
+
let u = options.writeUnknownFields;
|
|
1855
|
+
if (u !== false)
|
|
1856
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1857
|
+
return writer;
|
|
1858
|
+
}
|
|
1859
|
+
}
|
|
1860
|
+
/**
|
|
1861
|
+
* @generated MessageType for protobuf message injective_megavault_rpc.Volatility
|
|
1862
|
+
*/
|
|
1863
|
+
export const Volatility = new Volatility$Type();
|
|
1864
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1865
|
+
class AprStats$Type extends MessageType<AprStats> {
|
|
1866
|
+
constructor() {
|
|
1867
|
+
super("injective_megavault_rpc.AprStats", [
|
|
1868
|
+
{ no: 1, name: "thirty_days", kind: "message", T: () => Apr }
|
|
1869
|
+
]);
|
|
1870
|
+
}
|
|
1871
|
+
create(value?: PartialMessage<AprStats>): AprStats {
|
|
1872
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1873
|
+
if (value !== undefined)
|
|
1874
|
+
reflectionMergePartial<AprStats>(this, message, value);
|
|
1875
|
+
return message;
|
|
1876
|
+
}
|
|
1877
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: AprStats): AprStats {
|
|
1878
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1879
|
+
while (reader.pos < end) {
|
|
1880
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1881
|
+
switch (fieldNo) {
|
|
1882
|
+
case /* injective_megavault_rpc.Apr thirty_days */ 1:
|
|
1883
|
+
message.thirtyDays = Apr.internalBinaryRead(reader, reader.uint32(), options, message.thirtyDays);
|
|
1884
|
+
break;
|
|
1885
|
+
default:
|
|
1886
|
+
let u = options.readUnknownField;
|
|
1887
|
+
if (u === "throw")
|
|
1888
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1889
|
+
let d = reader.skip(wireType);
|
|
1890
|
+
if (u !== false)
|
|
1891
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1892
|
+
}
|
|
1893
|
+
}
|
|
1894
|
+
return message;
|
|
1895
|
+
}
|
|
1896
|
+
internalBinaryWrite(message: AprStats, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1897
|
+
/* injective_megavault_rpc.Apr thirty_days = 1; */
|
|
1898
|
+
if (message.thirtyDays)
|
|
1899
|
+
Apr.internalBinaryWrite(message.thirtyDays, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
1900
|
+
let u = options.writeUnknownFields;
|
|
1901
|
+
if (u !== false)
|
|
1902
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1903
|
+
return writer;
|
|
1904
|
+
}
|
|
1905
|
+
}
|
|
1906
|
+
/**
|
|
1907
|
+
* @generated MessageType for protobuf message injective_megavault_rpc.AprStats
|
|
1908
|
+
*/
|
|
1909
|
+
export const AprStats = new AprStats$Type();
|
|
1910
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1911
|
+
class Apr$Type extends MessageType<Apr> {
|
|
1912
|
+
constructor() {
|
|
1913
|
+
super("injective_megavault_rpc.Apr", [
|
|
1914
|
+
{ no: 1, name: "value", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1915
|
+
{ no: 2, name: "original_lp_price", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1916
|
+
{ no: 3, name: "current_lp_price", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
1917
|
+
]);
|
|
1918
|
+
}
|
|
1919
|
+
create(value?: PartialMessage<Apr>): Apr {
|
|
1920
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1921
|
+
message.value = "";
|
|
1922
|
+
message.originalLpPrice = "";
|
|
1923
|
+
message.currentLpPrice = "";
|
|
1924
|
+
if (value !== undefined)
|
|
1925
|
+
reflectionMergePartial<Apr>(this, message, value);
|
|
1926
|
+
return message;
|
|
1927
|
+
}
|
|
1928
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Apr): Apr {
|
|
1929
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1930
|
+
while (reader.pos < end) {
|
|
1931
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1932
|
+
switch (fieldNo) {
|
|
1933
|
+
case /* string value */ 1:
|
|
1934
|
+
message.value = reader.string();
|
|
1935
|
+
break;
|
|
1936
|
+
case /* string original_lp_price */ 2:
|
|
1937
|
+
message.originalLpPrice = reader.string();
|
|
1938
|
+
break;
|
|
1939
|
+
case /* string current_lp_price */ 3:
|
|
1940
|
+
message.currentLpPrice = reader.string();
|
|
1941
|
+
break;
|
|
1942
|
+
default:
|
|
1943
|
+
let u = options.readUnknownField;
|
|
1944
|
+
if (u === "throw")
|
|
1945
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
1946
|
+
let d = reader.skip(wireType);
|
|
1947
|
+
if (u !== false)
|
|
1948
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
1949
|
+
}
|
|
1950
|
+
}
|
|
1951
|
+
return message;
|
|
1952
|
+
}
|
|
1953
|
+
internalBinaryWrite(message: Apr, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
1954
|
+
/* string value = 1; */
|
|
1955
|
+
if (message.value !== "")
|
|
1956
|
+
writer.tag(1, WireType.LengthDelimited).string(message.value);
|
|
1957
|
+
/* string original_lp_price = 2; */
|
|
1958
|
+
if (message.originalLpPrice !== "")
|
|
1959
|
+
writer.tag(2, WireType.LengthDelimited).string(message.originalLpPrice);
|
|
1960
|
+
/* string current_lp_price = 3; */
|
|
1961
|
+
if (message.currentLpPrice !== "")
|
|
1962
|
+
writer.tag(3, WireType.LengthDelimited).string(message.currentLpPrice);
|
|
1963
|
+
let u = options.writeUnknownFields;
|
|
1964
|
+
if (u !== false)
|
|
1965
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
1966
|
+
return writer;
|
|
1967
|
+
}
|
|
1968
|
+
}
|
|
1969
|
+
/**
|
|
1970
|
+
* @generated MessageType for protobuf message injective_megavault_rpc.Apr
|
|
1971
|
+
*/
|
|
1972
|
+
export const Apr = new Apr$Type();
|
|
1973
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
1974
|
+
class MaxDrawdown$Type extends MessageType<MaxDrawdown> {
|
|
1975
|
+
constructor() {
|
|
1976
|
+
super("injective_megavault_rpc.MaxDrawdown", [
|
|
1977
|
+
{ no: 1, name: "value", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
1978
|
+
{ no: 2, name: "latest_pn_l_peak", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
1979
|
+
]);
|
|
1980
|
+
}
|
|
1981
|
+
create(value?: PartialMessage<MaxDrawdown>): MaxDrawdown {
|
|
1982
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
1983
|
+
message.value = "";
|
|
1984
|
+
message.latestPnLPeak = "";
|
|
1985
|
+
if (value !== undefined)
|
|
1986
|
+
reflectionMergePartial<MaxDrawdown>(this, message, value);
|
|
1987
|
+
return message;
|
|
1988
|
+
}
|
|
1989
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: MaxDrawdown): MaxDrawdown {
|
|
1990
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
1991
|
+
while (reader.pos < end) {
|
|
1992
|
+
let [fieldNo, wireType] = reader.tag();
|
|
1993
|
+
switch (fieldNo) {
|
|
1994
|
+
case /* string value */ 1:
|
|
1995
|
+
message.value = reader.string();
|
|
1996
|
+
break;
|
|
1997
|
+
case /* string latest_pn_l_peak */ 2:
|
|
1998
|
+
message.latestPnLPeak = reader.string();
|
|
1999
|
+
break;
|
|
2000
|
+
default:
|
|
2001
|
+
let u = options.readUnknownField;
|
|
2002
|
+
if (u === "throw")
|
|
2003
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
2004
|
+
let d = reader.skip(wireType);
|
|
2005
|
+
if (u !== false)
|
|
2006
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
2007
|
+
}
|
|
2008
|
+
}
|
|
2009
|
+
return message;
|
|
2010
|
+
}
|
|
2011
|
+
internalBinaryWrite(message: MaxDrawdown, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2012
|
+
/* string value = 1; */
|
|
2013
|
+
if (message.value !== "")
|
|
2014
|
+
writer.tag(1, WireType.LengthDelimited).string(message.value);
|
|
2015
|
+
/* string latest_pn_l_peak = 2; */
|
|
2016
|
+
if (message.latestPnLPeak !== "")
|
|
2017
|
+
writer.tag(2, WireType.LengthDelimited).string(message.latestPnLPeak);
|
|
2018
|
+
let u = options.writeUnknownFields;
|
|
2019
|
+
if (u !== false)
|
|
2020
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
2021
|
+
return writer;
|
|
2022
|
+
}
|
|
2023
|
+
}
|
|
2024
|
+
/**
|
|
2025
|
+
* @generated MessageType for protobuf message injective_megavault_rpc.MaxDrawdown
|
|
2026
|
+
*/
|
|
2027
|
+
export const MaxDrawdown = new MaxDrawdown$Type();
|
|
2028
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
2029
|
+
class GetUserRequest$Type extends MessageType<GetUserRequest> {
|
|
2030
|
+
constructor() {
|
|
2031
|
+
super("injective_megavault_rpc.GetUserRequest", [
|
|
2032
|
+
{ no: 1, name: "vault_address", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
2033
|
+
{ no: 2, name: "user_address", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
2034
|
+
]);
|
|
2035
|
+
}
|
|
2036
|
+
create(value?: PartialMessage<GetUserRequest>): GetUserRequest {
|
|
2037
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
2038
|
+
message.vaultAddress = "";
|
|
2039
|
+
message.userAddress = "";
|
|
2040
|
+
if (value !== undefined)
|
|
2041
|
+
reflectionMergePartial<GetUserRequest>(this, message, value);
|
|
2042
|
+
return message;
|
|
2043
|
+
}
|
|
2044
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetUserRequest): GetUserRequest {
|
|
2045
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
2046
|
+
while (reader.pos < end) {
|
|
2047
|
+
let [fieldNo, wireType] = reader.tag();
|
|
2048
|
+
switch (fieldNo) {
|
|
2049
|
+
case /* string vault_address */ 1:
|
|
2050
|
+
message.vaultAddress = reader.string();
|
|
2051
|
+
break;
|
|
2052
|
+
case /* string user_address */ 2:
|
|
2053
|
+
message.userAddress = reader.string();
|
|
2054
|
+
break;
|
|
2055
|
+
default:
|
|
2056
|
+
let u = options.readUnknownField;
|
|
2057
|
+
if (u === "throw")
|
|
2058
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
2059
|
+
let d = reader.skip(wireType);
|
|
2060
|
+
if (u !== false)
|
|
2061
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
2062
|
+
}
|
|
2063
|
+
}
|
|
2064
|
+
return message;
|
|
2065
|
+
}
|
|
2066
|
+
internalBinaryWrite(message: GetUserRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2067
|
+
/* string vault_address = 1; */
|
|
2068
|
+
if (message.vaultAddress !== "")
|
|
2069
|
+
writer.tag(1, WireType.LengthDelimited).string(message.vaultAddress);
|
|
2070
|
+
/* string user_address = 2; */
|
|
2071
|
+
if (message.userAddress !== "")
|
|
2072
|
+
writer.tag(2, WireType.LengthDelimited).string(message.userAddress);
|
|
2073
|
+
let u = options.writeUnknownFields;
|
|
2074
|
+
if (u !== false)
|
|
2075
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
2076
|
+
return writer;
|
|
2077
|
+
}
|
|
2078
|
+
}
|
|
2079
|
+
/**
|
|
2080
|
+
* @generated MessageType for protobuf message injective_megavault_rpc.GetUserRequest
|
|
2081
|
+
*/
|
|
2082
|
+
export const GetUserRequest = new GetUserRequest$Type();
|
|
2083
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
2084
|
+
class GetUserResponse$Type extends MessageType<GetUserResponse> {
|
|
2085
|
+
constructor() {
|
|
2086
|
+
super("injective_megavault_rpc.GetUserResponse", [
|
|
2087
|
+
{ no: 1, name: "user", kind: "message", T: () => User }
|
|
2088
|
+
]);
|
|
2089
|
+
}
|
|
2090
|
+
create(value?: PartialMessage<GetUserResponse>): GetUserResponse {
|
|
2091
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
2092
|
+
if (value !== undefined)
|
|
2093
|
+
reflectionMergePartial<GetUserResponse>(this, message, value);
|
|
2094
|
+
return message;
|
|
2095
|
+
}
|
|
2096
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetUserResponse): GetUserResponse {
|
|
2097
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
2098
|
+
while (reader.pos < end) {
|
|
2099
|
+
let [fieldNo, wireType] = reader.tag();
|
|
2100
|
+
switch (fieldNo) {
|
|
2101
|
+
case /* injective_megavault_rpc.User user */ 1:
|
|
2102
|
+
message.user = User.internalBinaryRead(reader, reader.uint32(), options, message.user);
|
|
2103
|
+
break;
|
|
2104
|
+
default:
|
|
2105
|
+
let u = options.readUnknownField;
|
|
2106
|
+
if (u === "throw")
|
|
2107
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
2108
|
+
let d = reader.skip(wireType);
|
|
2109
|
+
if (u !== false)
|
|
2110
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
2111
|
+
}
|
|
2112
|
+
}
|
|
2113
|
+
return message;
|
|
2114
|
+
}
|
|
2115
|
+
internalBinaryWrite(message: GetUserResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2116
|
+
/* injective_megavault_rpc.User user = 1; */
|
|
2117
|
+
if (message.user)
|
|
2118
|
+
User.internalBinaryWrite(message.user, writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
2119
|
+
let u = options.writeUnknownFields;
|
|
2120
|
+
if (u !== false)
|
|
2121
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
2122
|
+
return writer;
|
|
2123
|
+
}
|
|
2124
|
+
}
|
|
2125
|
+
/**
|
|
2126
|
+
* @generated MessageType for protobuf message injective_megavault_rpc.GetUserResponse
|
|
2127
|
+
*/
|
|
2128
|
+
export const GetUserResponse = new GetUserResponse$Type();
|
|
2129
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
2130
|
+
class User$Type extends MessageType<User> {
|
|
2131
|
+
constructor() {
|
|
2132
|
+
super("injective_megavault_rpc.User", [
|
|
2133
|
+
{ no: 1, name: "address", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
2134
|
+
{ no: 2, name: "contract_address", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
2135
|
+
{ no: 3, name: "stats", kind: "message", T: () => UserStats },
|
|
2136
|
+
{ no: 4, name: "created_height", kind: "scalar", T: 18 /*ScalarType.SINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
2137
|
+
{ no: 5, name: "created_at", kind: "scalar", T: 18 /*ScalarType.SINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
2138
|
+
{ no: 6, name: "updated_height", kind: "scalar", T: 18 /*ScalarType.SINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
2139
|
+
{ no: 7, name: "updated_at", kind: "scalar", T: 18 /*ScalarType.SINT64*/, L: 0 /*LongType.BIGINT*/ }
|
|
2140
|
+
]);
|
|
2141
|
+
}
|
|
2142
|
+
create(value?: PartialMessage<User>): User {
|
|
2143
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
2144
|
+
message.address = "";
|
|
2145
|
+
message.contractAddress = "";
|
|
2146
|
+
message.createdHeight = 0n;
|
|
2147
|
+
message.createdAt = 0n;
|
|
2148
|
+
message.updatedHeight = 0n;
|
|
2149
|
+
message.updatedAt = 0n;
|
|
2150
|
+
if (value !== undefined)
|
|
2151
|
+
reflectionMergePartial<User>(this, message, value);
|
|
2152
|
+
return message;
|
|
2153
|
+
}
|
|
2154
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: User): User {
|
|
2155
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
2156
|
+
while (reader.pos < end) {
|
|
2157
|
+
let [fieldNo, wireType] = reader.tag();
|
|
2158
|
+
switch (fieldNo) {
|
|
2159
|
+
case /* string address */ 1:
|
|
2160
|
+
message.address = reader.string();
|
|
2161
|
+
break;
|
|
2162
|
+
case /* string contract_address */ 2:
|
|
2163
|
+
message.contractAddress = reader.string();
|
|
2164
|
+
break;
|
|
2165
|
+
case /* injective_megavault_rpc.UserStats stats */ 3:
|
|
2166
|
+
message.stats = UserStats.internalBinaryRead(reader, reader.uint32(), options, message.stats);
|
|
2167
|
+
break;
|
|
2168
|
+
case /* sint64 created_height */ 4:
|
|
2169
|
+
message.createdHeight = reader.sint64().toBigInt();
|
|
2170
|
+
break;
|
|
2171
|
+
case /* sint64 created_at */ 5:
|
|
2172
|
+
message.createdAt = reader.sint64().toBigInt();
|
|
2173
|
+
break;
|
|
2174
|
+
case /* sint64 updated_height */ 6:
|
|
2175
|
+
message.updatedHeight = reader.sint64().toBigInt();
|
|
2176
|
+
break;
|
|
2177
|
+
case /* sint64 updated_at */ 7:
|
|
2178
|
+
message.updatedAt = reader.sint64().toBigInt();
|
|
2179
|
+
break;
|
|
2180
|
+
default:
|
|
2181
|
+
let u = options.readUnknownField;
|
|
2182
|
+
if (u === "throw")
|
|
2183
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
2184
|
+
let d = reader.skip(wireType);
|
|
2185
|
+
if (u !== false)
|
|
2186
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
2187
|
+
}
|
|
2188
|
+
}
|
|
2189
|
+
return message;
|
|
2190
|
+
}
|
|
2191
|
+
internalBinaryWrite(message: User, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2192
|
+
/* string address = 1; */
|
|
2193
|
+
if (message.address !== "")
|
|
2194
|
+
writer.tag(1, WireType.LengthDelimited).string(message.address);
|
|
2195
|
+
/* string contract_address = 2; */
|
|
2196
|
+
if (message.contractAddress !== "")
|
|
2197
|
+
writer.tag(2, WireType.LengthDelimited).string(message.contractAddress);
|
|
2198
|
+
/* injective_megavault_rpc.UserStats stats = 3; */
|
|
2199
|
+
if (message.stats)
|
|
2200
|
+
UserStats.internalBinaryWrite(message.stats, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
2201
|
+
/* sint64 created_height = 4; */
|
|
2202
|
+
if (message.createdHeight !== 0n)
|
|
2203
|
+
writer.tag(4, WireType.Varint).sint64(message.createdHeight);
|
|
2204
|
+
/* sint64 created_at = 5; */
|
|
2205
|
+
if (message.createdAt !== 0n)
|
|
2206
|
+
writer.tag(5, WireType.Varint).sint64(message.createdAt);
|
|
2207
|
+
/* sint64 updated_height = 6; */
|
|
2208
|
+
if (message.updatedHeight !== 0n)
|
|
2209
|
+
writer.tag(6, WireType.Varint).sint64(message.updatedHeight);
|
|
2210
|
+
/* sint64 updated_at = 7; */
|
|
2211
|
+
if (message.updatedAt !== 0n)
|
|
2212
|
+
writer.tag(7, WireType.Varint).sint64(message.updatedAt);
|
|
2213
|
+
let u = options.writeUnknownFields;
|
|
2214
|
+
if (u !== false)
|
|
2215
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
2216
|
+
return writer;
|
|
2217
|
+
}
|
|
2218
|
+
}
|
|
2219
|
+
/**
|
|
2220
|
+
* @generated MessageType for protobuf message injective_megavault_rpc.User
|
|
2221
|
+
*/
|
|
2222
|
+
export const User = new User$Type();
|
|
2223
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
2224
|
+
class UserStats$Type extends MessageType<UserStats> {
|
|
2225
|
+
constructor() {
|
|
2226
|
+
super("injective_megavault_rpc.UserStats", [
|
|
2227
|
+
{ no: 1, name: "current_amount", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
2228
|
+
{ no: 2, name: "current_lp_amount", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
2229
|
+
{ no: 3, name: "pnl", kind: "message", T: () => PnlStats },
|
|
2230
|
+
{ no: 4, name: "deposited_value", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
2231
|
+
]);
|
|
2232
|
+
}
|
|
2233
|
+
create(value?: PartialMessage<UserStats>): UserStats {
|
|
2234
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
2235
|
+
message.currentAmount = "";
|
|
2236
|
+
message.currentLpAmount = "";
|
|
2237
|
+
message.depositedValue = "";
|
|
2238
|
+
if (value !== undefined)
|
|
2239
|
+
reflectionMergePartial<UserStats>(this, message, value);
|
|
2240
|
+
return message;
|
|
2241
|
+
}
|
|
2242
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: UserStats): UserStats {
|
|
2243
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
2244
|
+
while (reader.pos < end) {
|
|
2245
|
+
let [fieldNo, wireType] = reader.tag();
|
|
2246
|
+
switch (fieldNo) {
|
|
2247
|
+
case /* string current_amount */ 1:
|
|
2248
|
+
message.currentAmount = reader.string();
|
|
2249
|
+
break;
|
|
2250
|
+
case /* string current_lp_amount */ 2:
|
|
2251
|
+
message.currentLpAmount = reader.string();
|
|
2252
|
+
break;
|
|
2253
|
+
case /* injective_megavault_rpc.PnlStats pnl */ 3:
|
|
2254
|
+
message.pnl = PnlStats.internalBinaryRead(reader, reader.uint32(), options, message.pnl);
|
|
2255
|
+
break;
|
|
2256
|
+
case /* string deposited_value */ 4:
|
|
2257
|
+
message.depositedValue = reader.string();
|
|
2258
|
+
break;
|
|
2259
|
+
default:
|
|
2260
|
+
let u = options.readUnknownField;
|
|
2261
|
+
if (u === "throw")
|
|
2262
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
2263
|
+
let d = reader.skip(wireType);
|
|
2264
|
+
if (u !== false)
|
|
2265
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
2266
|
+
}
|
|
2267
|
+
}
|
|
2268
|
+
return message;
|
|
2269
|
+
}
|
|
2270
|
+
internalBinaryWrite(message: UserStats, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2271
|
+
/* string current_amount = 1; */
|
|
2272
|
+
if (message.currentAmount !== "")
|
|
2273
|
+
writer.tag(1, WireType.LengthDelimited).string(message.currentAmount);
|
|
2274
|
+
/* string current_lp_amount = 2; */
|
|
2275
|
+
if (message.currentLpAmount !== "")
|
|
2276
|
+
writer.tag(2, WireType.LengthDelimited).string(message.currentLpAmount);
|
|
2277
|
+
/* injective_megavault_rpc.PnlStats pnl = 3; */
|
|
2278
|
+
if (message.pnl)
|
|
2279
|
+
PnlStats.internalBinaryWrite(message.pnl, writer.tag(3, WireType.LengthDelimited).fork(), options).join();
|
|
2280
|
+
/* string deposited_value = 4; */
|
|
2281
|
+
if (message.depositedValue !== "")
|
|
2282
|
+
writer.tag(4, WireType.LengthDelimited).string(message.depositedValue);
|
|
2283
|
+
let u = options.writeUnknownFields;
|
|
2284
|
+
if (u !== false)
|
|
2285
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
2286
|
+
return writer;
|
|
2287
|
+
}
|
|
2288
|
+
}
|
|
2289
|
+
/**
|
|
2290
|
+
* @generated MessageType for protobuf message injective_megavault_rpc.UserStats
|
|
2291
|
+
*/
|
|
2292
|
+
export const UserStats = new UserStats$Type();
|
|
2293
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
2294
|
+
class ListSubscriptionsRequest$Type extends MessageType<ListSubscriptionsRequest> {
|
|
2295
|
+
constructor() {
|
|
2296
|
+
super("injective_megavault_rpc.ListSubscriptionsRequest", [
|
|
2297
|
+
{ no: 1, name: "vault_address", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
2298
|
+
{ no: 2, name: "user_address", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
2299
|
+
{ no: 3, name: "status", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
2300
|
+
{ no: 4, name: "per_page", kind: "scalar", T: 17 /*ScalarType.SINT32*/ },
|
|
2301
|
+
{ no: 5, name: "token", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
2302
|
+
]);
|
|
2303
|
+
}
|
|
2304
|
+
create(value?: PartialMessage<ListSubscriptionsRequest>): ListSubscriptionsRequest {
|
|
2305
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
2306
|
+
message.vaultAddress = "";
|
|
2307
|
+
message.userAddress = "";
|
|
2308
|
+
message.status = "";
|
|
2309
|
+
message.perPage = 0;
|
|
2310
|
+
message.token = "";
|
|
2311
|
+
if (value !== undefined)
|
|
2312
|
+
reflectionMergePartial<ListSubscriptionsRequest>(this, message, value);
|
|
2313
|
+
return message;
|
|
2314
|
+
}
|
|
2315
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListSubscriptionsRequest): ListSubscriptionsRequest {
|
|
2316
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
2317
|
+
while (reader.pos < end) {
|
|
2318
|
+
let [fieldNo, wireType] = reader.tag();
|
|
2319
|
+
switch (fieldNo) {
|
|
2320
|
+
case /* string vault_address */ 1:
|
|
2321
|
+
message.vaultAddress = reader.string();
|
|
2322
|
+
break;
|
|
2323
|
+
case /* string user_address */ 2:
|
|
2324
|
+
message.userAddress = reader.string();
|
|
2325
|
+
break;
|
|
2326
|
+
case /* string status */ 3:
|
|
2327
|
+
message.status = reader.string();
|
|
2328
|
+
break;
|
|
2329
|
+
case /* sint32 per_page */ 4:
|
|
2330
|
+
message.perPage = reader.sint32();
|
|
2331
|
+
break;
|
|
2332
|
+
case /* string token */ 5:
|
|
2333
|
+
message.token = reader.string();
|
|
2334
|
+
break;
|
|
2335
|
+
default:
|
|
2336
|
+
let u = options.readUnknownField;
|
|
2337
|
+
if (u === "throw")
|
|
2338
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
2339
|
+
let d = reader.skip(wireType);
|
|
2340
|
+
if (u !== false)
|
|
2341
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
2342
|
+
}
|
|
2343
|
+
}
|
|
2344
|
+
return message;
|
|
2345
|
+
}
|
|
2346
|
+
internalBinaryWrite(message: ListSubscriptionsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2347
|
+
/* string vault_address = 1; */
|
|
2348
|
+
if (message.vaultAddress !== "")
|
|
2349
|
+
writer.tag(1, WireType.LengthDelimited).string(message.vaultAddress);
|
|
2350
|
+
/* string user_address = 2; */
|
|
2351
|
+
if (message.userAddress !== "")
|
|
2352
|
+
writer.tag(2, WireType.LengthDelimited).string(message.userAddress);
|
|
2353
|
+
/* string status = 3; */
|
|
2354
|
+
if (message.status !== "")
|
|
2355
|
+
writer.tag(3, WireType.LengthDelimited).string(message.status);
|
|
2356
|
+
/* sint32 per_page = 4; */
|
|
2357
|
+
if (message.perPage !== 0)
|
|
2358
|
+
writer.tag(4, WireType.Varint).sint32(message.perPage);
|
|
2359
|
+
/* string token = 5; */
|
|
2360
|
+
if (message.token !== "")
|
|
2361
|
+
writer.tag(5, WireType.LengthDelimited).string(message.token);
|
|
2362
|
+
let u = options.writeUnknownFields;
|
|
2363
|
+
if (u !== false)
|
|
2364
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
2365
|
+
return writer;
|
|
2366
|
+
}
|
|
2367
|
+
}
|
|
2368
|
+
/**
|
|
2369
|
+
* @generated MessageType for protobuf message injective_megavault_rpc.ListSubscriptionsRequest
|
|
2370
|
+
*/
|
|
2371
|
+
export const ListSubscriptionsRequest = new ListSubscriptionsRequest$Type();
|
|
2372
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
2373
|
+
class ListSubscriptionsResponse$Type extends MessageType<ListSubscriptionsResponse> {
|
|
2374
|
+
constructor() {
|
|
2375
|
+
super("injective_megavault_rpc.ListSubscriptionsResponse", [
|
|
2376
|
+
{ no: 1, name: "subscriptions", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Subscription },
|
|
2377
|
+
{ no: 2, name: "next", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
|
|
2378
|
+
]);
|
|
2379
|
+
}
|
|
2380
|
+
create(value?: PartialMessage<ListSubscriptionsResponse>): ListSubscriptionsResponse {
|
|
2381
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
2382
|
+
message.subscriptions = [];
|
|
2383
|
+
message.next = [];
|
|
2384
|
+
if (value !== undefined)
|
|
2385
|
+
reflectionMergePartial<ListSubscriptionsResponse>(this, message, value);
|
|
2386
|
+
return message;
|
|
2387
|
+
}
|
|
2388
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListSubscriptionsResponse): ListSubscriptionsResponse {
|
|
2389
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
2390
|
+
while (reader.pos < end) {
|
|
2391
|
+
let [fieldNo, wireType] = reader.tag();
|
|
2392
|
+
switch (fieldNo) {
|
|
2393
|
+
case /* repeated injective_megavault_rpc.Subscription subscriptions */ 1:
|
|
2394
|
+
message.subscriptions.push(Subscription.internalBinaryRead(reader, reader.uint32(), options));
|
|
2395
|
+
break;
|
|
2396
|
+
case /* repeated string next */ 2:
|
|
2397
|
+
message.next.push(reader.string());
|
|
2398
|
+
break;
|
|
2399
|
+
default:
|
|
2400
|
+
let u = options.readUnknownField;
|
|
2401
|
+
if (u === "throw")
|
|
2402
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
2403
|
+
let d = reader.skip(wireType);
|
|
2404
|
+
if (u !== false)
|
|
2405
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
2406
|
+
}
|
|
2407
|
+
}
|
|
2408
|
+
return message;
|
|
2409
|
+
}
|
|
2410
|
+
internalBinaryWrite(message: ListSubscriptionsResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2411
|
+
/* repeated injective_megavault_rpc.Subscription subscriptions = 1; */
|
|
2412
|
+
for (let i = 0; i < message.subscriptions.length; i++)
|
|
2413
|
+
Subscription.internalBinaryWrite(message.subscriptions[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
2414
|
+
/* repeated string next = 2; */
|
|
2415
|
+
for (let i = 0; i < message.next.length; i++)
|
|
2416
|
+
writer.tag(2, WireType.LengthDelimited).string(message.next[i]);
|
|
2417
|
+
let u = options.writeUnknownFields;
|
|
2418
|
+
if (u !== false)
|
|
2419
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
2420
|
+
return writer;
|
|
2421
|
+
}
|
|
2422
|
+
}
|
|
2423
|
+
/**
|
|
2424
|
+
* @generated MessageType for protobuf message injective_megavault_rpc.ListSubscriptionsResponse
|
|
2425
|
+
*/
|
|
2426
|
+
export const ListSubscriptionsResponse = new ListSubscriptionsResponse$Type();
|
|
2427
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
2428
|
+
class Subscription$Type extends MessageType<Subscription> {
|
|
2429
|
+
constructor() {
|
|
2430
|
+
super("injective_megavault_rpc.Subscription", [
|
|
2431
|
+
{ no: 1, name: "contract_address", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
2432
|
+
{ no: 2, name: "user", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
2433
|
+
{ no: 3, name: "index", kind: "scalar", T: 18 /*ScalarType.SINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
2434
|
+
{ no: 4, name: "lp_amount", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
2435
|
+
{ no: 5, name: "amount", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
2436
|
+
{ no: 6, name: "status", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
2437
|
+
{ no: 7, name: "created_height", kind: "scalar", T: 18 /*ScalarType.SINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
2438
|
+
{ no: 8, name: "created_at", kind: "scalar", T: 18 /*ScalarType.SINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
2439
|
+
{ no: 9, name: "executed_height", kind: "scalar", T: 18 /*ScalarType.SINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
2440
|
+
{ no: 10, name: "executed_at", kind: "scalar", T: 18 /*ScalarType.SINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
2441
|
+
{ no: 11, name: "log", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => OperationStatusLogEntry }
|
|
2442
|
+
]);
|
|
2443
|
+
}
|
|
2444
|
+
create(value?: PartialMessage<Subscription>): Subscription {
|
|
2445
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
2446
|
+
message.contractAddress = "";
|
|
2447
|
+
message.user = "";
|
|
2448
|
+
message.index = 0n;
|
|
2449
|
+
message.lpAmount = "";
|
|
2450
|
+
message.amount = "";
|
|
2451
|
+
message.status = "";
|
|
2452
|
+
message.createdHeight = 0n;
|
|
2453
|
+
message.createdAt = 0n;
|
|
2454
|
+
message.executedHeight = 0n;
|
|
2455
|
+
message.executedAt = 0n;
|
|
2456
|
+
message.log = [];
|
|
2457
|
+
if (value !== undefined)
|
|
2458
|
+
reflectionMergePartial<Subscription>(this, message, value);
|
|
2459
|
+
return message;
|
|
2460
|
+
}
|
|
2461
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Subscription): Subscription {
|
|
2462
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
2463
|
+
while (reader.pos < end) {
|
|
2464
|
+
let [fieldNo, wireType] = reader.tag();
|
|
2465
|
+
switch (fieldNo) {
|
|
2466
|
+
case /* string contract_address */ 1:
|
|
2467
|
+
message.contractAddress = reader.string();
|
|
2468
|
+
break;
|
|
2469
|
+
case /* string user */ 2:
|
|
2470
|
+
message.user = reader.string();
|
|
2471
|
+
break;
|
|
2472
|
+
case /* sint64 index */ 3:
|
|
2473
|
+
message.index = reader.sint64().toBigInt();
|
|
2474
|
+
break;
|
|
2475
|
+
case /* string lp_amount */ 4:
|
|
2476
|
+
message.lpAmount = reader.string();
|
|
2477
|
+
break;
|
|
2478
|
+
case /* string amount */ 5:
|
|
2479
|
+
message.amount = reader.string();
|
|
2480
|
+
break;
|
|
2481
|
+
case /* string status */ 6:
|
|
2482
|
+
message.status = reader.string();
|
|
2483
|
+
break;
|
|
2484
|
+
case /* sint64 created_height */ 7:
|
|
2485
|
+
message.createdHeight = reader.sint64().toBigInt();
|
|
2486
|
+
break;
|
|
2487
|
+
case /* sint64 created_at */ 8:
|
|
2488
|
+
message.createdAt = reader.sint64().toBigInt();
|
|
2489
|
+
break;
|
|
2490
|
+
case /* sint64 executed_height */ 9:
|
|
2491
|
+
message.executedHeight = reader.sint64().toBigInt();
|
|
2492
|
+
break;
|
|
2493
|
+
case /* sint64 executed_at */ 10:
|
|
2494
|
+
message.executedAt = reader.sint64().toBigInt();
|
|
2495
|
+
break;
|
|
2496
|
+
case /* repeated injective_megavault_rpc.OperationStatusLogEntry log */ 11:
|
|
2497
|
+
message.log.push(OperationStatusLogEntry.internalBinaryRead(reader, reader.uint32(), options));
|
|
2498
|
+
break;
|
|
2499
|
+
default:
|
|
2500
|
+
let u = options.readUnknownField;
|
|
2501
|
+
if (u === "throw")
|
|
2502
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
2503
|
+
let d = reader.skip(wireType);
|
|
2504
|
+
if (u !== false)
|
|
2505
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
2506
|
+
}
|
|
2507
|
+
}
|
|
2508
|
+
return message;
|
|
2509
|
+
}
|
|
2510
|
+
internalBinaryWrite(message: Subscription, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2511
|
+
/* string contract_address = 1; */
|
|
2512
|
+
if (message.contractAddress !== "")
|
|
2513
|
+
writer.tag(1, WireType.LengthDelimited).string(message.contractAddress);
|
|
2514
|
+
/* string user = 2; */
|
|
2515
|
+
if (message.user !== "")
|
|
2516
|
+
writer.tag(2, WireType.LengthDelimited).string(message.user);
|
|
2517
|
+
/* sint64 index = 3; */
|
|
2518
|
+
if (message.index !== 0n)
|
|
2519
|
+
writer.tag(3, WireType.Varint).sint64(message.index);
|
|
2520
|
+
/* string lp_amount = 4; */
|
|
2521
|
+
if (message.lpAmount !== "")
|
|
2522
|
+
writer.tag(4, WireType.LengthDelimited).string(message.lpAmount);
|
|
2523
|
+
/* string amount = 5; */
|
|
2524
|
+
if (message.amount !== "")
|
|
2525
|
+
writer.tag(5, WireType.LengthDelimited).string(message.amount);
|
|
2526
|
+
/* string status = 6; */
|
|
2527
|
+
if (message.status !== "")
|
|
2528
|
+
writer.tag(6, WireType.LengthDelimited).string(message.status);
|
|
2529
|
+
/* sint64 created_height = 7; */
|
|
2530
|
+
if (message.createdHeight !== 0n)
|
|
2531
|
+
writer.tag(7, WireType.Varint).sint64(message.createdHeight);
|
|
2532
|
+
/* sint64 created_at = 8; */
|
|
2533
|
+
if (message.createdAt !== 0n)
|
|
2534
|
+
writer.tag(8, WireType.Varint).sint64(message.createdAt);
|
|
2535
|
+
/* sint64 executed_height = 9; */
|
|
2536
|
+
if (message.executedHeight !== 0n)
|
|
2537
|
+
writer.tag(9, WireType.Varint).sint64(message.executedHeight);
|
|
2538
|
+
/* sint64 executed_at = 10; */
|
|
2539
|
+
if (message.executedAt !== 0n)
|
|
2540
|
+
writer.tag(10, WireType.Varint).sint64(message.executedAt);
|
|
2541
|
+
/* repeated injective_megavault_rpc.OperationStatusLogEntry log = 11; */
|
|
2542
|
+
for (let i = 0; i < message.log.length; i++)
|
|
2543
|
+
OperationStatusLogEntry.internalBinaryWrite(message.log[i], writer.tag(11, WireType.LengthDelimited).fork(), options).join();
|
|
2544
|
+
let u = options.writeUnknownFields;
|
|
2545
|
+
if (u !== false)
|
|
2546
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
2547
|
+
return writer;
|
|
2548
|
+
}
|
|
2549
|
+
}
|
|
2550
|
+
/**
|
|
2551
|
+
* @generated MessageType for protobuf message injective_megavault_rpc.Subscription
|
|
2552
|
+
*/
|
|
2553
|
+
export const Subscription = new Subscription$Type();
|
|
2554
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
2555
|
+
class OperationStatusLogEntry$Type extends MessageType<OperationStatusLogEntry> {
|
|
2556
|
+
constructor() {
|
|
2557
|
+
super("injective_megavault_rpc.OperationStatusLogEntry", [
|
|
2558
|
+
{ no: 1, name: "status", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
2559
|
+
{ no: 2, name: "tx_hash", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
2560
|
+
{ no: 3, name: "block_height", kind: "scalar", T: 18 /*ScalarType.SINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
2561
|
+
{ no: 4, name: "block_time", kind: "scalar", T: 18 /*ScalarType.SINT64*/, L: 0 /*LongType.BIGINT*/ }
|
|
2562
|
+
]);
|
|
2563
|
+
}
|
|
2564
|
+
create(value?: PartialMessage<OperationStatusLogEntry>): OperationStatusLogEntry {
|
|
2565
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
2566
|
+
message.status = "";
|
|
2567
|
+
message.txHash = "";
|
|
2568
|
+
message.blockHeight = 0n;
|
|
2569
|
+
message.blockTime = 0n;
|
|
2570
|
+
if (value !== undefined)
|
|
2571
|
+
reflectionMergePartial<OperationStatusLogEntry>(this, message, value);
|
|
2572
|
+
return message;
|
|
2573
|
+
}
|
|
2574
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: OperationStatusLogEntry): OperationStatusLogEntry {
|
|
2575
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
2576
|
+
while (reader.pos < end) {
|
|
2577
|
+
let [fieldNo, wireType] = reader.tag();
|
|
2578
|
+
switch (fieldNo) {
|
|
2579
|
+
case /* string status */ 1:
|
|
2580
|
+
message.status = reader.string();
|
|
2581
|
+
break;
|
|
2582
|
+
case /* string tx_hash */ 2:
|
|
2583
|
+
message.txHash = reader.string();
|
|
2584
|
+
break;
|
|
2585
|
+
case /* sint64 block_height */ 3:
|
|
2586
|
+
message.blockHeight = reader.sint64().toBigInt();
|
|
2587
|
+
break;
|
|
2588
|
+
case /* sint64 block_time */ 4:
|
|
2589
|
+
message.blockTime = reader.sint64().toBigInt();
|
|
2590
|
+
break;
|
|
2591
|
+
default:
|
|
2592
|
+
let u = options.readUnknownField;
|
|
2593
|
+
if (u === "throw")
|
|
2594
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
2595
|
+
let d = reader.skip(wireType);
|
|
2596
|
+
if (u !== false)
|
|
2597
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
2598
|
+
}
|
|
2599
|
+
}
|
|
2600
|
+
return message;
|
|
2601
|
+
}
|
|
2602
|
+
internalBinaryWrite(message: OperationStatusLogEntry, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2603
|
+
/* string status = 1; */
|
|
2604
|
+
if (message.status !== "")
|
|
2605
|
+
writer.tag(1, WireType.LengthDelimited).string(message.status);
|
|
2606
|
+
/* string tx_hash = 2; */
|
|
2607
|
+
if (message.txHash !== "")
|
|
2608
|
+
writer.tag(2, WireType.LengthDelimited).string(message.txHash);
|
|
2609
|
+
/* sint64 block_height = 3; */
|
|
2610
|
+
if (message.blockHeight !== 0n)
|
|
2611
|
+
writer.tag(3, WireType.Varint).sint64(message.blockHeight);
|
|
2612
|
+
/* sint64 block_time = 4; */
|
|
2613
|
+
if (message.blockTime !== 0n)
|
|
2614
|
+
writer.tag(4, WireType.Varint).sint64(message.blockTime);
|
|
2615
|
+
let u = options.writeUnknownFields;
|
|
2616
|
+
if (u !== false)
|
|
2617
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
2618
|
+
return writer;
|
|
2619
|
+
}
|
|
2620
|
+
}
|
|
2621
|
+
/**
|
|
2622
|
+
* @generated MessageType for protobuf message injective_megavault_rpc.OperationStatusLogEntry
|
|
2623
|
+
*/
|
|
2624
|
+
export const OperationStatusLogEntry = new OperationStatusLogEntry$Type();
|
|
2625
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
2626
|
+
class ListRedemptionsRequest$Type extends MessageType<ListRedemptionsRequest> {
|
|
2627
|
+
constructor() {
|
|
2628
|
+
super("injective_megavault_rpc.ListRedemptionsRequest", [
|
|
2629
|
+
{ no: 1, name: "vault_address", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
2630
|
+
{ no: 2, name: "user_address", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
2631
|
+
{ no: 3, name: "status", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
2632
|
+
{ no: 4, name: "per_page", kind: "scalar", T: 17 /*ScalarType.SINT32*/ },
|
|
2633
|
+
{ no: 5, name: "token", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
2634
|
+
]);
|
|
2635
|
+
}
|
|
2636
|
+
create(value?: PartialMessage<ListRedemptionsRequest>): ListRedemptionsRequest {
|
|
2637
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
2638
|
+
message.vaultAddress = "";
|
|
2639
|
+
message.userAddress = "";
|
|
2640
|
+
message.status = "";
|
|
2641
|
+
message.perPage = 0;
|
|
2642
|
+
message.token = "";
|
|
2643
|
+
if (value !== undefined)
|
|
2644
|
+
reflectionMergePartial<ListRedemptionsRequest>(this, message, value);
|
|
2645
|
+
return message;
|
|
2646
|
+
}
|
|
2647
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListRedemptionsRequest): ListRedemptionsRequest {
|
|
2648
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
2649
|
+
while (reader.pos < end) {
|
|
2650
|
+
let [fieldNo, wireType] = reader.tag();
|
|
2651
|
+
switch (fieldNo) {
|
|
2652
|
+
case /* string vault_address */ 1:
|
|
2653
|
+
message.vaultAddress = reader.string();
|
|
2654
|
+
break;
|
|
2655
|
+
case /* string user_address */ 2:
|
|
2656
|
+
message.userAddress = reader.string();
|
|
2657
|
+
break;
|
|
2658
|
+
case /* string status */ 3:
|
|
2659
|
+
message.status = reader.string();
|
|
2660
|
+
break;
|
|
2661
|
+
case /* sint32 per_page */ 4:
|
|
2662
|
+
message.perPage = reader.sint32();
|
|
2663
|
+
break;
|
|
2664
|
+
case /* string token */ 5:
|
|
2665
|
+
message.token = reader.string();
|
|
2666
|
+
break;
|
|
2667
|
+
default:
|
|
2668
|
+
let u = options.readUnknownField;
|
|
2669
|
+
if (u === "throw")
|
|
2670
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
2671
|
+
let d = reader.skip(wireType);
|
|
2672
|
+
if (u !== false)
|
|
2673
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
2674
|
+
}
|
|
2675
|
+
}
|
|
2676
|
+
return message;
|
|
2677
|
+
}
|
|
2678
|
+
internalBinaryWrite(message: ListRedemptionsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2679
|
+
/* string vault_address = 1; */
|
|
2680
|
+
if (message.vaultAddress !== "")
|
|
2681
|
+
writer.tag(1, WireType.LengthDelimited).string(message.vaultAddress);
|
|
2682
|
+
/* string user_address = 2; */
|
|
2683
|
+
if (message.userAddress !== "")
|
|
2684
|
+
writer.tag(2, WireType.LengthDelimited).string(message.userAddress);
|
|
2685
|
+
/* string status = 3; */
|
|
2686
|
+
if (message.status !== "")
|
|
2687
|
+
writer.tag(3, WireType.LengthDelimited).string(message.status);
|
|
2688
|
+
/* sint32 per_page = 4; */
|
|
2689
|
+
if (message.perPage !== 0)
|
|
2690
|
+
writer.tag(4, WireType.Varint).sint32(message.perPage);
|
|
2691
|
+
/* string token = 5; */
|
|
2692
|
+
if (message.token !== "")
|
|
2693
|
+
writer.tag(5, WireType.LengthDelimited).string(message.token);
|
|
2694
|
+
let u = options.writeUnknownFields;
|
|
2695
|
+
if (u !== false)
|
|
2696
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
2697
|
+
return writer;
|
|
2698
|
+
}
|
|
2699
|
+
}
|
|
2700
|
+
/**
|
|
2701
|
+
* @generated MessageType for protobuf message injective_megavault_rpc.ListRedemptionsRequest
|
|
2702
|
+
*/
|
|
2703
|
+
export const ListRedemptionsRequest = new ListRedemptionsRequest$Type();
|
|
2704
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
2705
|
+
class ListRedemptionsResponse$Type extends MessageType<ListRedemptionsResponse> {
|
|
2706
|
+
constructor() {
|
|
2707
|
+
super("injective_megavault_rpc.ListRedemptionsResponse", [
|
|
2708
|
+
{ no: 1, name: "redemptions", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => Redemption },
|
|
2709
|
+
{ no: 2, name: "next", kind: "scalar", repeat: 2 /*RepeatType.UNPACKED*/, T: 9 /*ScalarType.STRING*/ }
|
|
2710
|
+
]);
|
|
2711
|
+
}
|
|
2712
|
+
create(value?: PartialMessage<ListRedemptionsResponse>): ListRedemptionsResponse {
|
|
2713
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
2714
|
+
message.redemptions = [];
|
|
2715
|
+
message.next = [];
|
|
2716
|
+
if (value !== undefined)
|
|
2717
|
+
reflectionMergePartial<ListRedemptionsResponse>(this, message, value);
|
|
2718
|
+
return message;
|
|
2719
|
+
}
|
|
2720
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: ListRedemptionsResponse): ListRedemptionsResponse {
|
|
2721
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
2722
|
+
while (reader.pos < end) {
|
|
2723
|
+
let [fieldNo, wireType] = reader.tag();
|
|
2724
|
+
switch (fieldNo) {
|
|
2725
|
+
case /* repeated injective_megavault_rpc.Redemption redemptions */ 1:
|
|
2726
|
+
message.redemptions.push(Redemption.internalBinaryRead(reader, reader.uint32(), options));
|
|
2727
|
+
break;
|
|
2728
|
+
case /* repeated string next */ 2:
|
|
2729
|
+
message.next.push(reader.string());
|
|
2730
|
+
break;
|
|
2731
|
+
default:
|
|
2732
|
+
let u = options.readUnknownField;
|
|
2733
|
+
if (u === "throw")
|
|
2734
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
2735
|
+
let d = reader.skip(wireType);
|
|
2736
|
+
if (u !== false)
|
|
2737
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
2738
|
+
}
|
|
2739
|
+
}
|
|
2740
|
+
return message;
|
|
2741
|
+
}
|
|
2742
|
+
internalBinaryWrite(message: ListRedemptionsResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2743
|
+
/* repeated injective_megavault_rpc.Redemption redemptions = 1; */
|
|
2744
|
+
for (let i = 0; i < message.redemptions.length; i++)
|
|
2745
|
+
Redemption.internalBinaryWrite(message.redemptions[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
2746
|
+
/* repeated string next = 2; */
|
|
2747
|
+
for (let i = 0; i < message.next.length; i++)
|
|
2748
|
+
writer.tag(2, WireType.LengthDelimited).string(message.next[i]);
|
|
2749
|
+
let u = options.writeUnknownFields;
|
|
2750
|
+
if (u !== false)
|
|
2751
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
2752
|
+
return writer;
|
|
2753
|
+
}
|
|
2754
|
+
}
|
|
2755
|
+
/**
|
|
2756
|
+
* @generated MessageType for protobuf message injective_megavault_rpc.ListRedemptionsResponse
|
|
2757
|
+
*/
|
|
2758
|
+
export const ListRedemptionsResponse = new ListRedemptionsResponse$Type();
|
|
2759
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
2760
|
+
class Redemption$Type extends MessageType<Redemption> {
|
|
2761
|
+
constructor() {
|
|
2762
|
+
super("injective_megavault_rpc.Redemption", [
|
|
2763
|
+
{ no: 1, name: "contract_address", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
2764
|
+
{ no: 2, name: "user", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
2765
|
+
{ no: 3, name: "index", kind: "scalar", T: 18 /*ScalarType.SINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
2766
|
+
{ no: 4, name: "lp_amount", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
2767
|
+
{ no: 5, name: "amount", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
2768
|
+
{ no: 6, name: "status", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
2769
|
+
{ no: 7, name: "due_at", kind: "scalar", T: 18 /*ScalarType.SINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
2770
|
+
{ no: 8, name: "created_height", kind: "scalar", T: 18 /*ScalarType.SINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
2771
|
+
{ no: 9, name: "created_at", kind: "scalar", T: 18 /*ScalarType.SINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
2772
|
+
{ no: 10, name: "executed_height", kind: "scalar", T: 18 /*ScalarType.SINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
2773
|
+
{ no: 11, name: "executed_at", kind: "scalar", T: 18 /*ScalarType.SINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
2774
|
+
{ no: 12, name: "log", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => OperationStatusLogEntry }
|
|
2775
|
+
]);
|
|
2776
|
+
}
|
|
2777
|
+
create(value?: PartialMessage<Redemption>): Redemption {
|
|
2778
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
2779
|
+
message.contractAddress = "";
|
|
2780
|
+
message.user = "";
|
|
2781
|
+
message.index = 0n;
|
|
2782
|
+
message.lpAmount = "";
|
|
2783
|
+
message.amount = "";
|
|
2784
|
+
message.status = "";
|
|
2785
|
+
message.dueAt = 0n;
|
|
2786
|
+
message.createdHeight = 0n;
|
|
2787
|
+
message.createdAt = 0n;
|
|
2788
|
+
message.executedHeight = 0n;
|
|
2789
|
+
message.executedAt = 0n;
|
|
2790
|
+
message.log = [];
|
|
2791
|
+
if (value !== undefined)
|
|
2792
|
+
reflectionMergePartial<Redemption>(this, message, value);
|
|
2793
|
+
return message;
|
|
2794
|
+
}
|
|
2795
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: Redemption): Redemption {
|
|
2796
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
2797
|
+
while (reader.pos < end) {
|
|
2798
|
+
let [fieldNo, wireType] = reader.tag();
|
|
2799
|
+
switch (fieldNo) {
|
|
2800
|
+
case /* string contract_address */ 1:
|
|
2801
|
+
message.contractAddress = reader.string();
|
|
2802
|
+
break;
|
|
2803
|
+
case /* string user */ 2:
|
|
2804
|
+
message.user = reader.string();
|
|
2805
|
+
break;
|
|
2806
|
+
case /* sint64 index */ 3:
|
|
2807
|
+
message.index = reader.sint64().toBigInt();
|
|
2808
|
+
break;
|
|
2809
|
+
case /* string lp_amount */ 4:
|
|
2810
|
+
message.lpAmount = reader.string();
|
|
2811
|
+
break;
|
|
2812
|
+
case /* string amount */ 5:
|
|
2813
|
+
message.amount = reader.string();
|
|
2814
|
+
break;
|
|
2815
|
+
case /* string status */ 6:
|
|
2816
|
+
message.status = reader.string();
|
|
2817
|
+
break;
|
|
2818
|
+
case /* sint64 due_at */ 7:
|
|
2819
|
+
message.dueAt = reader.sint64().toBigInt();
|
|
2820
|
+
break;
|
|
2821
|
+
case /* sint64 created_height */ 8:
|
|
2822
|
+
message.createdHeight = reader.sint64().toBigInt();
|
|
2823
|
+
break;
|
|
2824
|
+
case /* sint64 created_at */ 9:
|
|
2825
|
+
message.createdAt = reader.sint64().toBigInt();
|
|
2826
|
+
break;
|
|
2827
|
+
case /* sint64 executed_height */ 10:
|
|
2828
|
+
message.executedHeight = reader.sint64().toBigInt();
|
|
2829
|
+
break;
|
|
2830
|
+
case /* sint64 executed_at */ 11:
|
|
2831
|
+
message.executedAt = reader.sint64().toBigInt();
|
|
2832
|
+
break;
|
|
2833
|
+
case /* repeated injective_megavault_rpc.OperationStatusLogEntry log */ 12:
|
|
2834
|
+
message.log.push(OperationStatusLogEntry.internalBinaryRead(reader, reader.uint32(), options));
|
|
2835
|
+
break;
|
|
2836
|
+
default:
|
|
2837
|
+
let u = options.readUnknownField;
|
|
2838
|
+
if (u === "throw")
|
|
2839
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
2840
|
+
let d = reader.skip(wireType);
|
|
2841
|
+
if (u !== false)
|
|
2842
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
2843
|
+
}
|
|
2844
|
+
}
|
|
2845
|
+
return message;
|
|
2846
|
+
}
|
|
2847
|
+
internalBinaryWrite(message: Redemption, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2848
|
+
/* string contract_address = 1; */
|
|
2849
|
+
if (message.contractAddress !== "")
|
|
2850
|
+
writer.tag(1, WireType.LengthDelimited).string(message.contractAddress);
|
|
2851
|
+
/* string user = 2; */
|
|
2852
|
+
if (message.user !== "")
|
|
2853
|
+
writer.tag(2, WireType.LengthDelimited).string(message.user);
|
|
2854
|
+
/* sint64 index = 3; */
|
|
2855
|
+
if (message.index !== 0n)
|
|
2856
|
+
writer.tag(3, WireType.Varint).sint64(message.index);
|
|
2857
|
+
/* string lp_amount = 4; */
|
|
2858
|
+
if (message.lpAmount !== "")
|
|
2859
|
+
writer.tag(4, WireType.LengthDelimited).string(message.lpAmount);
|
|
2860
|
+
/* string amount = 5; */
|
|
2861
|
+
if (message.amount !== "")
|
|
2862
|
+
writer.tag(5, WireType.LengthDelimited).string(message.amount);
|
|
2863
|
+
/* string status = 6; */
|
|
2864
|
+
if (message.status !== "")
|
|
2865
|
+
writer.tag(6, WireType.LengthDelimited).string(message.status);
|
|
2866
|
+
/* sint64 due_at = 7; */
|
|
2867
|
+
if (message.dueAt !== 0n)
|
|
2868
|
+
writer.tag(7, WireType.Varint).sint64(message.dueAt);
|
|
2869
|
+
/* sint64 created_height = 8; */
|
|
2870
|
+
if (message.createdHeight !== 0n)
|
|
2871
|
+
writer.tag(8, WireType.Varint).sint64(message.createdHeight);
|
|
2872
|
+
/* sint64 created_at = 9; */
|
|
2873
|
+
if (message.createdAt !== 0n)
|
|
2874
|
+
writer.tag(9, WireType.Varint).sint64(message.createdAt);
|
|
2875
|
+
/* sint64 executed_height = 10; */
|
|
2876
|
+
if (message.executedHeight !== 0n)
|
|
2877
|
+
writer.tag(10, WireType.Varint).sint64(message.executedHeight);
|
|
2878
|
+
/* sint64 executed_at = 11; */
|
|
2879
|
+
if (message.executedAt !== 0n)
|
|
2880
|
+
writer.tag(11, WireType.Varint).sint64(message.executedAt);
|
|
2881
|
+
/* repeated injective_megavault_rpc.OperationStatusLogEntry log = 12; */
|
|
2882
|
+
for (let i = 0; i < message.log.length; i++)
|
|
2883
|
+
OperationStatusLogEntry.internalBinaryWrite(message.log[i], writer.tag(12, WireType.LengthDelimited).fork(), options).join();
|
|
2884
|
+
let u = options.writeUnknownFields;
|
|
2885
|
+
if (u !== false)
|
|
2886
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
2887
|
+
return writer;
|
|
2888
|
+
}
|
|
2889
|
+
}
|
|
2890
|
+
/**
|
|
2891
|
+
* @generated MessageType for protobuf message injective_megavault_rpc.Redemption
|
|
2892
|
+
*/
|
|
2893
|
+
export const Redemption = new Redemption$Type();
|
|
2894
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
2895
|
+
class GetOperatorRedemptionBucketsRequest$Type extends MessageType<GetOperatorRedemptionBucketsRequest> {
|
|
2896
|
+
constructor() {
|
|
2897
|
+
super("injective_megavault_rpc.GetOperatorRedemptionBucketsRequest", [
|
|
2898
|
+
{ no: 1, name: "vault_address", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
2899
|
+
{ no: 2, name: "operator_address", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
2900
|
+
]);
|
|
2901
|
+
}
|
|
2902
|
+
create(value?: PartialMessage<GetOperatorRedemptionBucketsRequest>): GetOperatorRedemptionBucketsRequest {
|
|
2903
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
2904
|
+
message.vaultAddress = "";
|
|
2905
|
+
message.operatorAddress = "";
|
|
2906
|
+
if (value !== undefined)
|
|
2907
|
+
reflectionMergePartial<GetOperatorRedemptionBucketsRequest>(this, message, value);
|
|
2908
|
+
return message;
|
|
2909
|
+
}
|
|
2910
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetOperatorRedemptionBucketsRequest): GetOperatorRedemptionBucketsRequest {
|
|
2911
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
2912
|
+
while (reader.pos < end) {
|
|
2913
|
+
let [fieldNo, wireType] = reader.tag();
|
|
2914
|
+
switch (fieldNo) {
|
|
2915
|
+
case /* string vault_address */ 1:
|
|
2916
|
+
message.vaultAddress = reader.string();
|
|
2917
|
+
break;
|
|
2918
|
+
case /* string operator_address */ 2:
|
|
2919
|
+
message.operatorAddress = reader.string();
|
|
2920
|
+
break;
|
|
2921
|
+
default:
|
|
2922
|
+
let u = options.readUnknownField;
|
|
2923
|
+
if (u === "throw")
|
|
2924
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
2925
|
+
let d = reader.skip(wireType);
|
|
2926
|
+
if (u !== false)
|
|
2927
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
2928
|
+
}
|
|
2929
|
+
}
|
|
2930
|
+
return message;
|
|
2931
|
+
}
|
|
2932
|
+
internalBinaryWrite(message: GetOperatorRedemptionBucketsRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2933
|
+
/* string vault_address = 1; */
|
|
2934
|
+
if (message.vaultAddress !== "")
|
|
2935
|
+
writer.tag(1, WireType.LengthDelimited).string(message.vaultAddress);
|
|
2936
|
+
/* string operator_address = 2; */
|
|
2937
|
+
if (message.operatorAddress !== "")
|
|
2938
|
+
writer.tag(2, WireType.LengthDelimited).string(message.operatorAddress);
|
|
2939
|
+
let u = options.writeUnknownFields;
|
|
2940
|
+
if (u !== false)
|
|
2941
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
2942
|
+
return writer;
|
|
2943
|
+
}
|
|
2944
|
+
}
|
|
2945
|
+
/**
|
|
2946
|
+
* @generated MessageType for protobuf message injective_megavault_rpc.GetOperatorRedemptionBucketsRequest
|
|
2947
|
+
*/
|
|
2948
|
+
export const GetOperatorRedemptionBucketsRequest = new GetOperatorRedemptionBucketsRequest$Type();
|
|
2949
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
2950
|
+
class GetOperatorRedemptionBucketsResponse$Type extends MessageType<GetOperatorRedemptionBucketsResponse> {
|
|
2951
|
+
constructor() {
|
|
2952
|
+
super("injective_megavault_rpc.GetOperatorRedemptionBucketsResponse", [
|
|
2953
|
+
{ no: 1, name: "buckets", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => RedemptionBucket }
|
|
2954
|
+
]);
|
|
2955
|
+
}
|
|
2956
|
+
create(value?: PartialMessage<GetOperatorRedemptionBucketsResponse>): GetOperatorRedemptionBucketsResponse {
|
|
2957
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
2958
|
+
message.buckets = [];
|
|
2959
|
+
if (value !== undefined)
|
|
2960
|
+
reflectionMergePartial<GetOperatorRedemptionBucketsResponse>(this, message, value);
|
|
2961
|
+
return message;
|
|
2962
|
+
}
|
|
2963
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: GetOperatorRedemptionBucketsResponse): GetOperatorRedemptionBucketsResponse {
|
|
2964
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
2965
|
+
while (reader.pos < end) {
|
|
2966
|
+
let [fieldNo, wireType] = reader.tag();
|
|
2967
|
+
switch (fieldNo) {
|
|
2968
|
+
case /* repeated injective_megavault_rpc.RedemptionBucket buckets */ 1:
|
|
2969
|
+
message.buckets.push(RedemptionBucket.internalBinaryRead(reader, reader.uint32(), options));
|
|
2970
|
+
break;
|
|
2971
|
+
default:
|
|
2972
|
+
let u = options.readUnknownField;
|
|
2973
|
+
if (u === "throw")
|
|
2974
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
2975
|
+
let d = reader.skip(wireType);
|
|
2976
|
+
if (u !== false)
|
|
2977
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
2978
|
+
}
|
|
2979
|
+
}
|
|
2980
|
+
return message;
|
|
2981
|
+
}
|
|
2982
|
+
internalBinaryWrite(message: GetOperatorRedemptionBucketsResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
2983
|
+
/* repeated injective_megavault_rpc.RedemptionBucket buckets = 1; */
|
|
2984
|
+
for (let i = 0; i < message.buckets.length; i++)
|
|
2985
|
+
RedemptionBucket.internalBinaryWrite(message.buckets[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
2986
|
+
let u = options.writeUnknownFields;
|
|
2987
|
+
if (u !== false)
|
|
2988
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
2989
|
+
return writer;
|
|
2990
|
+
}
|
|
2991
|
+
}
|
|
2992
|
+
/**
|
|
2993
|
+
* @generated MessageType for protobuf message injective_megavault_rpc.GetOperatorRedemptionBucketsResponse
|
|
2994
|
+
*/
|
|
2995
|
+
export const GetOperatorRedemptionBucketsResponse = new GetOperatorRedemptionBucketsResponse$Type();
|
|
2996
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
2997
|
+
class RedemptionBucket$Type extends MessageType<RedemptionBucket> {
|
|
2998
|
+
constructor() {
|
|
2999
|
+
super("injective_megavault_rpc.RedemptionBucket", [
|
|
3000
|
+
{ no: 1, name: "bucket", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
3001
|
+
{ no: 2, name: "lp_amount_to_redeem", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
3002
|
+
{ no: 3, name: "needed_amount", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
3003
|
+
{ no: 4, name: "missing_liquidity", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
3004
|
+
]);
|
|
3005
|
+
}
|
|
3006
|
+
create(value?: PartialMessage<RedemptionBucket>): RedemptionBucket {
|
|
3007
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
3008
|
+
message.bucket = "";
|
|
3009
|
+
message.lpAmountToRedeem = "";
|
|
3010
|
+
message.neededAmount = "";
|
|
3011
|
+
message.missingLiquidity = "";
|
|
3012
|
+
if (value !== undefined)
|
|
3013
|
+
reflectionMergePartial<RedemptionBucket>(this, message, value);
|
|
3014
|
+
return message;
|
|
3015
|
+
}
|
|
3016
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: RedemptionBucket): RedemptionBucket {
|
|
3017
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
3018
|
+
while (reader.pos < end) {
|
|
3019
|
+
let [fieldNo, wireType] = reader.tag();
|
|
3020
|
+
switch (fieldNo) {
|
|
3021
|
+
case /* string bucket */ 1:
|
|
3022
|
+
message.bucket = reader.string();
|
|
3023
|
+
break;
|
|
3024
|
+
case /* string lp_amount_to_redeem */ 2:
|
|
3025
|
+
message.lpAmountToRedeem = reader.string();
|
|
3026
|
+
break;
|
|
3027
|
+
case /* string needed_amount */ 3:
|
|
3028
|
+
message.neededAmount = reader.string();
|
|
3029
|
+
break;
|
|
3030
|
+
case /* string missing_liquidity */ 4:
|
|
3031
|
+
message.missingLiquidity = reader.string();
|
|
3032
|
+
break;
|
|
3033
|
+
default:
|
|
3034
|
+
let u = options.readUnknownField;
|
|
3035
|
+
if (u === "throw")
|
|
3036
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
3037
|
+
let d = reader.skip(wireType);
|
|
3038
|
+
if (u !== false)
|
|
3039
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
3040
|
+
}
|
|
3041
|
+
}
|
|
3042
|
+
return message;
|
|
3043
|
+
}
|
|
3044
|
+
internalBinaryWrite(message: RedemptionBucket, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
3045
|
+
/* string bucket = 1; */
|
|
3046
|
+
if (message.bucket !== "")
|
|
3047
|
+
writer.tag(1, WireType.LengthDelimited).string(message.bucket);
|
|
3048
|
+
/* string lp_amount_to_redeem = 2; */
|
|
3049
|
+
if (message.lpAmountToRedeem !== "")
|
|
3050
|
+
writer.tag(2, WireType.LengthDelimited).string(message.lpAmountToRedeem);
|
|
3051
|
+
/* string needed_amount = 3; */
|
|
3052
|
+
if (message.neededAmount !== "")
|
|
3053
|
+
writer.tag(3, WireType.LengthDelimited).string(message.neededAmount);
|
|
3054
|
+
/* string missing_liquidity = 4; */
|
|
3055
|
+
if (message.missingLiquidity !== "")
|
|
3056
|
+
writer.tag(4, WireType.LengthDelimited).string(message.missingLiquidity);
|
|
3057
|
+
let u = options.writeUnknownFields;
|
|
3058
|
+
if (u !== false)
|
|
3059
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
3060
|
+
return writer;
|
|
3061
|
+
}
|
|
3062
|
+
}
|
|
3063
|
+
/**
|
|
3064
|
+
* @generated MessageType for protobuf message injective_megavault_rpc.RedemptionBucket
|
|
3065
|
+
*/
|
|
3066
|
+
export const RedemptionBucket = new RedemptionBucket$Type();
|
|
3067
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
3068
|
+
class TvlHistoryRequest$Type extends MessageType<TvlHistoryRequest> {
|
|
3069
|
+
constructor() {
|
|
3070
|
+
super("injective_megavault_rpc.TvlHistoryRequest", [
|
|
3071
|
+
{ no: 1, name: "vault_address", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
3072
|
+
{ no: 2, name: "since", kind: "scalar", T: 18 /*ScalarType.SINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
3073
|
+
{ no: 3, name: "max_data_points", kind: "scalar", T: 17 /*ScalarType.SINT32*/ }
|
|
3074
|
+
]);
|
|
3075
|
+
}
|
|
3076
|
+
create(value?: PartialMessage<TvlHistoryRequest>): TvlHistoryRequest {
|
|
3077
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
3078
|
+
message.vaultAddress = "";
|
|
3079
|
+
message.since = 0n;
|
|
3080
|
+
message.maxDataPoints = 0;
|
|
3081
|
+
if (value !== undefined)
|
|
3082
|
+
reflectionMergePartial<TvlHistoryRequest>(this, message, value);
|
|
3083
|
+
return message;
|
|
3084
|
+
}
|
|
3085
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: TvlHistoryRequest): TvlHistoryRequest {
|
|
3086
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
3087
|
+
while (reader.pos < end) {
|
|
3088
|
+
let [fieldNo, wireType] = reader.tag();
|
|
3089
|
+
switch (fieldNo) {
|
|
3090
|
+
case /* string vault_address */ 1:
|
|
3091
|
+
message.vaultAddress = reader.string();
|
|
3092
|
+
break;
|
|
3093
|
+
case /* sint64 since */ 2:
|
|
3094
|
+
message.since = reader.sint64().toBigInt();
|
|
3095
|
+
break;
|
|
3096
|
+
case /* sint32 max_data_points */ 3:
|
|
3097
|
+
message.maxDataPoints = reader.sint32();
|
|
3098
|
+
break;
|
|
3099
|
+
default:
|
|
3100
|
+
let u = options.readUnknownField;
|
|
3101
|
+
if (u === "throw")
|
|
3102
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
3103
|
+
let d = reader.skip(wireType);
|
|
3104
|
+
if (u !== false)
|
|
3105
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
3106
|
+
}
|
|
3107
|
+
}
|
|
3108
|
+
return message;
|
|
3109
|
+
}
|
|
3110
|
+
internalBinaryWrite(message: TvlHistoryRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
3111
|
+
/* string vault_address = 1; */
|
|
3112
|
+
if (message.vaultAddress !== "")
|
|
3113
|
+
writer.tag(1, WireType.LengthDelimited).string(message.vaultAddress);
|
|
3114
|
+
/* sint64 since = 2; */
|
|
3115
|
+
if (message.since !== 0n)
|
|
3116
|
+
writer.tag(2, WireType.Varint).sint64(message.since);
|
|
3117
|
+
/* sint32 max_data_points = 3; */
|
|
3118
|
+
if (message.maxDataPoints !== 0)
|
|
3119
|
+
writer.tag(3, WireType.Varint).sint32(message.maxDataPoints);
|
|
3120
|
+
let u = options.writeUnknownFields;
|
|
3121
|
+
if (u !== false)
|
|
3122
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
3123
|
+
return writer;
|
|
3124
|
+
}
|
|
3125
|
+
}
|
|
3126
|
+
/**
|
|
3127
|
+
* @generated MessageType for protobuf message injective_megavault_rpc.TvlHistoryRequest
|
|
3128
|
+
*/
|
|
3129
|
+
export const TvlHistoryRequest = new TvlHistoryRequest$Type();
|
|
3130
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
3131
|
+
class TvlHistoryResponse$Type extends MessageType<TvlHistoryResponse> {
|
|
3132
|
+
constructor() {
|
|
3133
|
+
super("injective_megavault_rpc.TvlHistoryResponse", [
|
|
3134
|
+
{ no: 1, name: "history", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => HistoricalTVL }
|
|
3135
|
+
]);
|
|
3136
|
+
}
|
|
3137
|
+
create(value?: PartialMessage<TvlHistoryResponse>): TvlHistoryResponse {
|
|
3138
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
3139
|
+
message.history = [];
|
|
3140
|
+
if (value !== undefined)
|
|
3141
|
+
reflectionMergePartial<TvlHistoryResponse>(this, message, value);
|
|
3142
|
+
return message;
|
|
3143
|
+
}
|
|
3144
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: TvlHistoryResponse): TvlHistoryResponse {
|
|
3145
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
3146
|
+
while (reader.pos < end) {
|
|
3147
|
+
let [fieldNo, wireType] = reader.tag();
|
|
3148
|
+
switch (fieldNo) {
|
|
3149
|
+
case /* repeated injective_megavault_rpc.HistoricalTVL history */ 1:
|
|
3150
|
+
message.history.push(HistoricalTVL.internalBinaryRead(reader, reader.uint32(), options));
|
|
3151
|
+
break;
|
|
3152
|
+
default:
|
|
3153
|
+
let u = options.readUnknownField;
|
|
3154
|
+
if (u === "throw")
|
|
3155
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
3156
|
+
let d = reader.skip(wireType);
|
|
3157
|
+
if (u !== false)
|
|
3158
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
3159
|
+
}
|
|
3160
|
+
}
|
|
3161
|
+
return message;
|
|
3162
|
+
}
|
|
3163
|
+
internalBinaryWrite(message: TvlHistoryResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
3164
|
+
/* repeated injective_megavault_rpc.HistoricalTVL history = 1; */
|
|
3165
|
+
for (let i = 0; i < message.history.length; i++)
|
|
3166
|
+
HistoricalTVL.internalBinaryWrite(message.history[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
3167
|
+
let u = options.writeUnknownFields;
|
|
3168
|
+
if (u !== false)
|
|
3169
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
3170
|
+
return writer;
|
|
3171
|
+
}
|
|
3172
|
+
}
|
|
3173
|
+
/**
|
|
3174
|
+
* @generated MessageType for protobuf message injective_megavault_rpc.TvlHistoryResponse
|
|
3175
|
+
*/
|
|
3176
|
+
export const TvlHistoryResponse = new TvlHistoryResponse$Type();
|
|
3177
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
3178
|
+
class HistoricalTVL$Type extends MessageType<HistoricalTVL> {
|
|
3179
|
+
constructor() {
|
|
3180
|
+
super("injective_megavault_rpc.HistoricalTVL", [
|
|
3181
|
+
{ no: 1, name: "t", kind: "scalar", T: 18 /*ScalarType.SINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
3182
|
+
{ no: 2, name: "v", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
3183
|
+
]);
|
|
3184
|
+
}
|
|
3185
|
+
create(value?: PartialMessage<HistoricalTVL>): HistoricalTVL {
|
|
3186
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
3187
|
+
message.t = 0n;
|
|
3188
|
+
message.v = "";
|
|
3189
|
+
if (value !== undefined)
|
|
3190
|
+
reflectionMergePartial<HistoricalTVL>(this, message, value);
|
|
3191
|
+
return message;
|
|
3192
|
+
}
|
|
3193
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: HistoricalTVL): HistoricalTVL {
|
|
3194
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
3195
|
+
while (reader.pos < end) {
|
|
3196
|
+
let [fieldNo, wireType] = reader.tag();
|
|
3197
|
+
switch (fieldNo) {
|
|
3198
|
+
case /* sint64 t */ 1:
|
|
3199
|
+
message.t = reader.sint64().toBigInt();
|
|
3200
|
+
break;
|
|
3201
|
+
case /* string v */ 2:
|
|
3202
|
+
message.v = reader.string();
|
|
3203
|
+
break;
|
|
3204
|
+
default:
|
|
3205
|
+
let u = options.readUnknownField;
|
|
3206
|
+
if (u === "throw")
|
|
3207
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
3208
|
+
let d = reader.skip(wireType);
|
|
3209
|
+
if (u !== false)
|
|
3210
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
3211
|
+
}
|
|
3212
|
+
}
|
|
3213
|
+
return message;
|
|
3214
|
+
}
|
|
3215
|
+
internalBinaryWrite(message: HistoricalTVL, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
3216
|
+
/* sint64 t = 1; */
|
|
3217
|
+
if (message.t !== 0n)
|
|
3218
|
+
writer.tag(1, WireType.Varint).sint64(message.t);
|
|
3219
|
+
/* string v = 2; */
|
|
3220
|
+
if (message.v !== "")
|
|
3221
|
+
writer.tag(2, WireType.LengthDelimited).string(message.v);
|
|
3222
|
+
let u = options.writeUnknownFields;
|
|
3223
|
+
if (u !== false)
|
|
3224
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
3225
|
+
return writer;
|
|
3226
|
+
}
|
|
3227
|
+
}
|
|
3228
|
+
/**
|
|
3229
|
+
* @generated MessageType for protobuf message injective_megavault_rpc.HistoricalTVL
|
|
3230
|
+
*/
|
|
3231
|
+
export const HistoricalTVL = new HistoricalTVL$Type();
|
|
3232
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
3233
|
+
class PnlHistoryRequest$Type extends MessageType<PnlHistoryRequest> {
|
|
3234
|
+
constructor() {
|
|
3235
|
+
super("injective_megavault_rpc.PnlHistoryRequest", [
|
|
3236
|
+
{ no: 1, name: "vault_address", kind: "scalar", T: 9 /*ScalarType.STRING*/ },
|
|
3237
|
+
{ no: 2, name: "since", kind: "scalar", T: 18 /*ScalarType.SINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
3238
|
+
{ no: 3, name: "max_data_points", kind: "scalar", T: 17 /*ScalarType.SINT32*/ }
|
|
3239
|
+
]);
|
|
3240
|
+
}
|
|
3241
|
+
create(value?: PartialMessage<PnlHistoryRequest>): PnlHistoryRequest {
|
|
3242
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
3243
|
+
message.vaultAddress = "";
|
|
3244
|
+
message.since = 0n;
|
|
3245
|
+
message.maxDataPoints = 0;
|
|
3246
|
+
if (value !== undefined)
|
|
3247
|
+
reflectionMergePartial<PnlHistoryRequest>(this, message, value);
|
|
3248
|
+
return message;
|
|
3249
|
+
}
|
|
3250
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PnlHistoryRequest): PnlHistoryRequest {
|
|
3251
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
3252
|
+
while (reader.pos < end) {
|
|
3253
|
+
let [fieldNo, wireType] = reader.tag();
|
|
3254
|
+
switch (fieldNo) {
|
|
3255
|
+
case /* string vault_address */ 1:
|
|
3256
|
+
message.vaultAddress = reader.string();
|
|
3257
|
+
break;
|
|
3258
|
+
case /* sint64 since */ 2:
|
|
3259
|
+
message.since = reader.sint64().toBigInt();
|
|
3260
|
+
break;
|
|
3261
|
+
case /* sint32 max_data_points */ 3:
|
|
3262
|
+
message.maxDataPoints = reader.sint32();
|
|
3263
|
+
break;
|
|
3264
|
+
default:
|
|
3265
|
+
let u = options.readUnknownField;
|
|
3266
|
+
if (u === "throw")
|
|
3267
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
3268
|
+
let d = reader.skip(wireType);
|
|
3269
|
+
if (u !== false)
|
|
3270
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
3271
|
+
}
|
|
3272
|
+
}
|
|
3273
|
+
return message;
|
|
3274
|
+
}
|
|
3275
|
+
internalBinaryWrite(message: PnlHistoryRequest, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
3276
|
+
/* string vault_address = 1; */
|
|
3277
|
+
if (message.vaultAddress !== "")
|
|
3278
|
+
writer.tag(1, WireType.LengthDelimited).string(message.vaultAddress);
|
|
3279
|
+
/* sint64 since = 2; */
|
|
3280
|
+
if (message.since !== 0n)
|
|
3281
|
+
writer.tag(2, WireType.Varint).sint64(message.since);
|
|
3282
|
+
/* sint32 max_data_points = 3; */
|
|
3283
|
+
if (message.maxDataPoints !== 0)
|
|
3284
|
+
writer.tag(3, WireType.Varint).sint32(message.maxDataPoints);
|
|
3285
|
+
let u = options.writeUnknownFields;
|
|
3286
|
+
if (u !== false)
|
|
3287
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
3288
|
+
return writer;
|
|
3289
|
+
}
|
|
3290
|
+
}
|
|
3291
|
+
/**
|
|
3292
|
+
* @generated MessageType for protobuf message injective_megavault_rpc.PnlHistoryRequest
|
|
3293
|
+
*/
|
|
3294
|
+
export const PnlHistoryRequest = new PnlHistoryRequest$Type();
|
|
3295
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
3296
|
+
class PnlHistoryResponse$Type extends MessageType<PnlHistoryResponse> {
|
|
3297
|
+
constructor() {
|
|
3298
|
+
super("injective_megavault_rpc.PnlHistoryResponse", [
|
|
3299
|
+
{ no: 1, name: "history", kind: "message", repeat: 2 /*RepeatType.UNPACKED*/, T: () => HistoricalPnL }
|
|
3300
|
+
]);
|
|
3301
|
+
}
|
|
3302
|
+
create(value?: PartialMessage<PnlHistoryResponse>): PnlHistoryResponse {
|
|
3303
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
3304
|
+
message.history = [];
|
|
3305
|
+
if (value !== undefined)
|
|
3306
|
+
reflectionMergePartial<PnlHistoryResponse>(this, message, value);
|
|
3307
|
+
return message;
|
|
3308
|
+
}
|
|
3309
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: PnlHistoryResponse): PnlHistoryResponse {
|
|
3310
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
3311
|
+
while (reader.pos < end) {
|
|
3312
|
+
let [fieldNo, wireType] = reader.tag();
|
|
3313
|
+
switch (fieldNo) {
|
|
3314
|
+
case /* repeated injective_megavault_rpc.HistoricalPnL history */ 1:
|
|
3315
|
+
message.history.push(HistoricalPnL.internalBinaryRead(reader, reader.uint32(), options));
|
|
3316
|
+
break;
|
|
3317
|
+
default:
|
|
3318
|
+
let u = options.readUnknownField;
|
|
3319
|
+
if (u === "throw")
|
|
3320
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
3321
|
+
let d = reader.skip(wireType);
|
|
3322
|
+
if (u !== false)
|
|
3323
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
3324
|
+
}
|
|
3325
|
+
}
|
|
3326
|
+
return message;
|
|
3327
|
+
}
|
|
3328
|
+
internalBinaryWrite(message: PnlHistoryResponse, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
3329
|
+
/* repeated injective_megavault_rpc.HistoricalPnL history = 1; */
|
|
3330
|
+
for (let i = 0; i < message.history.length; i++)
|
|
3331
|
+
HistoricalPnL.internalBinaryWrite(message.history[i], writer.tag(1, WireType.LengthDelimited).fork(), options).join();
|
|
3332
|
+
let u = options.writeUnknownFields;
|
|
3333
|
+
if (u !== false)
|
|
3334
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
3335
|
+
return writer;
|
|
3336
|
+
}
|
|
3337
|
+
}
|
|
3338
|
+
/**
|
|
3339
|
+
* @generated MessageType for protobuf message injective_megavault_rpc.PnlHistoryResponse
|
|
3340
|
+
*/
|
|
3341
|
+
export const PnlHistoryResponse = new PnlHistoryResponse$Type();
|
|
3342
|
+
// @generated message type with reflection information, may provide speed optimized methods
|
|
3343
|
+
class HistoricalPnL$Type extends MessageType<HistoricalPnL> {
|
|
3344
|
+
constructor() {
|
|
3345
|
+
super("injective_megavault_rpc.HistoricalPnL", [
|
|
3346
|
+
{ no: 1, name: "t", kind: "scalar", T: 18 /*ScalarType.SINT64*/, L: 0 /*LongType.BIGINT*/ },
|
|
3347
|
+
{ no: 2, name: "v", kind: "scalar", T: 9 /*ScalarType.STRING*/ }
|
|
3348
|
+
]);
|
|
3349
|
+
}
|
|
3350
|
+
create(value?: PartialMessage<HistoricalPnL>): HistoricalPnL {
|
|
3351
|
+
const message = globalThis.Object.create((this.messagePrototype!));
|
|
3352
|
+
message.t = 0n;
|
|
3353
|
+
message.v = "";
|
|
3354
|
+
if (value !== undefined)
|
|
3355
|
+
reflectionMergePartial<HistoricalPnL>(this, message, value);
|
|
3356
|
+
return message;
|
|
3357
|
+
}
|
|
3358
|
+
internalBinaryRead(reader: IBinaryReader, length: number, options: BinaryReadOptions, target?: HistoricalPnL): HistoricalPnL {
|
|
3359
|
+
let message = target ?? this.create(), end = reader.pos + length;
|
|
3360
|
+
while (reader.pos < end) {
|
|
3361
|
+
let [fieldNo, wireType] = reader.tag();
|
|
3362
|
+
switch (fieldNo) {
|
|
3363
|
+
case /* sint64 t */ 1:
|
|
3364
|
+
message.t = reader.sint64().toBigInt();
|
|
3365
|
+
break;
|
|
3366
|
+
case /* string v */ 2:
|
|
3367
|
+
message.v = reader.string();
|
|
3368
|
+
break;
|
|
3369
|
+
default:
|
|
3370
|
+
let u = options.readUnknownField;
|
|
3371
|
+
if (u === "throw")
|
|
3372
|
+
throw new globalThis.Error(`Unknown field ${fieldNo} (wire type ${wireType}) for ${this.typeName}`);
|
|
3373
|
+
let d = reader.skip(wireType);
|
|
3374
|
+
if (u !== false)
|
|
3375
|
+
(u === true ? UnknownFieldHandler.onRead : u)(this.typeName, message, fieldNo, wireType, d);
|
|
3376
|
+
}
|
|
3377
|
+
}
|
|
3378
|
+
return message;
|
|
3379
|
+
}
|
|
3380
|
+
internalBinaryWrite(message: HistoricalPnL, writer: IBinaryWriter, options: BinaryWriteOptions): IBinaryWriter {
|
|
3381
|
+
/* sint64 t = 1; */
|
|
3382
|
+
if (message.t !== 0n)
|
|
3383
|
+
writer.tag(1, WireType.Varint).sint64(message.t);
|
|
3384
|
+
/* string v = 2; */
|
|
3385
|
+
if (message.v !== "")
|
|
3386
|
+
writer.tag(2, WireType.LengthDelimited).string(message.v);
|
|
3387
|
+
let u = options.writeUnknownFields;
|
|
3388
|
+
if (u !== false)
|
|
3389
|
+
(u == true ? UnknownFieldHandler.onWrite : u)(this.typeName, message, writer);
|
|
3390
|
+
return writer;
|
|
3391
|
+
}
|
|
3392
|
+
}
|
|
3393
|
+
/**
|
|
3394
|
+
* @generated MessageType for protobuf message injective_megavault_rpc.HistoricalPnL
|
|
3395
|
+
*/
|
|
3396
|
+
export const HistoricalPnL = new HistoricalPnL$Type();
|
|
3397
|
+
/**
|
|
3398
|
+
* @generated ServiceType for protobuf service injective_megavault_rpc.InjectiveMegavaultRPC
|
|
3399
|
+
*/
|
|
3400
|
+
export const InjectiveMegavaultRPC = new ServiceType("injective_megavault_rpc.InjectiveMegavaultRPC", [
|
|
3401
|
+
{ name: "GetVault", options: {}, I: GetVaultRequest, O: GetVaultResponse },
|
|
3402
|
+
{ name: "GetUser", options: {}, I: GetUserRequest, O: GetUserResponse },
|
|
3403
|
+
{ name: "ListSubscriptions", options: {}, I: ListSubscriptionsRequest, O: ListSubscriptionsResponse },
|
|
3404
|
+
{ name: "ListRedemptions", options: {}, I: ListRedemptionsRequest, O: ListRedemptionsResponse },
|
|
3405
|
+
{ name: "GetOperatorRedemptionBuckets", options: {}, I: GetOperatorRedemptionBucketsRequest, O: GetOperatorRedemptionBucketsResponse },
|
|
3406
|
+
{ name: "TvlHistory", options: {}, I: TvlHistoryRequest, O: TvlHistoryResponse },
|
|
3407
|
+
{ name: "PnlHistory", options: {}, I: PnlHistoryRequest, O: PnlHistoryResponse }
|
|
3408
|
+
]);
|