@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.
@@ -9,33 +9,33 @@ import { Message, proto3 } from "@bufbuild/protobuf";
9
9
  export var TokenType;
10
10
  (function (TokenType) {
11
11
  /**
12
- * @generated from enum value: UNKNOWN = 0;
12
+ * @generated from enum value: TOKEN_TYPE_UNKNOWN = 0;
13
13
  */
14
14
  TokenType[TokenType["UNKNOWN"] = 0] = "UNKNOWN";
15
15
  /**
16
- * @generated from enum value: NATIVE = 1;
16
+ * @generated from enum value: TOKEN_TYPE_NATIVE = 1;
17
17
  */
18
18
  TokenType[TokenType["NATIVE"] = 1] = "NATIVE";
19
19
  /**
20
- * @generated from enum value: ERC20 = 2;
20
+ * @generated from enum value: TOKEN_TYPE_ERC20 = 2;
21
21
  */
22
22
  TokenType[TokenType["ERC20"] = 2] = "ERC20";
23
23
  /**
24
- * @generated from enum value: ERC721 = 3;
24
+ * @generated from enum value: TOKEN_TYPE_ERC721 = 3;
25
25
  */
26
26
  TokenType[TokenType["ERC721"] = 3] = "ERC721";
27
27
  /**
28
- * @generated from enum value: ERC1155 = 4;
28
+ * @generated from enum value: TOKEN_TYPE_ERC1155 = 4;
29
29
  */
30
30
  TokenType[TokenType["ERC1155"] = 4] = "ERC1155";
31
31
  })(TokenType || (TokenType = {}));
32
32
  // Retrieve enum metadata with: proto3.getEnumType(TokenType)
33
33
  proto3.util.setEnumType(TokenType, "data.v1.TokenType", [
34
- { no: 0, name: "UNKNOWN" },
35
- { no: 1, name: "NATIVE" },
36
- { no: 2, name: "ERC20" },
37
- { no: 3, name: "ERC721" },
38
- { no: 4, name: "ERC1155" },
34
+ { no: 0, name: "TOKEN_TYPE_UNKNOWN" },
35
+ { no: 1, name: "TOKEN_TYPE_NATIVE" },
36
+ { no: 2, name: "TOKEN_TYPE_ERC20" },
37
+ { no: 3, name: "TOKEN_TYPE_ERC721" },
38
+ { no: 4, name: "TOKEN_TYPE_ERC1155" },
39
39
  ]);
40
40
  /**
41
41
  * @generated from enum data.v1.SpamCode
@@ -100,6 +100,279 @@ proto3.util.setEnumType(SafetyLevel, "data.v1.SafetyLevel", [
100
100
  { no: 3, name: "SAFETY_LEVEL_STRONG_WARNING" },
101
101
  { no: 4, name: "SAFETY_LEVEL_BLOCKED" },
102
102
  ]);
103
+ /**
104
+ * @generated from enum data.v1.TokenReportEventType
105
+ */
106
+ export var TokenReportEventType;
107
+ (function (TokenReportEventType) {
108
+ /**
109
+ * @generated from enum value: TOKEN_REPORT_EVENT_TYPE_UNSPECIFIED = 0;
110
+ */
111
+ TokenReportEventType[TokenReportEventType["UNSPECIFIED"] = 0] = "UNSPECIFIED";
112
+ /**
113
+ * @generated from enum value: TOKEN_REPORT_EVENT_TYPE_FALSE_POSITIVE = 1;
114
+ */
115
+ TokenReportEventType[TokenReportEventType["FALSE_POSITIVE"] = 1] = "FALSE_POSITIVE";
116
+ /**
117
+ * @generated from enum value: TOKEN_REPORT_EVENT_TYPE_FALSE_NEGATIVE = 2;
118
+ */
119
+ TokenReportEventType[TokenReportEventType["FALSE_NEGATIVE"] = 2] = "FALSE_NEGATIVE";
120
+ })(TokenReportEventType || (TokenReportEventType = {}));
121
+ // Retrieve enum metadata with: proto3.getEnumType(TokenReportEventType)
122
+ proto3.util.setEnumType(TokenReportEventType, "data.v1.TokenReportEventType", [
123
+ { no: 0, name: "TOKEN_REPORT_EVENT_TYPE_UNSPECIFIED" },
124
+ { no: 1, name: "TOKEN_REPORT_EVENT_TYPE_FALSE_POSITIVE" },
125
+ { no: 2, name: "TOKEN_REPORT_EVENT_TYPE_FALSE_NEGATIVE" },
126
+ ]);
127
+ /**
128
+ * @generated from enum data.v1.Direction
129
+ */
130
+ export var Direction;
131
+ (function (Direction) {
132
+ /**
133
+ * @generated from enum value: DIRECTION_SELF = 0;
134
+ */
135
+ Direction[Direction["SELF"] = 0] = "SELF";
136
+ /**
137
+ * @generated from enum value: DIRECTION_RECEIVE = 1;
138
+ */
139
+ Direction[Direction["RECEIVE"] = 1] = "RECEIVE";
140
+ /**
141
+ * @generated from enum value: DIRECTION_SEND = 2;
142
+ */
143
+ Direction[Direction["SEND"] = 2] = "SEND";
144
+ })(Direction || (Direction = {}));
145
+ // Retrieve enum metadata with: proto3.getEnumType(Direction)
146
+ proto3.util.setEnumType(Direction, "data.v1.Direction", [
147
+ { no: 0, name: "DIRECTION_SELF" },
148
+ { no: 1, name: "DIRECTION_RECEIVE" },
149
+ { no: 2, name: "DIRECTION_SEND" },
150
+ ]);
151
+ /**
152
+ * @generated from enum data.v1.OnChainTransactionLabel
153
+ */
154
+ export var OnChainTransactionLabel;
155
+ (function (OnChainTransactionLabel) {
156
+ /**
157
+ * @generated from enum value: ON_CHAIN_TRANSACTION_LABEL_UNKNOWN = 0;
158
+ */
159
+ OnChainTransactionLabel[OnChainTransactionLabel["UNKNOWN"] = 0] = "UNKNOWN";
160
+ /**
161
+ * @generated from enum value: ON_CHAIN_TRANSACTION_LABEL_APPROVE = 1;
162
+ */
163
+ OnChainTransactionLabel[OnChainTransactionLabel["APPROVE"] = 1] = "APPROVE";
164
+ /**
165
+ * @generated from enum value: ON_CHAIN_TRANSACTION_LABEL_BORROW = 2;
166
+ */
167
+ OnChainTransactionLabel[OnChainTransactionLabel["BORROW"] = 2] = "BORROW";
168
+ /**
169
+ * @generated from enum value: ON_CHAIN_TRANSACTION_LABEL_BRIDGE = 3;
170
+ */
171
+ OnChainTransactionLabel[OnChainTransactionLabel["BRIDGE"] = 3] = "BRIDGE";
172
+ /**
173
+ * @generated from enum value: ON_CHAIN_TRANSACTION_LABEL_CANCEL = 4;
174
+ */
175
+ OnChainTransactionLabel[OnChainTransactionLabel["CANCEL"] = 4] = "CANCEL";
176
+ /**
177
+ * @generated from enum value: ON_CHAIN_TRANSACTION_LABEL_CLAIM = 5;
178
+ */
179
+ OnChainTransactionLabel[OnChainTransactionLabel["CLAIM"] = 5] = "CLAIM";
180
+ /**
181
+ * @generated from enum value: ON_CHAIN_TRANSACTION_LABEL_DEPLOY = 6;
182
+ */
183
+ OnChainTransactionLabel[OnChainTransactionLabel["DEPLOY"] = 6] = "DEPLOY";
184
+ /**
185
+ * @generated from enum value: ON_CHAIN_TRANSACTION_LABEL_EXECUTE = 7;
186
+ */
187
+ OnChainTransactionLabel[OnChainTransactionLabel["EXECUTE"] = 7] = "EXECUTE";
188
+ /**
189
+ * @generated from enum value: ON_CHAIN_TRANSACTION_LABEL_LEND = 8;
190
+ */
191
+ OnChainTransactionLabel[OnChainTransactionLabel["LEND"] = 8] = "LEND";
192
+ /**
193
+ * @generated from enum value: ON_CHAIN_TRANSACTION_LABEL_MINT = 9;
194
+ */
195
+ OnChainTransactionLabel[OnChainTransactionLabel["MINT"] = 9] = "MINT";
196
+ /**
197
+ * @generated from enum value: ON_CHAIN_TRANSACTION_LABEL_FIAT_ON_RAMP = 10;
198
+ */
199
+ OnChainTransactionLabel[OnChainTransactionLabel["FIAT_ON_RAMP"] = 10] = "FIAT_ON_RAMP";
200
+ /**
201
+ * @generated from enum value: ON_CHAIN_TRANSACTION_LABEL_RECEIVE = 11;
202
+ */
203
+ OnChainTransactionLabel[OnChainTransactionLabel["RECEIVE"] = 11] = "RECEIVE";
204
+ /**
205
+ * @generated from enum value: ON_CHAIN_TRANSACTION_LABEL_REPAY = 12;
206
+ */
207
+ OnChainTransactionLabel[OnChainTransactionLabel["REPAY"] = 12] = "REPAY";
208
+ /**
209
+ * @generated from enum value: ON_CHAIN_TRANSACTION_LABEL_SEND = 13;
210
+ */
211
+ OnChainTransactionLabel[OnChainTransactionLabel["SEND"] = 13] = "SEND";
212
+ /**
213
+ * @generated from enum value: ON_CHAIN_TRANSACTION_LABEL_STAKE = 14;
214
+ */
215
+ OnChainTransactionLabel[OnChainTransactionLabel["STAKE"] = 14] = "STAKE";
216
+ /**
217
+ * @generated from enum value: ON_CHAIN_TRANSACTION_LABEL_SWAP = 15;
218
+ */
219
+ OnChainTransactionLabel[OnChainTransactionLabel["SWAP"] = 15] = "SWAP";
220
+ /**
221
+ * @generated from enum value: ON_CHAIN_TRANSACTION_LABEL_UNISWAP_X = 16;
222
+ */
223
+ OnChainTransactionLabel[OnChainTransactionLabel["UNISWAP_X"] = 16] = "UNISWAP_X";
224
+ /**
225
+ * @generated from enum value: ON_CHAIN_TRANSACTION_LABEL_TRANSFER = 17;
226
+ */
227
+ OnChainTransactionLabel[OnChainTransactionLabel["TRANSFER"] = 17] = "TRANSFER";
228
+ /**
229
+ * @generated from enum value: ON_CHAIN_TRANSACTION_LABEL_UNSTAKE = 18;
230
+ */
231
+ OnChainTransactionLabel[OnChainTransactionLabel["UNSTAKE"] = 18] = "UNSTAKE";
232
+ /**
233
+ * @generated from enum value: ON_CHAIN_TRANSACTION_LABEL_WITHDRAW = 19;
234
+ */
235
+ OnChainTransactionLabel[OnChainTransactionLabel["WITHDRAW"] = 19] = "WITHDRAW";
236
+ })(OnChainTransactionLabel || (OnChainTransactionLabel = {}));
237
+ // Retrieve enum metadata with: proto3.getEnumType(OnChainTransactionLabel)
238
+ proto3.util.setEnumType(OnChainTransactionLabel, "data.v1.OnChainTransactionLabel", [
239
+ { no: 0, name: "ON_CHAIN_TRANSACTION_LABEL_UNKNOWN" },
240
+ { no: 1, name: "ON_CHAIN_TRANSACTION_LABEL_APPROVE" },
241
+ { no: 2, name: "ON_CHAIN_TRANSACTION_LABEL_BORROW" },
242
+ { no: 3, name: "ON_CHAIN_TRANSACTION_LABEL_BRIDGE" },
243
+ { no: 4, name: "ON_CHAIN_TRANSACTION_LABEL_CANCEL" },
244
+ { no: 5, name: "ON_CHAIN_TRANSACTION_LABEL_CLAIM" },
245
+ { no: 6, name: "ON_CHAIN_TRANSACTION_LABEL_DEPLOY" },
246
+ { no: 7, name: "ON_CHAIN_TRANSACTION_LABEL_EXECUTE" },
247
+ { no: 8, name: "ON_CHAIN_TRANSACTION_LABEL_LEND" },
248
+ { no: 9, name: "ON_CHAIN_TRANSACTION_LABEL_MINT" },
249
+ { no: 10, name: "ON_CHAIN_TRANSACTION_LABEL_FIAT_ON_RAMP" },
250
+ { no: 11, name: "ON_CHAIN_TRANSACTION_LABEL_RECEIVE" },
251
+ { no: 12, name: "ON_CHAIN_TRANSACTION_LABEL_REPAY" },
252
+ { no: 13, name: "ON_CHAIN_TRANSACTION_LABEL_SEND" },
253
+ { no: 14, name: "ON_CHAIN_TRANSACTION_LABEL_STAKE" },
254
+ { no: 15, name: "ON_CHAIN_TRANSACTION_LABEL_SWAP" },
255
+ { no: 16, name: "ON_CHAIN_TRANSACTION_LABEL_UNISWAP_X" },
256
+ { no: 17, name: "ON_CHAIN_TRANSACTION_LABEL_TRANSFER" },
257
+ { no: 18, name: "ON_CHAIN_TRANSACTION_LABEL_UNSTAKE" },
258
+ { no: 19, name: "ON_CHAIN_TRANSACTION_LABEL_WITHDRAW" },
259
+ ]);
260
+ /**
261
+ * @generated from enum data.v1.OnChainTransactionStatus
262
+ */
263
+ export var OnChainTransactionStatus;
264
+ (function (OnChainTransactionStatus) {
265
+ /**
266
+ * @generated from enum value: ON_CHAIN_TRANSACTION_STATUS_PENDING = 0;
267
+ */
268
+ OnChainTransactionStatus[OnChainTransactionStatus["PENDING"] = 0] = "PENDING";
269
+ /**
270
+ * @generated from enum value: ON_CHAIN_TRANSACTION_STATUS_CONFIRMED = 1;
271
+ */
272
+ OnChainTransactionStatus[OnChainTransactionStatus["CONFIRMED"] = 1] = "CONFIRMED";
273
+ /**
274
+ * @generated from enum value: ON_CHAIN_TRANSACTION_STATUS_FAILED = 2;
275
+ */
276
+ OnChainTransactionStatus[OnChainTransactionStatus["FAILED"] = 2] = "FAILED";
277
+ })(OnChainTransactionStatus || (OnChainTransactionStatus = {}));
278
+ // Retrieve enum metadata with: proto3.getEnumType(OnChainTransactionStatus)
279
+ proto3.util.setEnumType(OnChainTransactionStatus, "data.v1.OnChainTransactionStatus", [
280
+ { no: 0, name: "ON_CHAIN_TRANSACTION_STATUS_PENDING" },
281
+ { no: 1, name: "ON_CHAIN_TRANSACTION_STATUS_CONFIRMED" },
282
+ { no: 2, name: "ON_CHAIN_TRANSACTION_STATUS_FAILED" },
283
+ ]);
284
+ /**
285
+ * @generated from enum data.v1.UniswapXOrderType
286
+ */
287
+ export var UniswapXOrderType;
288
+ (function (UniswapXOrderType) {
289
+ /**
290
+ * @generated from enum value: UNISWAP_X_ORDER_TYPE_DUTCH = 0;
291
+ */
292
+ UniswapXOrderType[UniswapXOrderType["DUTCH"] = 0] = "DUTCH";
293
+ /**
294
+ * @generated from enum value: UNISWAP_X_ORDER_TYPE_LIMIT = 1;
295
+ */
296
+ UniswapXOrderType[UniswapXOrderType["LIMIT"] = 1] = "LIMIT";
297
+ /**
298
+ * @generated from enum value: UNISWAP_X_ORDER_TYPE_DUTCH_V2 = 2;
299
+ */
300
+ UniswapXOrderType[UniswapXOrderType["DUTCH_V2"] = 2] = "DUTCH_V2";
301
+ /**
302
+ * @generated from enum value: UNISWAP_X_ORDER_TYPE_PRIORITY = 3;
303
+ */
304
+ UniswapXOrderType[UniswapXOrderType["PRIORITY"] = 3] = "PRIORITY";
305
+ })(UniswapXOrderType || (UniswapXOrderType = {}));
306
+ // Retrieve enum metadata with: proto3.getEnumType(UniswapXOrderType)
307
+ proto3.util.setEnumType(UniswapXOrderType, "data.v1.UniswapXOrderType", [
308
+ { no: 0, name: "UNISWAP_X_ORDER_TYPE_DUTCH" },
309
+ { no: 1, name: "UNISWAP_X_ORDER_TYPE_LIMIT" },
310
+ { no: 2, name: "UNISWAP_X_ORDER_TYPE_DUTCH_V2" },
311
+ { no: 3, name: "UNISWAP_X_ORDER_TYPE_PRIORITY" },
312
+ ]);
313
+ /**
314
+ * @generated from enum data.v1.UniswapXTransactionStatus
315
+ */
316
+ export var UniswapXTransactionStatus;
317
+ (function (UniswapXTransactionStatus) {
318
+ /**
319
+ * @generated from enum value: UNISWAP_X_TRANSACTION_STATUS_OPEN = 0;
320
+ */
321
+ UniswapXTransactionStatus[UniswapXTransactionStatus["OPEN"] = 0] = "OPEN";
322
+ /**
323
+ * @generated from enum value: UNISWAP_X_TRANSACTION_STATUS_EXPIRED = 1;
324
+ */
325
+ UniswapXTransactionStatus[UniswapXTransactionStatus["EXPIRED"] = 1] = "EXPIRED";
326
+ /**
327
+ * @generated from enum value: UNISWAP_X_TRANSACTION_STATUS_ERROR = 2;
328
+ */
329
+ UniswapXTransactionStatus[UniswapXTransactionStatus["ERROR"] = 2] = "ERROR";
330
+ /**
331
+ * @generated from enum value: UNISWAP_X_TRANSACTION_STATUS_INSUFFICIENT_FUNDS = 3;
332
+ */
333
+ UniswapXTransactionStatus[UniswapXTransactionStatus["INSUFFICIENT_FUNDS"] = 3] = "INSUFFICIENT_FUNDS";
334
+ /**
335
+ * @generated from enum value: UNISWAP_X_TRANSACTION_STATUS_FILLED = 4;
336
+ */
337
+ UniswapXTransactionStatus[UniswapXTransactionStatus["FILLED"] = 4] = "FILLED";
338
+ /**
339
+ * @generated from enum value: UNISWAP_X_TRANSACTION_STATUS_CANCELLED = 5;
340
+ */
341
+ UniswapXTransactionStatus[UniswapXTransactionStatus["CANCELLED"] = 5] = "CANCELLED";
342
+ })(UniswapXTransactionStatus || (UniswapXTransactionStatus = {}));
343
+ // Retrieve enum metadata with: proto3.getEnumType(UniswapXTransactionStatus)
344
+ proto3.util.setEnumType(UniswapXTransactionStatus, "data.v1.UniswapXTransactionStatus", [
345
+ { no: 0, name: "UNISWAP_X_TRANSACTION_STATUS_OPEN" },
346
+ { no: 1, name: "UNISWAP_X_TRANSACTION_STATUS_EXPIRED" },
347
+ { no: 2, name: "UNISWAP_X_TRANSACTION_STATUS_ERROR" },
348
+ { no: 3, name: "UNISWAP_X_TRANSACTION_STATUS_INSUFFICIENT_FUNDS" },
349
+ { no: 4, name: "UNISWAP_X_TRANSACTION_STATUS_FILLED" },
350
+ { no: 5, name: "UNISWAP_X_TRANSACTION_STATUS_CANCELLED" },
351
+ ]);
352
+ /**
353
+ * @generated from enum data.v1.FiatOnRampTransactionStatus
354
+ */
355
+ export var FiatOnRampTransactionStatus;
356
+ (function (FiatOnRampTransactionStatus) {
357
+ /**
358
+ * @generated from enum value: FIAT_ON_RAMP_TRANSACTION_STATUS_FAILED = 0;
359
+ */
360
+ FiatOnRampTransactionStatus[FiatOnRampTransactionStatus["FAILED"] = 0] = "FAILED";
361
+ /**
362
+ * @generated from enum value: FIAT_ON_RAMP_TRANSACTION_STATUS_SETTLED = 1;
363
+ */
364
+ FiatOnRampTransactionStatus[FiatOnRampTransactionStatus["SETTLED"] = 1] = "SETTLED";
365
+ /**
366
+ * @generated from enum value: FIAT_ON_RAMP_TRANSACTION_STATUS_PENDING = 2;
367
+ */
368
+ FiatOnRampTransactionStatus[FiatOnRampTransactionStatus["PENDING"] = 2] = "PENDING";
369
+ })(FiatOnRampTransactionStatus || (FiatOnRampTransactionStatus = {}));
370
+ // Retrieve enum metadata with: proto3.getEnumType(FiatOnRampTransactionStatus)
371
+ proto3.util.setEnumType(FiatOnRampTransactionStatus, "data.v1.FiatOnRampTransactionStatus", [
372
+ { no: 0, name: "FIAT_ON_RAMP_TRANSACTION_STATUS_FAILED" },
373
+ { no: 1, name: "FIAT_ON_RAMP_TRANSACTION_STATUS_SETTLED" },
374
+ { no: 2, name: "FIAT_ON_RAMP_TRANSACTION_STATUS_PENDING" },
375
+ ]);
103
376
  /**
104
377
  * @generated from message data.v1.Token
105
378
  */
@@ -477,6 +750,10 @@ export class Balance extends Message {
477
750
  * @generated from field: double value_usd = 5;
478
751
  */
479
752
  this.valueUsd = 0;
753
+ /**
754
+ * @generated from field: bool is_hidden = 6;
755
+ */
756
+ this.isHidden = false;
480
757
  proto3.util.initPartial(data, this);
481
758
  }
482
759
  static fromBinary(bytes, options) {
@@ -500,6 +777,7 @@ Balance.fields = proto3.util.newFieldList(() => [
500
777
  { no: 3, name: "price_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
501
778
  { no: 4, name: "price_percent_change_1d", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
502
779
  { no: 5, name: "value_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
780
+ { no: 6, name: "is_hidden", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
503
781
  ]);
504
782
  /**
505
783
  * @generated from message data.v1.Amount
@@ -571,3 +849,544 @@ Contract.fields = proto3.util.newFieldList(() => [
571
849
  { no: 1, name: "chain_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
572
850
  { no: 2, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
573
851
  ]);
852
+ /**
853
+ * @generated from message data.v1.Nft
854
+ */
855
+ export class Nft extends Message {
856
+ constructor(data) {
857
+ super();
858
+ /**
859
+ * @generated from field: uint32 chain_id = 1;
860
+ */
861
+ this.chainId = 0;
862
+ /**
863
+ * @generated from field: string address = 2;
864
+ */
865
+ this.address = "";
866
+ /**
867
+ * @generated from field: string token_id = 3;
868
+ */
869
+ this.tokenId = "";
870
+ /**
871
+ * @generated from field: string name = 4;
872
+ */
873
+ this.name = "";
874
+ /**
875
+ * @generated from field: string collection_name = 5;
876
+ */
877
+ this.collectionName = "";
878
+ /**
879
+ * @generated from field: data.v1.TokenType type = 6;
880
+ */
881
+ this.type = TokenType.UNKNOWN;
882
+ /**
883
+ * @generated from field: string image_url = 7;
884
+ */
885
+ this.imageUrl = "";
886
+ /**
887
+ * @generated from field: bool is_spam = 8;
888
+ */
889
+ this.isSpam = false;
890
+ proto3.util.initPartial(data, this);
891
+ }
892
+ static fromBinary(bytes, options) {
893
+ return new Nft().fromBinary(bytes, options);
894
+ }
895
+ static fromJson(jsonValue, options) {
896
+ return new Nft().fromJson(jsonValue, options);
897
+ }
898
+ static fromJsonString(jsonString, options) {
899
+ return new Nft().fromJsonString(jsonString, options);
900
+ }
901
+ static equals(a, b) {
902
+ return proto3.util.equals(Nft, a, b);
903
+ }
904
+ }
905
+ Nft.runtime = proto3;
906
+ Nft.typeName = "data.v1.Nft";
907
+ Nft.fields = proto3.util.newFieldList(() => [
908
+ { no: 1, name: "chain_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
909
+ { no: 2, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
910
+ { no: 3, name: "token_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
911
+ { no: 4, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
912
+ { no: 5, name: "collection_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
913
+ { no: 6, name: "type", kind: "enum", T: proto3.getEnumType(TokenType) },
914
+ { no: 7, name: "image_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
915
+ { no: 8, name: "is_spam", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
916
+ ]);
917
+ /**
918
+ * @generated from message data.v1.Transaction
919
+ */
920
+ export class Transaction extends Message {
921
+ constructor(data) {
922
+ super();
923
+ /**
924
+ * @generated from oneof data.v1.Transaction.transaction
925
+ */
926
+ this.transaction = { case: undefined };
927
+ proto3.util.initPartial(data, this);
928
+ }
929
+ static fromBinary(bytes, options) {
930
+ return new Transaction().fromBinary(bytes, options);
931
+ }
932
+ static fromJson(jsonValue, options) {
933
+ return new Transaction().fromJson(jsonValue, options);
934
+ }
935
+ static fromJsonString(jsonString, options) {
936
+ return new Transaction().fromJsonString(jsonString, options);
937
+ }
938
+ static equals(a, b) {
939
+ return proto3.util.equals(Transaction, a, b);
940
+ }
941
+ }
942
+ Transaction.runtime = proto3;
943
+ Transaction.typeName = "data.v1.Transaction";
944
+ Transaction.fields = proto3.util.newFieldList(() => [
945
+ { no: 1, name: "on_chain", kind: "message", T: OnChainTransaction, oneof: "transaction" },
946
+ { no: 2, name: "uniswap_x", kind: "message", T: UniswapXTransaction, oneof: "transaction" },
947
+ { no: 3, name: "fiat_on_ramp", kind: "message", T: FiatOnRampTransaction, oneof: "transaction" },
948
+ ]);
949
+ /**
950
+ * @generated from message data.v1.OnChainTransaction
951
+ */
952
+ export class OnChainTransaction extends Message {
953
+ constructor(data) {
954
+ super();
955
+ /**
956
+ * @generated from field: uint32 chain_id = 1;
957
+ */
958
+ this.chainId = 0;
959
+ /**
960
+ * @generated from field: uint32 block_number = 2;
961
+ */
962
+ this.blockNumber = 0;
963
+ /**
964
+ * @generated from field: uint32 timestamp_millis = 3;
965
+ */
966
+ this.timestampMillis = 0;
967
+ /**
968
+ * @generated from field: string transaction_hash = 4;
969
+ */
970
+ this.transactionHash = "";
971
+ /**
972
+ * @generated from field: string from = 5;
973
+ */
974
+ this.from = "";
975
+ /**
976
+ * @generated from field: string to = 6;
977
+ */
978
+ this.to = "";
979
+ /**
980
+ * @generated from field: repeated data.v1.Transfer transfers = 7;
981
+ */
982
+ this.transfers = [];
983
+ /**
984
+ * @generated from field: repeated data.v1.Approval approvals = 8;
985
+ */
986
+ this.approvals = [];
987
+ /**
988
+ * @generated from field: data.v1.OnChainTransactionLabel label = 9;
989
+ */
990
+ this.label = OnChainTransactionLabel.UNKNOWN;
991
+ /**
992
+ * @generated from field: data.v1.OnChainTransactionStatus status = 10;
993
+ */
994
+ this.status = OnChainTransactionStatus.PENDING;
995
+ proto3.util.initPartial(data, this);
996
+ }
997
+ static fromBinary(bytes, options) {
998
+ return new OnChainTransaction().fromBinary(bytes, options);
999
+ }
1000
+ static fromJson(jsonValue, options) {
1001
+ return new OnChainTransaction().fromJson(jsonValue, options);
1002
+ }
1003
+ static fromJsonString(jsonString, options) {
1004
+ return new OnChainTransaction().fromJsonString(jsonString, options);
1005
+ }
1006
+ static equals(a, b) {
1007
+ return proto3.util.equals(OnChainTransaction, a, b);
1008
+ }
1009
+ }
1010
+ OnChainTransaction.runtime = proto3;
1011
+ OnChainTransaction.typeName = "data.v1.OnChainTransaction";
1012
+ OnChainTransaction.fields = proto3.util.newFieldList(() => [
1013
+ { no: 1, name: "chain_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
1014
+ { no: 2, name: "block_number", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
1015
+ { no: 3, name: "timestamp_millis", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
1016
+ { no: 4, name: "transaction_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1017
+ { no: 5, name: "from", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1018
+ { no: 6, name: "to", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1019
+ { no: 7, name: "transfers", kind: "message", T: Transfer, repeated: true },
1020
+ { no: 8, name: "approvals", kind: "message", T: Approval, repeated: true },
1021
+ { no: 9, name: "label", kind: "enum", T: proto3.getEnumType(OnChainTransactionLabel) },
1022
+ { no: 10, name: "status", kind: "enum", T: proto3.getEnumType(OnChainTransactionStatus) },
1023
+ { no: 11, name: "protocol", kind: "message", T: ProtocolMetadata, opt: true },
1024
+ { no: 12, name: "fee", kind: "message", T: TransactionFee },
1025
+ ]);
1026
+ /**
1027
+ * @generated from message data.v1.Transfer
1028
+ */
1029
+ export class Transfer extends Message {
1030
+ constructor(data) {
1031
+ super();
1032
+ /**
1033
+ * @generated from field: data.v1.Direction direction = 1;
1034
+ */
1035
+ this.direction = Direction.SELF;
1036
+ /**
1037
+ * @generated from field: string from = 2;
1038
+ */
1039
+ this.from = "";
1040
+ /**
1041
+ * @generated from field: string to = 3;
1042
+ */
1043
+ this.to = "";
1044
+ /**
1045
+ * @generated from oneof data.v1.Transfer.asset
1046
+ */
1047
+ this.asset = { case: undefined };
1048
+ proto3.util.initPartial(data, this);
1049
+ }
1050
+ static fromBinary(bytes, options) {
1051
+ return new Transfer().fromBinary(bytes, options);
1052
+ }
1053
+ static fromJson(jsonValue, options) {
1054
+ return new Transfer().fromJson(jsonValue, options);
1055
+ }
1056
+ static fromJsonString(jsonString, options) {
1057
+ return new Transfer().fromJsonString(jsonString, options);
1058
+ }
1059
+ static equals(a, b) {
1060
+ return proto3.util.equals(Transfer, a, b);
1061
+ }
1062
+ }
1063
+ Transfer.runtime = proto3;
1064
+ Transfer.typeName = "data.v1.Transfer";
1065
+ Transfer.fields = proto3.util.newFieldList(() => [
1066
+ { no: 1, name: "direction", kind: "enum", T: proto3.getEnumType(Direction) },
1067
+ { no: 2, name: "from", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1068
+ { no: 3, name: "to", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1069
+ { no: 4, name: "token", kind: "message", T: Token, oneof: "asset" },
1070
+ { no: 5, name: "nft", kind: "message", T: Nft, oneof: "asset" },
1071
+ { no: 6, name: "amount", kind: "message", T: Amount },
1072
+ ]);
1073
+ /**
1074
+ * @generated from message data.v1.Approval
1075
+ */
1076
+ export class Approval extends Message {
1077
+ constructor(data) {
1078
+ super();
1079
+ /**
1080
+ * @generated from field: string approved_address = 1;
1081
+ */
1082
+ this.approvedAddress = "";
1083
+ /**
1084
+ * @generated from oneof data.v1.Approval.asset
1085
+ */
1086
+ this.asset = { case: undefined };
1087
+ proto3.util.initPartial(data, this);
1088
+ }
1089
+ static fromBinary(bytes, options) {
1090
+ return new Approval().fromBinary(bytes, options);
1091
+ }
1092
+ static fromJson(jsonValue, options) {
1093
+ return new Approval().fromJson(jsonValue, options);
1094
+ }
1095
+ static fromJsonString(jsonString, options) {
1096
+ return new Approval().fromJsonString(jsonString, options);
1097
+ }
1098
+ static equals(a, b) {
1099
+ return proto3.util.equals(Approval, a, b);
1100
+ }
1101
+ }
1102
+ Approval.runtime = proto3;
1103
+ Approval.typeName = "data.v1.Approval";
1104
+ Approval.fields = proto3.util.newFieldList(() => [
1105
+ { no: 1, name: "approved_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1106
+ { no: 2, name: "token", kind: "message", T: Token, oneof: "asset" },
1107
+ { no: 3, name: "nft", kind: "message", T: Nft, oneof: "asset" },
1108
+ { no: 4, name: "amount", kind: "message", T: Amount },
1109
+ ]);
1110
+ /**
1111
+ * @generated from message data.v1.ProtocolMetadata
1112
+ */
1113
+ export class ProtocolMetadata extends Message {
1114
+ constructor(data) {
1115
+ super();
1116
+ /**
1117
+ * @generated from field: string name = 1;
1118
+ */
1119
+ this.name = "";
1120
+ /**
1121
+ * @generated from field: string logo_url = 2;
1122
+ */
1123
+ this.logoUrl = "";
1124
+ proto3.util.initPartial(data, this);
1125
+ }
1126
+ static fromBinary(bytes, options) {
1127
+ return new ProtocolMetadata().fromBinary(bytes, options);
1128
+ }
1129
+ static fromJson(jsonValue, options) {
1130
+ return new ProtocolMetadata().fromJson(jsonValue, options);
1131
+ }
1132
+ static fromJsonString(jsonString, options) {
1133
+ return new ProtocolMetadata().fromJsonString(jsonString, options);
1134
+ }
1135
+ static equals(a, b) {
1136
+ return proto3.util.equals(ProtocolMetadata, a, b);
1137
+ }
1138
+ }
1139
+ ProtocolMetadata.runtime = proto3;
1140
+ ProtocolMetadata.typeName = "data.v1.ProtocolMetadata";
1141
+ ProtocolMetadata.fields = proto3.util.newFieldList(() => [
1142
+ { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1143
+ { no: 2, name: "logo_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1144
+ ]);
1145
+ /**
1146
+ * @generated from message data.v1.UniswapXTransaction
1147
+ */
1148
+ export class UniswapXTransaction extends Message {
1149
+ constructor(data) {
1150
+ super();
1151
+ /**
1152
+ * @generated from field: uint32 chain_id = 1;
1153
+ */
1154
+ this.chainId = 0;
1155
+ /**
1156
+ * @generated from field: uint32 timestamp_millis = 2;
1157
+ */
1158
+ this.timestampMillis = 0;
1159
+ /**
1160
+ * @generated from field: string offerer = 3;
1161
+ */
1162
+ this.offerer = "";
1163
+ /**
1164
+ * @generated from field: string order_hash = 4;
1165
+ */
1166
+ this.orderHash = "";
1167
+ /**
1168
+ * @generated from field: uint32 expiry_millis = 9;
1169
+ */
1170
+ this.expiryMillis = 0;
1171
+ /**
1172
+ * @generated from field: string encoded_order = 10;
1173
+ */
1174
+ this.encodedOrder = "";
1175
+ /**
1176
+ * @generated from field: data.v1.UniswapXOrderType order_type = 11;
1177
+ */
1178
+ this.orderType = UniswapXOrderType.DUTCH;
1179
+ /**
1180
+ * @generated from field: data.v1.UniswapXTransactionStatus status = 12;
1181
+ */
1182
+ this.status = UniswapXTransactionStatus.OPEN;
1183
+ proto3.util.initPartial(data, this);
1184
+ }
1185
+ static fromBinary(bytes, options) {
1186
+ return new UniswapXTransaction().fromBinary(bytes, options);
1187
+ }
1188
+ static fromJson(jsonValue, options) {
1189
+ return new UniswapXTransaction().fromJson(jsonValue, options);
1190
+ }
1191
+ static fromJsonString(jsonString, options) {
1192
+ return new UniswapXTransaction().fromJsonString(jsonString, options);
1193
+ }
1194
+ static equals(a, b) {
1195
+ return proto3.util.equals(UniswapXTransaction, a, b);
1196
+ }
1197
+ }
1198
+ UniswapXTransaction.runtime = proto3;
1199
+ UniswapXTransaction.typeName = "data.v1.UniswapXTransaction";
1200
+ UniswapXTransaction.fields = proto3.util.newFieldList(() => [
1201
+ { no: 1, name: "chain_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
1202
+ { no: 2, name: "timestamp_millis", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
1203
+ { no: 3, name: "offerer", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1204
+ { no: 4, name: "order_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1205
+ { no: 5, name: "input_token", kind: "message", T: Token },
1206
+ { no: 6, name: "input_token_amount", kind: "message", T: Amount },
1207
+ { no: 7, name: "output_token", kind: "message", T: Token },
1208
+ { no: 8, name: "output_token_amount", kind: "message", T: Amount },
1209
+ { no: 9, name: "expiry_millis", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
1210
+ { no: 10, name: "encoded_order", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1211
+ { no: 11, name: "order_type", kind: "enum", T: proto3.getEnumType(UniswapXOrderType) },
1212
+ { no: 12, name: "status", kind: "enum", T: proto3.getEnumType(UniswapXTransactionStatus) },
1213
+ ]);
1214
+ /**
1215
+ * @generated from message data.v1.FiatOnRampTransaction
1216
+ */
1217
+ export class FiatOnRampTransaction extends Message {
1218
+ constructor(data) {
1219
+ super();
1220
+ /**
1221
+ * @generated from field: uint32 chain_id = 1;
1222
+ */
1223
+ this.chainId = 0;
1224
+ /**
1225
+ * @generated from field: uint32 timestamp_millis = 2;
1226
+ */
1227
+ this.timestampMillis = 0;
1228
+ /**
1229
+ * @generated from field: string wallet_address = 3;
1230
+ */
1231
+ this.walletAddress = "";
1232
+ /**
1233
+ * @generated from field: string fiat_currency = 6;
1234
+ */
1235
+ this.fiatCurrency = "";
1236
+ /**
1237
+ * @generated from field: double fiat_amount = 7;
1238
+ */
1239
+ this.fiatAmount = 0;
1240
+ /**
1241
+ * @generated from field: string transaction_reference_id = 9;
1242
+ */
1243
+ this.transactionReferenceId = "";
1244
+ /**
1245
+ * @generated from field: string external_session_id = 10;
1246
+ */
1247
+ this.externalSessionId = "";
1248
+ /**
1249
+ * @generated from field: double network_fee = 11;
1250
+ */
1251
+ this.networkFee = 0;
1252
+ /**
1253
+ * @generated from field: double transaction_fee = 12;
1254
+ */
1255
+ this.transactionFee = 0;
1256
+ /**
1257
+ * @generated from field: double total_fee = 13;
1258
+ */
1259
+ this.totalFee = 0;
1260
+ /**
1261
+ * @generated from field: data.v1.FiatOnRampTransactionStatus status = 14;
1262
+ */
1263
+ this.status = FiatOnRampTransactionStatus.FAILED;
1264
+ proto3.util.initPartial(data, this);
1265
+ }
1266
+ static fromBinary(bytes, options) {
1267
+ return new FiatOnRampTransaction().fromBinary(bytes, options);
1268
+ }
1269
+ static fromJson(jsonValue, options) {
1270
+ return new FiatOnRampTransaction().fromJson(jsonValue, options);
1271
+ }
1272
+ static fromJsonString(jsonString, options) {
1273
+ return new FiatOnRampTransaction().fromJsonString(jsonString, options);
1274
+ }
1275
+ static equals(a, b) {
1276
+ return proto3.util.equals(FiatOnRampTransaction, a, b);
1277
+ }
1278
+ }
1279
+ FiatOnRampTransaction.runtime = proto3;
1280
+ FiatOnRampTransaction.typeName = "data.v1.FiatOnRampTransaction";
1281
+ FiatOnRampTransaction.fields = proto3.util.newFieldList(() => [
1282
+ { no: 1, name: "chain_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
1283
+ { no: 2, name: "timestamp_millis", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
1284
+ { no: 3, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1285
+ { no: 4, name: "token", kind: "message", T: Token },
1286
+ { no: 5, name: "token_amount", kind: "message", T: Amount },
1287
+ { no: 6, name: "fiat_currency", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1288
+ { no: 7, name: "fiat_amount", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
1289
+ { no: 8, name: "service_provider", kind: "message", T: OnRampServiceProvider },
1290
+ { no: 9, name: "transaction_reference_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1291
+ { no: 10, name: "external_session_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1292
+ { no: 11, name: "network_fee", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
1293
+ { no: 12, name: "transaction_fee", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
1294
+ { no: 13, name: "total_fee", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
1295
+ { no: 14, name: "status", kind: "enum", T: proto3.getEnumType(FiatOnRampTransactionStatus) },
1296
+ ]);
1297
+ /**
1298
+ * @generated from message data.v1.OnRampServiceProvider
1299
+ */
1300
+ export class OnRampServiceProvider extends Message {
1301
+ constructor(data) {
1302
+ super();
1303
+ /**
1304
+ * @generated from field: string service_provider = 1;
1305
+ */
1306
+ this.serviceProvider = "";
1307
+ /**
1308
+ * @generated from field: string name = 2;
1309
+ */
1310
+ this.name = "";
1311
+ /**
1312
+ * @generated from field: string url = 3;
1313
+ */
1314
+ this.url = "";
1315
+ /**
1316
+ * @generated from field: string logo_light_url = 4;
1317
+ */
1318
+ this.logoLightUrl = "";
1319
+ /**
1320
+ * @generated from field: string logo_dark_url = 5;
1321
+ */
1322
+ this.logoDarkUrl = "";
1323
+ /**
1324
+ * @generated from field: string support_url = 6;
1325
+ */
1326
+ this.supportUrl = "";
1327
+ proto3.util.initPartial(data, this);
1328
+ }
1329
+ static fromBinary(bytes, options) {
1330
+ return new OnRampServiceProvider().fromBinary(bytes, options);
1331
+ }
1332
+ static fromJson(jsonValue, options) {
1333
+ return new OnRampServiceProvider().fromJson(jsonValue, options);
1334
+ }
1335
+ static fromJsonString(jsonString, options) {
1336
+ return new OnRampServiceProvider().fromJsonString(jsonString, options);
1337
+ }
1338
+ static equals(a, b) {
1339
+ return proto3.util.equals(OnRampServiceProvider, a, b);
1340
+ }
1341
+ }
1342
+ OnRampServiceProvider.runtime = proto3;
1343
+ OnRampServiceProvider.typeName = "data.v1.OnRampServiceProvider";
1344
+ OnRampServiceProvider.fields = proto3.util.newFieldList(() => [
1345
+ { no: 1, name: "service_provider", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1346
+ { no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1347
+ { no: 3, name: "url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1348
+ { no: 4, name: "logo_light_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1349
+ { no: 5, name: "logo_dark_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1350
+ { no: 6, name: "support_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1351
+ ]);
1352
+ /**
1353
+ * @generated from message data.v1.TransactionFee
1354
+ */
1355
+ export class TransactionFee extends Message {
1356
+ constructor(data) {
1357
+ super();
1358
+ /**
1359
+ * @generated from field: string address = 2;
1360
+ */
1361
+ this.address = "";
1362
+ /**
1363
+ * @generated from field: string symbol = 3;
1364
+ */
1365
+ this.symbol = "";
1366
+ /**
1367
+ * @generated from field: uint32 decimals = 4;
1368
+ */
1369
+ this.decimals = 0;
1370
+ proto3.util.initPartial(data, this);
1371
+ }
1372
+ static fromBinary(bytes, options) {
1373
+ return new TransactionFee().fromBinary(bytes, options);
1374
+ }
1375
+ static fromJson(jsonValue, options) {
1376
+ return new TransactionFee().fromJson(jsonValue, options);
1377
+ }
1378
+ static fromJsonString(jsonString, options) {
1379
+ return new TransactionFee().fromJsonString(jsonString, options);
1380
+ }
1381
+ static equals(a, b) {
1382
+ return proto3.util.equals(TransactionFee, a, b);
1383
+ }
1384
+ }
1385
+ TransactionFee.runtime = proto3;
1386
+ TransactionFee.typeName = "data.v1.TransactionFee";
1387
+ TransactionFee.fields = proto3.util.newFieldList(() => [
1388
+ { no: 1, name: "amount", kind: "message", T: Amount },
1389
+ { no: 2, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1390
+ { no: 3, name: "symbol", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1391
+ { no: 4, name: "decimals", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
1392
+ ]);