@uniswap/client-data-api 0.0.296 → 0.0.297

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 +1087 -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,65 +1,18 @@
1
- // @generated by protoc-gen-es v1.10.1 with parameter "target=ts"
1
+ // @generated by protoc-gen-es v2.16.0 with parameter "target=ts"
2
2
  // @generated from file data/v2/common.proto (package data.v2, syntax proto3)
3
3
  /* eslint-disable */
4
- // @ts-nocheck
5
- import { Message, proto3 } from "@bufbuild/protobuf";
4
+ import { fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
6
5
  /**
7
- * Standard pagination request fields. Embed in any paginated List request.
8
- * page_size: max items per page; each endpoint defines its own default and cap.
9
- * page_token: opaque cursor from a previous response; omit for the first page.
10
- *
11
- * @generated from message data.v2.PageRequest
6
+ * Describes the file data/v2/common.proto.
12
7
  */
13
- export class PageRequest extends Message {
14
- constructor(data) {
15
- super();
16
- proto3.util.initPartial(data, this);
17
- }
18
- static fromBinary(bytes, options) {
19
- return new PageRequest().fromBinary(bytes, options);
20
- }
21
- static fromJson(jsonValue, options) {
22
- return new PageRequest().fromJson(jsonValue, options);
23
- }
24
- static fromJsonString(jsonString, options) {
25
- return new PageRequest().fromJsonString(jsonString, options);
26
- }
27
- static equals(a, b) {
28
- return proto3.util.equals(PageRequest, a, b);
29
- }
30
- }
31
- PageRequest.runtime = proto3;
32
- PageRequest.typeName = "data.v2.PageRequest";
33
- PageRequest.fields = proto3.util.newFieldList(() => [
34
- { no: 1, name: "page_size", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
35
- { no: 2, name: "page_token", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
36
- ]);
8
+ export const file_data_v2_common = /*@__PURE__*/ fileDesc("ChRkYXRhL3YyL2NvbW1vbi5wcm90bxIHZGF0YS52MiJbCgtQYWdlUmVxdWVzdBIWCglwYWdlX3NpemUYASABKA1IAIgBARIXCgpwYWdlX3Rva2VuGAIgASgJSAGIAQFCDAoKX3BhZ2Vfc2l6ZUINCgtfcGFnZV90b2tlbiJACgxQYWdlUmVzcG9uc2USHAoPbmV4dF9wYWdlX3Rva2VuGAEgASgJSACIAQFCEgoQX25leHRfcGFnZV90b2tlbmIGcHJvdG8z");
37
9
  /**
38
- * Standard pagination response fields. Embed in any paginated List response.
39
- * next_page_token absent means this is the last page.
40
- *
41
- * @generated from message data.v2.PageResponse
10
+ * Describes the message data.v2.PageRequest.
11
+ * Use `create(PageRequestSchema)` to create a new message.
42
12
  */
43
- export class PageResponse extends Message {
44
- constructor(data) {
45
- super();
46
- proto3.util.initPartial(data, this);
47
- }
48
- static fromBinary(bytes, options) {
49
- return new PageResponse().fromBinary(bytes, options);
50
- }
51
- static fromJson(jsonValue, options) {
52
- return new PageResponse().fromJson(jsonValue, options);
53
- }
54
- static fromJsonString(jsonString, options) {
55
- return new PageResponse().fromJsonString(jsonString, options);
56
- }
57
- static equals(a, b) {
58
- return proto3.util.equals(PageResponse, a, b);
59
- }
60
- }
61
- PageResponse.runtime = proto3;
62
- PageResponse.typeName = "data.v2.PageResponse";
63
- PageResponse.fields = proto3.util.newFieldList(() => [
64
- { no: 1, name: "next_page_token", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
65
- ]);
13
+ export const PageRequestSchema = /*@__PURE__*/ messageDesc(file_data_v2_common, 0);
14
+ /**
15
+ * Describes the message data.v2.PageResponse.
16
+ * Use `create(PageResponseSchema)` to create a new message.
17
+ */
18
+ export const PageResponseSchema = /*@__PURE__*/ messageDesc(file_data_v2_common, 1);
@@ -1,44 +1,14 @@
1
- import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
2
- import { Message, proto3 } from "@bufbuild/protobuf";
3
- import { Token } from "../v1/types_pb.js";
1
+ import type { GenEnum, GenFile, GenMessage } from "@bufbuild/protobuf/codegenv2";
2
+ import type { Token } from "../v1/types_pb";
3
+ import type { Message } from "@bufbuild/protobuf";
4
4
  /**
5
- * @generated from enum data.v2.EarnVaultStatus
6
- */
7
- export declare enum EarnVaultStatus {
8
- /**
9
- * @generated from enum value: EARN_VAULT_STATUS_UNSPECIFIED = 0;
10
- */
11
- UNSPECIFIED = 0,
12
- /**
13
- * @generated from enum value: EARN_VAULT_STATUS_ACTIVE = 1;
14
- */
15
- ACTIVE = 1,
16
- /**
17
- * @generated from enum value: EARN_VAULT_STATUS_DEPRECATED = 2;
18
- */
19
- DEPRECATED = 2
20
- }
21
- /**
22
- * @generated from enum data.v2.EarnPositionStatus
5
+ * Describes the file data/v2/earn.proto.
23
6
  */
24
- export declare enum EarnPositionStatus {
25
- /**
26
- * @generated from enum value: EARN_POSITION_STATUS_UNSPECIFIED = 0;
27
- */
28
- UNSPECIFIED = 0,
29
- /**
30
- * @generated from enum value: EARN_POSITION_STATUS_ACTIVE = 1;
31
- */
32
- ACTIVE = 1,
33
- /**
34
- * @generated from enum value: EARN_POSITION_STATUS_CLOSED = 2;
35
- */
36
- CLOSED = 2
37
- }
7
+ export declare const file_data_v2_earn: GenFile;
38
8
  /**
39
9
  * @generated from message data.v2.EarnVault
40
10
  */
41
- export declare class EarnVault extends Message<EarnVault> {
11
+ export type EarnVault = Message<"data.v2.EarnVault"> & {
42
12
  /**
43
13
  * @generated from field: string address = 1;
44
14
  */
@@ -58,7 +28,7 @@ export declare class EarnVault extends Message<EarnVault> {
58
28
  /**
59
29
  * @generated from field: data.v1.Token underlying_token = 5;
60
30
  */
61
- underlyingToken?: Token;
31
+ underlyingToken?: Token | undefined;
62
32
  /**
63
33
  * @generated from field: data.v2.EarnVaultStatus status = 6;
64
34
  */
@@ -70,7 +40,7 @@ export declare class EarnVault extends Message<EarnVault> {
70
40
  /**
71
41
  * @generated from field: optional double total_assets_usd = 8;
72
42
  */
73
- totalAssetsUsd?: number;
43
+ totalAssetsUsd?: number | undefined;
74
44
  /**
75
45
  * @generated from field: string total_supply_raw = 9;
76
46
  */
@@ -82,7 +52,7 @@ export declare class EarnVault extends Message<EarnVault> {
82
52
  /**
83
53
  * @generated from field: optional double liquidity_usd = 11;
84
54
  */
85
- liquidityUsd?: number;
55
+ liquidityUsd?: number | undefined;
86
56
  /**
87
57
  * @generated from field: double share_price = 12;
88
58
  */
@@ -90,23 +60,23 @@ export declare class EarnVault extends Message<EarnVault> {
90
60
  /**
91
61
  * @generated from field: optional double apy = 13;
92
62
  */
93
- apy?: number;
63
+ apy?: number | undefined;
94
64
  /**
95
65
  * @generated from field: optional double net_apy = 14;
96
66
  */
97
- netApy?: number;
67
+ netApy?: number | undefined;
98
68
  /**
99
69
  * @generated from field: optional double avg_net_apy = 15;
100
70
  */
101
- avgNetApy?: number;
71
+ avgNetApy?: number | undefined;
102
72
  /**
103
73
  * @generated from field: optional double performance_fee = 16;
104
74
  */
105
- performanceFee?: number;
75
+ performanceFee?: number | undefined;
106
76
  /**
107
77
  * @generated from field: optional double management_fee = 17;
108
78
  */
109
- managementFee?: number;
79
+ managementFee?: number | undefined;
110
80
  /**
111
81
  * @generated from field: repeated data.v2.EarnVaultWarning warnings = 18;
112
82
  */
@@ -126,64 +96,58 @@ export declare class EarnVault extends Message<EarnVault> {
126
96
  /**
127
97
  * @generated from field: optional string curator_image_url = 22;
128
98
  */
129
- curatorImageUrl?: string;
99
+ curatorImageUrl?: string | undefined;
130
100
  /**
131
101
  * @generated from field: optional int64 deployment_timestamp = 23;
132
102
  */
133
- deploymentTimestamp?: bigint;
103
+ deploymentTimestamp?: bigint | undefined;
134
104
  /**
135
105
  * Per-asset amounts; empty when adapter data was not fetched.
136
106
  *
137
107
  * @generated from field: repeated data.v2.EarnVaultExposure exposures = 24;
138
108
  */
139
109
  exposures: EarnVaultExposure[];
140
- constructor(data?: PartialMessage<EarnVault>);
141
- static readonly runtime: typeof proto3;
142
- static readonly typeName = "data.v2.EarnVault";
143
- static readonly fields: FieldList;
144
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EarnVault;
145
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EarnVault;
146
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EarnVault;
147
- static equals(a: EarnVault | PlainMessage<EarnVault> | undefined, b: EarnVault | PlainMessage<EarnVault> | undefined): boolean;
148
- }
110
+ };
111
+ /**
112
+ * Describes the message data.v2.EarnVault.
113
+ * Use `create(EarnVaultSchema)` to create a new message.
114
+ */
115
+ export declare const EarnVaultSchema: GenMessage<EarnVault>;
149
116
  /**
150
117
  * @generated from message data.v2.EarnVaultExposure
151
118
  */
152
- export declare class EarnVaultExposure extends Message<EarnVaultExposure> {
119
+ export type EarnVaultExposure = Message<"data.v2.EarnVaultExposure"> & {
153
120
  /**
154
121
  * @generated from field: data.v1.Token token = 1;
155
122
  */
156
- token?: Token;
123
+ token?: Token | undefined;
157
124
  /**
158
125
  * Amount in vault-underlying base units, encoded as a string. Omitted when
159
126
  * any amount-bearing contribution cannot be determined.
160
127
  *
161
128
  * @generated from field: optional string assets_raw = 2;
162
129
  */
163
- assetsRaw?: string;
130
+ assetsRaw?: string | undefined;
164
131
  /**
165
132
  * @generated from field: optional double assets_usd = 3;
166
133
  */
167
- assetsUsd?: number;
134
+ assetsUsd?: number | undefined;
168
135
  /**
169
136
  * Share of total vault assets; may sum to less than 1.
170
137
  *
171
138
  * @generated from field: optional double share = 4;
172
139
  */
173
- share?: number;
174
- constructor(data?: PartialMessage<EarnVaultExposure>);
175
- static readonly runtime: typeof proto3;
176
- static readonly typeName = "data.v2.EarnVaultExposure";
177
- static readonly fields: FieldList;
178
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EarnVaultExposure;
179
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EarnVaultExposure;
180
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EarnVaultExposure;
181
- static equals(a: EarnVaultExposure | PlainMessage<EarnVaultExposure> | undefined, b: EarnVaultExposure | PlainMessage<EarnVaultExposure> | undefined): boolean;
182
- }
140
+ share?: number | undefined;
141
+ };
142
+ /**
143
+ * Describes the message data.v2.EarnVaultExposure.
144
+ * Use `create(EarnVaultExposureSchema)` to create a new message.
145
+ */
146
+ export declare const EarnVaultExposureSchema: GenMessage<EarnVaultExposure>;
183
147
  /**
184
148
  * @generated from message data.v2.EarnVaultWarning
185
149
  */
186
- export declare class EarnVaultWarning extends Message<EarnVaultWarning> {
150
+ export type EarnVaultWarning = Message<"data.v2.EarnVaultWarning"> & {
187
151
  /**
188
152
  * @generated from field: string type = 1;
189
153
  */
@@ -192,23 +156,20 @@ export declare class EarnVaultWarning extends Message<EarnVaultWarning> {
192
156
  * @generated from field: string level = 2;
193
157
  */
194
158
  level: string;
195
- constructor(data?: PartialMessage<EarnVaultWarning>);
196
- static readonly runtime: typeof proto3;
197
- static readonly typeName = "data.v2.EarnVaultWarning";
198
- static readonly fields: FieldList;
199
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EarnVaultWarning;
200
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EarnVaultWarning;
201
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EarnVaultWarning;
202
- static equals(a: EarnVaultWarning | PlainMessage<EarnVaultWarning> | undefined, b: EarnVaultWarning | PlainMessage<EarnVaultWarning> | undefined): boolean;
203
- }
159
+ };
160
+ /**
161
+ * Describes the message data.v2.EarnVaultWarning.
162
+ * Use `create(EarnVaultWarningSchema)` to create a new message.
163
+ */
164
+ export declare const EarnVaultWarningSchema: GenMessage<EarnVaultWarning>;
204
165
  /**
205
166
  * @generated from message data.v2.EarnPosition
206
167
  */
207
- export declare class EarnPosition extends Message<EarnPosition> {
168
+ export type EarnPosition = Message<"data.v2.EarnPosition"> & {
208
169
  /**
209
170
  * @generated from field: data.v2.EarnVault vault = 1;
210
171
  */
211
- vault?: EarnVault;
172
+ vault?: EarnVault | undefined;
212
173
  /**
213
174
  * @generated from field: string shares_raw = 2;
214
175
  */
@@ -220,7 +181,7 @@ export declare class EarnPosition extends Message<EarnPosition> {
220
181
  /**
221
182
  * @generated from field: optional double current_assets_usd = 4;
222
183
  */
223
- currentAssetsUsd?: number;
184
+ currentAssetsUsd?: number | undefined;
224
185
  /**
225
186
  * @generated from field: data.v2.EarnPositionStatus status = 5;
226
187
  */
@@ -236,7 +197,7 @@ export declare class EarnPosition extends Message<EarnPosition> {
236
197
  *
237
198
  * @generated from field: optional string lifetime_pnl_raw = 6;
238
199
  */
239
- lifetimePnlRaw?: string;
200
+ lifetimePnlRaw?: string | undefined;
240
201
  /**
241
202
  * USD valuation of lifetime_pnl_raw, priced at the underlying's current
242
203
  * USD price (matches Morpho's pnlUsd semantics). Undefined when the
@@ -244,13 +205,52 @@ export declare class EarnPosition extends Message<EarnPosition> {
244
205
  *
245
206
  * @generated from field: optional double lifetime_pnl_usd = 7;
246
207
  */
247
- lifetimePnlUsd?: number;
248
- constructor(data?: PartialMessage<EarnPosition>);
249
- static readonly runtime: typeof proto3;
250
- static readonly typeName = "data.v2.EarnPosition";
251
- static readonly fields: FieldList;
252
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EarnPosition;
253
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EarnPosition;
254
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EarnPosition;
255
- static equals(a: EarnPosition | PlainMessage<EarnPosition> | undefined, b: EarnPosition | PlainMessage<EarnPosition> | undefined): boolean;
208
+ lifetimePnlUsd?: number | undefined;
209
+ };
210
+ /**
211
+ * Describes the message data.v2.EarnPosition.
212
+ * Use `create(EarnPositionSchema)` to create a new message.
213
+ */
214
+ export declare const EarnPositionSchema: GenMessage<EarnPosition>;
215
+ /**
216
+ * @generated from enum data.v2.EarnVaultStatus
217
+ */
218
+ export declare enum EarnVaultStatus {
219
+ /**
220
+ * @generated from enum value: EARN_VAULT_STATUS_UNSPECIFIED = 0;
221
+ */
222
+ UNSPECIFIED = 0,
223
+ /**
224
+ * @generated from enum value: EARN_VAULT_STATUS_ACTIVE = 1;
225
+ */
226
+ ACTIVE = 1,
227
+ /**
228
+ * @generated from enum value: EARN_VAULT_STATUS_DEPRECATED = 2;
229
+ */
230
+ DEPRECATED = 2
231
+ }
232
+ /**
233
+ * Describes the enum data.v2.EarnVaultStatus.
234
+ */
235
+ export declare const EarnVaultStatusSchema: GenEnum<EarnVaultStatus>;
236
+ /**
237
+ * @generated from enum data.v2.EarnPositionStatus
238
+ */
239
+ export declare enum EarnPositionStatus {
240
+ /**
241
+ * @generated from enum value: EARN_POSITION_STATUS_UNSPECIFIED = 0;
242
+ */
243
+ UNSPECIFIED = 0,
244
+ /**
245
+ * @generated from enum value: EARN_POSITION_STATUS_ACTIVE = 1;
246
+ */
247
+ ACTIVE = 1,
248
+ /**
249
+ * @generated from enum value: EARN_POSITION_STATUS_CLOSED = 2;
250
+ */
251
+ CLOSED = 2
256
252
  }
253
+ /**
254
+ * Describes the enum data.v2.EarnPositionStatus.
255
+ */
256
+ export declare const EarnPositionStatusSchema: GenEnum<EarnPositionStatus>;
@@ -1,9 +1,32 @@
1
- // @generated by protoc-gen-es v1.10.1 with parameter "target=ts"
1
+ // @generated by protoc-gen-es v2.16.0 with parameter "target=ts"
2
2
  // @generated from file data/v2/earn.proto (package data.v2, syntax proto3)
3
3
  /* eslint-disable */
4
- // @ts-nocheck
5
- import { Message, proto3 } from "@bufbuild/protobuf";
6
- import { Token } from "../v1/types_pb.js";
4
+ import { enumDesc, fileDesc, messageDesc } from "@bufbuild/protobuf/codegenv2";
5
+ import { file_data_v1_types } from "../v1/types_pb";
6
+ /**
7
+ * Describes the file data/v2/earn.proto.
8
+ */
9
+ export const file_data_v2_earn = /*@__PURE__*/ fileDesc("ChJkYXRhL3YyL2Vhcm4ucHJvdG8SB2RhdGEudjIi0AYKCUVhcm5WYXVsdBIPCgdhZGRyZXNzGAEgASgJEhAKCGNoYWluX2lkGAIgASgNEgwKBG5hbWUYAyABKAkSDgoGc3ltYm9sGAQgASgJEigKEHVuZGVybHlpbmdfdG9rZW4YBSABKAsyDi5kYXRhLnYxLlRva2VuEigKBnN0YXR1cxgGIAEoDjIYLmRhdGEudjIuRWFyblZhdWx0U3RhdHVzEhgKEHRvdGFsX2Fzc2V0c19yYXcYByABKAkSHQoQdG90YWxfYXNzZXRzX3VzZBgIIAEoAUgAiAEBEhgKEHRvdGFsX3N1cHBseV9yYXcYCSABKAkSFQoNbGlxdWlkaXR5X3JhdxgKIAEoCRIaCg1saXF1aWRpdHlfdXNkGAsgASgBSAGIAQESEwoLc2hhcmVfcHJpY2UYDCABKAESEAoDYXB5GA0gASgBSAKIAQESFAoHbmV0X2FweRgOIAEoAUgDiAEBEhgKC2F2Z19uZXRfYXB5GA8gASgBSASIAQESHAoPcGVyZm9ybWFuY2VfZmVlGBAgASgBSAWIAQESGwoObWFuYWdlbWVudF9mZWUYESABKAFIBogBARIrCgh3YXJuaW5ncxgSIAMoCzIZLmRhdGEudjIuRWFyblZhdWx0V2FybmluZxInCg9leHBvc3VyZV90b2tlbnMYEyADKAsyDi5kYXRhLnYxLlRva2VuEhcKD2N1cmF0b3JfYWRkcmVzcxgUIAEoCRIUCgxjdXJhdG9yX25hbWUYFSABKAkSHgoRY3VyYXRvcl9pbWFnZV91cmwYFiABKAlIB4gBARIhChRkZXBsb3ltZW50X3RpbWVzdGFtcBgXIAEoA0gIiAEBEi0KCWV4cG9zdXJlcxgYIAMoCzIaLmRhdGEudjIuRWFyblZhdWx0RXhwb3N1cmVCEwoRX3RvdGFsX2Fzc2V0c191c2RCEAoOX2xpcXVpZGl0eV91c2RCBgoEX2FweUIKCghfbmV0X2FweUIOCgxfYXZnX25ldF9hcHlCEgoQX3BlcmZvcm1hbmNlX2ZlZUIRCg9fbWFuYWdlbWVudF9mZWVCFAoSX2N1cmF0b3JfaW1hZ2VfdXJsQhcKFV9kZXBsb3ltZW50X3RpbWVzdGFtcCKgAQoRRWFyblZhdWx0RXhwb3N1cmUSHQoFdG9rZW4YASABKAsyDi5kYXRhLnYxLlRva2VuEhcKCmFzc2V0c19yYXcYAiABKAlIAIgBARIXCgphc3NldHNfdXNkGAMgASgBSAGIAQESEgoFc2hhcmUYBCABKAFIAogBAUINCgtfYXNzZXRzX3Jhd0INCgtfYXNzZXRzX3VzZEIICgZfc2hhcmUiLwoQRWFyblZhdWx0V2FybmluZxIMCgR0eXBlGAEgASgJEg0KBWxldmVsGAIgASgJIq4CCgxFYXJuUG9zaXRpb24SIQoFdmF1bHQYASABKAsyEi5kYXRhLnYyLkVhcm5WYXVsdBISCgpzaGFyZXNfcmF3GAIgASgJEhoKEmN1cnJlbnRfYXNzZXRzX3JhdxgDIAEoCRIfChJjdXJyZW50X2Fzc2V0c191c2QYBCABKAFIAIgBARIrCgZzdGF0dXMYBSABKA4yGy5kYXRhLnYyLkVhcm5Qb3NpdGlvblN0YXR1cxIdChBsaWZldGltZV9wbmxfcmF3GAYgASgJSAGIAQESHQoQbGlmZXRpbWVfcG5sX3VzZBgHIAEoAUgCiAEBQhUKE19jdXJyZW50X2Fzc2V0c191c2RCEwoRX2xpZmV0aW1lX3BubF9yYXdCEwoRX2xpZmV0aW1lX3BubF91c2QqdAoPRWFyblZhdWx0U3RhdHVzEiEKHUVBUk5fVkFVTFRfU1RBVFVTX1VOU1BFQ0lGSUVEEAASHAoYRUFSTl9WQVVMVF9TVEFUVVNfQUNUSVZFEAESIAocRUFSTl9WQVVMVF9TVEFUVVNfREVQUkVDQVRFRBACKnwKEkVhcm5Qb3NpdGlvblN0YXR1cxIkCiBFQVJOX1BPU0lUSU9OX1NUQVRVU19VTlNQRUNJRklFRBAAEh8KG0VBUk5fUE9TSVRJT05fU1RBVFVTX0FDVElWRRABEh8KG0VBUk5fUE9TSVRJT05fU1RBVFVTX0NMT1NFRBACYgZwcm90bzM", [file_data_v1_types]);
10
+ /**
11
+ * Describes the message data.v2.EarnVault.
12
+ * Use `create(EarnVaultSchema)` to create a new message.
13
+ */
14
+ export const EarnVaultSchema = /*@__PURE__*/ messageDesc(file_data_v2_earn, 0);
15
+ /**
16
+ * Describes the message data.v2.EarnVaultExposure.
17
+ * Use `create(EarnVaultExposureSchema)` to create a new message.
18
+ */
19
+ export const EarnVaultExposureSchema = /*@__PURE__*/ messageDesc(file_data_v2_earn, 1);
20
+ /**
21
+ * Describes the message data.v2.EarnVaultWarning.
22
+ * Use `create(EarnVaultWarningSchema)` to create a new message.
23
+ */
24
+ export const EarnVaultWarningSchema = /*@__PURE__*/ messageDesc(file_data_v2_earn, 2);
25
+ /**
26
+ * Describes the message data.v2.EarnPosition.
27
+ * Use `create(EarnPositionSchema)` to create a new message.
28
+ */
29
+ export const EarnPositionSchema = /*@__PURE__*/ messageDesc(file_data_v2_earn, 3);
7
30
  /**
8
31
  * @generated from enum data.v2.EarnVaultStatus
9
32
  */
@@ -22,12 +45,10 @@ export var EarnVaultStatus;
22
45
  */
23
46
  EarnVaultStatus[EarnVaultStatus["DEPRECATED"] = 2] = "DEPRECATED";
24
47
  })(EarnVaultStatus || (EarnVaultStatus = {}));
25
- // Retrieve enum metadata with: proto3.getEnumType(EarnVaultStatus)
26
- proto3.util.setEnumType(EarnVaultStatus, "data.v2.EarnVaultStatus", [
27
- { no: 0, name: "EARN_VAULT_STATUS_UNSPECIFIED" },
28
- { no: 1, name: "EARN_VAULT_STATUS_ACTIVE" },
29
- { no: 2, name: "EARN_VAULT_STATUS_DEPRECATED" },
30
- ]);
48
+ /**
49
+ * Describes the enum data.v2.EarnVaultStatus.
50
+ */
51
+ export const EarnVaultStatusSchema = /*@__PURE__*/ enumDesc(file_data_v2_earn, 0);
31
52
  /**
32
53
  * @generated from enum data.v2.EarnPositionStatus
33
54
  */
@@ -46,224 +67,7 @@ export var EarnPositionStatus;
46
67
  */
47
68
  EarnPositionStatus[EarnPositionStatus["CLOSED"] = 2] = "CLOSED";
48
69
  })(EarnPositionStatus || (EarnPositionStatus = {}));
49
- // Retrieve enum metadata with: proto3.getEnumType(EarnPositionStatus)
50
- proto3.util.setEnumType(EarnPositionStatus, "data.v2.EarnPositionStatus", [
51
- { no: 0, name: "EARN_POSITION_STATUS_UNSPECIFIED" },
52
- { no: 1, name: "EARN_POSITION_STATUS_ACTIVE" },
53
- { no: 2, name: "EARN_POSITION_STATUS_CLOSED" },
54
- ]);
55
- /**
56
- * @generated from message data.v2.EarnVault
57
- */
58
- export class EarnVault extends Message {
59
- constructor(data) {
60
- super();
61
- /**
62
- * @generated from field: string address = 1;
63
- */
64
- this.address = "";
65
- /**
66
- * @generated from field: uint32 chain_id = 2;
67
- */
68
- this.chainId = 0;
69
- /**
70
- * @generated from field: string name = 3;
71
- */
72
- this.name = "";
73
- /**
74
- * @generated from field: string symbol = 4;
75
- */
76
- this.symbol = "";
77
- /**
78
- * @generated from field: data.v2.EarnVaultStatus status = 6;
79
- */
80
- this.status = EarnVaultStatus.UNSPECIFIED;
81
- /**
82
- * @generated from field: string total_assets_raw = 7;
83
- */
84
- this.totalAssetsRaw = "";
85
- /**
86
- * @generated from field: string total_supply_raw = 9;
87
- */
88
- this.totalSupplyRaw = "";
89
- /**
90
- * @generated from field: string liquidity_raw = 10;
91
- */
92
- this.liquidityRaw = "";
93
- /**
94
- * @generated from field: double share_price = 12;
95
- */
96
- this.sharePrice = 0;
97
- /**
98
- * @generated from field: repeated data.v2.EarnVaultWarning warnings = 18;
99
- */
100
- this.warnings = [];
101
- /**
102
- * @generated from field: repeated data.v1.Token exposure_tokens = 19;
103
- */
104
- this.exposureTokens = [];
105
- /**
106
- * @generated from field: string curator_address = 20;
107
- */
108
- this.curatorAddress = "";
109
- /**
110
- * @generated from field: string curator_name = 21;
111
- */
112
- this.curatorName = "";
113
- /**
114
- * Per-asset amounts; empty when adapter data was not fetched.
115
- *
116
- * @generated from field: repeated data.v2.EarnVaultExposure exposures = 24;
117
- */
118
- this.exposures = [];
119
- proto3.util.initPartial(data, this);
120
- }
121
- static fromBinary(bytes, options) {
122
- return new EarnVault().fromBinary(bytes, options);
123
- }
124
- static fromJson(jsonValue, options) {
125
- return new EarnVault().fromJson(jsonValue, options);
126
- }
127
- static fromJsonString(jsonString, options) {
128
- return new EarnVault().fromJsonString(jsonString, options);
129
- }
130
- static equals(a, b) {
131
- return proto3.util.equals(EarnVault, a, b);
132
- }
133
- }
134
- EarnVault.runtime = proto3;
135
- EarnVault.typeName = "data.v2.EarnVault";
136
- EarnVault.fields = proto3.util.newFieldList(() => [
137
- { no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
138
- { no: 2, name: "chain_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
139
- { no: 3, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
140
- { no: 4, name: "symbol", kind: "scalar", T: 9 /* ScalarType.STRING */ },
141
- { no: 5, name: "underlying_token", kind: "message", T: Token },
142
- { no: 6, name: "status", kind: "enum", T: proto3.getEnumType(EarnVaultStatus) },
143
- { no: 7, name: "total_assets_raw", kind: "scalar", T: 9 /* ScalarType.STRING */ },
144
- { no: 8, name: "total_assets_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
145
- { no: 9, name: "total_supply_raw", kind: "scalar", T: 9 /* ScalarType.STRING */ },
146
- { no: 10, name: "liquidity_raw", kind: "scalar", T: 9 /* ScalarType.STRING */ },
147
- { no: 11, name: "liquidity_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
148
- { no: 12, name: "share_price", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
149
- { no: 13, name: "apy", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
150
- { no: 14, name: "net_apy", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
151
- { no: 15, name: "avg_net_apy", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
152
- { no: 16, name: "performance_fee", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
153
- { no: 17, name: "management_fee", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
154
- { no: 18, name: "warnings", kind: "message", T: EarnVaultWarning, repeated: true },
155
- { no: 19, name: "exposure_tokens", kind: "message", T: Token, repeated: true },
156
- { no: 20, name: "curator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
157
- { no: 21, name: "curator_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
158
- { no: 22, name: "curator_image_url", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
159
- { no: 23, name: "deployment_timestamp", kind: "scalar", T: 3 /* ScalarType.INT64 */, opt: true },
160
- { no: 24, name: "exposures", kind: "message", T: EarnVaultExposure, repeated: true },
161
- ]);
162
- /**
163
- * @generated from message data.v2.EarnVaultExposure
164
- */
165
- export class EarnVaultExposure extends Message {
166
- constructor(data) {
167
- super();
168
- proto3.util.initPartial(data, this);
169
- }
170
- static fromBinary(bytes, options) {
171
- return new EarnVaultExposure().fromBinary(bytes, options);
172
- }
173
- static fromJson(jsonValue, options) {
174
- return new EarnVaultExposure().fromJson(jsonValue, options);
175
- }
176
- static fromJsonString(jsonString, options) {
177
- return new EarnVaultExposure().fromJsonString(jsonString, options);
178
- }
179
- static equals(a, b) {
180
- return proto3.util.equals(EarnVaultExposure, a, b);
181
- }
182
- }
183
- EarnVaultExposure.runtime = proto3;
184
- EarnVaultExposure.typeName = "data.v2.EarnVaultExposure";
185
- EarnVaultExposure.fields = proto3.util.newFieldList(() => [
186
- { no: 1, name: "token", kind: "message", T: Token },
187
- { no: 2, name: "assets_raw", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
188
- { no: 3, name: "assets_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
189
- { no: 4, name: "share", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
190
- ]);
191
- /**
192
- * @generated from message data.v2.EarnVaultWarning
193
- */
194
- export class EarnVaultWarning extends Message {
195
- constructor(data) {
196
- super();
197
- /**
198
- * @generated from field: string type = 1;
199
- */
200
- this.type = "";
201
- /**
202
- * @generated from field: string level = 2;
203
- */
204
- this.level = "";
205
- proto3.util.initPartial(data, this);
206
- }
207
- static fromBinary(bytes, options) {
208
- return new EarnVaultWarning().fromBinary(bytes, options);
209
- }
210
- static fromJson(jsonValue, options) {
211
- return new EarnVaultWarning().fromJson(jsonValue, options);
212
- }
213
- static fromJsonString(jsonString, options) {
214
- return new EarnVaultWarning().fromJsonString(jsonString, options);
215
- }
216
- static equals(a, b) {
217
- return proto3.util.equals(EarnVaultWarning, a, b);
218
- }
219
- }
220
- EarnVaultWarning.runtime = proto3;
221
- EarnVaultWarning.typeName = "data.v2.EarnVaultWarning";
222
- EarnVaultWarning.fields = proto3.util.newFieldList(() => [
223
- { no: 1, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
224
- { no: 2, name: "level", kind: "scalar", T: 9 /* ScalarType.STRING */ },
225
- ]);
226
70
  /**
227
- * @generated from message data.v2.EarnPosition
71
+ * Describes the enum data.v2.EarnPositionStatus.
228
72
  */
229
- export class EarnPosition extends Message {
230
- constructor(data) {
231
- super();
232
- /**
233
- * @generated from field: string shares_raw = 2;
234
- */
235
- this.sharesRaw = "";
236
- /**
237
- * @generated from field: string current_assets_raw = 3;
238
- */
239
- this.currentAssetsRaw = "";
240
- /**
241
- * @generated from field: data.v2.EarnPositionStatus status = 5;
242
- */
243
- this.status = EarnPositionStatus.UNSPECIFIED;
244
- proto3.util.initPartial(data, this);
245
- }
246
- static fromBinary(bytes, options) {
247
- return new EarnPosition().fromBinary(bytes, options);
248
- }
249
- static fromJson(jsonValue, options) {
250
- return new EarnPosition().fromJson(jsonValue, options);
251
- }
252
- static fromJsonString(jsonString, options) {
253
- return new EarnPosition().fromJsonString(jsonString, options);
254
- }
255
- static equals(a, b) {
256
- return proto3.util.equals(EarnPosition, a, b);
257
- }
258
- }
259
- EarnPosition.runtime = proto3;
260
- EarnPosition.typeName = "data.v2.EarnPosition";
261
- EarnPosition.fields = proto3.util.newFieldList(() => [
262
- { no: 1, name: "vault", kind: "message", T: EarnVault },
263
- { no: 2, name: "shares_raw", kind: "scalar", T: 9 /* ScalarType.STRING */ },
264
- { no: 3, name: "current_assets_raw", kind: "scalar", T: 9 /* ScalarType.STRING */ },
265
- { no: 4, name: "current_assets_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
266
- { no: 5, name: "status", kind: "enum", T: proto3.getEnumType(EarnPositionStatus) },
267
- { no: 6, name: "lifetime_pnl_raw", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
268
- { no: 7, name: "lifetime_pnl_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
269
- ]);
73
+ export const EarnPositionStatusSchema = /*@__PURE__*/ enumDesc(file_data_v2_earn, 1);