@uniswap/client-data-api 0.0.296 → 0.0.298

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.
Files changed (53) hide show
  1. package/dist/buf/validate/validate_pb.d.ts +4833 -0
  2. package/dist/buf/validate/validate_pb.js +356 -0
  3. package/dist/data/v1/api-DataApiService_connectquery.d.ts +88 -200
  4. package/dist/data/v1/api-DataApiService_connectquery.js +24 -224
  5. package/dist/data/v1/api_pb.d.ts +843 -845
  6. package/dist/data/v1/api_pb.js +393 -2676
  7. package/dist/data/v1/featureGating_pb.d.ts +31 -26
  8. package/dist/data/v1/featureGating_pb.js +13 -50
  9. package/dist/data/v1/plan_pb.d.ts +29 -0
  10. package/dist/data/v1/plan_pb.js +30 -69
  11. package/dist/data/v1/poolTypes_pb.d.ts +118 -127
  12. package/dist/data/v1/poolTypes_pb.js +47 -438
  13. package/dist/data/v1/types_pb.d.ts +1276 -1334
  14. package/dist/data/v1/types_pb.js +249 -2021
  15. package/dist/data/v1/workerService-WorkerService_connectquery.d.ts +16 -38
  16. package/dist/data/v1/workerService-WorkerService_connectquery.js +6 -44
  17. package/dist/data/v1/workerService_pb.d.ts +99 -92
  18. package/dist/data/v1/workerService_pb.js +37 -248
  19. package/dist/data/v2/api-DataApiService_connectquery.d.ts +148 -335
  20. package/dist/data/v2/api-DataApiService_connectquery.js +39 -374
  21. package/dist/data/v2/api_pb.d.ts +1105 -1054
  22. package/dist/data/v2/api_pb.js +483 -3805
  23. package/dist/data/v2/categories_pb.d.ts +130 -142
  24. package/dist/data/v2/categories_pb.js +55 -457
  25. package/dist/data/v2/common_pb.d.ts +23 -25
  26. package/dist/data/v2/common_pb.js +12 -59
  27. package/dist/data/v2/earn_pb.d.ts +92 -92
  28. package/dist/data/v2/earn_pb.js +33 -229
  29. package/dist/data/v2/hooks_pb.d.ts +119 -135
  30. package/dist/data/v2/hooks_pb.js +49 -315
  31. package/dist/data/v2/search-SearchService_connectquery.d.ts +4 -11
  32. package/dist/data/v2/search-SearchService_connectquery.js +3 -14
  33. package/dist/data/v2/search_pb.d.ts +139 -120
  34. package/dist/data/v2/search_pb.js +34 -225
  35. package/dist/data/v2/tokenGroups_pb.d.ts +31 -36
  36. package/dist/data/v2/tokenGroups_pb.js +16 -126
  37. package/dist/data/v2/types_pb.d.ts +1823 -1887
  38. package/dist/data/v2/types_pb.js +282 -2190
  39. package/dist/data/v2/workerService-WorkerService_connectquery.d.ts +4 -11
  40. package/dist/data/v2/workerService-WorkerService_connectquery.js +3 -14
  41. package/dist/data/v2/workerService_pb.d.ts +35 -22
  42. package/dist/data/v2/workerService_pb.js +20 -47
  43. package/package.json +1 -1
  44. package/dist/data/v1/api_connect.d.ts +0 -208
  45. package/dist/data/v1/api_connect.js +0 -212
  46. package/dist/data/v1/workerService_connect.d.ts +0 -46
  47. package/dist/data/v1/workerService_connect.js +0 -50
  48. package/dist/data/v2/api_connect.d.ts +0 -343
  49. package/dist/data/v2/api_connect.js +0 -347
  50. package/dist/data/v2/search_connect.d.ts +0 -21
  51. package/dist/data/v2/search_connect.js +0 -25
  52. package/dist/data/v2/workerService_connect.d.ts +0 -23
  53. package/dist/data/v2/workerService_connect.js +0 -27
@@ -1,2024 +1,1966 @@
1
- import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
2
- import { Message, proto3 } from "@bufbuild/protobuf";
3
- import { EarnPlanAction, MarginPlanAction, MarginPlanVenue, PlanStatus, PlanStepStatus, SwapType } from "./plan_pb.js";
1
+ import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
2
+ import type { EarnPlanAction, MarginPlanAction, MarginPlanVenue, PlanStatus, PlanStepStatus, SwapType } from "./plan_pb";
3
+ import type { Message } from "@bufbuild/protobuf";
4
4
  /**
5
- * @generated from enum data.v1.TokenType
5
+ * Describes the file data/v1/types.proto.
6
6
  */
7
- export declare enum TokenType {
7
+ export declare const file_data_v1_types: GenFile;
8
+ /**
9
+ * @generated from message data.v1.Token
10
+ */
11
+ export type Token = Message<"data.v1.Token"> & {
8
12
  /**
9
- * @generated from enum value: TOKEN_TYPE_UNKNOWN = 0;
13
+ * @generated from field: uint32 chain_id = 1;
10
14
  */
11
- UNKNOWN = 0,
15
+ chainId: number;
12
16
  /**
13
- * @generated from enum value: TOKEN_TYPE_NATIVE = 1;
17
+ * @generated from field: string address = 2;
14
18
  */
15
- NATIVE = 1,
19
+ address: string;
16
20
  /**
17
- * @generated from enum value: TOKEN_TYPE_ERC20 = 2;
21
+ * @generated from field: string symbol = 3;
18
22
  */
19
- ERC20 = 2,
23
+ symbol: string;
20
24
  /**
21
- * @generated from enum value: TOKEN_TYPE_ERC721 = 3;
25
+ * @generated from field: uint32 decimals = 4;
22
26
  */
23
- ERC721 = 3,
27
+ decimals: number;
24
28
  /**
25
- * @generated from enum value: TOKEN_TYPE_ERC1155 = 4;
29
+ * @generated from field: string name = 5;
26
30
  */
27
- ERC1155 = 4,
31
+ name: string;
28
32
  /**
29
- * @generated from enum value: TOKEN_TYPE_SPL = 5;
33
+ * @generated from field: data.v1.TokenType type = 6;
30
34
  */
31
- SPL = 5
32
- }
33
- /**
34
- * @generated from enum data.v1.SpamCode
35
- */
36
- export declare enum SpamCode {
35
+ type: TokenType;
37
36
  /**
38
- * @generated from enum value: SPAM_CODE_UNKNOWN = 0;
37
+ * @generated from field: data.v1.TokenMetadata metadata = 7;
39
38
  */
40
- UNKNOWN = 0,
39
+ metadata?: TokenMetadata | undefined;
41
40
  /**
42
- * @generated from enum value: SPAM_CODE_NOT_SPAM = 1;
41
+ * @generated from field: data.v1.TokenStats stats = 8;
43
42
  */
44
- NOT_SPAM = 1,
43
+ stats?: TokenStats | undefined;
44
+ };
45
+ /**
46
+ * Describes the message data.v1.Token.
47
+ * Use `create(TokenSchema)` to create a new message.
48
+ */
49
+ export declare const TokenSchema: GenMessage<Token>;
50
+ /**
51
+ * @generated from message data.v1.TokenMetadata
52
+ */
53
+ export type TokenMetadata = Message<"data.v1.TokenMetadata"> & {
45
54
  /**
46
- * @generated from enum value: SPAM_CODE_SPAM = 2;
55
+ * @generated from field: string project_name = 1;
47
56
  */
48
- SPAM = 2,
57
+ projectName: string;
49
58
  /**
50
- * @generated from enum value: SPAM_CODE_SPAM_URL = 3;
59
+ * @generated from field: string logo_url = 2;
51
60
  */
52
- SPAM_URL = 3
53
- }
54
- /**
55
- * @generated from enum data.v1.SafetyLevel
56
- */
57
- export declare enum SafetyLevel {
61
+ logoUrl: string;
58
62
  /**
59
- * @generated from enum value: SAFETY_LEVEL_UNKNOWN = 0;
63
+ * @generated from field: data.v1.ProtectionInfo protection_info = 3;
60
64
  */
61
- UNKNOWN = 0,
65
+ protectionInfo?: ProtectionInfo | undefined;
62
66
  /**
63
- * @generated from enum value: SAFETY_LEVEL_VERIFIED = 1;
67
+ * @generated from field: data.v1.FeeData fee_data = 4;
64
68
  */
65
- VERIFIED = 1,
69
+ feeData?: FeeData | undefined;
66
70
  /**
67
- * @generated from enum value: SAFETY_LEVEL_MEDIUM_WARNING = 2;
71
+ * @generated from field: data.v1.SafetyLevel safety_level = 5;
68
72
  */
69
- MEDIUM_WARNING = 2,
73
+ safetyLevel: SafetyLevel;
70
74
  /**
71
- * @generated from enum value: SAFETY_LEVEL_STRONG_WARNING = 3;
75
+ * @generated from field: data.v1.SpamCode spam_code = 6;
72
76
  */
73
- STRONG_WARNING = 3,
77
+ spamCode: SpamCode;
74
78
  /**
75
- * @generated from enum value: SAFETY_LEVEL_BLOCKED = 4;
79
+ * @generated from field: bool is_bridged = 7;
76
80
  */
77
- BLOCKED = 4
78
- }
81
+ isBridged: boolean;
82
+ /**
83
+ * Set on GetPortfolio balances only, ordered by display precedence (the
84
+ * first id is the preferred tag). Empty on every other v1 token surface.
85
+ *
86
+ * @generated from field: repeated string category_ids = 8;
87
+ */
88
+ categoryIds: string[];
89
+ };
79
90
  /**
80
- * @generated from enum data.v1.TokenReportEventType
91
+ * Describes the message data.v1.TokenMetadata.
92
+ * Use `create(TokenMetadataSchema)` to create a new message.
81
93
  */
82
- export declare enum TokenReportEventType {
94
+ export declare const TokenMetadataSchema: GenMessage<TokenMetadata>;
95
+ /**
96
+ * @generated from message data.v1.ProtectionInfo
97
+ */
98
+ export type ProtectionInfo = Message<"data.v1.ProtectionInfo"> & {
83
99
  /**
84
- * @generated from enum value: TOKEN_REPORT_EVENT_TYPE_UNSPECIFIED = 0;
100
+ * @generated from field: data.v1.ProtectionResult result = 1;
85
101
  */
86
- UNSPECIFIED = 0,
102
+ result: ProtectionResult;
87
103
  /**
88
- * @generated from enum value: TOKEN_REPORT_EVENT_TYPE_FALSE_POSITIVE = 1;
104
+ * @generated from field: repeated data.v1.AttackType attack_types = 2;
89
105
  */
90
- FALSE_POSITIVE = 1,
106
+ attackTypes: AttackType[];
107
+ };
108
+ /**
109
+ * Describes the message data.v1.ProtectionInfo.
110
+ * Use `create(ProtectionInfoSchema)` to create a new message.
111
+ */
112
+ export declare const ProtectionInfoSchema: GenMessage<ProtectionInfo>;
113
+ /**
114
+ * TODO(DAT-1081): dedupe these for the frontend potentially
115
+ *
116
+ * @generated from message data.v1.FeeData
117
+ */
118
+ export type FeeData = Message<"data.v1.FeeData"> & {
91
119
  /**
92
- * @generated from enum value: TOKEN_REPORT_EVENT_TYPE_FALSE_NEGATIVE = 2;
120
+ * @generated from field: data.v1.Blockaid blockaid = 1;
93
121
  */
94
- FALSE_NEGATIVE = 2
95
- }
122
+ blockaid?: Blockaid | undefined;
123
+ /**
124
+ * @generated from field: data.v1.FeeDetector fee_detector = 2;
125
+ */
126
+ feeDetector?: FeeDetector | undefined;
127
+ };
96
128
  /**
97
- * @generated from enum data.v1.Direction
129
+ * Describes the message data.v1.FeeData.
130
+ * Use `create(FeeDataSchema)` to create a new message.
98
131
  */
99
- export declare enum Direction {
132
+ export declare const FeeDataSchema: GenMessage<FeeData>;
133
+ /**
134
+ * @generated from message data.v1.Blockaid
135
+ */
136
+ export type Blockaid = Message<"data.v1.Blockaid"> & {
100
137
  /**
101
- * @generated from enum value: DIRECTION_SELF = 0;
138
+ * @generated from field: double buy = 1;
102
139
  */
103
- SELF = 0,
140
+ buy: number;
104
141
  /**
105
- * @generated from enum value: DIRECTION_RECEIVE = 1;
142
+ * @generated from field: double sell = 2;
106
143
  */
107
- RECEIVE = 1,
144
+ sell: number;
108
145
  /**
109
- * @generated from enum value: DIRECTION_SEND = 2;
146
+ * @generated from field: double transfer = 3;
110
147
  */
111
- SEND = 2
112
- }
148
+ transfer: number;
149
+ };
113
150
  /**
114
- * @generated from enum data.v1.OnChainTransactionLabel
151
+ * Describes the message data.v1.Blockaid.
152
+ * Use `create(BlockaidSchema)` to create a new message.
115
153
  */
116
- export declare enum OnChainTransactionLabel {
154
+ export declare const BlockaidSchema: GenMessage<Blockaid>;
155
+ /**
156
+ * @generated from message data.v1.FeeDetector
157
+ */
158
+ export type FeeDetector = Message<"data.v1.FeeDetector"> & {
117
159
  /**
118
- * @generated from enum value: ON_CHAIN_TRANSACTION_LABEL_UNKNOWN = 0;
160
+ * @generated from field: string buy_fee_bps = 1;
119
161
  */
120
- UNKNOWN = 0,
162
+ buyFeeBps: string;
121
163
  /**
122
- * @generated from enum value: ON_CHAIN_TRANSACTION_LABEL_APPROVE = 1;
164
+ * @generated from field: string sell_fee_bps = 2;
123
165
  */
124
- APPROVE = 1,
166
+ sellFeeBps: string;
125
167
  /**
126
- * @generated from enum value: ON_CHAIN_TRANSACTION_LABEL_BORROW = 2;
168
+ * @generated from field: bool fee_taken_on_transfer = 3;
127
169
  */
128
- BORROW = 2,
170
+ feeTakenOnTransfer: boolean;
129
171
  /**
130
- * @generated from enum value: ON_CHAIN_TRANSACTION_LABEL_BRIDGE = 3;
172
+ * @generated from field: bool external_transfer_failed = 4;
131
173
  */
132
- BRIDGE = 3,
174
+ externalTransferFailed: boolean;
133
175
  /**
134
- * @generated from enum value: ON_CHAIN_TRANSACTION_LABEL_CANCEL = 4;
176
+ * @generated from field: bool sell_reverted = 5;
135
177
  */
136
- CANCEL = 4,
178
+ sellReverted: boolean;
179
+ };
180
+ /**
181
+ * Describes the message data.v1.FeeDetector.
182
+ * Use `create(FeeDetectorSchema)` to create a new message.
183
+ */
184
+ export declare const FeeDetectorSchema: GenMessage<FeeDetector>;
185
+ /**
186
+ * @generated from message data.v1.PortfolioValueModifier
187
+ */
188
+ export type PortfolioValueModifier = Message<"data.v1.PortfolioValueModifier"> & {
137
189
  /**
138
- * @generated from enum value: ON_CHAIN_TRANSACTION_LABEL_CLAIM = 5;
190
+ * @generated from field: string address = 1;
139
191
  */
140
- CLAIM = 5,
192
+ address: string;
141
193
  /**
142
- * @generated from enum value: ON_CHAIN_TRANSACTION_LABEL_DEPLOY = 6;
194
+ * @generated from field: repeated data.v1.Contract include_overrides = 2;
143
195
  */
144
- DEPLOY = 6,
196
+ includeOverrides: Contract[];
145
197
  /**
146
- * @generated from enum value: ON_CHAIN_TRANSACTION_LABEL_EXECUTE = 7;
198
+ * @generated from field: repeated data.v1.Contract exclude_overrides = 3;
147
199
  */
148
- EXECUTE = 7,
200
+ excludeOverrides: Contract[];
149
201
  /**
150
- * @generated from enum value: ON_CHAIN_TRANSACTION_LABEL_LEND = 8;
202
+ * @generated from field: bool include_small_balances = 4;
151
203
  */
152
- LEND = 8,
204
+ includeSmallBalances: boolean;
153
205
  /**
154
- * @generated from enum value: ON_CHAIN_TRANSACTION_LABEL_MINT = 9;
206
+ * @generated from field: bool include_spam_tokens = 5;
155
207
  */
156
- MINT = 9,
208
+ includeSpamTokens: boolean;
157
209
  /**
158
- * @generated from enum value: ON_CHAIN_TRANSACTION_LABEL_FIAT_ON_RAMP = 10;
210
+ * @generated from field: uint32 balance_limit = 6;
159
211
  */
160
- FIAT_ON_RAMP = 10,
212
+ balanceLimit: number;
161
213
  /**
162
- * @generated from enum value: ON_CHAIN_TRANSACTION_LABEL_RECEIVE = 11;
214
+ * @generated from field: repeated data.v1.PoolRef pool_include_overrides = 7;
163
215
  */
164
- RECEIVE = 11,
216
+ poolIncludeOverrides: PoolRef[];
165
217
  /**
166
- * @generated from enum value: ON_CHAIN_TRANSACTION_LABEL_REPAY = 12;
218
+ * @generated from field: repeated data.v1.PoolRef pool_exclude_overrides = 8;
167
219
  */
168
- REPAY = 12,
220
+ poolExcludeOverrides: PoolRef[];
221
+ };
222
+ /**
223
+ * Describes the message data.v1.PortfolioValueModifier.
224
+ * Use `create(PortfolioValueModifierSchema)` to create a new message.
225
+ */
226
+ export declare const PortfolioValueModifierSchema: GenMessage<PortfolioValueModifier>;
227
+ /**
228
+ * @generated from message data.v1.PoolRef
229
+ */
230
+ export type PoolRef = Message<"data.v1.PoolRef"> & {
169
231
  /**
170
- * @generated from enum value: ON_CHAIN_TRANSACTION_LABEL_SEND = 13;
232
+ * @generated from field: uint32 chain_id = 1;
171
233
  */
172
- SEND = 13,
234
+ chainId: number;
173
235
  /**
174
- * @generated from enum value: ON_CHAIN_TRANSACTION_LABEL_STAKE = 14;
236
+ * @generated from field: string pool_id = 2;
175
237
  */
176
- STAKE = 14,
238
+ poolId: string;
177
239
  /**
178
- * @generated from enum value: ON_CHAIN_TRANSACTION_LABEL_SWAP = 15;
240
+ * @generated from field: optional string position_id = 3;
179
241
  */
180
- SWAP = 15,
242
+ positionId?: string | undefined;
243
+ };
244
+ /**
245
+ * Describes the message data.v1.PoolRef.
246
+ * Use `create(PoolRefSchema)` to create a new message.
247
+ */
248
+ export declare const PoolRefSchema: GenMessage<PoolRef>;
249
+ /**
250
+ * @generated from message data.v1.Portfolio
251
+ */
252
+ export type Portfolio = Message<"data.v1.Portfolio"> & {
181
253
  /**
182
- * @generated from enum value: ON_CHAIN_TRANSACTION_LABEL_UNISWAP_X = 16;
254
+ * @generated from field: repeated data.v1.Balance balances = 1;
183
255
  */
184
- UNISWAP_X = 16,
256
+ balances: Balance[];
185
257
  /**
186
- * @generated from enum value: ON_CHAIN_TRANSACTION_LABEL_TRANSFER = 17;
258
+ * @generated from field: double total_value_usd = 2;
187
259
  */
188
- TRANSFER = 17,
260
+ totalValueUsd: number;
189
261
  /**
190
- * @generated from enum value: ON_CHAIN_TRANSACTION_LABEL_UNSTAKE = 18;
262
+ * @generated from field: double total_value_absolute_change_1d = 3;
191
263
  */
192
- UNSTAKE = 18,
264
+ totalValueAbsoluteChange1d: number;
193
265
  /**
194
- * @generated from enum value: ON_CHAIN_TRANSACTION_LABEL_WITHDRAW = 19;
266
+ * @generated from field: double total_value_percent_change_1d = 4;
195
267
  */
196
- WITHDRAW = 19,
268
+ totalValuePercentChange1d: number;
197
269
  /**
198
- * @generated from enum value: ON_CHAIN_TRANSACTION_LABEL_WRAP = 20;
270
+ * Populated instead of `balances` when multichain=true in GetPortfolioRequest
271
+ *
272
+ * @generated from field: repeated data.v1.MultichainBalance multichain_balances = 5;
199
273
  */
200
- WRAP = 20,
274
+ multichainBalances: MultichainBalance[];
275
+ };
276
+ /**
277
+ * Describes the message data.v1.Portfolio.
278
+ * Use `create(PortfolioSchema)` to create a new message.
279
+ */
280
+ export declare const PortfolioSchema: GenMessage<Portfolio>;
281
+ /**
282
+ * @generated from message data.v1.Balance
283
+ */
284
+ export type Balance = Message<"data.v1.Balance"> & {
201
285
  /**
202
- * @generated from enum value: ON_CHAIN_TRANSACTION_LABEL_UNWRAP = 21;
286
+ * @generated from field: data.v1.Token token = 1;
203
287
  */
204
- UNWRAP = 21,
288
+ token?: Token | undefined;
205
289
  /**
206
- * @generated from enum value: ON_CHAIN_TRANSACTION_LABEL_DEPOSIT = 22;
290
+ * @generated from field: data.v1.Amount amount = 2;
207
291
  */
208
- DEPOSIT = 22,
292
+ amount?: Amount | undefined;
209
293
  /**
210
- * @generated from enum value: ON_CHAIN_TRANSACTION_LABEL_CREATE_PAIR = 23;
294
+ * @generated from field: double price_usd = 3;
211
295
  */
212
- CREATE_PAIR = 23,
296
+ priceUsd: number;
213
297
  /**
214
- * @generated from enum value: ON_CHAIN_TRANSACTION_LABEL_CREATE_POOL = 24;
298
+ * @generated from field: double price_percent_change_1d = 4;
215
299
  */
216
- CREATE_POOL = 24,
300
+ pricePercentChange1d: number;
217
301
  /**
218
- * @generated from enum value: ON_CHAIN_TRANSACTION_LABEL_INCREASE_LIQUIDITY = 25;
302
+ * @generated from field: double value_usd = 5;
219
303
  */
220
- INCREASE_LIQUIDITY = 25,
304
+ valueUsd: number;
221
305
  /**
222
- * @generated from enum value: ON_CHAIN_TRANSACTION_LABEL_DECREASE_LIQUIDITY = 26;
306
+ * @generated from field: bool is_hidden = 6;
223
307
  */
224
- DECREASE_LIQUIDITY = 26,
308
+ isHidden: boolean;
309
+ };
310
+ /**
311
+ * Describes the message data.v1.Balance.
312
+ * Use `create(BalanceSchema)` to create a new message.
313
+ */
314
+ export declare const BalanceSchema: GenMessage<Balance>;
315
+ /**
316
+ * Chain-specific balance within a multichain token group
317
+ *
318
+ * @generated from message data.v1.ChainBalance
319
+ */
320
+ export type ChainBalance = Message<"data.v1.ChainBalance"> & {
225
321
  /**
226
- * @generated from enum value: ON_CHAIN_TRANSACTION_LABEL_AUCTION_SUBMIT_BID = 27;
322
+ * @generated from field: uint32 chain_id = 1;
227
323
  */
228
- AUCTION_SUBMIT_BID = 27,
324
+ chainId: number;
229
325
  /**
230
- * @generated from enum value: ON_CHAIN_TRANSACTION_LABEL_AUCTION_CLAIM_TOKENS = 28;
326
+ * @generated from field: string address = 2;
231
327
  */
232
- AUCTION_CLAIM_TOKENS = 28,
328
+ address: string;
233
329
  /**
234
- * @generated from enum value: ON_CHAIN_TRANSACTION_LABEL_AUCTION_EXIT_BID = 29;
330
+ * @generated from field: uint32 decimals = 3;
235
331
  */
236
- AUCTION_EXIT_BID = 29,
332
+ decimals: number;
237
333
  /**
238
- * @generated from enum value: ON_CHAIN_TRANSACTION_LABEL_AUCTION_EXIT_PARTIALLY_FILLED_BID = 30;
334
+ * @generated from field: data.v1.Amount amount = 4;
239
335
  */
240
- AUCTION_EXIT_PARTIALLY_FILLED_BID = 30,
336
+ amount?: Amount | undefined;
241
337
  /**
242
- * @generated from enum value: ON_CHAIN_TRANSACTION_LABEL_AUCTION_CLAIM_TOKENS_BATCHED = 31;
338
+ * @generated from field: double value_usd = 5;
243
339
  */
244
- AUCTION_CLAIM_TOKENS_BATCHED = 31,
340
+ valueUsd: number;
245
341
  /**
246
- * @generated from enum value: ON_CHAIN_TRANSACTION_LABEL_VAULT_DEPOSIT = 32;
342
+ * @generated from field: bool is_hidden = 6;
247
343
  */
248
- VAULT_DEPOSIT = 32,
344
+ isHidden: boolean;
345
+ };
346
+ /**
347
+ * Describes the message data.v1.ChainBalance.
348
+ * Use `create(ChainBalanceSchema)` to create a new message.
349
+ */
350
+ export declare const ChainBalanceSchema: GenMessage<ChainBalance>;
351
+ /**
352
+ * A token aggregated across multiple chains
353
+ *
354
+ * @generated from message data.v1.MultichainBalance
355
+ */
356
+ export type MultichainBalance = Message<"data.v1.MultichainBalance"> & {
249
357
  /**
250
- * @generated from enum value: ON_CHAIN_TRANSACTION_LABEL_VAULT_WITHDRAW = 33;
358
+ * @generated from field: string name = 1;
251
359
  */
252
- VAULT_WITHDRAW = 33,
360
+ name: string;
253
361
  /**
254
- * @generated from enum value: ON_CHAIN_TRANSACTION_LABEL_VAULT_TRANSFER_IN = 34;
362
+ * @generated from field: string symbol = 2;
255
363
  */
256
- VAULT_TRANSFER_IN = 34,
364
+ symbol: string;
257
365
  /**
258
- * @generated from enum value: ON_CHAIN_TRANSACTION_LABEL_VAULT_TRANSFER_OUT = 35;
366
+ * @generated from field: data.v1.TokenType type = 3;
259
367
  */
260
- VAULT_TRANSFER_OUT = 35
261
- }
262
- /**
263
- * @generated from enum data.v1.TransactionTypeFilter
264
- */
265
- export declare enum TransactionTypeFilter {
368
+ type: TokenType;
266
369
  /**
267
- * All types (no filter)
268
- *
269
- * @generated from enum value: TRANSACTION_TYPE_FILTER_UNSPECIFIED = 0;
370
+ * @generated from field: string project_name = 4;
270
371
  */
271
- UNSPECIFIED = 0,
372
+ projectName: string;
272
373
  /**
273
- * Swaps (includes UniswapX, excludes wrap/unwrap)
274
- *
275
- * @generated from enum value: TRANSACTION_TYPE_FILTER_SWAP = 1;
374
+ * @generated from field: string logo_url = 5;
276
375
  */
277
- SWAP = 1,
376
+ logoUrl: string;
278
377
  /**
279
- * Sends
280
- *
281
- * @generated from enum value: TRANSACTION_TYPE_FILTER_SEND = 2;
378
+ * @generated from field: data.v1.ProtectionInfo protection_info = 6;
282
379
  */
283
- SEND = 2,
380
+ protectionInfo?: ProtectionInfo | undefined;
284
381
  /**
285
- * Receives
286
- *
287
- * @generated from enum value: TRANSACTION_TYPE_FILTER_RECEIVE = 3;
382
+ * @generated from field: data.v1.FeeData fee_data = 7;
288
383
  */
289
- RECEIVE = 3,
384
+ feeData?: FeeData | undefined;
290
385
  /**
291
- * Wraps (includes both wrap and unwrap)
292
- *
293
- * @generated from enum value: TRANSACTION_TYPE_FILTER_WRAP = 4;
386
+ * @generated from field: data.v1.SafetyLevel safety_level = 8;
294
387
  */
295
- WRAP = 4,
388
+ safetyLevel: SafetyLevel;
296
389
  /**
297
- * Approvals
298
- *
299
- * @generated from enum value: TRANSACTION_TYPE_FILTER_APPROVE = 5;
390
+ * @generated from field: data.v1.SpamCode spam_code = 9;
300
391
  */
301
- APPROVE = 5,
392
+ spamCode: SpamCode;
302
393
  /**
303
- * Added liquidity (Uniswap deposits)
304
- *
305
- * @generated from enum value: TRANSACTION_TYPE_FILTER_INCREASE_LIQUIDITY = 6;
394
+ * @generated from field: data.v1.Amount total_amount = 10;
306
395
  */
307
- INCREASE_LIQUIDITY = 6,
396
+ totalAmount?: Amount | undefined;
308
397
  /**
309
- * Removed liquidity (Uniswap withdrawals)
310
- *
311
- * @generated from enum value: TRANSACTION_TYPE_FILTER_DECREASE_LIQUIDITY = 7;
398
+ * @generated from field: double price_usd = 11;
312
399
  */
313
- DECREASE_LIQUIDITY = 7,
400
+ priceUsd: number;
314
401
  /**
315
- * Claimed fees/rewards
316
- *
317
- * @generated from enum value: TRANSACTION_TYPE_FILTER_CLAIM = 8;
402
+ * @generated from field: double price_percent_change_1d = 12;
318
403
  */
319
- CLAIM = 8,
404
+ pricePercentChange1d: number;
320
405
  /**
321
- * Mints
322
- *
323
- * @generated from enum value: TRANSACTION_TYPE_FILTER_MINT = 9;
406
+ * @generated from field: double total_value_usd = 13;
324
407
  */
325
- MINT = 9,
408
+ totalValueUsd: number;
326
409
  /**
327
- * Pool creations (includes CREATE_PAIR and CREATE_POOL)
328
- *
329
- * @generated from enum value: TRANSACTION_TYPE_FILTER_CREATE_POOL = 10;
410
+ * @generated from field: bool is_hidden = 14;
330
411
  */
331
- CREATE_POOL = 10,
412
+ isHidden: boolean;
332
413
  /**
333
- * Limit orders (UniswapX only)
334
- *
335
- * @generated from enum value: TRANSACTION_TYPE_FILTER_LIMIT_ORDER = 11;
414
+ * @generated from field: repeated data.v1.ChainBalance chain_balances = 15;
336
415
  */
337
- LIMIT_ORDER = 11,
416
+ chainBalances: ChainBalance[];
417
+ };
418
+ /**
419
+ * Describes the message data.v1.MultichainBalance.
420
+ * Use `create(MultichainBalanceSchema)` to create a new message.
421
+ */
422
+ export declare const MultichainBalanceSchema: GenMessage<MultichainBalance>;
423
+ /**
424
+ * @generated from message data.v1.Amount
425
+ */
426
+ export type Amount = Message<"data.v1.Amount"> & {
338
427
  /**
339
- * Protocol withdrawals (e.g. lending/staking withdrawals)
340
- *
341
- * @generated from enum value: TRANSACTION_TYPE_FILTER_WITHDRAW = 12;
428
+ * @generated from field: string raw = 1;
342
429
  */
343
- WITHDRAW = 12,
430
+ raw: string;
344
431
  /**
345
- * Earn vault deposits
346
- *
347
- * @generated from enum value: TRANSACTION_TYPE_FILTER_VAULT_DEPOSIT = 13;
432
+ * @generated from field: double amount = 2;
348
433
  */
349
- VAULT_DEPOSIT = 13,
434
+ amount: number;
435
+ };
436
+ /**
437
+ * Describes the message data.v1.Amount.
438
+ * Use `create(AmountSchema)` to create a new message.
439
+ */
440
+ export declare const AmountSchema: GenMessage<Amount>;
441
+ /**
442
+ * @generated from message data.v1.Contract
443
+ */
444
+ export type Contract = Message<"data.v1.Contract"> & {
350
445
  /**
351
- * Earn vault withdrawals
352
- *
353
- * @generated from enum value: TRANSACTION_TYPE_FILTER_VAULT_WITHDRAW = 14;
446
+ * @generated from field: uint32 chain_id = 1;
354
447
  */
355
- VAULT_WITHDRAW = 14,
448
+ chainId: number;
356
449
  /**
357
- * Earn vault share transfers (includes IN and OUT)
358
- *
359
- * @generated from enum value: TRANSACTION_TYPE_FILTER_VAULT_TRANSFER = 15;
450
+ * @generated from field: string address = 2;
360
451
  */
361
- VAULT_TRANSFER = 15
362
- }
452
+ address: string;
453
+ };
363
454
  /**
364
- * @generated from enum data.v1.OnChainTransactionStatus
455
+ * Describes the message data.v1.Contract.
456
+ * Use `create(ContractSchema)` to create a new message.
365
457
  */
366
- export declare enum OnChainTransactionStatus {
458
+ export declare const ContractSchema: GenMessage<Contract>;
459
+ /**
460
+ * @generated from message data.v1.Nft
461
+ */
462
+ export type Nft = Message<"data.v1.Nft"> & {
367
463
  /**
368
- * @generated from enum value: ON_CHAIN_TRANSACTION_STATUS_PENDING = 0;
464
+ * @generated from field: uint32 chain_id = 1;
369
465
  */
370
- PENDING = 0,
466
+ chainId: number;
371
467
  /**
372
- * @generated from enum value: ON_CHAIN_TRANSACTION_STATUS_CONFIRMED = 1;
468
+ * @generated from field: string address = 2;
373
469
  */
374
- CONFIRMED = 1,
470
+ address: string;
375
471
  /**
376
- * @generated from enum value: ON_CHAIN_TRANSACTION_STATUS_FAILED = 2;
472
+ * @generated from field: string token_id = 3;
377
473
  */
378
- FAILED = 2
379
- }
474
+ tokenId: string;
475
+ /**
476
+ * @generated from field: string name = 4;
477
+ */
478
+ name: string;
479
+ /**
480
+ * @generated from field: string collection_name = 5;
481
+ */
482
+ collectionName: string;
483
+ /**
484
+ * @generated from field: data.v1.TokenType type = 6;
485
+ */
486
+ type: TokenType;
487
+ /**
488
+ * @generated from field: string image_url = 7;
489
+ */
490
+ imageUrl: string;
491
+ /**
492
+ * @generated from field: bool is_spam = 8;
493
+ */
494
+ isSpam: boolean;
495
+ };
380
496
  /**
381
- * @generated from enum data.v1.UniswapXOrderType
497
+ * Describes the message data.v1.Nft.
498
+ * Use `create(NftSchema)` to create a new message.
382
499
  */
383
- export declare enum UniswapXOrderType {
500
+ export declare const NftSchema: GenMessage<Nft>;
501
+ /**
502
+ * @generated from message data.v1.Transaction
503
+ */
504
+ export type Transaction = Message<"data.v1.Transaction"> & {
384
505
  /**
385
- * @generated from enum value: UNISWAP_X_ORDER_TYPE_DUTCH = 0;
506
+ * @generated from oneof data.v1.Transaction.transaction
386
507
  */
387
- DUTCH = 0,
508
+ transaction: {
509
+ /**
510
+ * @generated from field: data.v1.OnChainTransaction on_chain = 1;
511
+ */
512
+ value: OnChainTransaction;
513
+ case: "onChain";
514
+ } | {
515
+ /**
516
+ * @generated from field: data.v1.UniswapXTransaction uniswap_x = 2;
517
+ */
518
+ value: UniswapXTransaction;
519
+ case: "uniswapX";
520
+ } | {
521
+ /**
522
+ * @generated from field: data.v1.FiatOnRampTransaction fiat_on_ramp = 3;
523
+ */
524
+ value: FiatOnRampTransaction;
525
+ case: "fiatOnRamp";
526
+ } | {
527
+ /**
528
+ * @generated from field: data.v1.PlanTransaction plan = 4;
529
+ */
530
+ value: PlanTransaction;
531
+ case: "plan";
532
+ } | {
533
+ case: undefined;
534
+ value?: undefined;
535
+ };
536
+ };
537
+ /**
538
+ * Describes the message data.v1.Transaction.
539
+ * Use `create(TransactionSchema)` to create a new message.
540
+ */
541
+ export declare const TransactionSchema: GenMessage<Transaction>;
542
+ /**
543
+ * @generated from message data.v1.OnChainTransaction
544
+ */
545
+ export type OnChainTransaction = Message<"data.v1.OnChainTransaction"> & {
388
546
  /**
389
- * @generated from enum value: UNISWAP_X_ORDER_TYPE_LIMIT = 1;
547
+ * @generated from field: uint32 chain_id = 1;
390
548
  */
391
- LIMIT = 1,
549
+ chainId: number;
392
550
  /**
393
- * @generated from enum value: UNISWAP_X_ORDER_TYPE_DUTCH_V2 = 2;
551
+ * @generated from field: uint32 block_number = 2;
394
552
  */
395
- DUTCH_V2 = 2,
553
+ blockNumber: number;
396
554
  /**
397
- * @generated from enum value: UNISWAP_X_ORDER_TYPE_PRIORITY = 3;
555
+ * @generated from field: uint64 timestamp_millis = 3;
398
556
  */
399
- PRIORITY = 3
400
- }
557
+ timestampMillis: bigint;
558
+ /**
559
+ * @generated from field: string transaction_hash = 4;
560
+ */
561
+ transactionHash: string;
562
+ /**
563
+ * @generated from field: string from = 5;
564
+ */
565
+ from: string;
566
+ /**
567
+ * @generated from field: string to = 6;
568
+ */
569
+ to: string;
570
+ /**
571
+ * @generated from field: repeated data.v1.Transfer transfers = 7;
572
+ */
573
+ transfers: Transfer[];
574
+ /**
575
+ * @generated from field: repeated data.v1.Approval approvals = 8;
576
+ */
577
+ approvals: Approval[];
578
+ /**
579
+ * @generated from field: data.v1.OnChainTransactionLabel label = 9;
580
+ */
581
+ label: OnChainTransactionLabel;
582
+ /**
583
+ * @generated from field: data.v1.OnChainTransactionStatus status = 10;
584
+ */
585
+ status: OnChainTransactionStatus;
586
+ /**
587
+ * @generated from field: optional data.v1.ProtocolMetadata protocol = 11;
588
+ */
589
+ protocol?: ProtocolMetadata | undefined;
590
+ /**
591
+ * @generated from field: data.v1.TransactionFee fee = 12;
592
+ */
593
+ fee?: TransactionFee | undefined;
594
+ /**
595
+ * @generated from field: optional data.v1.Paymaster paymaster = 13;
596
+ */
597
+ paymaster?: Paymaster | undefined;
598
+ /**
599
+ * @generated from field: optional data.v1.SponsorshipMetadata sponsorship = 14;
600
+ */
601
+ sponsorship?: SponsorshipMetadata | undefined;
602
+ };
401
603
  /**
402
- * @generated from enum data.v1.UniswapXTransactionStatus
604
+ * Describes the message data.v1.OnChainTransaction.
605
+ * Use `create(OnChainTransactionSchema)` to create a new message.
403
606
  */
404
- export declare enum UniswapXTransactionStatus {
607
+ export declare const OnChainTransactionSchema: GenMessage<OnChainTransaction>;
608
+ /**
609
+ * @generated from message data.v1.Transfer
610
+ */
611
+ export type Transfer = Message<"data.v1.Transfer"> & {
405
612
  /**
406
- * @generated from enum value: UNISWAP_X_TRANSACTION_STATUS_OPEN = 0;
613
+ * @generated from field: data.v1.Direction direction = 1;
407
614
  */
408
- OPEN = 0,
615
+ direction: Direction;
409
616
  /**
410
- * @generated from enum value: UNISWAP_X_TRANSACTION_STATUS_EXPIRED = 1;
617
+ * @generated from field: string from = 2;
411
618
  */
412
- EXPIRED = 1,
619
+ from: string;
413
620
  /**
414
- * @generated from enum value: UNISWAP_X_TRANSACTION_STATUS_ERROR = 2;
621
+ * @generated from field: string to = 3;
415
622
  */
416
- ERROR = 2,
623
+ to: string;
417
624
  /**
418
- * @generated from enum value: UNISWAP_X_TRANSACTION_STATUS_INSUFFICIENT_FUNDS = 3;
625
+ * @generated from oneof data.v1.Transfer.asset
419
626
  */
420
- INSUFFICIENT_FUNDS = 3,
627
+ asset: {
628
+ /**
629
+ * @generated from field: data.v1.Token token = 4;
630
+ */
631
+ value: Token;
632
+ case: "token";
633
+ } | {
634
+ /**
635
+ * @generated from field: data.v1.Nft nft = 5;
636
+ */
637
+ value: Nft;
638
+ case: "nft";
639
+ } | {
640
+ case: undefined;
641
+ value?: undefined;
642
+ };
421
643
  /**
422
- * @generated from enum value: UNISWAP_X_TRANSACTION_STATUS_FILLED = 4;
644
+ * @generated from field: data.v1.Amount amount = 6;
423
645
  */
424
- FILLED = 4,
646
+ amount?: Amount | undefined;
425
647
  /**
426
- * @generated from enum value: UNISWAP_X_TRANSACTION_STATUS_CANCELLED = 5;
648
+ * USD value of the transferred amount at transaction time, as priced by the
649
+ * activity provider. Unset when the asset had no known price; a priced asset
650
+ * can legitimately be 0.
651
+ *
652
+ * @generated from field: optional double transacted_value_usd = 7;
427
653
  */
428
- CANCELLED = 5
429
- }
654
+ transactedValueUsd?: number | undefined;
655
+ };
656
+ /**
657
+ * Describes the message data.v1.Transfer.
658
+ * Use `create(TransferSchema)` to create a new message.
659
+ */
660
+ export declare const TransferSchema: GenMessage<Transfer>;
661
+ /**
662
+ * @generated from message data.v1.Approval
663
+ */
664
+ export type Approval = Message<"data.v1.Approval"> & {
665
+ /**
666
+ * @generated from field: string approved_address = 1;
667
+ */
668
+ approvedAddress: string;
669
+ /**
670
+ * @generated from oneof data.v1.Approval.asset
671
+ */
672
+ asset: {
673
+ /**
674
+ * @generated from field: data.v1.Token token = 2;
675
+ */
676
+ value: Token;
677
+ case: "token";
678
+ } | {
679
+ /**
680
+ * @generated from field: data.v1.Nft nft = 3;
681
+ */
682
+ value: Nft;
683
+ case: "nft";
684
+ } | {
685
+ case: undefined;
686
+ value?: undefined;
687
+ };
688
+ /**
689
+ * @generated from field: data.v1.Amount amount = 4;
690
+ */
691
+ amount?: Amount | undefined;
692
+ };
693
+ /**
694
+ * Describes the message data.v1.Approval.
695
+ * Use `create(ApprovalSchema)` to create a new message.
696
+ */
697
+ export declare const ApprovalSchema: GenMessage<Approval>;
698
+ /**
699
+ * @generated from message data.v1.ProtocolMetadata
700
+ */
701
+ export type ProtocolMetadata = Message<"data.v1.ProtocolMetadata"> & {
702
+ /**
703
+ * @generated from field: string name = 1;
704
+ */
705
+ name: string;
706
+ /**
707
+ * @generated from field: string logo_url = 2;
708
+ */
709
+ logoUrl: string;
710
+ };
711
+ /**
712
+ * Describes the message data.v1.ProtocolMetadata.
713
+ * Use `create(ProtocolMetadataSchema)` to create a new message.
714
+ */
715
+ export declare const ProtocolMetadataSchema: GenMessage<ProtocolMetadata>;
430
716
  /**
431
- * @generated from enum data.v1.FiatOnRampTransactionStatus
717
+ * @generated from message data.v1.UniswapXTransaction
432
718
  */
433
- export declare enum FiatOnRampTransactionStatus {
719
+ export type UniswapXTransaction = Message<"data.v1.UniswapXTransaction"> & {
434
720
  /**
435
- * @generated from enum value: FIAT_ON_RAMP_TRANSACTION_STATUS_FAILED = 0;
721
+ * @generated from field: uint32 chain_id = 1;
436
722
  */
437
- FAILED = 0,
723
+ chainId: number;
438
724
  /**
439
- * @generated from enum value: FIAT_ON_RAMP_TRANSACTION_STATUS_SETTLED = 1;
725
+ * @generated from field: uint64 timestamp_millis = 2;
440
726
  */
441
- SETTLED = 1,
727
+ timestampMillis: bigint;
442
728
  /**
443
- * @generated from enum value: FIAT_ON_RAMP_TRANSACTION_STATUS_PENDING = 2;
729
+ * @generated from field: string offerer = 3;
444
730
  */
445
- PENDING = 2
446
- }
447
- /**
448
- * @generated from enum data.v1.ProtectionResult
449
- */
450
- export declare enum ProtectionResult {
731
+ offerer: string;
451
732
  /**
452
- * @generated from enum value: PROTECTION_RESULT_UNKNOWN = 0;
733
+ * @generated from field: string order_hash = 4;
453
734
  */
454
- UNKNOWN = 0,
735
+ orderHash: string;
455
736
  /**
456
- * @generated from enum value: PROTECTION_RESULT_BENIGN = 1;
737
+ * @generated from field: data.v1.Token input_token = 5;
457
738
  */
458
- BENIGN = 1,
739
+ inputToken?: Token | undefined;
459
740
  /**
460
- * @generated from enum value: PROTECTION_RESULT_MALICIOUS = 2;
741
+ * @generated from field: data.v1.Amount input_token_amount = 6;
461
742
  */
462
- MALICIOUS = 2,
743
+ inputTokenAmount?: Amount | undefined;
463
744
  /**
464
- * @generated from enum value: PROTECTION_RESULT_SPAM = 3;
745
+ * @generated from field: data.v1.Token output_token = 7;
465
746
  */
466
- SPAM = 3,
747
+ outputToken?: Token | undefined;
467
748
  /**
468
- * @generated from enum value: PROTECTION_RESULT_WARNING = 4;
749
+ * @generated from field: data.v1.Amount output_token_amount = 8;
469
750
  */
470
- WARNING = 4
471
- }
472
- /**
473
- * @generated from enum data.v1.AttackType
474
- */
475
- export declare enum AttackType {
751
+ outputTokenAmount?: Amount | undefined;
476
752
  /**
477
- * @generated from enum value: ATTACK_TYPE_UNKNOWN = 0;
753
+ * @generated from field: uint64 expiry_millis = 9;
478
754
  */
479
- UNKNOWN = 0,
755
+ expiryMillis: bigint;
480
756
  /**
481
- * @generated from enum value: ATTACK_TYPE_AIRDROP_PATTERN = 1;
757
+ * @generated from field: string encoded_order = 10;
482
758
  */
483
- AIRDROP_PATTERN = 1,
759
+ encodedOrder: string;
484
760
  /**
485
- * @generated from enum value: ATTACK_TYPE_DYNAMIC_ANALYSIS = 2;
761
+ * @generated from field: data.v1.UniswapXOrderType order_type = 11;
486
762
  */
487
- DYNAMIC_ANALYSIS = 2,
763
+ orderType: UniswapXOrderType;
488
764
  /**
489
- * @generated from enum value: ATTACK_TYPE_HIGH_FEES = 3;
765
+ * @generated from field: data.v1.UniswapXTransactionStatus status = 12;
490
766
  */
491
- HIGH_FEES = 3,
767
+ status: UniswapXTransactionStatus;
768
+ };
769
+ /**
770
+ * Describes the message data.v1.UniswapXTransaction.
771
+ * Use `create(UniswapXTransactionSchema)` to create a new message.
772
+ */
773
+ export declare const UniswapXTransactionSchema: GenMessage<UniswapXTransaction>;
774
+ /**
775
+ * @generated from message data.v1.FiatOnRampTransaction
776
+ */
777
+ export type FiatOnRampTransaction = Message<"data.v1.FiatOnRampTransaction"> & {
492
778
  /**
493
- * @generated from enum value: ATTACK_TYPE_IMPERSONATOR = 4;
779
+ * @generated from field: uint32 chain_id = 1;
494
780
  */
495
- IMPERSONATOR = 4,
781
+ chainId: number;
496
782
  /**
497
- * @generated from enum value: ATTACK_TYPE_INORGANIC_VOLUME = 5;
783
+ * @generated from field: uint64 timestamp_millis = 2;
498
784
  */
499
- INORGANIC_VOLUME = 5,
785
+ timestampMillis: bigint;
500
786
  /**
501
- * @generated from enum value: ATTACK_TYPE_KNOWN_MALICIOUS = 6;
787
+ * @generated from field: string wallet_address = 3;
502
788
  */
503
- KNOWN_MALICIOUS = 6,
789
+ walletAddress: string;
504
790
  /**
505
- * @generated from enum value: ATTACK_TYPE_METADATA = 7;
791
+ * @generated from field: data.v1.Token token = 4;
506
792
  */
507
- METADATA = 7,
793
+ token?: Token | undefined;
508
794
  /**
509
- * @generated from enum value: ATTACK_TYPE_RUGPULL = 8;
795
+ * @generated from field: data.v1.Amount token_amount = 5;
510
796
  */
511
- RUGPULL = 8,
797
+ tokenAmount?: Amount | undefined;
512
798
  /**
513
- * @generated from enum value: ATTACK_TYPE_HONEYPOT = 9;
799
+ * @generated from field: string fiat_currency = 6;
514
800
  */
515
- HONEYPOT = 9,
801
+ fiatCurrency: string;
516
802
  /**
517
- * @generated from enum value: ATTACK_TYPE_SPAM_TEXT = 10;
803
+ * @generated from field: double fiat_amount = 7;
518
804
  */
519
- SPAM_TEXT = 10,
805
+ fiatAmount: number;
520
806
  /**
521
- * @generated from enum value: ATTACK_TYPE_STATIC_CODE_SIGNATURE = 11;
807
+ * @generated from field: data.v1.OnRampServiceProvider service_provider = 8;
522
808
  */
523
- STATIC_CODE_SIGNATURE = 11,
809
+ serviceProvider?: OnRampServiceProvider | undefined;
524
810
  /**
525
- * @generated from enum value: ATTACK_TYPE_UNSTABLE_TOKEN_PRICE = 12;
811
+ * @generated from field: string transaction_reference_id = 9;
526
812
  */
527
- UNSTABLE_TOKEN_PRICE = 12,
813
+ transactionReferenceId: string;
528
814
  /**
529
- * @generated from enum value: ATTACK_TYPE_EXIT_SCAM_RISK = 13;
815
+ * @generated from field: string external_session_id = 10;
530
816
  */
531
- EXIT_SCAM_RISK = 13
532
- }
533
- /**
534
- * @generated from message data.v1.Token
535
- */
536
- export declare class Token extends Message<Token> {
817
+ externalSessionId: string;
537
818
  /**
538
- * @generated from field: uint32 chain_id = 1;
819
+ * @generated from field: double provider_fee = 11;
539
820
  */
540
- chainId: number;
821
+ providerFee: number;
541
822
  /**
542
- * @generated from field: string address = 2;
823
+ * @generated from field: double total_fee = 12;
543
824
  */
544
- address: string;
825
+ totalFee: number;
545
826
  /**
546
- * @generated from field: string symbol = 3;
827
+ * @generated from field: data.v1.FiatOnRampTransactionStatus status = 13;
547
828
  */
548
- symbol: string;
829
+ status: FiatOnRampTransactionStatus;
549
830
  /**
550
- * @generated from field: uint32 decimals = 4;
831
+ * @generated from field: string transaction_hash = 14;
551
832
  */
552
- decimals: number;
833
+ transactionHash: string;
553
834
  /**
554
- * @generated from field: string name = 5;
835
+ * @generated from field: data.v1.TransactionFee transaction_fee = 15;
555
836
  */
556
- name: string;
837
+ transactionFee?: TransactionFee | undefined;
838
+ };
839
+ /**
840
+ * Describes the message data.v1.FiatOnRampTransaction.
841
+ * Use `create(FiatOnRampTransactionSchema)` to create a new message.
842
+ */
843
+ export declare const FiatOnRampTransactionSchema: GenMessage<FiatOnRampTransaction>;
844
+ /**
845
+ * @generated from message data.v1.OnRampServiceProvider
846
+ */
847
+ export type OnRampServiceProvider = Message<"data.v1.OnRampServiceProvider"> & {
557
848
  /**
558
- * @generated from field: data.v1.TokenType type = 6;
849
+ * @generated from field: string service_provider = 1;
559
850
  */
560
- type: TokenType;
851
+ serviceProvider: string;
561
852
  /**
562
- * @generated from field: data.v1.TokenMetadata metadata = 7;
853
+ * @generated from field: string name = 2;
563
854
  */
564
- metadata?: TokenMetadata;
855
+ name: string;
565
856
  /**
566
- * @generated from field: data.v1.TokenStats stats = 8;
857
+ * @generated from field: string url = 3;
567
858
  */
568
- stats?: TokenStats;
569
- constructor(data?: PartialMessage<Token>);
570
- static readonly runtime: typeof proto3;
571
- static readonly typeName = "data.v1.Token";
572
- static readonly fields: FieldList;
573
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Token;
574
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Token;
575
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Token;
576
- static equals(a: Token | PlainMessage<Token> | undefined, b: Token | PlainMessage<Token> | undefined): boolean;
577
- }
578
- /**
579
- * @generated from message data.v1.TokenMetadata
580
- */
581
- export declare class TokenMetadata extends Message<TokenMetadata> {
859
+ url: string;
582
860
  /**
583
- * @generated from field: string project_name = 1;
861
+ * @generated from field: string logo_light_url = 4;
584
862
  */
585
- projectName: string;
863
+ logoLightUrl: string;
586
864
  /**
587
- * @generated from field: string logo_url = 2;
865
+ * @generated from field: string logo_dark_url = 5;
588
866
  */
589
- logoUrl: string;
867
+ logoDarkUrl: string;
590
868
  /**
591
- * @generated from field: data.v1.ProtectionInfo protection_info = 3;
869
+ * @generated from field: string support_url = 6;
592
870
  */
593
- protectionInfo?: ProtectionInfo;
871
+ supportUrl: string;
872
+ };
873
+ /**
874
+ * Describes the message data.v1.OnRampServiceProvider.
875
+ * Use `create(OnRampServiceProviderSchema)` to create a new message.
876
+ */
877
+ export declare const OnRampServiceProviderSchema: GenMessage<OnRampServiceProvider>;
878
+ /**
879
+ * @generated from message data.v1.PlanTransaction
880
+ */
881
+ export type PlanTransaction = Message<"data.v1.PlanTransaction"> & {
594
882
  /**
595
- * @generated from field: data.v1.FeeData fee_data = 4;
883
+ * @generated from field: string plan_id = 1;
596
884
  */
597
- feeData?: FeeData;
885
+ planId: string;
598
886
  /**
599
- * @generated from field: data.v1.SafetyLevel safety_level = 5;
887
+ * @generated from field: uint64 timestamp_millis = 2;
600
888
  */
601
- safetyLevel: SafetyLevel;
889
+ timestampMillis: bigint;
602
890
  /**
603
- * @generated from field: data.v1.SpamCode spam_code = 6;
891
+ * @generated from field: data.v1.PlanStatus status = 3;
604
892
  */
605
- spamCode: SpamCode;
893
+ status: PlanStatus;
606
894
  /**
607
- * @generated from field: bool is_bridged = 7;
895
+ * @generated from field: repeated data.v1.PlanActivity activities = 4;
608
896
  */
609
- isBridged: boolean;
897
+ activities: PlanActivity[];
610
898
  /**
611
- * Set on GetPortfolio balances only, ordered by display precedence (the
612
- * first id is the preferred tag). Empty on every other v1 token surface.
613
- *
614
- * @generated from field: repeated string category_ids = 8;
899
+ * @generated from field: repeated data.v1.TokenAmount assets_in = 5;
615
900
  */
616
- categoryIds: string[];
617
- constructor(data?: PartialMessage<TokenMetadata>);
618
- static readonly runtime: typeof proto3;
619
- static readonly typeName = "data.v1.TokenMetadata";
620
- static readonly fields: FieldList;
621
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TokenMetadata;
622
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TokenMetadata;
623
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TokenMetadata;
624
- static equals(a: TokenMetadata | PlainMessage<TokenMetadata> | undefined, b: TokenMetadata | PlainMessage<TokenMetadata> | undefined): boolean;
625
- }
626
- /**
627
- * @generated from message data.v1.ProtectionInfo
628
- */
629
- export declare class ProtectionInfo extends Message<ProtectionInfo> {
901
+ assetsIn: TokenAmount[];
630
902
  /**
631
- * @generated from field: data.v1.ProtectionResult result = 1;
903
+ * @generated from field: repeated data.v1.TokenAmount assets_out = 6;
632
904
  */
633
- result: ProtectionResult;
905
+ assetsOut: TokenAmount[];
634
906
  /**
635
- * @generated from field: repeated data.v1.AttackType attack_types = 2;
907
+ * @generated from field: uint64 created_at_millis = 7;
636
908
  */
637
- attackTypes: AttackType[];
638
- constructor(data?: PartialMessage<ProtectionInfo>);
639
- static readonly runtime: typeof proto3;
640
- static readonly typeName = "data.v1.ProtectionInfo";
641
- static readonly fields: FieldList;
642
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ProtectionInfo;
643
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ProtectionInfo;
644
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ProtectionInfo;
645
- static equals(a: ProtectionInfo | PlainMessage<ProtectionInfo> | undefined, b: ProtectionInfo | PlainMessage<ProtectionInfo> | undefined): boolean;
646
- }
647
- /**
648
- * TODO(DAT-1081): dedupe these for the frontend potentially
649
- *
650
- * @generated from message data.v1.FeeData
651
- */
652
- export declare class FeeData extends Message<FeeData> {
909
+ createdAtMillis: bigint;
653
910
  /**
654
- * @generated from field: data.v1.Blockaid blockaid = 1;
911
+ * @generated from field: optional uint64 updated_at_millis = 8;
655
912
  */
656
- blockaid?: Blockaid;
913
+ updatedAtMillis?: bigint | undefined;
657
914
  /**
658
- * @generated from field: data.v1.FeeDetector fee_detector = 2;
915
+ * @generated from field: optional uint64 completed_at_millis = 9;
659
916
  */
660
- feeDetector?: FeeDetector;
661
- constructor(data?: PartialMessage<FeeData>);
662
- static readonly runtime: typeof proto3;
663
- static readonly typeName = "data.v1.FeeData";
664
- static readonly fields: FieldList;
665
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): FeeData;
666
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): FeeData;
667
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): FeeData;
668
- static equals(a: FeeData | PlainMessage<FeeData> | undefined, b: FeeData | PlainMessage<FeeData> | undefined): boolean;
669
- }
670
- /**
671
- * @generated from message data.v1.Blockaid
672
- */
673
- export declare class Blockaid extends Message<Blockaid> {
917
+ completedAtMillis?: bigint | undefined;
674
918
  /**
675
- * @generated from field: double buy = 1;
919
+ * @generated from field: optional uint64 duration_millis = 10;
676
920
  */
677
- buy: number;
921
+ durationMillis?: bigint | undefined;
678
922
  /**
679
- * @generated from field: double sell = 2;
923
+ * @generated from field: string swapper = 11;
680
924
  */
681
- sell: number;
925
+ swapper: string;
682
926
  /**
683
- * @generated from field: double transfer = 3;
927
+ * @generated from field: string recipient = 12;
684
928
  */
685
- transfer: number;
686
- constructor(data?: PartialMessage<Blockaid>);
687
- static readonly runtime: typeof proto3;
688
- static readonly typeName = "data.v1.Blockaid";
689
- static readonly fields: FieldList;
690
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Blockaid;
691
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Blockaid;
692
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Blockaid;
693
- static equals(a: Blockaid | PlainMessage<Blockaid> | undefined, b: Blockaid | PlainMessage<Blockaid> | undefined): boolean;
694
- }
695
- /**
696
- * @generated from message data.v1.FeeDetector
697
- */
698
- export declare class FeeDetector extends Message<FeeDetector> {
929
+ recipient: string;
699
930
  /**
700
- * @generated from field: string buy_fee_bps = 1;
931
+ * @generated from field: repeated string transaction_hashes = 13;
701
932
  */
702
- buyFeeBps: string;
933
+ transactionHashes: string[];
703
934
  /**
704
- * @generated from field: string sell_fee_bps = 2;
935
+ * @generated from field: optional string gas_fee = 14;
705
936
  */
706
- sellFeeBps: string;
937
+ gasFee?: string | undefined;
707
938
  /**
708
- * @generated from field: bool fee_taken_on_transfer = 3;
939
+ * @generated from field: optional uint64 last_user_action_at_millis = 15;
709
940
  */
710
- feeTakenOnTransfer: boolean;
941
+ lastUserActionAtMillis?: bigint | undefined;
711
942
  /**
712
- * @generated from field: bool external_transfer_failed = 4;
943
+ * Set when the plan is an Earn vault deposit/withdraw flow. Lets clients
944
+ * label the plan with Earn intent instead of generic swap language.
945
+ *
946
+ * @generated from field: optional data.v1.EarnPlanMetadata earn_metadata = 16;
713
947
  */
714
- externalTransferFailed: boolean;
948
+ earnMetadata?: EarnPlanMetadata | undefined;
715
949
  /**
716
- * @generated from field: bool sell_reverted = 5;
950
+ * Set when the plan is a margin position action. Lets clients label the
951
+ * plan with the margin action instead of generic swap language.
952
+ *
953
+ * @generated from field: optional data.v1.MarginPlanMetadata margin_metadata = 17;
717
954
  */
718
- sellReverted: boolean;
719
- constructor(data?: PartialMessage<FeeDetector>);
720
- static readonly runtime: typeof proto3;
721
- static readonly typeName = "data.v1.FeeDetector";
722
- static readonly fields: FieldList;
723
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): FeeDetector;
724
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): FeeDetector;
725
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): FeeDetector;
726
- static equals(a: FeeDetector | PlainMessage<FeeDetector> | undefined, b: FeeDetector | PlainMessage<FeeDetector> | undefined): boolean;
727
- }
955
+ marginMetadata?: MarginPlanMetadata | undefined;
956
+ };
728
957
  /**
729
- * @generated from message data.v1.PortfolioValueModifier
958
+ * Describes the message data.v1.PlanTransaction.
959
+ * Use `create(PlanTransactionSchema)` to create a new message.
960
+ */
961
+ export declare const PlanTransactionSchema: GenMessage<PlanTransaction>;
962
+ /**
963
+ * Plan-level margin action metadata for margin position flows.
964
+ *
965
+ * @generated from message data.v1.MarginPlanMetadata
730
966
  */
731
- export declare class PortfolioValueModifier extends Message<PortfolioValueModifier> {
967
+ export type MarginPlanMetadata = Message<"data.v1.MarginPlanMetadata"> & {
732
968
  /**
733
- * @generated from field: string address = 1;
969
+ * @generated from field: data.v1.MarginPlanAction action = 1;
734
970
  */
735
- address: string;
971
+ action: MarginPlanAction;
736
972
  /**
737
- * @generated from field: repeated data.v1.Contract include_overrides = 2;
973
+ * `<collateral>-<debt>-<venue>`; a display key, not a parse target.
974
+ *
975
+ * @generated from field: string market_key = 2;
738
976
  */
739
- includeOverrides: Contract[];
977
+ marketKey: string;
740
978
  /**
741
- * @generated from field: repeated data.v1.Contract exclude_overrides = 3;
979
+ * @generated from field: data.v1.MarginPlanVenue venue = 3;
742
980
  */
743
- excludeOverrides: Contract[];
981
+ venue: MarginPlanVenue;
744
982
  /**
745
- * @generated from field: bool include_small_balances = 4;
983
+ * @generated from field: string collateral_token = 4;
746
984
  */
747
- includeSmallBalances: boolean;
985
+ collateralToken: string;
748
986
  /**
749
- * @generated from field: bool include_spam_tokens = 5;
987
+ * @generated from field: string debt_token = 5;
750
988
  */
751
- includeSpamTokens: boolean;
989
+ debtToken: string;
990
+ };
991
+ /**
992
+ * Describes the message data.v1.MarginPlanMetadata.
993
+ * Use `create(MarginPlanMetadataSchema)` to create a new message.
994
+ */
995
+ export declare const MarginPlanMetadataSchema: GenMessage<MarginPlanMetadata>;
996
+ /**
997
+ * Plan-level Earn intent metadata for chained Earn vault flows.
998
+ *
999
+ * @generated from message data.v1.EarnPlanMetadata
1000
+ */
1001
+ export type EarnPlanMetadata = Message<"data.v1.EarnPlanMetadata"> & {
752
1002
  /**
753
- * @generated from field: uint32 balance_limit = 6;
1003
+ * @generated from field: data.v1.EarnPlanAction action = 1;
754
1004
  */
755
- balanceLimit: number;
1005
+ action: EarnPlanAction;
756
1006
  /**
757
- * @generated from field: repeated data.v1.PoolRef pool_include_overrides = 7;
1007
+ * Vault share token address; unset when not derivable.
1008
+ *
1009
+ * @generated from field: optional string vault = 2;
758
1010
  */
759
- poolIncludeOverrides: PoolRef[];
1011
+ vault?: string | undefined;
760
1012
  /**
761
- * @generated from field: repeated data.v1.PoolRef pool_exclude_overrides = 8;
1013
+ * @generated from field: optional uint32 chain_id = 3;
762
1014
  */
763
- poolExcludeOverrides: PoolRef[];
764
- constructor(data?: PartialMessage<PortfolioValueModifier>);
765
- static readonly runtime: typeof proto3;
766
- static readonly typeName = "data.v1.PortfolioValueModifier";
767
- static readonly fields: FieldList;
768
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PortfolioValueModifier;
769
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PortfolioValueModifier;
770
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PortfolioValueModifier;
771
- static equals(a: PortfolioValueModifier | PlainMessage<PortfolioValueModifier> | undefined, b: PortfolioValueModifier | PlainMessage<PortfolioValueModifier> | undefined): boolean;
772
- }
1015
+ chainId?: number | undefined;
1016
+ };
773
1017
  /**
774
- * @generated from message data.v1.PoolRef
1018
+ * Describes the message data.v1.EarnPlanMetadata.
1019
+ * Use `create(EarnPlanMetadataSchema)` to create a new message.
775
1020
  */
776
- export declare class PoolRef extends Message<PoolRef> {
1021
+ export declare const EarnPlanMetadataSchema: GenMessage<EarnPlanMetadata>;
1022
+ /**
1023
+ * @generated from message data.v1.PlanActivity
1024
+ */
1025
+ export type PlanActivity = Message<"data.v1.PlanActivity"> & {
777
1026
  /**
778
- * @generated from field: uint32 chain_id = 1;
1027
+ * @generated from field: uint32 step_index = 1;
779
1028
  */
780
- chainId: number;
1029
+ stepIndex: number;
781
1030
  /**
782
- * @generated from field: string pool_id = 2;
1031
+ * @generated from field: data.v1.SwapType swap_type = 2;
783
1032
  */
784
- poolId: string;
1033
+ swapType: SwapType;
785
1034
  /**
786
- * @generated from field: optional string position_id = 3;
1035
+ * @generated from field: optional data.v1.Token token_in = 3;
787
1036
  */
788
- positionId?: string;
789
- constructor(data?: PartialMessage<PoolRef>);
790
- static readonly runtime: typeof proto3;
791
- static readonly typeName = "data.v1.PoolRef";
792
- static readonly fields: FieldList;
793
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PoolRef;
794
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PoolRef;
795
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PoolRef;
796
- static equals(a: PoolRef | PlainMessage<PoolRef> | undefined, b: PoolRef | PlainMessage<PoolRef> | undefined): boolean;
797
- }
798
- /**
799
- * @generated from message data.v1.Portfolio
800
- */
801
- export declare class Portfolio extends Message<Portfolio> {
1037
+ tokenIn?: Token | undefined;
802
1038
  /**
803
- * @generated from field: repeated data.v1.Balance balances = 1;
1039
+ * @generated from field: optional data.v1.Amount token_in_amount = 4;
804
1040
  */
805
- balances: Balance[];
1041
+ tokenInAmount?: Amount | undefined;
806
1042
  /**
807
- * @generated from field: double total_value_usd = 2;
1043
+ * @generated from field: optional data.v1.Token token_out = 5;
808
1044
  */
809
- totalValueUsd: number;
1045
+ tokenOut?: Token | undefined;
810
1046
  /**
811
- * @generated from field: double total_value_absolute_change_1d = 3;
1047
+ * @generated from field: optional data.v1.Amount token_out_amount = 6;
812
1048
  */
813
- totalValueAbsoluteChange1d: number;
1049
+ tokenOutAmount?: Amount | undefined;
814
1050
  /**
815
- * @generated from field: double total_value_percent_change_1d = 4;
1051
+ * @generated from field: data.v1.PlanStepStatus status = 7;
816
1052
  */
817
- totalValuePercentChange1d: number;
1053
+ status: PlanStepStatus;
818
1054
  /**
819
- * Populated instead of `balances` when multichain=true in GetPortfolioRequest
820
- *
821
- * @generated from field: repeated data.v1.MultichainBalance multichain_balances = 5;
1055
+ * @generated from field: optional string transaction_hash = 8;
822
1056
  */
823
- multichainBalances: MultichainBalance[];
824
- constructor(data?: PartialMessage<Portfolio>);
825
- static readonly runtime: typeof proto3;
826
- static readonly typeName = "data.v1.Portfolio";
827
- static readonly fields: FieldList;
828
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Portfolio;
829
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Portfolio;
830
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Portfolio;
831
- static equals(a: Portfolio | PlainMessage<Portfolio> | undefined, b: Portfolio | PlainMessage<Portfolio> | undefined): boolean;
832
- }
1057
+ transactionHash?: string | undefined;
1058
+ /**
1059
+ * @generated from field: optional uint32 chain_id = 9;
1060
+ */
1061
+ chainId?: number | undefined;
1062
+ /**
1063
+ * @generated from field: optional string gas_fee = 10;
1064
+ */
1065
+ gasFee?: string | undefined;
1066
+ };
833
1067
  /**
834
- * @generated from message data.v1.Balance
1068
+ * Describes the message data.v1.PlanActivity.
1069
+ * Use `create(PlanActivitySchema)` to create a new message.
1070
+ */
1071
+ export declare const PlanActivitySchema: GenMessage<PlanActivity>;
1072
+ /**
1073
+ * @generated from message data.v1.TokenAmount
835
1074
  */
836
- export declare class Balance extends Message<Balance> {
1075
+ export type TokenAmount = Message<"data.v1.TokenAmount"> & {
837
1076
  /**
838
1077
  * @generated from field: data.v1.Token token = 1;
839
1078
  */
840
- token?: Token;
1079
+ token?: Token | undefined;
841
1080
  /**
842
1081
  * @generated from field: data.v1.Amount amount = 2;
843
1082
  */
844
- amount?: Amount;
1083
+ amount?: Amount | undefined;
1084
+ };
1085
+ /**
1086
+ * Describes the message data.v1.TokenAmount.
1087
+ * Use `create(TokenAmountSchema)` to create a new message.
1088
+ */
1089
+ export declare const TokenAmountSchema: GenMessage<TokenAmount>;
1090
+ /**
1091
+ * @generated from message data.v1.TransactionFee
1092
+ */
1093
+ export type TransactionFee = Message<"data.v1.TransactionFee"> & {
845
1094
  /**
846
- * @generated from field: double price_usd = 3;
1095
+ * @generated from field: data.v1.Amount amount = 1;
847
1096
  */
848
- priceUsd: number;
1097
+ amount?: Amount | undefined;
849
1098
  /**
850
- * @generated from field: double price_percent_change_1d = 4;
1099
+ * @generated from field: string address = 2;
851
1100
  */
852
- pricePercentChange1d: number;
1101
+ address: string;
853
1102
  /**
854
- * @generated from field: double value_usd = 5;
1103
+ * @generated from field: string symbol = 3;
855
1104
  */
856
- valueUsd: number;
1105
+ symbol: string;
857
1106
  /**
858
- * @generated from field: bool is_hidden = 6;
1107
+ * @generated from field: uint32 decimals = 4;
859
1108
  */
860
- isHidden: boolean;
861
- constructor(data?: PartialMessage<Balance>);
862
- static readonly runtime: typeof proto3;
863
- static readonly typeName = "data.v1.Balance";
864
- static readonly fields: FieldList;
865
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Balance;
866
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Balance;
867
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Balance;
868
- static equals(a: Balance | PlainMessage<Balance> | undefined, b: Balance | PlainMessage<Balance> | undefined): boolean;
869
- }
1109
+ decimals: number;
1110
+ };
870
1111
  /**
871
- * Chain-specific balance within a multichain token group
872
- *
873
- * @generated from message data.v1.ChainBalance
1112
+ * Describes the message data.v1.TransactionFee.
1113
+ * Use `create(TransactionFeeSchema)` to create a new message.
1114
+ */
1115
+ export declare const TransactionFeeSchema: GenMessage<TransactionFee>;
1116
+ /**
1117
+ * @generated from message data.v1.TimestampedValue
874
1118
  */
875
- export declare class ChainBalance extends Message<ChainBalance> {
1119
+ export type TimestampedValue = Message<"data.v1.TimestampedValue"> & {
876
1120
  /**
877
- * @generated from field: uint32 chain_id = 1;
1121
+ * @generated from field: uint64 timestamp = 1;
878
1122
  */
879
- chainId: number;
1123
+ timestamp: bigint;
880
1124
  /**
881
- * @generated from field: string address = 2;
1125
+ * @generated from field: double value = 2;
882
1126
  */
883
- address: string;
1127
+ value: number;
1128
+ };
1129
+ /**
1130
+ * Describes the message data.v1.TimestampedValue.
1131
+ * Use `create(TimestampedValueSchema)` to create a new message.
1132
+ */
1133
+ export declare const TimestampedValueSchema: GenMessage<TimestampedValue>;
1134
+ /**
1135
+ * @generated from message data.v1.TokenStats
1136
+ */
1137
+ export type TokenStats = Message<"data.v1.TokenStats"> & {
884
1138
  /**
885
- * @generated from field: uint32 decimals = 3;
1139
+ * @generated from field: optional double fdv = 1;
886
1140
  */
887
- decimals: number;
1141
+ fdv?: number | undefined;
888
1142
  /**
889
- * @generated from field: data.v1.Amount amount = 4;
1143
+ * @generated from field: optional double volume_1h = 2;
890
1144
  */
891
- amount?: Amount;
1145
+ volume1h?: number | undefined;
892
1146
  /**
893
- * @generated from field: double value_usd = 5;
1147
+ * @generated from field: optional double volume_1d = 3;
894
1148
  */
895
- valueUsd: number;
1149
+ volume1d?: number | undefined;
896
1150
  /**
897
- * @generated from field: bool is_hidden = 6;
1151
+ * @generated from field: optional double volume_7d = 4;
898
1152
  */
899
- isHidden: boolean;
900
- constructor(data?: PartialMessage<ChainBalance>);
901
- static readonly runtime: typeof proto3;
902
- static readonly typeName = "data.v1.ChainBalance";
903
- static readonly fields: FieldList;
904
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ChainBalance;
905
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ChainBalance;
906
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ChainBalance;
907
- static equals(a: ChainBalance | PlainMessage<ChainBalance> | undefined, b: ChainBalance | PlainMessage<ChainBalance> | undefined): boolean;
908
- }
909
- /**
910
- * A token aggregated across multiple chains
911
- *
912
- * @generated from message data.v1.MultichainBalance
913
- */
914
- export declare class MultichainBalance extends Message<MultichainBalance> {
1153
+ volume7d?: number | undefined;
915
1154
  /**
916
- * @generated from field: string name = 1;
1155
+ * @generated from field: optional double volume_30d = 5;
917
1156
  */
918
- name: string;
1157
+ volume30d?: number | undefined;
919
1158
  /**
920
- * @generated from field: string symbol = 2;
1159
+ * @generated from field: optional double volume_1y = 6;
921
1160
  */
922
- symbol: string;
1161
+ volume1y?: number | undefined;
923
1162
  /**
924
- * @generated from field: data.v1.TokenType type = 3;
1163
+ * @generated from field: optional float price = 7;
925
1164
  */
926
- type: TokenType;
1165
+ price?: number | undefined;
927
1166
  /**
928
- * @generated from field: string project_name = 4;
1167
+ * @generated from field: optional float price_change_1h = 8;
929
1168
  */
930
- projectName: string;
1169
+ priceChange1h?: number | undefined;
931
1170
  /**
932
- * @generated from field: string logo_url = 5;
1171
+ * @generated from field: optional float price_change_1d = 9;
933
1172
  */
934
- logoUrl: string;
1173
+ priceChange1d?: number | undefined;
935
1174
  /**
936
- * @generated from field: data.v1.ProtectionInfo protection_info = 6;
1175
+ * @generated from field: repeated data.v1.TimestampedValue price_history_1d = 10;
937
1176
  */
938
- protectionInfo?: ProtectionInfo;
1177
+ priceHistory1d: TimestampedValue[];
1178
+ };
1179
+ /**
1180
+ * Describes the message data.v1.TokenStats.
1181
+ * Use `create(TokenStatsSchema)` to create a new message.
1182
+ */
1183
+ export declare const TokenStatsSchema: GenMessage<TokenStats>;
1184
+ /**
1185
+ * @generated from message data.v1.Paymaster
1186
+ */
1187
+ export type Paymaster = Message<"data.v1.Paymaster"> & {
939
1188
  /**
940
- * @generated from field: data.v1.FeeData fee_data = 7;
1189
+ * @generated from field: string address = 1;
941
1190
  */
942
- feeData?: FeeData;
1191
+ address: string;
943
1192
  /**
944
- * @generated from field: data.v1.SafetyLevel safety_level = 8;
1193
+ * @generated from field: optional string name = 2;
945
1194
  */
946
- safetyLevel: SafetyLevel;
1195
+ name?: string | undefined;
1196
+ };
1197
+ /**
1198
+ * Describes the message data.v1.Paymaster.
1199
+ * Use `create(PaymasterSchema)` to create a new message.
1200
+ */
1201
+ export declare const PaymasterSchema: GenMessage<Paymaster>;
1202
+ /**
1203
+ * Sponsor identity for a gas-sponsored transaction, resolved from the
1204
+ * internal Sponsorship service (platform-service). Complements Paymaster,
1205
+ * which only carries the on-chain paymaster contract address.
1206
+ *
1207
+ * @generated from message data.v1.SponsorshipMetadata
1208
+ */
1209
+ export type SponsorshipMetadata = Message<"data.v1.SponsorshipMetadata"> & {
947
1210
  /**
948
- * @generated from field: data.v1.SpamCode spam_code = 9;
1211
+ * @generated from field: string name = 1;
949
1212
  */
950
- spamCode: SpamCode;
1213
+ name: string;
951
1214
  /**
952
- * @generated from field: data.v1.Amount total_amount = 10;
1215
+ * @generated from field: optional string logo_url = 2;
953
1216
  */
954
- totalAmount?: Amount;
1217
+ logoUrl?: string | undefined;
1218
+ };
1219
+ /**
1220
+ * Describes the message data.v1.SponsorshipMetadata.
1221
+ * Use `create(SponsorshipMetadataSchema)` to create a new message.
1222
+ */
1223
+ export declare const SponsorshipMetadataSchema: GenMessage<SponsorshipMetadata>;
1224
+ /**
1225
+ * @generated from message data.v1.WalletProfitLoss
1226
+ */
1227
+ export type WalletProfitLoss = Message<"data.v1.WalletProfitLoss"> & {
955
1228
  /**
956
- * @generated from field: double price_usd = 11;
1229
+ * @generated from field: double net_invested_usd = 1;
957
1230
  */
958
- priceUsd: number;
1231
+ netInvestedUsd: number;
959
1232
  /**
960
- * @generated from field: double price_percent_change_1d = 12;
1233
+ * @generated from field: double unrealized_return_usd = 2;
961
1234
  */
962
- pricePercentChange1d: number;
1235
+ unrealizedReturnUsd: number;
963
1236
  /**
964
- * @generated from field: double total_value_usd = 13;
1237
+ * @generated from field: double unrealized_return_percent = 3;
965
1238
  */
966
- totalValueUsd: number;
1239
+ unrealizedReturnPercent: number;
967
1240
  /**
968
- * @generated from field: bool is_hidden = 14;
1241
+ * @generated from field: double realized_return_usd = 4;
969
1242
  */
970
- isHidden: boolean;
1243
+ realizedReturnUsd: number;
971
1244
  /**
972
- * @generated from field: repeated data.v1.ChainBalance chain_balances = 15;
1245
+ * @generated from field: double total_return_usd = 5;
973
1246
  */
974
- chainBalances: ChainBalance[];
975
- constructor(data?: PartialMessage<MultichainBalance>);
976
- static readonly runtime: typeof proto3;
977
- static readonly typeName = "data.v1.MultichainBalance";
978
- static readonly fields: FieldList;
979
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MultichainBalance;
980
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MultichainBalance;
981
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MultichainBalance;
982
- static equals(a: MultichainBalance | PlainMessage<MultichainBalance> | undefined, b: MultichainBalance | PlainMessage<MultichainBalance> | undefined): boolean;
983
- }
1247
+ totalReturnUsd: number;
1248
+ /**
1249
+ * @generated from field: double total_fee_usd = 6;
1250
+ */
1251
+ totalFeeUsd: number;
1252
+ };
984
1253
  /**
985
- * @generated from message data.v1.Amount
1254
+ * Describes the message data.v1.WalletProfitLoss.
1255
+ * Use `create(WalletProfitLossSchema)` to create a new message.
1256
+ */
1257
+ export declare const WalletProfitLossSchema: GenMessage<WalletProfitLoss>;
1258
+ /**
1259
+ * @generated from message data.v1.TokenProfitLoss
986
1260
  */
987
- export declare class Amount extends Message<Amount> {
1261
+ export type TokenProfitLoss = Message<"data.v1.TokenProfitLoss"> & {
988
1262
  /**
989
- * @generated from field: string raw = 1;
1263
+ * @generated from field: data.v1.Token token = 1;
990
1264
  */
991
- raw: string;
1265
+ token?: Token | undefined;
992
1266
  /**
993
- * @generated from field: double amount = 2;
1267
+ * @generated from field: double average_cost_usd = 2;
994
1268
  */
995
- amount: number;
996
- constructor(data?: PartialMessage<Amount>);
997
- static readonly runtime: typeof proto3;
998
- static readonly typeName = "data.v1.Amount";
999
- static readonly fields: FieldList;
1000
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Amount;
1001
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Amount;
1002
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Amount;
1003
- static equals(a: Amount | PlainMessage<Amount> | undefined, b: Amount | PlainMessage<Amount> | undefined): boolean;
1004
- }
1005
- /**
1006
- * @generated from message data.v1.Contract
1007
- */
1008
- export declare class Contract extends Message<Contract> {
1269
+ averageCostUsd: number;
1009
1270
  /**
1010
- * @generated from field: uint32 chain_id = 1;
1271
+ * @generated from field: double unrealized_return_usd = 3;
1011
1272
  */
1012
- chainId: number;
1273
+ unrealizedReturnUsd: number;
1013
1274
  /**
1014
- * @generated from field: string address = 2;
1275
+ * @generated from field: double unrealized_return_percent = 4;
1015
1276
  */
1016
- address: string;
1017
- constructor(data?: PartialMessage<Contract>);
1018
- static readonly runtime: typeof proto3;
1019
- static readonly typeName = "data.v1.Contract";
1020
- static readonly fields: FieldList;
1021
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Contract;
1022
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Contract;
1023
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Contract;
1024
- static equals(a: Contract | PlainMessage<Contract> | undefined, b: Contract | PlainMessage<Contract> | undefined): boolean;
1025
- }
1277
+ unrealizedReturnPercent: number;
1278
+ };
1026
1279
  /**
1027
- * @generated from message data.v1.Nft
1280
+ * Describes the message data.v1.TokenProfitLoss.
1281
+ * Use `create(TokenProfitLossSchema)` to create a new message.
1028
1282
  */
1029
- export declare class Nft extends Message<Nft> {
1030
- /**
1031
- * @generated from field: uint32 chain_id = 1;
1032
- */
1033
- chainId: number;
1283
+ export declare const TokenProfitLossSchema: GenMessage<TokenProfitLoss>;
1284
+ /**
1285
+ * @generated from message data.v1.TokenDetailProfitLoss
1286
+ */
1287
+ export type TokenDetailProfitLoss = Message<"data.v1.TokenDetailProfitLoss"> & {
1034
1288
  /**
1035
- * @generated from field: string address = 2;
1289
+ * @generated from field: double average_cost_usd = 1;
1036
1290
  */
1037
- address: string;
1291
+ averageCostUsd: number;
1038
1292
  /**
1039
- * @generated from field: string token_id = 3;
1293
+ * @generated from field: double one_day_return_usd = 2;
1040
1294
  */
1041
- tokenId: string;
1295
+ oneDayReturnUsd: number;
1042
1296
  /**
1043
- * @generated from field: string name = 4;
1297
+ * @generated from field: double one_day_return_percent = 3;
1044
1298
  */
1045
- name: string;
1299
+ oneDayReturnPercent: number;
1046
1300
  /**
1047
- * @generated from field: string collection_name = 5;
1301
+ * @generated from field: double unrealized_return_usd = 4;
1048
1302
  */
1049
- collectionName: string;
1303
+ unrealizedReturnUsd: number;
1050
1304
  /**
1051
- * @generated from field: data.v1.TokenType type = 6;
1305
+ * @generated from field: double unrealized_return_percent = 5;
1052
1306
  */
1053
- type: TokenType;
1307
+ unrealizedReturnPercent: number;
1054
1308
  /**
1055
- * @generated from field: string image_url = 7;
1309
+ * @generated from field: double realized_return_usd = 6;
1056
1310
  */
1057
- imageUrl: string;
1311
+ realizedReturnUsd: number;
1058
1312
  /**
1059
- * @generated from field: bool is_spam = 8;
1313
+ * @generated from field: double realized_return_percent = 7;
1060
1314
  */
1061
- isSpam: boolean;
1062
- constructor(data?: PartialMessage<Nft>);
1063
- static readonly runtime: typeof proto3;
1064
- static readonly typeName = "data.v1.Nft";
1065
- static readonly fields: FieldList;
1066
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Nft;
1067
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Nft;
1068
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Nft;
1069
- static equals(a: Nft | PlainMessage<Nft> | undefined, b: Nft | PlainMessage<Nft> | undefined): boolean;
1070
- }
1315
+ realizedReturnPercent: number;
1316
+ };
1071
1317
  /**
1072
- * @generated from message data.v1.Transaction
1318
+ * Describes the message data.v1.TokenDetailProfitLoss.
1319
+ * Use `create(TokenDetailProfitLossSchema)` to create a new message.
1073
1320
  */
1074
- export declare class Transaction extends Message<Transaction> {
1075
- /**
1076
- * @generated from oneof data.v1.Transaction.transaction
1077
- */
1078
- transaction: {
1079
- /**
1080
- * @generated from field: data.v1.OnChainTransaction on_chain = 1;
1081
- */
1082
- value: OnChainTransaction;
1083
- case: "onChain";
1084
- } | {
1085
- /**
1086
- * @generated from field: data.v1.UniswapXTransaction uniswap_x = 2;
1087
- */
1088
- value: UniswapXTransaction;
1089
- case: "uniswapX";
1090
- } | {
1091
- /**
1092
- * @generated from field: data.v1.FiatOnRampTransaction fiat_on_ramp = 3;
1093
- */
1094
- value: FiatOnRampTransaction;
1095
- case: "fiatOnRamp";
1096
- } | {
1097
- /**
1098
- * @generated from field: data.v1.PlanTransaction plan = 4;
1099
- */
1100
- value: PlanTransaction;
1101
- case: "plan";
1102
- } | {
1103
- case: undefined;
1104
- value?: undefined;
1105
- };
1106
- constructor(data?: PartialMessage<Transaction>);
1107
- static readonly runtime: typeof proto3;
1108
- static readonly typeName = "data.v1.Transaction";
1109
- static readonly fields: FieldList;
1110
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Transaction;
1111
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Transaction;
1112
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Transaction;
1113
- static equals(a: Transaction | PlainMessage<Transaction> | undefined, b: Transaction | PlainMessage<Transaction> | undefined): boolean;
1114
- }
1321
+ export declare const TokenDetailProfitLossSchema: GenMessage<TokenDetailProfitLoss>;
1115
1322
  /**
1116
- * @generated from message data.v1.OnChainTransaction
1323
+ * Per-chain PnL within a multichain token group
1324
+ *
1325
+ * @generated from message data.v1.ChainTokenProfitLoss
1117
1326
  */
1118
- export declare class OnChainTransaction extends Message<OnChainTransaction> {
1327
+ export type ChainTokenProfitLoss = Message<"data.v1.ChainTokenProfitLoss"> & {
1119
1328
  /**
1120
1329
  * @generated from field: uint32 chain_id = 1;
1121
1330
  */
1122
1331
  chainId: number;
1123
1332
  /**
1124
- * @generated from field: uint32 block_number = 2;
1125
- */
1126
- blockNumber: number;
1127
- /**
1128
- * @generated from field: uint64 timestamp_millis = 3;
1129
- */
1130
- timestampMillis: bigint;
1131
- /**
1132
- * @generated from field: string transaction_hash = 4;
1133
- */
1134
- transactionHash: string;
1135
- /**
1136
- * @generated from field: string from = 5;
1137
- */
1138
- from: string;
1139
- /**
1140
- * @generated from field: string to = 6;
1333
+ * @generated from field: string token_address = 2;
1141
1334
  */
1142
- to: string;
1335
+ tokenAddress: string;
1143
1336
  /**
1144
- * @generated from field: repeated data.v1.Transfer transfers = 7;
1337
+ * @generated from field: double average_cost_usd = 3;
1145
1338
  */
1146
- transfers: Transfer[];
1339
+ averageCostUsd: number;
1147
1340
  /**
1148
- * @generated from field: repeated data.v1.Approval approvals = 8;
1341
+ * @generated from field: double unrealized_return_usd = 4;
1149
1342
  */
1150
- approvals: Approval[];
1343
+ unrealizedReturnUsd: number;
1151
1344
  /**
1152
- * @generated from field: data.v1.OnChainTransactionLabel label = 9;
1345
+ * @generated from field: double unrealized_return_percent = 5;
1153
1346
  */
1154
- label: OnChainTransactionLabel;
1347
+ unrealizedReturnPercent: number;
1348
+ };
1349
+ /**
1350
+ * Describes the message data.v1.ChainTokenProfitLoss.
1351
+ * Use `create(ChainTokenProfitLossSchema)` to create a new message.
1352
+ */
1353
+ export declare const ChainTokenProfitLossSchema: GenMessage<ChainTokenProfitLoss>;
1354
+ /**
1355
+ * A token aggregated across multiple chains with per-chain breakdown
1356
+ *
1357
+ * @generated from message data.v1.MultichainTokenProfitLoss
1358
+ */
1359
+ export type MultichainTokenProfitLoss = Message<"data.v1.MultichainTokenProfitLoss"> & {
1155
1360
  /**
1156
- * @generated from field: data.v1.OnChainTransactionStatus status = 10;
1361
+ * @generated from field: string name = 1;
1157
1362
  */
1158
- status: OnChainTransactionStatus;
1363
+ name: string;
1159
1364
  /**
1160
- * @generated from field: optional data.v1.ProtocolMetadata protocol = 11;
1365
+ * @generated from field: string symbol = 2;
1161
1366
  */
1162
- protocol?: ProtocolMetadata;
1367
+ symbol: string;
1163
1368
  /**
1164
- * @generated from field: data.v1.TransactionFee fee = 12;
1369
+ * @generated from field: string logo_url = 3;
1165
1370
  */
1166
- fee?: TransactionFee;
1371
+ logoUrl: string;
1167
1372
  /**
1168
- * @generated from field: optional data.v1.Paymaster paymaster = 13;
1373
+ * @generated from field: data.v1.TokenProfitLoss aggregated = 4;
1169
1374
  */
1170
- paymaster?: Paymaster;
1375
+ aggregated?: TokenProfitLoss | undefined;
1171
1376
  /**
1172
- * @generated from field: optional data.v1.SponsorshipMetadata sponsorship = 14;
1377
+ * @generated from field: repeated data.v1.ChainTokenProfitLoss chain_breakdown = 5;
1173
1378
  */
1174
- sponsorship?: SponsorshipMetadata;
1175
- constructor(data?: PartialMessage<OnChainTransaction>);
1176
- static readonly runtime: typeof proto3;
1177
- static readonly typeName = "data.v1.OnChainTransaction";
1178
- static readonly fields: FieldList;
1179
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OnChainTransaction;
1180
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): OnChainTransaction;
1181
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OnChainTransaction;
1182
- static equals(a: OnChainTransaction | PlainMessage<OnChainTransaction> | undefined, b: OnChainTransaction | PlainMessage<OnChainTransaction> | undefined): boolean;
1183
- }
1379
+ chainBreakdown: ChainTokenProfitLoss[];
1380
+ };
1184
1381
  /**
1185
- * @generated from message data.v1.Transfer
1382
+ * Describes the message data.v1.MultichainTokenProfitLoss.
1383
+ * Use `create(MultichainTokenProfitLossSchema)` to create a new message.
1384
+ */
1385
+ export declare const MultichainTokenProfitLossSchema: GenMessage<MultichainTokenProfitLoss>;
1386
+ /**
1387
+ * @generated from enum data.v1.TokenType
1186
1388
  */
1187
- export declare class Transfer extends Message<Transfer> {
1389
+ export declare enum TokenType {
1188
1390
  /**
1189
- * @generated from field: data.v1.Direction direction = 1;
1391
+ * @generated from enum value: TOKEN_TYPE_UNKNOWN = 0;
1190
1392
  */
1191
- direction: Direction;
1393
+ UNKNOWN = 0,
1192
1394
  /**
1193
- * @generated from field: string from = 2;
1395
+ * @generated from enum value: TOKEN_TYPE_NATIVE = 1;
1194
1396
  */
1195
- from: string;
1397
+ NATIVE = 1,
1196
1398
  /**
1197
- * @generated from field: string to = 3;
1399
+ * @generated from enum value: TOKEN_TYPE_ERC20 = 2;
1198
1400
  */
1199
- to: string;
1401
+ ERC20 = 2,
1200
1402
  /**
1201
- * @generated from oneof data.v1.Transfer.asset
1403
+ * @generated from enum value: TOKEN_TYPE_ERC721 = 3;
1202
1404
  */
1203
- asset: {
1204
- /**
1205
- * @generated from field: data.v1.Token token = 4;
1206
- */
1207
- value: Token;
1208
- case: "token";
1209
- } | {
1210
- /**
1211
- * @generated from field: data.v1.Nft nft = 5;
1212
- */
1213
- value: Nft;
1214
- case: "nft";
1215
- } | {
1216
- case: undefined;
1217
- value?: undefined;
1218
- };
1405
+ ERC721 = 3,
1219
1406
  /**
1220
- * @generated from field: data.v1.Amount amount = 6;
1407
+ * @generated from enum value: TOKEN_TYPE_ERC1155 = 4;
1221
1408
  */
1222
- amount?: Amount;
1409
+ ERC1155 = 4,
1223
1410
  /**
1224
- * USD value of the transferred amount at transaction time, as priced by the
1225
- * activity provider. Unset when the asset had no known price; a priced asset
1226
- * can legitimately be 0.
1227
- *
1228
- * @generated from field: optional double transacted_value_usd = 7;
1411
+ * @generated from enum value: TOKEN_TYPE_SPL = 5;
1229
1412
  */
1230
- transactedValueUsd?: number;
1231
- constructor(data?: PartialMessage<Transfer>);
1232
- static readonly runtime: typeof proto3;
1233
- static readonly typeName = "data.v1.Transfer";
1234
- static readonly fields: FieldList;
1235
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Transfer;
1236
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Transfer;
1237
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Transfer;
1238
- static equals(a: Transfer | PlainMessage<Transfer> | undefined, b: Transfer | PlainMessage<Transfer> | undefined): boolean;
1413
+ SPL = 5
1239
1414
  }
1240
1415
  /**
1241
- * @generated from message data.v1.Approval
1416
+ * Describes the enum data.v1.TokenType.
1242
1417
  */
1243
- export declare class Approval extends Message<Approval> {
1244
- /**
1245
- * @generated from field: string approved_address = 1;
1246
- */
1247
- approvedAddress: string;
1418
+ export declare const TokenTypeSchema: GenEnum<TokenType>;
1419
+ /**
1420
+ * @generated from enum data.v1.SpamCode
1421
+ */
1422
+ export declare enum SpamCode {
1248
1423
  /**
1249
- * @generated from oneof data.v1.Approval.asset
1424
+ * @generated from enum value: SPAM_CODE_UNKNOWN = 0;
1250
1425
  */
1251
- asset: {
1252
- /**
1253
- * @generated from field: data.v1.Token token = 2;
1254
- */
1255
- value: Token;
1256
- case: "token";
1257
- } | {
1258
- /**
1259
- * @generated from field: data.v1.Nft nft = 3;
1260
- */
1261
- value: Nft;
1262
- case: "nft";
1263
- } | {
1264
- case: undefined;
1265
- value?: undefined;
1266
- };
1426
+ UNKNOWN = 0,
1267
1427
  /**
1268
- * @generated from field: data.v1.Amount amount = 4;
1428
+ * @generated from enum value: SPAM_CODE_NOT_SPAM = 1;
1269
1429
  */
1270
- amount?: Amount;
1271
- constructor(data?: PartialMessage<Approval>);
1272
- static readonly runtime: typeof proto3;
1273
- static readonly typeName = "data.v1.Approval";
1274
- static readonly fields: FieldList;
1275
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Approval;
1276
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Approval;
1277
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Approval;
1278
- static equals(a: Approval | PlainMessage<Approval> | undefined, b: Approval | PlainMessage<Approval> | undefined): boolean;
1279
- }
1280
- /**
1281
- * @generated from message data.v1.ProtocolMetadata
1282
- */
1283
- export declare class ProtocolMetadata extends Message<ProtocolMetadata> {
1430
+ NOT_SPAM = 1,
1284
1431
  /**
1285
- * @generated from field: string name = 1;
1432
+ * @generated from enum value: SPAM_CODE_SPAM = 2;
1286
1433
  */
1287
- name: string;
1434
+ SPAM = 2,
1288
1435
  /**
1289
- * @generated from field: string logo_url = 2;
1436
+ * @generated from enum value: SPAM_CODE_SPAM_URL = 3;
1290
1437
  */
1291
- logoUrl: string;
1292
- constructor(data?: PartialMessage<ProtocolMetadata>);
1293
- static readonly runtime: typeof proto3;
1294
- static readonly typeName = "data.v1.ProtocolMetadata";
1295
- static readonly fields: FieldList;
1296
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ProtocolMetadata;
1297
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ProtocolMetadata;
1298
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ProtocolMetadata;
1299
- static equals(a: ProtocolMetadata | PlainMessage<ProtocolMetadata> | undefined, b: ProtocolMetadata | PlainMessage<ProtocolMetadata> | undefined): boolean;
1438
+ SPAM_URL = 3
1300
1439
  }
1301
1440
  /**
1302
- * @generated from message data.v1.UniswapXTransaction
1441
+ * Describes the enum data.v1.SpamCode.
1303
1442
  */
1304
- export declare class UniswapXTransaction extends Message<UniswapXTransaction> {
1305
- /**
1306
- * @generated from field: uint32 chain_id = 1;
1307
- */
1308
- chainId: number;
1443
+ export declare const SpamCodeSchema: GenEnum<SpamCode>;
1444
+ /**
1445
+ * @generated from enum data.v1.SafetyLevel
1446
+ */
1447
+ export declare enum SafetyLevel {
1309
1448
  /**
1310
- * @generated from field: uint64 timestamp_millis = 2;
1449
+ * @generated from enum value: SAFETY_LEVEL_UNKNOWN = 0;
1311
1450
  */
1312
- timestampMillis: bigint;
1451
+ UNKNOWN = 0,
1313
1452
  /**
1314
- * @generated from field: string offerer = 3;
1453
+ * @generated from enum value: SAFETY_LEVEL_VERIFIED = 1;
1315
1454
  */
1316
- offerer: string;
1455
+ VERIFIED = 1,
1317
1456
  /**
1318
- * @generated from field: string order_hash = 4;
1457
+ * @generated from enum value: SAFETY_LEVEL_MEDIUM_WARNING = 2;
1319
1458
  */
1320
- orderHash: string;
1459
+ MEDIUM_WARNING = 2,
1321
1460
  /**
1322
- * @generated from field: data.v1.Token input_token = 5;
1461
+ * @generated from enum value: SAFETY_LEVEL_STRONG_WARNING = 3;
1323
1462
  */
1324
- inputToken?: Token;
1463
+ STRONG_WARNING = 3,
1325
1464
  /**
1326
- * @generated from field: data.v1.Amount input_token_amount = 6;
1465
+ * @generated from enum value: SAFETY_LEVEL_BLOCKED = 4;
1327
1466
  */
1328
- inputTokenAmount?: Amount;
1467
+ BLOCKED = 4
1468
+ }
1469
+ /**
1470
+ * Describes the enum data.v1.SafetyLevel.
1471
+ */
1472
+ export declare const SafetyLevelSchema: GenEnum<SafetyLevel>;
1473
+ /**
1474
+ * @generated from enum data.v1.TokenReportEventType
1475
+ */
1476
+ export declare enum TokenReportEventType {
1329
1477
  /**
1330
- * @generated from field: data.v1.Token output_token = 7;
1478
+ * @generated from enum value: TOKEN_REPORT_EVENT_TYPE_UNSPECIFIED = 0;
1331
1479
  */
1332
- outputToken?: Token;
1480
+ UNSPECIFIED = 0,
1333
1481
  /**
1334
- * @generated from field: data.v1.Amount output_token_amount = 8;
1482
+ * @generated from enum value: TOKEN_REPORT_EVENT_TYPE_FALSE_POSITIVE = 1;
1335
1483
  */
1336
- outputTokenAmount?: Amount;
1484
+ FALSE_POSITIVE = 1,
1337
1485
  /**
1338
- * @generated from field: uint64 expiry_millis = 9;
1486
+ * @generated from enum value: TOKEN_REPORT_EVENT_TYPE_FALSE_NEGATIVE = 2;
1339
1487
  */
1340
- expiryMillis: bigint;
1488
+ FALSE_NEGATIVE = 2
1489
+ }
1490
+ /**
1491
+ * Describes the enum data.v1.TokenReportEventType.
1492
+ */
1493
+ export declare const TokenReportEventTypeSchema: GenEnum<TokenReportEventType>;
1494
+ /**
1495
+ * @generated from enum data.v1.Direction
1496
+ */
1497
+ export declare enum Direction {
1341
1498
  /**
1342
- * @generated from field: string encoded_order = 10;
1499
+ * @generated from enum value: DIRECTION_SELF = 0;
1343
1500
  */
1344
- encodedOrder: string;
1501
+ SELF = 0,
1345
1502
  /**
1346
- * @generated from field: data.v1.UniswapXOrderType order_type = 11;
1503
+ * @generated from enum value: DIRECTION_RECEIVE = 1;
1347
1504
  */
1348
- orderType: UniswapXOrderType;
1505
+ RECEIVE = 1,
1349
1506
  /**
1350
- * @generated from field: data.v1.UniswapXTransactionStatus status = 12;
1507
+ * @generated from enum value: DIRECTION_SEND = 2;
1351
1508
  */
1352
- status: UniswapXTransactionStatus;
1353
- constructor(data?: PartialMessage<UniswapXTransaction>);
1354
- static readonly runtime: typeof proto3;
1355
- static readonly typeName = "data.v1.UniswapXTransaction";
1356
- static readonly fields: FieldList;
1357
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UniswapXTransaction;
1358
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UniswapXTransaction;
1359
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UniswapXTransaction;
1360
- static equals(a: UniswapXTransaction | PlainMessage<UniswapXTransaction> | undefined, b: UniswapXTransaction | PlainMessage<UniswapXTransaction> | undefined): boolean;
1509
+ SEND = 2
1361
1510
  }
1362
1511
  /**
1363
- * @generated from message data.v1.FiatOnRampTransaction
1512
+ * Describes the enum data.v1.Direction.
1364
1513
  */
1365
- export declare class FiatOnRampTransaction extends Message<FiatOnRampTransaction> {
1366
- /**
1367
- * @generated from field: uint32 chain_id = 1;
1368
- */
1369
- chainId: number;
1370
- /**
1371
- * @generated from field: uint64 timestamp_millis = 2;
1372
- */
1373
- timestampMillis: bigint;
1514
+ export declare const DirectionSchema: GenEnum<Direction>;
1515
+ /**
1516
+ * @generated from enum data.v1.OnChainTransactionLabel
1517
+ */
1518
+ export declare enum OnChainTransactionLabel {
1374
1519
  /**
1375
- * @generated from field: string wallet_address = 3;
1520
+ * @generated from enum value: ON_CHAIN_TRANSACTION_LABEL_UNKNOWN = 0;
1376
1521
  */
1377
- walletAddress: string;
1522
+ UNKNOWN = 0,
1378
1523
  /**
1379
- * @generated from field: data.v1.Token token = 4;
1524
+ * @generated from enum value: ON_CHAIN_TRANSACTION_LABEL_APPROVE = 1;
1380
1525
  */
1381
- token?: Token;
1526
+ APPROVE = 1,
1382
1527
  /**
1383
- * @generated from field: data.v1.Amount token_amount = 5;
1528
+ * @generated from enum value: ON_CHAIN_TRANSACTION_LABEL_BORROW = 2;
1384
1529
  */
1385
- tokenAmount?: Amount;
1530
+ BORROW = 2,
1386
1531
  /**
1387
- * @generated from field: string fiat_currency = 6;
1532
+ * @generated from enum value: ON_CHAIN_TRANSACTION_LABEL_BRIDGE = 3;
1388
1533
  */
1389
- fiatCurrency: string;
1534
+ BRIDGE = 3,
1390
1535
  /**
1391
- * @generated from field: double fiat_amount = 7;
1536
+ * @generated from enum value: ON_CHAIN_TRANSACTION_LABEL_CANCEL = 4;
1392
1537
  */
1393
- fiatAmount: number;
1538
+ CANCEL = 4,
1394
1539
  /**
1395
- * @generated from field: data.v1.OnRampServiceProvider service_provider = 8;
1540
+ * @generated from enum value: ON_CHAIN_TRANSACTION_LABEL_CLAIM = 5;
1396
1541
  */
1397
- serviceProvider?: OnRampServiceProvider;
1542
+ CLAIM = 5,
1398
1543
  /**
1399
- * @generated from field: string transaction_reference_id = 9;
1544
+ * @generated from enum value: ON_CHAIN_TRANSACTION_LABEL_DEPLOY = 6;
1400
1545
  */
1401
- transactionReferenceId: string;
1546
+ DEPLOY = 6,
1402
1547
  /**
1403
- * @generated from field: string external_session_id = 10;
1548
+ * @generated from enum value: ON_CHAIN_TRANSACTION_LABEL_EXECUTE = 7;
1404
1549
  */
1405
- externalSessionId: string;
1550
+ EXECUTE = 7,
1406
1551
  /**
1407
- * @generated from field: double provider_fee = 11;
1552
+ * @generated from enum value: ON_CHAIN_TRANSACTION_LABEL_LEND = 8;
1408
1553
  */
1409
- providerFee: number;
1554
+ LEND = 8,
1410
1555
  /**
1411
- * @generated from field: double total_fee = 12;
1556
+ * @generated from enum value: ON_CHAIN_TRANSACTION_LABEL_MINT = 9;
1412
1557
  */
1413
- totalFee: number;
1558
+ MINT = 9,
1414
1559
  /**
1415
- * @generated from field: data.v1.FiatOnRampTransactionStatus status = 13;
1560
+ * @generated from enum value: ON_CHAIN_TRANSACTION_LABEL_FIAT_ON_RAMP = 10;
1416
1561
  */
1417
- status: FiatOnRampTransactionStatus;
1562
+ FIAT_ON_RAMP = 10,
1418
1563
  /**
1419
- * @generated from field: string transaction_hash = 14;
1564
+ * @generated from enum value: ON_CHAIN_TRANSACTION_LABEL_RECEIVE = 11;
1420
1565
  */
1421
- transactionHash: string;
1566
+ RECEIVE = 11,
1422
1567
  /**
1423
- * @generated from field: data.v1.TransactionFee transaction_fee = 15;
1568
+ * @generated from enum value: ON_CHAIN_TRANSACTION_LABEL_REPAY = 12;
1424
1569
  */
1425
- transactionFee?: TransactionFee;
1426
- constructor(data?: PartialMessage<FiatOnRampTransaction>);
1427
- static readonly runtime: typeof proto3;
1428
- static readonly typeName = "data.v1.FiatOnRampTransaction";
1429
- static readonly fields: FieldList;
1430
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): FiatOnRampTransaction;
1431
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): FiatOnRampTransaction;
1432
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): FiatOnRampTransaction;
1433
- static equals(a: FiatOnRampTransaction | PlainMessage<FiatOnRampTransaction> | undefined, b: FiatOnRampTransaction | PlainMessage<FiatOnRampTransaction> | undefined): boolean;
1434
- }
1435
- /**
1436
- * @generated from message data.v1.OnRampServiceProvider
1437
- */
1438
- export declare class OnRampServiceProvider extends Message<OnRampServiceProvider> {
1570
+ REPAY = 12,
1439
1571
  /**
1440
- * @generated from field: string service_provider = 1;
1572
+ * @generated from enum value: ON_CHAIN_TRANSACTION_LABEL_SEND = 13;
1441
1573
  */
1442
- serviceProvider: string;
1574
+ SEND = 13,
1443
1575
  /**
1444
- * @generated from field: string name = 2;
1576
+ * @generated from enum value: ON_CHAIN_TRANSACTION_LABEL_STAKE = 14;
1445
1577
  */
1446
- name: string;
1578
+ STAKE = 14,
1447
1579
  /**
1448
- * @generated from field: string url = 3;
1580
+ * @generated from enum value: ON_CHAIN_TRANSACTION_LABEL_SWAP = 15;
1449
1581
  */
1450
- url: string;
1582
+ SWAP = 15,
1451
1583
  /**
1452
- * @generated from field: string logo_light_url = 4;
1584
+ * @generated from enum value: ON_CHAIN_TRANSACTION_LABEL_UNISWAP_X = 16;
1453
1585
  */
1454
- logoLightUrl: string;
1586
+ UNISWAP_X = 16,
1455
1587
  /**
1456
- * @generated from field: string logo_dark_url = 5;
1588
+ * @generated from enum value: ON_CHAIN_TRANSACTION_LABEL_TRANSFER = 17;
1457
1589
  */
1458
- logoDarkUrl: string;
1590
+ TRANSFER = 17,
1459
1591
  /**
1460
- * @generated from field: string support_url = 6;
1592
+ * @generated from enum value: ON_CHAIN_TRANSACTION_LABEL_UNSTAKE = 18;
1461
1593
  */
1462
- supportUrl: string;
1463
- constructor(data?: PartialMessage<OnRampServiceProvider>);
1464
- static readonly runtime: typeof proto3;
1465
- static readonly typeName = "data.v1.OnRampServiceProvider";
1466
- static readonly fields: FieldList;
1467
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): OnRampServiceProvider;
1468
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): OnRampServiceProvider;
1469
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): OnRampServiceProvider;
1470
- static equals(a: OnRampServiceProvider | PlainMessage<OnRampServiceProvider> | undefined, b: OnRampServiceProvider | PlainMessage<OnRampServiceProvider> | undefined): boolean;
1471
- }
1472
- /**
1473
- * @generated from message data.v1.PlanTransaction
1474
- */
1475
- export declare class PlanTransaction extends Message<PlanTransaction> {
1594
+ UNSTAKE = 18,
1476
1595
  /**
1477
- * @generated from field: string plan_id = 1;
1596
+ * @generated from enum value: ON_CHAIN_TRANSACTION_LABEL_WITHDRAW = 19;
1478
1597
  */
1479
- planId: string;
1598
+ WITHDRAW = 19,
1480
1599
  /**
1481
- * @generated from field: uint64 timestamp_millis = 2;
1600
+ * @generated from enum value: ON_CHAIN_TRANSACTION_LABEL_WRAP = 20;
1482
1601
  */
1483
- timestampMillis: bigint;
1602
+ WRAP = 20,
1484
1603
  /**
1485
- * @generated from field: data.v1.PlanStatus status = 3;
1604
+ * @generated from enum value: ON_CHAIN_TRANSACTION_LABEL_UNWRAP = 21;
1486
1605
  */
1487
- status: PlanStatus;
1606
+ UNWRAP = 21,
1488
1607
  /**
1489
- * @generated from field: repeated data.v1.PlanActivity activities = 4;
1608
+ * @generated from enum value: ON_CHAIN_TRANSACTION_LABEL_DEPOSIT = 22;
1490
1609
  */
1491
- activities: PlanActivity[];
1610
+ DEPOSIT = 22,
1492
1611
  /**
1493
- * @generated from field: repeated data.v1.TokenAmount assets_in = 5;
1612
+ * @generated from enum value: ON_CHAIN_TRANSACTION_LABEL_CREATE_PAIR = 23;
1494
1613
  */
1495
- assetsIn: TokenAmount[];
1614
+ CREATE_PAIR = 23,
1496
1615
  /**
1497
- * @generated from field: repeated data.v1.TokenAmount assets_out = 6;
1616
+ * @generated from enum value: ON_CHAIN_TRANSACTION_LABEL_CREATE_POOL = 24;
1498
1617
  */
1499
- assetsOut: TokenAmount[];
1618
+ CREATE_POOL = 24,
1500
1619
  /**
1501
- * @generated from field: uint64 created_at_millis = 7;
1620
+ * @generated from enum value: ON_CHAIN_TRANSACTION_LABEL_INCREASE_LIQUIDITY = 25;
1502
1621
  */
1503
- createdAtMillis: bigint;
1622
+ INCREASE_LIQUIDITY = 25,
1504
1623
  /**
1505
- * @generated from field: optional uint64 updated_at_millis = 8;
1624
+ * @generated from enum value: ON_CHAIN_TRANSACTION_LABEL_DECREASE_LIQUIDITY = 26;
1506
1625
  */
1507
- updatedAtMillis?: bigint;
1626
+ DECREASE_LIQUIDITY = 26,
1508
1627
  /**
1509
- * @generated from field: optional uint64 completed_at_millis = 9;
1628
+ * @generated from enum value: ON_CHAIN_TRANSACTION_LABEL_AUCTION_SUBMIT_BID = 27;
1510
1629
  */
1511
- completedAtMillis?: bigint;
1630
+ AUCTION_SUBMIT_BID = 27,
1512
1631
  /**
1513
- * @generated from field: optional uint64 duration_millis = 10;
1632
+ * @generated from enum value: ON_CHAIN_TRANSACTION_LABEL_AUCTION_CLAIM_TOKENS = 28;
1514
1633
  */
1515
- durationMillis?: bigint;
1634
+ AUCTION_CLAIM_TOKENS = 28,
1516
1635
  /**
1517
- * @generated from field: string swapper = 11;
1636
+ * @generated from enum value: ON_CHAIN_TRANSACTION_LABEL_AUCTION_EXIT_BID = 29;
1518
1637
  */
1519
- swapper: string;
1638
+ AUCTION_EXIT_BID = 29,
1520
1639
  /**
1521
- * @generated from field: string recipient = 12;
1640
+ * @generated from enum value: ON_CHAIN_TRANSACTION_LABEL_AUCTION_EXIT_PARTIALLY_FILLED_BID = 30;
1522
1641
  */
1523
- recipient: string;
1642
+ AUCTION_EXIT_PARTIALLY_FILLED_BID = 30,
1524
1643
  /**
1525
- * @generated from field: repeated string transaction_hashes = 13;
1644
+ * @generated from enum value: ON_CHAIN_TRANSACTION_LABEL_AUCTION_CLAIM_TOKENS_BATCHED = 31;
1526
1645
  */
1527
- transactionHashes: string[];
1646
+ AUCTION_CLAIM_TOKENS_BATCHED = 31,
1528
1647
  /**
1529
- * @generated from field: optional string gas_fee = 14;
1648
+ * @generated from enum value: ON_CHAIN_TRANSACTION_LABEL_VAULT_DEPOSIT = 32;
1530
1649
  */
1531
- gasFee?: string;
1650
+ VAULT_DEPOSIT = 32,
1532
1651
  /**
1533
- * @generated from field: optional uint64 last_user_action_at_millis = 15;
1652
+ * @generated from enum value: ON_CHAIN_TRANSACTION_LABEL_VAULT_WITHDRAW = 33;
1534
1653
  */
1535
- lastUserActionAtMillis?: bigint;
1654
+ VAULT_WITHDRAW = 33,
1536
1655
  /**
1537
- * Set when the plan is an Earn vault deposit/withdraw flow. Lets clients
1538
- * label the plan with Earn intent instead of generic swap language.
1539
- *
1540
- * @generated from field: optional data.v1.EarnPlanMetadata earn_metadata = 16;
1656
+ * @generated from enum value: ON_CHAIN_TRANSACTION_LABEL_VAULT_TRANSFER_IN = 34;
1541
1657
  */
1542
- earnMetadata?: EarnPlanMetadata;
1658
+ VAULT_TRANSFER_IN = 34,
1543
1659
  /**
1544
- * Set when the plan is a margin position action. Lets clients label the
1545
- * plan with the margin action instead of generic swap language.
1546
- *
1547
- * @generated from field: optional data.v1.MarginPlanMetadata margin_metadata = 17;
1660
+ * @generated from enum value: ON_CHAIN_TRANSACTION_LABEL_VAULT_TRANSFER_OUT = 35;
1548
1661
  */
1549
- marginMetadata?: MarginPlanMetadata;
1550
- constructor(data?: PartialMessage<PlanTransaction>);
1551
- static readonly runtime: typeof proto3;
1552
- static readonly typeName = "data.v1.PlanTransaction";
1553
- static readonly fields: FieldList;
1554
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PlanTransaction;
1555
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PlanTransaction;
1556
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PlanTransaction;
1557
- static equals(a: PlanTransaction | PlainMessage<PlanTransaction> | undefined, b: PlanTransaction | PlainMessage<PlanTransaction> | undefined): boolean;
1662
+ VAULT_TRANSFER_OUT = 35
1558
1663
  }
1559
1664
  /**
1560
- * Plan-level margin action metadata for margin position flows.
1561
- *
1562
- * @generated from message data.v1.MarginPlanMetadata
1665
+ * Describes the enum data.v1.OnChainTransactionLabel.
1563
1666
  */
1564
- export declare class MarginPlanMetadata extends Message<MarginPlanMetadata> {
1565
- /**
1566
- * @generated from field: data.v1.MarginPlanAction action = 1;
1567
- */
1568
- action: MarginPlanAction;
1667
+ export declare const OnChainTransactionLabelSchema: GenEnum<OnChainTransactionLabel>;
1668
+ /**
1669
+ * @generated from enum data.v1.TransactionTypeFilter
1670
+ */
1671
+ export declare enum TransactionTypeFilter {
1569
1672
  /**
1570
- * `<collateral>-<debt>-<venue>`; a display key, not a parse target.
1673
+ * All types (no filter)
1571
1674
  *
1572
- * @generated from field: string market_key = 2;
1573
- */
1574
- marketKey: string;
1575
- /**
1576
- * @generated from field: data.v1.MarginPlanVenue venue = 3;
1675
+ * @generated from enum value: TRANSACTION_TYPE_FILTER_UNSPECIFIED = 0;
1577
1676
  */
1578
- venue: MarginPlanVenue;
1677
+ UNSPECIFIED = 0,
1579
1678
  /**
1580
- * @generated from field: string collateral_token = 4;
1679
+ * Swaps (includes UniswapX, excludes wrap/unwrap)
1680
+ *
1681
+ * @generated from enum value: TRANSACTION_TYPE_FILTER_SWAP = 1;
1581
1682
  */
1582
- collateralToken: string;
1683
+ SWAP = 1,
1583
1684
  /**
1584
- * @generated from field: string debt_token = 5;
1685
+ * Sends
1686
+ *
1687
+ * @generated from enum value: TRANSACTION_TYPE_FILTER_SEND = 2;
1585
1688
  */
1586
- debtToken: string;
1587
- constructor(data?: PartialMessage<MarginPlanMetadata>);
1588
- static readonly runtime: typeof proto3;
1589
- static readonly typeName = "data.v1.MarginPlanMetadata";
1590
- static readonly fields: FieldList;
1591
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MarginPlanMetadata;
1592
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MarginPlanMetadata;
1593
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MarginPlanMetadata;
1594
- static equals(a: MarginPlanMetadata | PlainMessage<MarginPlanMetadata> | undefined, b: MarginPlanMetadata | PlainMessage<MarginPlanMetadata> | undefined): boolean;
1595
- }
1596
- /**
1597
- * Plan-level Earn intent metadata for chained Earn vault flows.
1598
- *
1599
- * @generated from message data.v1.EarnPlanMetadata
1600
- */
1601
- export declare class EarnPlanMetadata extends Message<EarnPlanMetadata> {
1689
+ SEND = 2,
1602
1690
  /**
1603
- * @generated from field: data.v1.EarnPlanAction action = 1;
1691
+ * Receives
1692
+ *
1693
+ * @generated from enum value: TRANSACTION_TYPE_FILTER_RECEIVE = 3;
1604
1694
  */
1605
- action: EarnPlanAction;
1695
+ RECEIVE = 3,
1606
1696
  /**
1607
- * Vault share token address; unset when not derivable.
1697
+ * Wraps (includes both wrap and unwrap)
1608
1698
  *
1609
- * @generated from field: optional string vault = 2;
1699
+ * @generated from enum value: TRANSACTION_TYPE_FILTER_WRAP = 4;
1610
1700
  */
1611
- vault?: string;
1701
+ WRAP = 4,
1612
1702
  /**
1613
- * @generated from field: optional uint32 chain_id = 3;
1703
+ * Approvals
1704
+ *
1705
+ * @generated from enum value: TRANSACTION_TYPE_FILTER_APPROVE = 5;
1614
1706
  */
1615
- chainId?: number;
1616
- constructor(data?: PartialMessage<EarnPlanMetadata>);
1617
- static readonly runtime: typeof proto3;
1618
- static readonly typeName = "data.v1.EarnPlanMetadata";
1619
- static readonly fields: FieldList;
1620
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EarnPlanMetadata;
1621
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EarnPlanMetadata;
1622
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EarnPlanMetadata;
1623
- static equals(a: EarnPlanMetadata | PlainMessage<EarnPlanMetadata> | undefined, b: EarnPlanMetadata | PlainMessage<EarnPlanMetadata> | undefined): boolean;
1624
- }
1625
- /**
1626
- * @generated from message data.v1.PlanActivity
1627
- */
1628
- export declare class PlanActivity extends Message<PlanActivity> {
1707
+ APPROVE = 5,
1629
1708
  /**
1630
- * @generated from field: uint32 step_index = 1;
1709
+ * Added liquidity (Uniswap deposits)
1710
+ *
1711
+ * @generated from enum value: TRANSACTION_TYPE_FILTER_INCREASE_LIQUIDITY = 6;
1631
1712
  */
1632
- stepIndex: number;
1713
+ INCREASE_LIQUIDITY = 6,
1633
1714
  /**
1634
- * @generated from field: data.v1.SwapType swap_type = 2;
1715
+ * Removed liquidity (Uniswap withdrawals)
1716
+ *
1717
+ * @generated from enum value: TRANSACTION_TYPE_FILTER_DECREASE_LIQUIDITY = 7;
1635
1718
  */
1636
- swapType: SwapType;
1719
+ DECREASE_LIQUIDITY = 7,
1637
1720
  /**
1638
- * @generated from field: optional data.v1.Token token_in = 3;
1721
+ * Claimed fees/rewards
1722
+ *
1723
+ * @generated from enum value: TRANSACTION_TYPE_FILTER_CLAIM = 8;
1639
1724
  */
1640
- tokenIn?: Token;
1725
+ CLAIM = 8,
1641
1726
  /**
1642
- * @generated from field: optional data.v1.Amount token_in_amount = 4;
1727
+ * Mints
1728
+ *
1729
+ * @generated from enum value: TRANSACTION_TYPE_FILTER_MINT = 9;
1643
1730
  */
1644
- tokenInAmount?: Amount;
1731
+ MINT = 9,
1645
1732
  /**
1646
- * @generated from field: optional data.v1.Token token_out = 5;
1733
+ * Pool creations (includes CREATE_PAIR and CREATE_POOL)
1734
+ *
1735
+ * @generated from enum value: TRANSACTION_TYPE_FILTER_CREATE_POOL = 10;
1647
1736
  */
1648
- tokenOut?: Token;
1737
+ CREATE_POOL = 10,
1649
1738
  /**
1650
- * @generated from field: optional data.v1.Amount token_out_amount = 6;
1739
+ * Limit orders (UniswapX only)
1740
+ *
1741
+ * @generated from enum value: TRANSACTION_TYPE_FILTER_LIMIT_ORDER = 11;
1651
1742
  */
1652
- tokenOutAmount?: Amount;
1743
+ LIMIT_ORDER = 11,
1653
1744
  /**
1654
- * @generated from field: data.v1.PlanStepStatus status = 7;
1745
+ * Protocol withdrawals (e.g. lending/staking withdrawals)
1746
+ *
1747
+ * @generated from enum value: TRANSACTION_TYPE_FILTER_WITHDRAW = 12;
1655
1748
  */
1656
- status: PlanStepStatus;
1749
+ WITHDRAW = 12,
1657
1750
  /**
1658
- * @generated from field: optional string transaction_hash = 8;
1751
+ * Earn vault deposits
1752
+ *
1753
+ * @generated from enum value: TRANSACTION_TYPE_FILTER_VAULT_DEPOSIT = 13;
1659
1754
  */
1660
- transactionHash?: string;
1755
+ VAULT_DEPOSIT = 13,
1661
1756
  /**
1662
- * @generated from field: optional uint32 chain_id = 9;
1757
+ * Earn vault withdrawals
1758
+ *
1759
+ * @generated from enum value: TRANSACTION_TYPE_FILTER_VAULT_WITHDRAW = 14;
1663
1760
  */
1664
- chainId?: number;
1761
+ VAULT_WITHDRAW = 14,
1665
1762
  /**
1666
- * @generated from field: optional string gas_fee = 10;
1763
+ * Earn vault share transfers (includes IN and OUT)
1764
+ *
1765
+ * @generated from enum value: TRANSACTION_TYPE_FILTER_VAULT_TRANSFER = 15;
1667
1766
  */
1668
- gasFee?: string;
1669
- constructor(data?: PartialMessage<PlanActivity>);
1670
- static readonly runtime: typeof proto3;
1671
- static readonly typeName = "data.v1.PlanActivity";
1672
- static readonly fields: FieldList;
1673
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PlanActivity;
1674
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PlanActivity;
1675
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PlanActivity;
1676
- static equals(a: PlanActivity | PlainMessage<PlanActivity> | undefined, b: PlanActivity | PlainMessage<PlanActivity> | undefined): boolean;
1767
+ VAULT_TRANSFER = 15
1677
1768
  }
1678
1769
  /**
1679
- * @generated from message data.v1.TokenAmount
1770
+ * Describes the enum data.v1.TransactionTypeFilter.
1680
1771
  */
1681
- export declare class TokenAmount extends Message<TokenAmount> {
1682
- /**
1683
- * @generated from field: data.v1.Token token = 1;
1684
- */
1685
- token?: Token;
1686
- /**
1687
- * @generated from field: data.v1.Amount amount = 2;
1688
- */
1689
- amount?: Amount;
1690
- constructor(data?: PartialMessage<TokenAmount>);
1691
- static readonly runtime: typeof proto3;
1692
- static readonly typeName = "data.v1.TokenAmount";
1693
- static readonly fields: FieldList;
1694
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TokenAmount;
1695
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TokenAmount;
1696
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TokenAmount;
1697
- static equals(a: TokenAmount | PlainMessage<TokenAmount> | undefined, b: TokenAmount | PlainMessage<TokenAmount> | undefined): boolean;
1698
- }
1772
+ export declare const TransactionTypeFilterSchema: GenEnum<TransactionTypeFilter>;
1699
1773
  /**
1700
- * @generated from message data.v1.TransactionFee
1774
+ * @generated from enum data.v1.OnChainTransactionStatus
1701
1775
  */
1702
- export declare class TransactionFee extends Message<TransactionFee> {
1703
- /**
1704
- * @generated from field: data.v1.Amount amount = 1;
1705
- */
1706
- amount?: Amount;
1776
+ export declare enum OnChainTransactionStatus {
1707
1777
  /**
1708
- * @generated from field: string address = 2;
1778
+ * @generated from enum value: ON_CHAIN_TRANSACTION_STATUS_PENDING = 0;
1709
1779
  */
1710
- address: string;
1780
+ PENDING = 0,
1711
1781
  /**
1712
- * @generated from field: string symbol = 3;
1782
+ * @generated from enum value: ON_CHAIN_TRANSACTION_STATUS_CONFIRMED = 1;
1713
1783
  */
1714
- symbol: string;
1784
+ CONFIRMED = 1,
1715
1785
  /**
1716
- * @generated from field: uint32 decimals = 4;
1786
+ * @generated from enum value: ON_CHAIN_TRANSACTION_STATUS_FAILED = 2;
1717
1787
  */
1718
- decimals: number;
1719
- constructor(data?: PartialMessage<TransactionFee>);
1720
- static readonly runtime: typeof proto3;
1721
- static readonly typeName = "data.v1.TransactionFee";
1722
- static readonly fields: FieldList;
1723
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TransactionFee;
1724
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TransactionFee;
1725
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TransactionFee;
1726
- static equals(a: TransactionFee | PlainMessage<TransactionFee> | undefined, b: TransactionFee | PlainMessage<TransactionFee> | undefined): boolean;
1788
+ FAILED = 2
1727
1789
  }
1728
1790
  /**
1729
- * @generated from message data.v1.TimestampedValue
1791
+ * Describes the enum data.v1.OnChainTransactionStatus.
1730
1792
  */
1731
- export declare class TimestampedValue extends Message<TimestampedValue> {
1732
- /**
1733
- * @generated from field: uint64 timestamp = 1;
1734
- */
1735
- timestamp: bigint;
1736
- /**
1737
- * @generated from field: double value = 2;
1738
- */
1739
- value: number;
1740
- constructor(data?: PartialMessage<TimestampedValue>);
1741
- static readonly runtime: typeof proto3;
1742
- static readonly typeName = "data.v1.TimestampedValue";
1743
- static readonly fields: FieldList;
1744
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TimestampedValue;
1745
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TimestampedValue;
1746
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TimestampedValue;
1747
- static equals(a: TimestampedValue | PlainMessage<TimestampedValue> | undefined, b: TimestampedValue | PlainMessage<TimestampedValue> | undefined): boolean;
1748
- }
1793
+ export declare const OnChainTransactionStatusSchema: GenEnum<OnChainTransactionStatus>;
1749
1794
  /**
1750
- * @generated from message data.v1.TokenStats
1795
+ * @generated from enum data.v1.UniswapXOrderType
1751
1796
  */
1752
- export declare class TokenStats extends Message<TokenStats> {
1797
+ export declare enum UniswapXOrderType {
1753
1798
  /**
1754
- * @generated from field: optional double fdv = 1;
1799
+ * @generated from enum value: UNISWAP_X_ORDER_TYPE_DUTCH = 0;
1755
1800
  */
1756
- fdv?: number;
1801
+ DUTCH = 0,
1757
1802
  /**
1758
- * @generated from field: optional double volume_1h = 2;
1803
+ * @generated from enum value: UNISWAP_X_ORDER_TYPE_LIMIT = 1;
1759
1804
  */
1760
- volume1h?: number;
1805
+ LIMIT = 1,
1761
1806
  /**
1762
- * @generated from field: optional double volume_1d = 3;
1807
+ * @generated from enum value: UNISWAP_X_ORDER_TYPE_DUTCH_V2 = 2;
1763
1808
  */
1764
- volume1d?: number;
1809
+ DUTCH_V2 = 2,
1765
1810
  /**
1766
- * @generated from field: optional double volume_7d = 4;
1811
+ * @generated from enum value: UNISWAP_X_ORDER_TYPE_PRIORITY = 3;
1767
1812
  */
1768
- volume7d?: number;
1813
+ PRIORITY = 3
1814
+ }
1815
+ /**
1816
+ * Describes the enum data.v1.UniswapXOrderType.
1817
+ */
1818
+ export declare const UniswapXOrderTypeSchema: GenEnum<UniswapXOrderType>;
1819
+ /**
1820
+ * @generated from enum data.v1.UniswapXTransactionStatus
1821
+ */
1822
+ export declare enum UniswapXTransactionStatus {
1769
1823
  /**
1770
- * @generated from field: optional double volume_30d = 5;
1824
+ * @generated from enum value: UNISWAP_X_TRANSACTION_STATUS_OPEN = 0;
1771
1825
  */
1772
- volume30d?: number;
1826
+ OPEN = 0,
1773
1827
  /**
1774
- * @generated from field: optional double volume_1y = 6;
1828
+ * @generated from enum value: UNISWAP_X_TRANSACTION_STATUS_EXPIRED = 1;
1775
1829
  */
1776
- volume1y?: number;
1830
+ EXPIRED = 1,
1777
1831
  /**
1778
- * @generated from field: optional float price = 7;
1832
+ * @generated from enum value: UNISWAP_X_TRANSACTION_STATUS_ERROR = 2;
1779
1833
  */
1780
- price?: number;
1834
+ ERROR = 2,
1781
1835
  /**
1782
- * @generated from field: optional float price_change_1h = 8;
1836
+ * @generated from enum value: UNISWAP_X_TRANSACTION_STATUS_INSUFFICIENT_FUNDS = 3;
1783
1837
  */
1784
- priceChange1h?: number;
1838
+ INSUFFICIENT_FUNDS = 3,
1785
1839
  /**
1786
- * @generated from field: optional float price_change_1d = 9;
1840
+ * @generated from enum value: UNISWAP_X_TRANSACTION_STATUS_FILLED = 4;
1787
1841
  */
1788
- priceChange1d?: number;
1842
+ FILLED = 4,
1789
1843
  /**
1790
- * @generated from field: repeated data.v1.TimestampedValue price_history_1d = 10;
1844
+ * @generated from enum value: UNISWAP_X_TRANSACTION_STATUS_CANCELLED = 5;
1791
1845
  */
1792
- priceHistory1d: TimestampedValue[];
1793
- constructor(data?: PartialMessage<TokenStats>);
1794
- static readonly runtime: typeof proto3;
1795
- static readonly typeName = "data.v1.TokenStats";
1796
- static readonly fields: FieldList;
1797
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TokenStats;
1798
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TokenStats;
1799
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TokenStats;
1800
- static equals(a: TokenStats | PlainMessage<TokenStats> | undefined, b: TokenStats | PlainMessage<TokenStats> | undefined): boolean;
1846
+ CANCELLED = 5
1801
1847
  }
1802
1848
  /**
1803
- * @generated from message data.v1.Paymaster
1849
+ * Describes the enum data.v1.UniswapXTransactionStatus.
1804
1850
  */
1805
- export declare class Paymaster extends Message<Paymaster> {
1806
- /**
1807
- * @generated from field: string address = 1;
1808
- */
1809
- address: string;
1810
- /**
1811
- * @generated from field: optional string name = 2;
1812
- */
1813
- name?: string;
1814
- constructor(data?: PartialMessage<Paymaster>);
1815
- static readonly runtime: typeof proto3;
1816
- static readonly typeName = "data.v1.Paymaster";
1817
- static readonly fields: FieldList;
1818
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Paymaster;
1819
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Paymaster;
1820
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Paymaster;
1821
- static equals(a: Paymaster | PlainMessage<Paymaster> | undefined, b: Paymaster | PlainMessage<Paymaster> | undefined): boolean;
1822
- }
1851
+ export declare const UniswapXTransactionStatusSchema: GenEnum<UniswapXTransactionStatus>;
1823
1852
  /**
1824
- * Sponsor identity for a gas-sponsored transaction, resolved from the
1825
- * internal Sponsorship service (platform-service). Complements Paymaster,
1826
- * which only carries the on-chain paymaster contract address.
1827
- *
1828
- * @generated from message data.v1.SponsorshipMetadata
1853
+ * @generated from enum data.v1.FiatOnRampTransactionStatus
1829
1854
  */
1830
- export declare class SponsorshipMetadata extends Message<SponsorshipMetadata> {
1855
+ export declare enum FiatOnRampTransactionStatus {
1831
1856
  /**
1832
- * @generated from field: string name = 1;
1857
+ * @generated from enum value: FIAT_ON_RAMP_TRANSACTION_STATUS_FAILED = 0;
1833
1858
  */
1834
- name: string;
1859
+ FAILED = 0,
1835
1860
  /**
1836
- * @generated from field: optional string logo_url = 2;
1861
+ * @generated from enum value: FIAT_ON_RAMP_TRANSACTION_STATUS_SETTLED = 1;
1862
+ */
1863
+ SETTLED = 1,
1864
+ /**
1865
+ * @generated from enum value: FIAT_ON_RAMP_TRANSACTION_STATUS_PENDING = 2;
1837
1866
  */
1838
- logoUrl?: string;
1839
- constructor(data?: PartialMessage<SponsorshipMetadata>);
1840
- static readonly runtime: typeof proto3;
1841
- static readonly typeName = "data.v1.SponsorshipMetadata";
1842
- static readonly fields: FieldList;
1843
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SponsorshipMetadata;
1844
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SponsorshipMetadata;
1845
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SponsorshipMetadata;
1846
- static equals(a: SponsorshipMetadata | PlainMessage<SponsorshipMetadata> | undefined, b: SponsorshipMetadata | PlainMessage<SponsorshipMetadata> | undefined): boolean;
1867
+ PENDING = 2
1847
1868
  }
1848
1869
  /**
1849
- * @generated from message data.v1.WalletProfitLoss
1870
+ * Describes the enum data.v1.FiatOnRampTransactionStatus.
1850
1871
  */
1851
- export declare class WalletProfitLoss extends Message<WalletProfitLoss> {
1852
- /**
1853
- * @generated from field: double net_invested_usd = 1;
1854
- */
1855
- netInvestedUsd: number;
1872
+ export declare const FiatOnRampTransactionStatusSchema: GenEnum<FiatOnRampTransactionStatus>;
1873
+ /**
1874
+ * @generated from enum data.v1.ProtectionResult
1875
+ */
1876
+ export declare enum ProtectionResult {
1856
1877
  /**
1857
- * @generated from field: double unrealized_return_usd = 2;
1878
+ * @generated from enum value: PROTECTION_RESULT_UNKNOWN = 0;
1858
1879
  */
1859
- unrealizedReturnUsd: number;
1880
+ UNKNOWN = 0,
1860
1881
  /**
1861
- * @generated from field: double unrealized_return_percent = 3;
1882
+ * @generated from enum value: PROTECTION_RESULT_BENIGN = 1;
1862
1883
  */
1863
- unrealizedReturnPercent: number;
1884
+ BENIGN = 1,
1864
1885
  /**
1865
- * @generated from field: double realized_return_usd = 4;
1886
+ * @generated from enum value: PROTECTION_RESULT_MALICIOUS = 2;
1866
1887
  */
1867
- realizedReturnUsd: number;
1888
+ MALICIOUS = 2,
1868
1889
  /**
1869
- * @generated from field: double total_return_usd = 5;
1890
+ * @generated from enum value: PROTECTION_RESULT_SPAM = 3;
1870
1891
  */
1871
- totalReturnUsd: number;
1892
+ SPAM = 3,
1872
1893
  /**
1873
- * @generated from field: double total_fee_usd = 6;
1894
+ * @generated from enum value: PROTECTION_RESULT_WARNING = 4;
1874
1895
  */
1875
- totalFeeUsd: number;
1876
- constructor(data?: PartialMessage<WalletProfitLoss>);
1877
- static readonly runtime: typeof proto3;
1878
- static readonly typeName = "data.v1.WalletProfitLoss";
1879
- static readonly fields: FieldList;
1880
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): WalletProfitLoss;
1881
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): WalletProfitLoss;
1882
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): WalletProfitLoss;
1883
- static equals(a: WalletProfitLoss | PlainMessage<WalletProfitLoss> | undefined, b: WalletProfitLoss | PlainMessage<WalletProfitLoss> | undefined): boolean;
1896
+ WARNING = 4
1884
1897
  }
1885
1898
  /**
1886
- * @generated from message data.v1.TokenProfitLoss
1899
+ * Describes the enum data.v1.ProtectionResult.
1887
1900
  */
1888
- export declare class TokenProfitLoss extends Message<TokenProfitLoss> {
1889
- /**
1890
- * @generated from field: data.v1.Token token = 1;
1891
- */
1892
- token?: Token;
1893
- /**
1894
- * @generated from field: double average_cost_usd = 2;
1895
- */
1896
- averageCostUsd: number;
1897
- /**
1898
- * @generated from field: double unrealized_return_usd = 3;
1899
- */
1900
- unrealizedReturnUsd: number;
1901
- /**
1902
- * @generated from field: double unrealized_return_percent = 4;
1903
- */
1904
- unrealizedReturnPercent: number;
1905
- constructor(data?: PartialMessage<TokenProfitLoss>);
1906
- static readonly runtime: typeof proto3;
1907
- static readonly typeName = "data.v1.TokenProfitLoss";
1908
- static readonly fields: FieldList;
1909
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TokenProfitLoss;
1910
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TokenProfitLoss;
1911
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TokenProfitLoss;
1912
- static equals(a: TokenProfitLoss | PlainMessage<TokenProfitLoss> | undefined, b: TokenProfitLoss | PlainMessage<TokenProfitLoss> | undefined): boolean;
1913
- }
1901
+ export declare const ProtectionResultSchema: GenEnum<ProtectionResult>;
1914
1902
  /**
1915
- * @generated from message data.v1.TokenDetailProfitLoss
1903
+ * @generated from enum data.v1.AttackType
1916
1904
  */
1917
- export declare class TokenDetailProfitLoss extends Message<TokenDetailProfitLoss> {
1918
- /**
1919
- * @generated from field: double average_cost_usd = 1;
1920
- */
1921
- averageCostUsd: number;
1922
- /**
1923
- * @generated from field: double one_day_return_usd = 2;
1924
- */
1925
- oneDayReturnUsd: number;
1926
- /**
1927
- * @generated from field: double one_day_return_percent = 3;
1928
- */
1929
- oneDayReturnPercent: number;
1905
+ export declare enum AttackType {
1930
1906
  /**
1931
- * @generated from field: double unrealized_return_usd = 4;
1907
+ * @generated from enum value: ATTACK_TYPE_UNKNOWN = 0;
1932
1908
  */
1933
- unrealizedReturnUsd: number;
1909
+ UNKNOWN = 0,
1934
1910
  /**
1935
- * @generated from field: double unrealized_return_percent = 5;
1911
+ * @generated from enum value: ATTACK_TYPE_AIRDROP_PATTERN = 1;
1936
1912
  */
1937
- unrealizedReturnPercent: number;
1913
+ AIRDROP_PATTERN = 1,
1938
1914
  /**
1939
- * @generated from field: double realized_return_usd = 6;
1915
+ * @generated from enum value: ATTACK_TYPE_DYNAMIC_ANALYSIS = 2;
1940
1916
  */
1941
- realizedReturnUsd: number;
1917
+ DYNAMIC_ANALYSIS = 2,
1942
1918
  /**
1943
- * @generated from field: double realized_return_percent = 7;
1919
+ * @generated from enum value: ATTACK_TYPE_HIGH_FEES = 3;
1944
1920
  */
1945
- realizedReturnPercent: number;
1946
- constructor(data?: PartialMessage<TokenDetailProfitLoss>);
1947
- static readonly runtime: typeof proto3;
1948
- static readonly typeName = "data.v1.TokenDetailProfitLoss";
1949
- static readonly fields: FieldList;
1950
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TokenDetailProfitLoss;
1951
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TokenDetailProfitLoss;
1952
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TokenDetailProfitLoss;
1953
- static equals(a: TokenDetailProfitLoss | PlainMessage<TokenDetailProfitLoss> | undefined, b: TokenDetailProfitLoss | PlainMessage<TokenDetailProfitLoss> | undefined): boolean;
1954
- }
1955
- /**
1956
- * Per-chain PnL within a multichain token group
1957
- *
1958
- * @generated from message data.v1.ChainTokenProfitLoss
1959
- */
1960
- export declare class ChainTokenProfitLoss extends Message<ChainTokenProfitLoss> {
1921
+ HIGH_FEES = 3,
1961
1922
  /**
1962
- * @generated from field: uint32 chain_id = 1;
1923
+ * @generated from enum value: ATTACK_TYPE_IMPERSONATOR = 4;
1963
1924
  */
1964
- chainId: number;
1925
+ IMPERSONATOR = 4,
1965
1926
  /**
1966
- * @generated from field: string token_address = 2;
1927
+ * @generated from enum value: ATTACK_TYPE_INORGANIC_VOLUME = 5;
1967
1928
  */
1968
- tokenAddress: string;
1929
+ INORGANIC_VOLUME = 5,
1969
1930
  /**
1970
- * @generated from field: double average_cost_usd = 3;
1931
+ * @generated from enum value: ATTACK_TYPE_KNOWN_MALICIOUS = 6;
1971
1932
  */
1972
- averageCostUsd: number;
1933
+ KNOWN_MALICIOUS = 6,
1973
1934
  /**
1974
- * @generated from field: double unrealized_return_usd = 4;
1935
+ * @generated from enum value: ATTACK_TYPE_METADATA = 7;
1975
1936
  */
1976
- unrealizedReturnUsd: number;
1937
+ METADATA = 7,
1977
1938
  /**
1978
- * @generated from field: double unrealized_return_percent = 5;
1939
+ * @generated from enum value: ATTACK_TYPE_RUGPULL = 8;
1979
1940
  */
1980
- unrealizedReturnPercent: number;
1981
- constructor(data?: PartialMessage<ChainTokenProfitLoss>);
1982
- static readonly runtime: typeof proto3;
1983
- static readonly typeName = "data.v1.ChainTokenProfitLoss";
1984
- static readonly fields: FieldList;
1985
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ChainTokenProfitLoss;
1986
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ChainTokenProfitLoss;
1987
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ChainTokenProfitLoss;
1988
- static equals(a: ChainTokenProfitLoss | PlainMessage<ChainTokenProfitLoss> | undefined, b: ChainTokenProfitLoss | PlainMessage<ChainTokenProfitLoss> | undefined): boolean;
1989
- }
1990
- /**
1991
- * A token aggregated across multiple chains with per-chain breakdown
1992
- *
1993
- * @generated from message data.v1.MultichainTokenProfitLoss
1994
- */
1995
- export declare class MultichainTokenProfitLoss extends Message<MultichainTokenProfitLoss> {
1941
+ RUGPULL = 8,
1996
1942
  /**
1997
- * @generated from field: string name = 1;
1943
+ * @generated from enum value: ATTACK_TYPE_HONEYPOT = 9;
1998
1944
  */
1999
- name: string;
1945
+ HONEYPOT = 9,
2000
1946
  /**
2001
- * @generated from field: string symbol = 2;
1947
+ * @generated from enum value: ATTACK_TYPE_SPAM_TEXT = 10;
2002
1948
  */
2003
- symbol: string;
1949
+ SPAM_TEXT = 10,
2004
1950
  /**
2005
- * @generated from field: string logo_url = 3;
1951
+ * @generated from enum value: ATTACK_TYPE_STATIC_CODE_SIGNATURE = 11;
2006
1952
  */
2007
- logoUrl: string;
1953
+ STATIC_CODE_SIGNATURE = 11,
2008
1954
  /**
2009
- * @generated from field: data.v1.TokenProfitLoss aggregated = 4;
1955
+ * @generated from enum value: ATTACK_TYPE_UNSTABLE_TOKEN_PRICE = 12;
2010
1956
  */
2011
- aggregated?: TokenProfitLoss;
1957
+ UNSTABLE_TOKEN_PRICE = 12,
2012
1958
  /**
2013
- * @generated from field: repeated data.v1.ChainTokenProfitLoss chain_breakdown = 5;
1959
+ * @generated from enum value: ATTACK_TYPE_EXIT_SCAM_RISK = 13;
2014
1960
  */
2015
- chainBreakdown: ChainTokenProfitLoss[];
2016
- constructor(data?: PartialMessage<MultichainTokenProfitLoss>);
2017
- static readonly runtime: typeof proto3;
2018
- static readonly typeName = "data.v1.MultichainTokenProfitLoss";
2019
- static readonly fields: FieldList;
2020
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MultichainTokenProfitLoss;
2021
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MultichainTokenProfitLoss;
2022
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MultichainTokenProfitLoss;
2023
- static equals(a: MultichainTokenProfitLoss | PlainMessage<MultichainTokenProfitLoss> | undefined, b: MultichainTokenProfitLoss | PlainMessage<MultichainTokenProfitLoss> | undefined): boolean;
1961
+ EXIT_SCAM_RISK = 13
2024
1962
  }
1963
+ /**
1964
+ * Describes the enum data.v1.AttackType.
1965
+ */
1966
+ export declare const AttackTypeSchema: GenEnum<AttackType>;