@uniswap/client-data-api 0.0.2 → 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.
@@ -1,5 +1,5 @@
1
1
  import { MethodKind } from "@bufbuild/protobuf";
2
- import { GetPortfolioRequest, GetPortfolioResponse, GetTokenRequest, GetTokenResponse, ListTransactionsRequest, ListTransactionsResponse, SubmitReportRequest, SubmitReportResponse } from "./api_pb.js";
2
+ import { GetPortfolioRequest, GetPortfolioResponse, GetTokenRequest, GetTokenResponse, ListPortfoliosRequest, ListPortfoliosResponse, ListTransactionsRequest, ListTransactionsResponse, SubmitReportRequest, SubmitReportResponse } from "./api_pb.js";
3
3
  /**
4
4
  * @generated from rpc data.v1.DataApiService.GetToken
5
5
  */
@@ -39,6 +39,19 @@ export declare const getPortfolio: {
39
39
  readonly typeName: "data.v1.DataApiService";
40
40
  };
41
41
  };
42
+ /**
43
+ * @generated from rpc data.v1.DataApiService.ListPortfolios
44
+ */
45
+ export declare const listPortfolios: {
46
+ readonly localName: "listPortfolios";
47
+ readonly name: "ListPortfolios";
48
+ readonly kind: MethodKind.Unary;
49
+ readonly I: typeof ListPortfoliosRequest;
50
+ readonly O: typeof ListPortfoliosResponse;
51
+ readonly service: {
52
+ readonly typeName: "data.v1.DataApiService";
53
+ };
54
+ };
42
55
  /**
43
56
  * @generated from rpc data.v1.DataApiService.ListTransactions
44
57
  */
@@ -3,7 +3,7 @@
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
5
5
  import { MethodKind } from "@bufbuild/protobuf";
6
- import { GetPortfolioRequest, GetPortfolioResponse, GetTokenRequest, GetTokenResponse, ListTransactionsRequest, ListTransactionsResponse, SubmitReportRequest, SubmitReportResponse } from "./api_pb.js";
6
+ import { GetPortfolioRequest, GetPortfolioResponse, GetTokenRequest, GetTokenResponse, ListPortfoliosRequest, ListPortfoliosResponse, ListTransactionsRequest, ListTransactionsResponse, SubmitReportRequest, SubmitReportResponse } from "./api_pb.js";
7
7
  /**
8
8
  * @generated from rpc data.v1.DataApiService.GetToken
9
9
  */
@@ -43,6 +43,19 @@ export const getPortfolio = {
43
43
  typeName: "data.v1.DataApiService"
44
44
  }
45
45
  };
46
+ /**
47
+ * @generated from rpc data.v1.DataApiService.ListPortfolios
48
+ */
49
+ export const listPortfolios = {
50
+ localName: "listPortfolios",
51
+ name: "ListPortfolios",
52
+ kind: MethodKind.Unary,
53
+ I: ListPortfoliosRequest,
54
+ O: ListPortfoliosResponse,
55
+ service: {
56
+ typeName: "data.v1.DataApiService"
57
+ }
58
+ };
46
59
  /**
47
60
  * @generated from rpc data.v1.DataApiService.ListTransactions
48
61
  */
@@ -1,4 +1,4 @@
1
- import { GetPortfolioRequest, GetPortfolioResponse, GetTokenRequest, GetTokenResponse, ListTransactionsRequest, ListTransactionsResponse, SubmitReportRequest, SubmitReportResponse } from "./api_pb.js";
1
+ import { GetPortfolioRequest, GetPortfolioResponse, GetTokenRequest, GetTokenResponse, ListPortfoliosRequest, ListPortfoliosResponse, ListTransactionsRequest, ListTransactionsResponse, SubmitReportRequest, SubmitReportResponse } from "./api_pb.js";
2
2
  import { MethodKind } from "@bufbuild/protobuf";
3
3
  /**
4
4
  * @generated from service data.v1.DataApiService
@@ -33,6 +33,15 @@ export declare const DataApiService: {
33
33
  readonly O: typeof GetPortfolioResponse;
34
34
  readonly kind: MethodKind.Unary;
35
35
  };
36
+ /**
37
+ * @generated from rpc data.v1.DataApiService.ListPortfolios
38
+ */
39
+ readonly listPortfolios: {
40
+ readonly name: "ListPortfolios";
41
+ readonly I: typeof ListPortfoliosRequest;
42
+ readonly O: typeof ListPortfoliosResponse;
43
+ readonly kind: MethodKind.Unary;
44
+ };
36
45
  /**
37
46
  * @generated from rpc data.v1.DataApiService.ListTransactions
38
47
  */
@@ -2,7 +2,7 @@
2
2
  // @generated from file data/v1/api.proto (package data.v1, syntax proto3)
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
5
- import { GetPortfolioRequest, GetPortfolioResponse, GetTokenRequest, GetTokenResponse, ListTransactionsRequest, ListTransactionsResponse, SubmitReportRequest, SubmitReportResponse } from "./api_pb.js";
5
+ import { GetPortfolioRequest, GetPortfolioResponse, GetTokenRequest, GetTokenResponse, ListPortfoliosRequest, ListPortfoliosResponse, ListTransactionsRequest, ListTransactionsResponse, SubmitReportRequest, SubmitReportResponse } from "./api_pb.js";
6
6
  import { MethodKind } from "@bufbuild/protobuf";
7
7
  /**
8
8
  * @generated from service data.v1.DataApiService
@@ -37,6 +37,15 @@ export const DataApiService = {
37
37
  O: GetPortfolioResponse,
38
38
  kind: MethodKind.Unary,
39
39
  },
40
+ /**
41
+ * @generated from rpc data.v1.DataApiService.ListPortfolios
42
+ */
43
+ listPortfolios: {
44
+ name: "ListPortfolios",
45
+ I: ListPortfoliosRequest,
46
+ O: ListPortfoliosResponse,
47
+ kind: MethodKind.Unary,
48
+ },
40
49
  /**
41
50
  * @generated from rpc data.v1.DataApiService.ListTransactions
42
51
  */
@@ -81,6 +81,48 @@ export declare class GetPortfolioResponse extends Message<GetPortfolioResponse>
81
81
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetPortfolioResponse;
82
82
  static equals(a: GetPortfolioResponse | PlainMessage<GetPortfolioResponse> | undefined, b: GetPortfolioResponse | PlainMessage<GetPortfolioResponse> | undefined): boolean;
83
83
  }
84
+ /**
85
+ * @generated from message data.v1.ListPortfoliosRequest
86
+ */
87
+ export declare class ListPortfoliosRequest extends Message<ListPortfoliosRequest> {
88
+ /**
89
+ * @generated from field: repeated string addresses = 1;
90
+ */
91
+ addresses: string[];
92
+ /**
93
+ * @generated from field: repeated uint32 chain_ids = 2;
94
+ */
95
+ chainIds: number[];
96
+ /**
97
+ * @generated from field: repeated data.v1.PortfolioValueModifier modifiers = 3;
98
+ */
99
+ modifiers: PortfolioValueModifier[];
100
+ constructor(data?: PartialMessage<ListPortfoliosRequest>);
101
+ static readonly runtime: typeof proto3;
102
+ static readonly typeName = "data.v1.ListPortfoliosRequest";
103
+ static readonly fields: FieldList;
104
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListPortfoliosRequest;
105
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListPortfoliosRequest;
106
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListPortfoliosRequest;
107
+ static equals(a: ListPortfoliosRequest | PlainMessage<ListPortfoliosRequest> | undefined, b: ListPortfoliosRequest | PlainMessage<ListPortfoliosRequest> | undefined): boolean;
108
+ }
109
+ /**
110
+ * @generated from message data.v1.ListPortfoliosResponse
111
+ */
112
+ export declare class ListPortfoliosResponse extends Message<ListPortfoliosResponse> {
113
+ /**
114
+ * @generated from field: repeated data.v1.Portfolio portfolios = 1;
115
+ */
116
+ portfolios: Portfolio[];
117
+ constructor(data?: PartialMessage<ListPortfoliosResponse>);
118
+ static readonly runtime: typeof proto3;
119
+ static readonly typeName = "data.v1.ListPortfoliosResponse";
120
+ static readonly fields: FieldList;
121
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListPortfoliosResponse;
122
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListPortfoliosResponse;
123
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListPortfoliosResponse;
124
+ static equals(a: ListPortfoliosResponse | PlainMessage<ListPortfoliosResponse> | undefined, b: ListPortfoliosResponse | PlainMessage<ListPortfoliosResponse> | undefined): boolean;
125
+ }
84
126
  /**
85
127
  * @generated from message data.v1.SubmitReportRequest
86
128
  */
@@ -140,9 +182,17 @@ export declare class ListTransactionsRequest extends Message<ListTransactionsReq
140
182
  */
141
183
  address: string;
142
184
  /**
143
- * @generated from field: data.v1.FiatOnRampParams fiat_on_ramp_params = 3;
185
+ * @generated from field: optional data.v1.FiatOnRampParams fiat_on_ramp_params = 3;
144
186
  */
145
187
  fiatOnRampParams?: FiatOnRampParams;
188
+ /**
189
+ * @generated from field: optional string page_token = 4;
190
+ */
191
+ pageToken?: string;
192
+ /**
193
+ * @generated from field: optional uint32 page_limit = 5;
194
+ */
195
+ pageLimit?: number;
146
196
  constructor(data?: PartialMessage<ListTransactionsRequest>);
147
197
  static readonly runtime: typeof proto3;
148
198
  static readonly typeName = "data.v1.ListTransactionsRequest";
@@ -230,6 +280,10 @@ export declare class ListTransactionsResponse extends Message<ListTransactionsRe
230
280
  * @generated from field: repeated data.v1.Transaction transactions = 1;
231
281
  */
232
282
  transactions: Transaction[];
283
+ /**
284
+ * @generated from field: string next_page_token = 2;
285
+ */
286
+ nextPageToken: string;
233
287
  constructor(data?: PartialMessage<ListTransactionsResponse>);
234
288
  static readonly runtime: typeof proto3;
235
289
  static readonly typeName = "data.v1.ListTransactionsResponse";
@@ -127,6 +127,76 @@ 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
+ ]);
130
200
  /**
131
201
  * @generated from message data.v1.SubmitReportRequest
132
202
  */
@@ -236,7 +306,9 @@ ListTransactionsRequest.typeName = "data.v1.ListTransactionsRequest";
236
306
  ListTransactionsRequest.fields = proto3.util.newFieldList(() => [
237
307
  { no: 1, name: "chain_ids", kind: "scalar", T: 13 /* ScalarType.UINT32 */, repeated: true },
238
308
  { no: 2, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
239
- { no: 3, name: "fiat_on_ramp_params", kind: "message", T: FiatOnRampParams },
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 },
240
312
  ]);
241
313
  /**
242
314
  * @generated from message data.v1.FiatOnRampParams
@@ -344,6 +416,10 @@ export class ListTransactionsResponse extends Message {
344
416
  * @generated from field: repeated data.v1.Transaction transactions = 1;
345
417
  */
346
418
  this.transactions = [];
419
+ /**
420
+ * @generated from field: string next_page_token = 2;
421
+ */
422
+ this.nextPageToken = "";
347
423
  proto3.util.initPartial(data, this);
348
424
  }
349
425
  static fromBinary(bytes, options) {
@@ -363,4 +439,5 @@ ListTransactionsResponse.runtime = proto3;
363
439
  ListTransactionsResponse.typeName = "data.v1.ListTransactionsResponse";
364
440
  ListTransactionsResponse.fields = proto3.util.newFieldList(() => [
365
441
  { no: 1, name: "transactions", kind: "message", T: Transaction, repeated: true },
442
+ { no: 2, name: "next_page_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
366
443
  ]);
@@ -546,6 +546,10 @@ export declare class Balance extends Message<Balance> {
546
546
  * @generated from field: double value_usd = 5;
547
547
  */
548
548
  valueUsd: number;
549
+ /**
550
+ * @generated from field: bool is_hidden = 6;
551
+ */
552
+ isHidden: boolean;
549
553
  constructor(data?: PartialMessage<Balance>);
550
554
  static readonly runtime: typeof proto3;
551
555
  static readonly typeName = "data.v1.Balance";
@@ -629,6 +633,10 @@ export declare class Nft extends Message<Nft> {
629
633
  * @generated from field: string image_url = 7;
630
634
  */
631
635
  imageUrl: string;
636
+ /**
637
+ * @generated from field: bool is_spam = 8;
638
+ */
639
+ isSpam: boolean;
632
640
  constructor(data?: PartialMessage<Nft>);
633
641
  static readonly runtime: typeof proto3;
634
642
  static readonly typeName = "data.v1.Nft";
@@ -750,6 +750,10 @@ export class Balance extends Message {
750
750
  * @generated from field: double value_usd = 5;
751
751
  */
752
752
  this.valueUsd = 0;
753
+ /**
754
+ * @generated from field: bool is_hidden = 6;
755
+ */
756
+ this.isHidden = false;
753
757
  proto3.util.initPartial(data, this);
754
758
  }
755
759
  static fromBinary(bytes, options) {
@@ -773,6 +777,7 @@ Balance.fields = proto3.util.newFieldList(() => [
773
777
  { no: 3, name: "price_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
774
778
  { no: 4, name: "price_percent_change_1d", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
775
779
  { no: 5, name: "value_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
780
+ { no: 6, name: "is_hidden", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
776
781
  ]);
777
782
  /**
778
783
  * @generated from message data.v1.Amount
@@ -878,6 +883,10 @@ export class Nft extends Message {
878
883
  * @generated from field: string image_url = 7;
879
884
  */
880
885
  this.imageUrl = "";
886
+ /**
887
+ * @generated from field: bool is_spam = 8;
888
+ */
889
+ this.isSpam = false;
881
890
  proto3.util.initPartial(data, this);
882
891
  }
883
892
  static fromBinary(bytes, options) {
@@ -903,6 +912,7 @@ Nft.fields = proto3.util.newFieldList(() => [
903
912
  { no: 5, name: "collection_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
904
913
  { no: 6, name: "type", kind: "enum", T: proto3.getEnumType(TokenType) },
905
914
  { no: 7, name: "image_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
915
+ { no: 8, name: "is_spam", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
906
916
  ]);
907
917
  /**
908
918
  * @generated from message data.v1.Transaction
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@uniswap/client-data-api",
3
- "version": "0.0.2",
3
+ "version": "0.0.4",
4
4
  "publishConfig": {
5
- "access": "restricted"
5
+ "access": "public"
6
6
  },
7
7
  "files": [
8
8
  "dist"