@uniswap/client-data-api 0.0.1 → 0.0.4

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.
@@ -3,7 +3,7 @@
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
5
5
  import { Message, proto3 } from "@bufbuild/protobuf";
6
- import { Portfolio, PortfolioValueModifier, Token } from "./types_pb.js";
6
+ import { Portfolio, PortfolioValueModifier, Token, TokenReportEventType, Transaction } from "./types_pb.js";
7
7
  /**
8
8
  * @generated from message data.v1.GetTokenRequest
9
9
  */
@@ -127,3 +127,317 @@ GetPortfolioResponse.typeName = "data.v1.GetPortfolioResponse";
127
127
  GetPortfolioResponse.fields = proto3.util.newFieldList(() => [
128
128
  { no: 1, name: "portfolio", kind: "message", T: Portfolio },
129
129
  ]);
130
+ /**
131
+ * @generated from message data.v1.ListPortfoliosRequest
132
+ */
133
+ export class ListPortfoliosRequest extends Message {
134
+ constructor(data) {
135
+ super();
136
+ /**
137
+ * @generated from field: repeated string addresses = 1;
138
+ */
139
+ this.addresses = [];
140
+ /**
141
+ * @generated from field: repeated uint32 chain_ids = 2;
142
+ */
143
+ this.chainIds = [];
144
+ /**
145
+ * @generated from field: repeated data.v1.PortfolioValueModifier modifiers = 3;
146
+ */
147
+ this.modifiers = [];
148
+ proto3.util.initPartial(data, this);
149
+ }
150
+ static fromBinary(bytes, options) {
151
+ return new ListPortfoliosRequest().fromBinary(bytes, options);
152
+ }
153
+ static fromJson(jsonValue, options) {
154
+ return new ListPortfoliosRequest().fromJson(jsonValue, options);
155
+ }
156
+ static fromJsonString(jsonString, options) {
157
+ return new ListPortfoliosRequest().fromJsonString(jsonString, options);
158
+ }
159
+ static equals(a, b) {
160
+ return proto3.util.equals(ListPortfoliosRequest, a, b);
161
+ }
162
+ }
163
+ ListPortfoliosRequest.runtime = proto3;
164
+ ListPortfoliosRequest.typeName = "data.v1.ListPortfoliosRequest";
165
+ ListPortfoliosRequest.fields = proto3.util.newFieldList(() => [
166
+ { no: 1, name: "addresses", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
167
+ { no: 2, name: "chain_ids", kind: "scalar", T: 13 /* ScalarType.UINT32 */, repeated: true },
168
+ { no: 3, name: "modifiers", kind: "message", T: PortfolioValueModifier, repeated: true },
169
+ ]);
170
+ /**
171
+ * @generated from message data.v1.ListPortfoliosResponse
172
+ */
173
+ export class ListPortfoliosResponse extends Message {
174
+ constructor(data) {
175
+ super();
176
+ /**
177
+ * @generated from field: repeated data.v1.Portfolio portfolios = 1;
178
+ */
179
+ this.portfolios = [];
180
+ proto3.util.initPartial(data, this);
181
+ }
182
+ static fromBinary(bytes, options) {
183
+ return new ListPortfoliosResponse().fromBinary(bytes, options);
184
+ }
185
+ static fromJson(jsonValue, options) {
186
+ return new ListPortfoliosResponse().fromJson(jsonValue, options);
187
+ }
188
+ static fromJsonString(jsonString, options) {
189
+ return new ListPortfoliosResponse().fromJsonString(jsonString, options);
190
+ }
191
+ static equals(a, b) {
192
+ return proto3.util.equals(ListPortfoliosResponse, a, b);
193
+ }
194
+ }
195
+ ListPortfoliosResponse.runtime = proto3;
196
+ ListPortfoliosResponse.typeName = "data.v1.ListPortfoliosResponse";
197
+ ListPortfoliosResponse.fields = proto3.util.newFieldList(() => [
198
+ { no: 1, name: "portfolios", kind: "message", T: Portfolio, repeated: true },
199
+ ]);
200
+ /**
201
+ * @generated from message data.v1.SubmitReportRequest
202
+ */
203
+ export class SubmitReportRequest extends Message {
204
+ constructor(data) {
205
+ super();
206
+ /**
207
+ * @generated from field: uint32 chain_id = 1;
208
+ */
209
+ this.chainId = 0;
210
+ /**
211
+ * @generated from field: string address = 2;
212
+ */
213
+ this.address = "";
214
+ /**
215
+ * @generated from field: data.v1.TokenReportEventType event = 3;
216
+ */
217
+ this.event = TokenReportEventType.UNSPECIFIED;
218
+ /**
219
+ * @generated from field: string details = 4;
220
+ */
221
+ this.details = "";
222
+ proto3.util.initPartial(data, this);
223
+ }
224
+ static fromBinary(bytes, options) {
225
+ return new SubmitReportRequest().fromBinary(bytes, options);
226
+ }
227
+ static fromJson(jsonValue, options) {
228
+ return new SubmitReportRequest().fromJson(jsonValue, options);
229
+ }
230
+ static fromJsonString(jsonString, options) {
231
+ return new SubmitReportRequest().fromJsonString(jsonString, options);
232
+ }
233
+ static equals(a, b) {
234
+ return proto3.util.equals(SubmitReportRequest, a, b);
235
+ }
236
+ }
237
+ SubmitReportRequest.runtime = proto3;
238
+ SubmitReportRequest.typeName = "data.v1.SubmitReportRequest";
239
+ SubmitReportRequest.fields = proto3.util.newFieldList(() => [
240
+ { no: 1, name: "chain_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
241
+ { no: 2, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
242
+ { no: 3, name: "event", kind: "enum", T: proto3.getEnumType(TokenReportEventType) },
243
+ { no: 4, name: "details", kind: "scalar", T: 9 /* ScalarType.STRING */ },
244
+ ]);
245
+ /**
246
+ * @generated from message data.v1.SubmitReportResponse
247
+ */
248
+ export class SubmitReportResponse extends Message {
249
+ constructor(data) {
250
+ super();
251
+ /**
252
+ * @generated from field: bool success = 1;
253
+ */
254
+ this.success = false;
255
+ proto3.util.initPartial(data, this);
256
+ }
257
+ static fromBinary(bytes, options) {
258
+ return new SubmitReportResponse().fromBinary(bytes, options);
259
+ }
260
+ static fromJson(jsonValue, options) {
261
+ return new SubmitReportResponse().fromJson(jsonValue, options);
262
+ }
263
+ static fromJsonString(jsonString, options) {
264
+ return new SubmitReportResponse().fromJsonString(jsonString, options);
265
+ }
266
+ static equals(a, b) {
267
+ return proto3.util.equals(SubmitReportResponse, a, b);
268
+ }
269
+ }
270
+ SubmitReportResponse.runtime = proto3;
271
+ SubmitReportResponse.typeName = "data.v1.SubmitReportResponse";
272
+ SubmitReportResponse.fields = proto3.util.newFieldList(() => [
273
+ { no: 1, name: "success", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
274
+ ]);
275
+ /**
276
+ * @generated from message data.v1.ListTransactionsRequest
277
+ */
278
+ export class ListTransactionsRequest extends Message {
279
+ constructor(data) {
280
+ super();
281
+ /**
282
+ * @generated from field: repeated uint32 chain_ids = 1;
283
+ */
284
+ this.chainIds = [];
285
+ /**
286
+ * @generated from field: string address = 2;
287
+ */
288
+ this.address = "";
289
+ proto3.util.initPartial(data, this);
290
+ }
291
+ static fromBinary(bytes, options) {
292
+ return new ListTransactionsRequest().fromBinary(bytes, options);
293
+ }
294
+ static fromJson(jsonValue, options) {
295
+ return new ListTransactionsRequest().fromJson(jsonValue, options);
296
+ }
297
+ static fromJsonString(jsonString, options) {
298
+ return new ListTransactionsRequest().fromJsonString(jsonString, options);
299
+ }
300
+ static equals(a, b) {
301
+ return proto3.util.equals(ListTransactionsRequest, a, b);
302
+ }
303
+ }
304
+ ListTransactionsRequest.runtime = proto3;
305
+ ListTransactionsRequest.typeName = "data.v1.ListTransactionsRequest";
306
+ ListTransactionsRequest.fields = proto3.util.newFieldList(() => [
307
+ { no: 1, name: "chain_ids", kind: "scalar", T: 13 /* ScalarType.UINT32 */, repeated: true },
308
+ { no: 2, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
309
+ { no: 3, name: "fiat_on_ramp_params", kind: "message", T: FiatOnRampParams, opt: true },
310
+ { no: 4, name: "page_token", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
311
+ { no: 5, name: "page_limit", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
312
+ ]);
313
+ /**
314
+ * @generated from message data.v1.FiatOnRampParams
315
+ */
316
+ export class FiatOnRampParams extends Message {
317
+ constructor(data) {
318
+ super();
319
+ /**
320
+ * @generated from oneof data.v1.FiatOnRampParams.params
321
+ */
322
+ this.params = { case: undefined };
323
+ proto3.util.initPartial(data, this);
324
+ }
325
+ static fromBinary(bytes, options) {
326
+ return new FiatOnRampParams().fromBinary(bytes, options);
327
+ }
328
+ static fromJson(jsonValue, options) {
329
+ return new FiatOnRampParams().fromJson(jsonValue, options);
330
+ }
331
+ static fromJsonString(jsonString, options) {
332
+ return new FiatOnRampParams().fromJsonString(jsonString, options);
333
+ }
334
+ static equals(a, b) {
335
+ return proto3.util.equals(FiatOnRampParams, a, b);
336
+ }
337
+ }
338
+ FiatOnRampParams.runtime = proto3;
339
+ FiatOnRampParams.typeName = "data.v1.FiatOnRampParams";
340
+ FiatOnRampParams.fields = proto3.util.newFieldList(() => [
341
+ { no: 1, name: "transaction_ids", kind: "message", T: FiatOnRampTransactionIds, oneof: "params" },
342
+ { no: 2, name: "auth", kind: "message", T: FiatOnRampAuth, oneof: "params" },
343
+ ]);
344
+ /**
345
+ * @generated from message data.v1.FiatOnRampAuth
346
+ */
347
+ export class FiatOnRampAuth extends Message {
348
+ constructor(data) {
349
+ super();
350
+ /**
351
+ * @generated from field: string query_params = 1;
352
+ */
353
+ this.queryParams = "";
354
+ /**
355
+ * @generated from field: string signature = 2;
356
+ */
357
+ this.signature = "";
358
+ proto3.util.initPartial(data, this);
359
+ }
360
+ static fromBinary(bytes, options) {
361
+ return new FiatOnRampAuth().fromBinary(bytes, options);
362
+ }
363
+ static fromJson(jsonValue, options) {
364
+ return new FiatOnRampAuth().fromJson(jsonValue, options);
365
+ }
366
+ static fromJsonString(jsonString, options) {
367
+ return new FiatOnRampAuth().fromJsonString(jsonString, options);
368
+ }
369
+ static equals(a, b) {
370
+ return proto3.util.equals(FiatOnRampAuth, a, b);
371
+ }
372
+ }
373
+ FiatOnRampAuth.runtime = proto3;
374
+ FiatOnRampAuth.typeName = "data.v1.FiatOnRampAuth";
375
+ FiatOnRampAuth.fields = proto3.util.newFieldList(() => [
376
+ { no: 1, name: "query_params", kind: "scalar", T: 9 /* ScalarType.STRING */ },
377
+ { no: 2, name: "signature", kind: "scalar", T: 9 /* ScalarType.STRING */ },
378
+ ]);
379
+ /**
380
+ * @generated from message data.v1.FiatOnRampTransactionIds
381
+ */
382
+ export class FiatOnRampTransactionIds extends Message {
383
+ constructor(data) {
384
+ super();
385
+ /**
386
+ * @generated from field: repeated string transaction_ids = 1;
387
+ */
388
+ this.transactionIds = [];
389
+ proto3.util.initPartial(data, this);
390
+ }
391
+ static fromBinary(bytes, options) {
392
+ return new FiatOnRampTransactionIds().fromBinary(bytes, options);
393
+ }
394
+ static fromJson(jsonValue, options) {
395
+ return new FiatOnRampTransactionIds().fromJson(jsonValue, options);
396
+ }
397
+ static fromJsonString(jsonString, options) {
398
+ return new FiatOnRampTransactionIds().fromJsonString(jsonString, options);
399
+ }
400
+ static equals(a, b) {
401
+ return proto3.util.equals(FiatOnRampTransactionIds, a, b);
402
+ }
403
+ }
404
+ FiatOnRampTransactionIds.runtime = proto3;
405
+ FiatOnRampTransactionIds.typeName = "data.v1.FiatOnRampTransactionIds";
406
+ FiatOnRampTransactionIds.fields = proto3.util.newFieldList(() => [
407
+ { no: 1, name: "transaction_ids", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
408
+ ]);
409
+ /**
410
+ * @generated from message data.v1.ListTransactionsResponse
411
+ */
412
+ export class ListTransactionsResponse extends Message {
413
+ constructor(data) {
414
+ super();
415
+ /**
416
+ * @generated from field: repeated data.v1.Transaction transactions = 1;
417
+ */
418
+ this.transactions = [];
419
+ /**
420
+ * @generated from field: string next_page_token = 2;
421
+ */
422
+ this.nextPageToken = "";
423
+ proto3.util.initPartial(data, this);
424
+ }
425
+ static fromBinary(bytes, options) {
426
+ return new ListTransactionsResponse().fromBinary(bytes, options);
427
+ }
428
+ static fromJson(jsonValue, options) {
429
+ return new ListTransactionsResponse().fromJson(jsonValue, options);
430
+ }
431
+ static fromJsonString(jsonString, options) {
432
+ return new ListTransactionsResponse().fromJsonString(jsonString, options);
433
+ }
434
+ static equals(a, b) {
435
+ return proto3.util.equals(ListTransactionsResponse, a, b);
436
+ }
437
+ }
438
+ ListTransactionsResponse.runtime = proto3;
439
+ ListTransactionsResponse.typeName = "data.v1.ListTransactionsResponse";
440
+ ListTransactionsResponse.fields = proto3.util.newFieldList(() => [
441
+ { no: 1, name: "transactions", kind: "message", T: Transaction, repeated: true },
442
+ { no: 2, name: "next_page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
443
+ ]);