@uniswap/client-data-api 0.0.12 → 0.0.13

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,6 +1,19 @@
1
1
  import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
2
2
  import { Message, proto3 } from "@bufbuild/protobuf";
3
3
  import { Portfolio, PortfolioValueModifier, Token, TokenReportEventType, Transaction } from "./types_pb.js";
4
+ /**
5
+ * @generated from enum data.v1.Platform
6
+ */
7
+ export declare enum Platform {
8
+ /**
9
+ * @generated from enum value: EVM = 0;
10
+ */
11
+ EVM = 0,
12
+ /**
13
+ * @generated from enum value: SVM = 1;
14
+ */
15
+ SVM = 1
16
+ }
4
17
  /**
5
18
  * @generated from message data.v1.CreatePendingTokenFactoryTokenRequest
6
19
  */
@@ -113,6 +126,44 @@ export declare class SubmitTokenFactoryTokenResponse extends Message<SubmitToken
113
126
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SubmitTokenFactoryTokenResponse;
114
127
  static equals(a: SubmitTokenFactoryTokenResponse | PlainMessage<SubmitTokenFactoryTokenResponse> | undefined, b: SubmitTokenFactoryTokenResponse | PlainMessage<SubmitTokenFactoryTokenResponse> | undefined): boolean;
115
128
  }
129
+ /**
130
+ * @generated from message data.v1.PlatformAddress
131
+ */
132
+ export declare class PlatformAddress extends Message<PlatformAddress> {
133
+ /**
134
+ * @generated from field: data.v1.Platform platform = 1;
135
+ */
136
+ platform: Platform;
137
+ /**
138
+ * @generated from field: string address = 2;
139
+ */
140
+ address: string;
141
+ constructor(data?: PartialMessage<PlatformAddress>);
142
+ static readonly runtime: typeof proto3;
143
+ static readonly typeName = "data.v1.PlatformAddress";
144
+ static readonly fields: FieldList;
145
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PlatformAddress;
146
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PlatformAddress;
147
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PlatformAddress;
148
+ static equals(a: PlatformAddress | PlainMessage<PlatformAddress> | undefined, b: PlatformAddress | PlainMessage<PlatformAddress> | undefined): boolean;
149
+ }
150
+ /**
151
+ * @generated from message data.v1.WalletAccount
152
+ */
153
+ export declare class WalletAccount extends Message<WalletAccount> {
154
+ /**
155
+ * @generated from field: repeated data.v1.PlatformAddress platform_addresses = 1;
156
+ */
157
+ platformAddresses: PlatformAddress[];
158
+ constructor(data?: PartialMessage<WalletAccount>);
159
+ static readonly runtime: typeof proto3;
160
+ static readonly typeName = "data.v1.WalletAccount";
161
+ static readonly fields: FieldList;
162
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): WalletAccount;
163
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): WalletAccount;
164
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): WalletAccount;
165
+ static equals(a: WalletAccount | PlainMessage<WalletAccount> | undefined, b: WalletAccount | PlainMessage<WalletAccount> | undefined): boolean;
166
+ }
116
167
  /**
117
168
  * @generated from message data.v1.GetTokenRequest
118
169
  */
@@ -332,9 +383,9 @@ export declare class ListTransactionsRequest extends Message<ListTransactionsReq
332
383
  */
333
384
  chainIds: number[];
334
385
  /**
335
- * @generated from field: string address = 2;
386
+ * @generated from field: data.v1.WalletAccount wallet_account = 2;
336
387
  */
337
- address: string;
388
+ walletAccount?: WalletAccount;
338
389
  /**
339
390
  * @generated from field: optional data.v1.FiatOnRampParams fiat_on_ramp_params = 3;
340
391
  */
@@ -4,6 +4,25 @@
4
4
  // @ts-nocheck
5
5
  import { Message, proto3 } from "@bufbuild/protobuf";
6
6
  import { Portfolio, PortfolioValueModifier, Token, TokenReportEventType, Transaction } from "./types_pb.js";
7
+ /**
8
+ * @generated from enum data.v1.Platform
9
+ */
10
+ export var Platform;
11
+ (function (Platform) {
12
+ /**
13
+ * @generated from enum value: EVM = 0;
14
+ */
15
+ Platform[Platform["EVM"] = 0] = "EVM";
16
+ /**
17
+ * @generated from enum value: SVM = 1;
18
+ */
19
+ Platform[Platform["SVM"] = 1] = "SVM";
20
+ })(Platform || (Platform = {}));
21
+ // Retrieve enum metadata with: proto3.getEnumType(Platform)
22
+ proto3.util.setEnumType(Platform, "data.v1.Platform", [
23
+ { no: 0, name: "EVM" },
24
+ { no: 1, name: "SVM" },
25
+ ]);
7
26
  /**
8
27
  * @generated from message data.v1.CreatePendingTokenFactoryTokenRequest
9
28
  */
@@ -167,6 +186,71 @@ SubmitTokenFactoryTokenResponse.fields = proto3.util.newFieldList(() => [
167
186
  { no: 1, name: "chain_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
168
187
  { no: 2, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
169
188
  ]);
189
+ /**
190
+ * @generated from message data.v1.PlatformAddress
191
+ */
192
+ export class PlatformAddress extends Message {
193
+ constructor(data) {
194
+ super();
195
+ /**
196
+ * @generated from field: data.v1.Platform platform = 1;
197
+ */
198
+ this.platform = Platform.EVM;
199
+ /**
200
+ * @generated from field: string address = 2;
201
+ */
202
+ this.address = "";
203
+ proto3.util.initPartial(data, this);
204
+ }
205
+ static fromBinary(bytes, options) {
206
+ return new PlatformAddress().fromBinary(bytes, options);
207
+ }
208
+ static fromJson(jsonValue, options) {
209
+ return new PlatformAddress().fromJson(jsonValue, options);
210
+ }
211
+ static fromJsonString(jsonString, options) {
212
+ return new PlatformAddress().fromJsonString(jsonString, options);
213
+ }
214
+ static equals(a, b) {
215
+ return proto3.util.equals(PlatformAddress, a, b);
216
+ }
217
+ }
218
+ PlatformAddress.runtime = proto3;
219
+ PlatformAddress.typeName = "data.v1.PlatformAddress";
220
+ PlatformAddress.fields = proto3.util.newFieldList(() => [
221
+ { no: 1, name: "platform", kind: "enum", T: proto3.getEnumType(Platform) },
222
+ { no: 2, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
223
+ ]);
224
+ /**
225
+ * @generated from message data.v1.WalletAccount
226
+ */
227
+ export class WalletAccount extends Message {
228
+ constructor(data) {
229
+ super();
230
+ /**
231
+ * @generated from field: repeated data.v1.PlatformAddress platform_addresses = 1;
232
+ */
233
+ this.platformAddresses = [];
234
+ proto3.util.initPartial(data, this);
235
+ }
236
+ static fromBinary(bytes, options) {
237
+ return new WalletAccount().fromBinary(bytes, options);
238
+ }
239
+ static fromJson(jsonValue, options) {
240
+ return new WalletAccount().fromJson(jsonValue, options);
241
+ }
242
+ static fromJsonString(jsonString, options) {
243
+ return new WalletAccount().fromJsonString(jsonString, options);
244
+ }
245
+ static equals(a, b) {
246
+ return proto3.util.equals(WalletAccount, a, b);
247
+ }
248
+ }
249
+ WalletAccount.runtime = proto3;
250
+ WalletAccount.typeName = "data.v1.WalletAccount";
251
+ WalletAccount.fields = proto3.util.newFieldList(() => [
252
+ { no: 1, name: "platform_addresses", kind: "message", T: PlatformAddress, repeated: true },
253
+ ]);
170
254
  /**
171
255
  * @generated from message data.v1.GetTokenRequest
172
256
  */
@@ -507,10 +591,6 @@ export class ListTransactionsRequest extends Message {
507
591
  * @generated from field: repeated uint32 chain_ids = 1;
508
592
  */
509
593
  this.chainIds = [];
510
- /**
511
- * @generated from field: string address = 2;
512
- */
513
- this.address = "";
514
594
  proto3.util.initPartial(data, this);
515
595
  }
516
596
  static fromBinary(bytes, options) {
@@ -530,7 +610,7 @@ ListTransactionsRequest.runtime = proto3;
530
610
  ListTransactionsRequest.typeName = "data.v1.ListTransactionsRequest";
531
611
  ListTransactionsRequest.fields = proto3.util.newFieldList(() => [
532
612
  { no: 1, name: "chain_ids", kind: "scalar", T: 13 /* ScalarType.UINT32 */, repeated: true },
533
- { no: 2, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
613
+ { no: 2, name: "wallet_account", kind: "message", T: WalletAccount },
534
614
  { no: 3, name: "fiat_on_ramp_params", kind: "message", T: FiatOnRampParams, opt: true },
535
615
  { no: 4, name: "page_token", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
536
616
  { no: 5, name: "page_size", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
@@ -23,7 +23,11 @@ export declare enum TokenType {
23
23
  /**
24
24
  * @generated from enum value: TOKEN_TYPE_ERC1155 = 4;
25
25
  */
26
- ERC1155 = 4
26
+ ERC1155 = 4,
27
+ /**
28
+ * @generated from enum value: TOKEN_TYPE_SPL = 5;
29
+ */
30
+ SPL = 5
27
31
  }
28
32
  /**
29
33
  * @generated from enum data.v1.SpamCode
@@ -28,6 +28,10 @@ export var TokenType;
28
28
  * @generated from enum value: TOKEN_TYPE_ERC1155 = 4;
29
29
  */
30
30
  TokenType[TokenType["ERC1155"] = 4] = "ERC1155";
31
+ /**
32
+ * @generated from enum value: TOKEN_TYPE_SPL = 5;
33
+ */
34
+ TokenType[TokenType["SPL"] = 5] = "SPL";
31
35
  })(TokenType || (TokenType = {}));
32
36
  // Retrieve enum metadata with: proto3.getEnumType(TokenType)
33
37
  proto3.util.setEnumType(TokenType, "data.v1.TokenType", [
@@ -36,6 +40,7 @@ proto3.util.setEnumType(TokenType, "data.v1.TokenType", [
36
40
  { no: 2, name: "TOKEN_TYPE_ERC20" },
37
41
  { no: 3, name: "TOKEN_TYPE_ERC721" },
38
42
  { no: 4, name: "TOKEN_TYPE_ERC1155" },
43
+ { no: 5, name: "TOKEN_TYPE_SPL" },
39
44
  ]);
40
45
  /**
41
46
  * @generated from enum data.v1.SpamCode
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniswap/client-data-api",
3
- "version": "0.0.12",
3
+ "version": "0.0.13",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },