@uniswap/client-data-api 0.0.75 → 0.0.76
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.
- package/dist/data/v2/api-DataApiService_connectquery.d.ts +40 -1
- package/dist/data/v2/api-DataApiService_connectquery.js +40 -1
- package/dist/data/v2/api_connect.d.ts +28 -1
- package/dist/data/v2/api_connect.js +28 -1
- package/dist/data/v2/api_pb.d.ts +139 -0
- package/dist/data/v2/api_pb.js +198 -0
- package/dist/data/v2/earn_pb.d.ts +176 -0
- package/dist/data/v2/earn_pb.js +214 -0
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
2
|
-
import { GetTokenRequest, GetTokenResponse, GetTokensMultiChainRequest, GetTokensMultiChainResponse, GetTokensRequest, GetTokensResponse } from "./api_pb.js";
|
|
2
|
+
import { GetEarnPositionRequest, GetEarnPositionResponse, GetTokenRequest, GetTokenResponse, GetTokensMultiChainRequest, GetTokensMultiChainResponse, GetTokensRequest, GetTokensResponse, ListEarnPositionsRequest, ListEarnPositionsResponse, ListEarnVaultsRequest, ListEarnVaultsResponse } from "./api_pb.js";
|
|
3
3
|
/**
|
|
4
4
|
* @generated from rpc data.v2.DataApiService.GetToken
|
|
5
5
|
*/
|
|
@@ -39,3 +39,42 @@ export declare const getTokensMultiChain: {
|
|
|
39
39
|
readonly typeName: "data.v2.DataApiService";
|
|
40
40
|
};
|
|
41
41
|
};
|
|
42
|
+
/**
|
|
43
|
+
* @generated from rpc data.v2.DataApiService.ListEarnVaults
|
|
44
|
+
*/
|
|
45
|
+
export declare const listEarnVaults: {
|
|
46
|
+
readonly localName: "listEarnVaults";
|
|
47
|
+
readonly name: "ListEarnVaults";
|
|
48
|
+
readonly kind: MethodKind.Unary;
|
|
49
|
+
readonly I: typeof ListEarnVaultsRequest;
|
|
50
|
+
readonly O: typeof ListEarnVaultsResponse;
|
|
51
|
+
readonly service: {
|
|
52
|
+
readonly typeName: "data.v2.DataApiService";
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
/**
|
|
56
|
+
* @generated from rpc data.v2.DataApiService.ListEarnPositions
|
|
57
|
+
*/
|
|
58
|
+
export declare const listEarnPositions: {
|
|
59
|
+
readonly localName: "listEarnPositions";
|
|
60
|
+
readonly name: "ListEarnPositions";
|
|
61
|
+
readonly kind: MethodKind.Unary;
|
|
62
|
+
readonly I: typeof ListEarnPositionsRequest;
|
|
63
|
+
readonly O: typeof ListEarnPositionsResponse;
|
|
64
|
+
readonly service: {
|
|
65
|
+
readonly typeName: "data.v2.DataApiService";
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
/**
|
|
69
|
+
* @generated from rpc data.v2.DataApiService.GetEarnPosition
|
|
70
|
+
*/
|
|
71
|
+
export declare const getEarnPosition: {
|
|
72
|
+
readonly localName: "getEarnPosition";
|
|
73
|
+
readonly name: "GetEarnPosition";
|
|
74
|
+
readonly kind: MethodKind.Unary;
|
|
75
|
+
readonly I: typeof GetEarnPositionRequest;
|
|
76
|
+
readonly O: typeof GetEarnPositionResponse;
|
|
77
|
+
readonly service: {
|
|
78
|
+
readonly typeName: "data.v2.DataApiService";
|
|
79
|
+
};
|
|
80
|
+
};
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
6
|
-
import { GetTokenRequest, GetTokenResponse, GetTokensMultiChainRequest, GetTokensMultiChainResponse, GetTokensRequest, GetTokensResponse } from "./api_pb.js";
|
|
6
|
+
import { GetEarnPositionRequest, GetEarnPositionResponse, GetTokenRequest, GetTokenResponse, GetTokensMultiChainRequest, GetTokensMultiChainResponse, GetTokensRequest, GetTokensResponse, ListEarnPositionsRequest, ListEarnPositionsResponse, ListEarnVaultsRequest, ListEarnVaultsResponse } from "./api_pb.js";
|
|
7
7
|
/**
|
|
8
8
|
* @generated from rpc data.v2.DataApiService.GetToken
|
|
9
9
|
*/
|
|
@@ -43,3 +43,42 @@ export const getTokensMultiChain = {
|
|
|
43
43
|
typeName: "data.v2.DataApiService"
|
|
44
44
|
}
|
|
45
45
|
};
|
|
46
|
+
/**
|
|
47
|
+
* @generated from rpc data.v2.DataApiService.ListEarnVaults
|
|
48
|
+
*/
|
|
49
|
+
export const listEarnVaults = {
|
|
50
|
+
localName: "listEarnVaults",
|
|
51
|
+
name: "ListEarnVaults",
|
|
52
|
+
kind: MethodKind.Unary,
|
|
53
|
+
I: ListEarnVaultsRequest,
|
|
54
|
+
O: ListEarnVaultsResponse,
|
|
55
|
+
service: {
|
|
56
|
+
typeName: "data.v2.DataApiService"
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
/**
|
|
60
|
+
* @generated from rpc data.v2.DataApiService.ListEarnPositions
|
|
61
|
+
*/
|
|
62
|
+
export const listEarnPositions = {
|
|
63
|
+
localName: "listEarnPositions",
|
|
64
|
+
name: "ListEarnPositions",
|
|
65
|
+
kind: MethodKind.Unary,
|
|
66
|
+
I: ListEarnPositionsRequest,
|
|
67
|
+
O: ListEarnPositionsResponse,
|
|
68
|
+
service: {
|
|
69
|
+
typeName: "data.v2.DataApiService"
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
/**
|
|
73
|
+
* @generated from rpc data.v2.DataApiService.GetEarnPosition
|
|
74
|
+
*/
|
|
75
|
+
export const getEarnPosition = {
|
|
76
|
+
localName: "getEarnPosition",
|
|
77
|
+
name: "GetEarnPosition",
|
|
78
|
+
kind: MethodKind.Unary,
|
|
79
|
+
I: GetEarnPositionRequest,
|
|
80
|
+
O: GetEarnPositionResponse,
|
|
81
|
+
service: {
|
|
82
|
+
typeName: "data.v2.DataApiService"
|
|
83
|
+
}
|
|
84
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GetTokenRequest, GetTokenResponse, GetTokensMultiChainRequest, GetTokensMultiChainResponse, GetTokensRequest, GetTokensResponse } from "./api_pb.js";
|
|
1
|
+
import { GetEarnPositionRequest, GetEarnPositionResponse, GetTokenRequest, GetTokenResponse, GetTokensMultiChainRequest, GetTokensMultiChainResponse, GetTokensRequest, GetTokensResponse, ListEarnPositionsRequest, ListEarnPositionsResponse, ListEarnVaultsRequest, ListEarnVaultsResponse } from "./api_pb.js";
|
|
2
2
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
3
3
|
/**
|
|
4
4
|
* @generated from service data.v2.DataApiService
|
|
@@ -33,5 +33,32 @@ export declare const DataApiService: {
|
|
|
33
33
|
readonly O: typeof GetTokensMultiChainResponse;
|
|
34
34
|
readonly kind: MethodKind.Unary;
|
|
35
35
|
};
|
|
36
|
+
/**
|
|
37
|
+
* @generated from rpc data.v2.DataApiService.ListEarnVaults
|
|
38
|
+
*/
|
|
39
|
+
readonly listEarnVaults: {
|
|
40
|
+
readonly name: "ListEarnVaults";
|
|
41
|
+
readonly I: typeof ListEarnVaultsRequest;
|
|
42
|
+
readonly O: typeof ListEarnVaultsResponse;
|
|
43
|
+
readonly kind: MethodKind.Unary;
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* @generated from rpc data.v2.DataApiService.ListEarnPositions
|
|
47
|
+
*/
|
|
48
|
+
readonly listEarnPositions: {
|
|
49
|
+
readonly name: "ListEarnPositions";
|
|
50
|
+
readonly I: typeof ListEarnPositionsRequest;
|
|
51
|
+
readonly O: typeof ListEarnPositionsResponse;
|
|
52
|
+
readonly kind: MethodKind.Unary;
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
* @generated from rpc data.v2.DataApiService.GetEarnPosition
|
|
56
|
+
*/
|
|
57
|
+
readonly getEarnPosition: {
|
|
58
|
+
readonly name: "GetEarnPosition";
|
|
59
|
+
readonly I: typeof GetEarnPositionRequest;
|
|
60
|
+
readonly O: typeof GetEarnPositionResponse;
|
|
61
|
+
readonly kind: MethodKind.Unary;
|
|
62
|
+
};
|
|
36
63
|
};
|
|
37
64
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// @generated from file data/v2/api.proto (package data.v2, syntax proto3)
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
|
-
import { GetTokenRequest, GetTokenResponse, GetTokensMultiChainRequest, GetTokensMultiChainResponse, GetTokensRequest, GetTokensResponse } from "./api_pb.js";
|
|
5
|
+
import { GetEarnPositionRequest, GetEarnPositionResponse, GetTokenRequest, GetTokenResponse, GetTokensMultiChainRequest, GetTokensMultiChainResponse, GetTokensRequest, GetTokensResponse, ListEarnPositionsRequest, ListEarnPositionsResponse, ListEarnVaultsRequest, ListEarnVaultsResponse } from "./api_pb.js";
|
|
6
6
|
import { MethodKind } from "@bufbuild/protobuf";
|
|
7
7
|
/**
|
|
8
8
|
* @generated from service data.v2.DataApiService
|
|
@@ -37,5 +37,32 @@ export const DataApiService = {
|
|
|
37
37
|
O: GetTokensMultiChainResponse,
|
|
38
38
|
kind: MethodKind.Unary,
|
|
39
39
|
},
|
|
40
|
+
/**
|
|
41
|
+
* @generated from rpc data.v2.DataApiService.ListEarnVaults
|
|
42
|
+
*/
|
|
43
|
+
listEarnVaults: {
|
|
44
|
+
name: "ListEarnVaults",
|
|
45
|
+
I: ListEarnVaultsRequest,
|
|
46
|
+
O: ListEarnVaultsResponse,
|
|
47
|
+
kind: MethodKind.Unary,
|
|
48
|
+
},
|
|
49
|
+
/**
|
|
50
|
+
* @generated from rpc data.v2.DataApiService.ListEarnPositions
|
|
51
|
+
*/
|
|
52
|
+
listEarnPositions: {
|
|
53
|
+
name: "ListEarnPositions",
|
|
54
|
+
I: ListEarnPositionsRequest,
|
|
55
|
+
O: ListEarnPositionsResponse,
|
|
56
|
+
kind: MethodKind.Unary,
|
|
57
|
+
},
|
|
58
|
+
/**
|
|
59
|
+
* @generated from rpc data.v2.DataApiService.GetEarnPosition
|
|
60
|
+
*/
|
|
61
|
+
getEarnPosition: {
|
|
62
|
+
name: "GetEarnPosition",
|
|
63
|
+
I: GetEarnPositionRequest,
|
|
64
|
+
O: GetEarnPositionResponse,
|
|
65
|
+
kind: MethodKind.Unary,
|
|
66
|
+
},
|
|
40
67
|
}
|
|
41
68
|
};
|
package/dist/data/v2/api_pb.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialM
|
|
|
2
2
|
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
3
3
|
import { Token } from "./types_pb.js";
|
|
4
4
|
import { MultichainToken } from "../v1/types_pb.js";
|
|
5
|
+
import { EarnPosition, EarnVault } from "./earn_pb.js";
|
|
5
6
|
/**
|
|
6
7
|
* @generated from message data.v2.GetTokenRequest
|
|
7
8
|
*/
|
|
@@ -138,3 +139,141 @@ export declare class GetTokensMultiChainResponse extends Message<GetTokensMultiC
|
|
|
138
139
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetTokensMultiChainResponse;
|
|
139
140
|
static equals(a: GetTokensMultiChainResponse | PlainMessage<GetTokensMultiChainResponse> | undefined, b: GetTokensMultiChainResponse | PlainMessage<GetTokensMultiChainResponse> | undefined): boolean;
|
|
140
141
|
}
|
|
142
|
+
/**
|
|
143
|
+
* @generated from message data.v2.ListEarnVaultsRequest
|
|
144
|
+
*/
|
|
145
|
+
export declare class ListEarnVaultsRequest extends Message<ListEarnVaultsRequest> {
|
|
146
|
+
/**
|
|
147
|
+
* @generated from field: repeated uint32 chain_ids = 1;
|
|
148
|
+
*/
|
|
149
|
+
chainIds: number[];
|
|
150
|
+
/**
|
|
151
|
+
* @generated from field: optional uint32 page_size = 2;
|
|
152
|
+
*/
|
|
153
|
+
pageSize?: number;
|
|
154
|
+
/**
|
|
155
|
+
* @generated from field: optional string page_token = 3;
|
|
156
|
+
*/
|
|
157
|
+
pageToken?: string;
|
|
158
|
+
constructor(data?: PartialMessage<ListEarnVaultsRequest>);
|
|
159
|
+
static readonly runtime: typeof proto3;
|
|
160
|
+
static readonly typeName = "data.v2.ListEarnVaultsRequest";
|
|
161
|
+
static readonly fields: FieldList;
|
|
162
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListEarnVaultsRequest;
|
|
163
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListEarnVaultsRequest;
|
|
164
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListEarnVaultsRequest;
|
|
165
|
+
static equals(a: ListEarnVaultsRequest | PlainMessage<ListEarnVaultsRequest> | undefined, b: ListEarnVaultsRequest | PlainMessage<ListEarnVaultsRequest> | undefined): boolean;
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* @generated from message data.v2.ListEarnVaultsResponse
|
|
169
|
+
*/
|
|
170
|
+
export declare class ListEarnVaultsResponse extends Message<ListEarnVaultsResponse> {
|
|
171
|
+
/**
|
|
172
|
+
* @generated from field: repeated data.v2.EarnVault vaults = 1;
|
|
173
|
+
*/
|
|
174
|
+
vaults: EarnVault[];
|
|
175
|
+
/**
|
|
176
|
+
* @generated from field: optional string next_page_token = 2;
|
|
177
|
+
*/
|
|
178
|
+
nextPageToken?: string;
|
|
179
|
+
constructor(data?: PartialMessage<ListEarnVaultsResponse>);
|
|
180
|
+
static readonly runtime: typeof proto3;
|
|
181
|
+
static readonly typeName = "data.v2.ListEarnVaultsResponse";
|
|
182
|
+
static readonly fields: FieldList;
|
|
183
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListEarnVaultsResponse;
|
|
184
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListEarnVaultsResponse;
|
|
185
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListEarnVaultsResponse;
|
|
186
|
+
static equals(a: ListEarnVaultsResponse | PlainMessage<ListEarnVaultsResponse> | undefined, b: ListEarnVaultsResponse | PlainMessage<ListEarnVaultsResponse> | undefined): boolean;
|
|
187
|
+
}
|
|
188
|
+
/**
|
|
189
|
+
* @generated from message data.v2.ListEarnPositionsRequest
|
|
190
|
+
*/
|
|
191
|
+
export declare class ListEarnPositionsRequest extends Message<ListEarnPositionsRequest> {
|
|
192
|
+
/**
|
|
193
|
+
* @generated from field: string wallet_address = 1;
|
|
194
|
+
*/
|
|
195
|
+
walletAddress: string;
|
|
196
|
+
/**
|
|
197
|
+
* @generated from field: repeated uint32 chain_ids = 2;
|
|
198
|
+
*/
|
|
199
|
+
chainIds: number[];
|
|
200
|
+
/**
|
|
201
|
+
* @generated from field: optional uint32 page_size = 3;
|
|
202
|
+
*/
|
|
203
|
+
pageSize?: number;
|
|
204
|
+
/**
|
|
205
|
+
* @generated from field: optional string page_token = 4;
|
|
206
|
+
*/
|
|
207
|
+
pageToken?: string;
|
|
208
|
+
constructor(data?: PartialMessage<ListEarnPositionsRequest>);
|
|
209
|
+
static readonly runtime: typeof proto3;
|
|
210
|
+
static readonly typeName = "data.v2.ListEarnPositionsRequest";
|
|
211
|
+
static readonly fields: FieldList;
|
|
212
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListEarnPositionsRequest;
|
|
213
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListEarnPositionsRequest;
|
|
214
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListEarnPositionsRequest;
|
|
215
|
+
static equals(a: ListEarnPositionsRequest | PlainMessage<ListEarnPositionsRequest> | undefined, b: ListEarnPositionsRequest | PlainMessage<ListEarnPositionsRequest> | undefined): boolean;
|
|
216
|
+
}
|
|
217
|
+
/**
|
|
218
|
+
* @generated from message data.v2.ListEarnPositionsResponse
|
|
219
|
+
*/
|
|
220
|
+
export declare class ListEarnPositionsResponse extends Message<ListEarnPositionsResponse> {
|
|
221
|
+
/**
|
|
222
|
+
* @generated from field: repeated data.v2.EarnPosition positions = 1;
|
|
223
|
+
*/
|
|
224
|
+
positions: EarnPosition[];
|
|
225
|
+
/**
|
|
226
|
+
* @generated from field: optional string next_page_token = 2;
|
|
227
|
+
*/
|
|
228
|
+
nextPageToken?: string;
|
|
229
|
+
constructor(data?: PartialMessage<ListEarnPositionsResponse>);
|
|
230
|
+
static readonly runtime: typeof proto3;
|
|
231
|
+
static readonly typeName = "data.v2.ListEarnPositionsResponse";
|
|
232
|
+
static readonly fields: FieldList;
|
|
233
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ListEarnPositionsResponse;
|
|
234
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ListEarnPositionsResponse;
|
|
235
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ListEarnPositionsResponse;
|
|
236
|
+
static equals(a: ListEarnPositionsResponse | PlainMessage<ListEarnPositionsResponse> | undefined, b: ListEarnPositionsResponse | PlainMessage<ListEarnPositionsResponse> | undefined): boolean;
|
|
237
|
+
}
|
|
238
|
+
/**
|
|
239
|
+
* @generated from message data.v2.GetEarnPositionRequest
|
|
240
|
+
*/
|
|
241
|
+
export declare class GetEarnPositionRequest extends Message<GetEarnPositionRequest> {
|
|
242
|
+
/**
|
|
243
|
+
* @generated from field: string wallet_address = 1;
|
|
244
|
+
*/
|
|
245
|
+
walletAddress: string;
|
|
246
|
+
/**
|
|
247
|
+
* @generated from field: string vault_address = 2;
|
|
248
|
+
*/
|
|
249
|
+
vaultAddress: string;
|
|
250
|
+
/**
|
|
251
|
+
* @generated from field: uint32 chain_id = 3;
|
|
252
|
+
*/
|
|
253
|
+
chainId: number;
|
|
254
|
+
constructor(data?: PartialMessage<GetEarnPositionRequest>);
|
|
255
|
+
static readonly runtime: typeof proto3;
|
|
256
|
+
static readonly typeName = "data.v2.GetEarnPositionRequest";
|
|
257
|
+
static readonly fields: FieldList;
|
|
258
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetEarnPositionRequest;
|
|
259
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetEarnPositionRequest;
|
|
260
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetEarnPositionRequest;
|
|
261
|
+
static equals(a: GetEarnPositionRequest | PlainMessage<GetEarnPositionRequest> | undefined, b: GetEarnPositionRequest | PlainMessage<GetEarnPositionRequest> | undefined): boolean;
|
|
262
|
+
}
|
|
263
|
+
/**
|
|
264
|
+
* @generated from message data.v2.GetEarnPositionResponse
|
|
265
|
+
*/
|
|
266
|
+
export declare class GetEarnPositionResponse extends Message<GetEarnPositionResponse> {
|
|
267
|
+
/**
|
|
268
|
+
* @generated from field: data.v2.EarnPosition position = 1;
|
|
269
|
+
*/
|
|
270
|
+
position?: EarnPosition;
|
|
271
|
+
constructor(data?: PartialMessage<GetEarnPositionResponse>);
|
|
272
|
+
static readonly runtime: typeof proto3;
|
|
273
|
+
static readonly typeName = "data.v2.GetEarnPositionResponse";
|
|
274
|
+
static readonly fields: FieldList;
|
|
275
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetEarnPositionResponse;
|
|
276
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetEarnPositionResponse;
|
|
277
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetEarnPositionResponse;
|
|
278
|
+
static equals(a: GetEarnPositionResponse | PlainMessage<GetEarnPositionResponse> | undefined, b: GetEarnPositionResponse | PlainMessage<GetEarnPositionResponse> | undefined): boolean;
|
|
279
|
+
}
|
package/dist/data/v2/api_pb.js
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
6
6
|
import { Token } from "./types_pb.js";
|
|
7
7
|
import { MultichainToken } from "../v1/types_pb.js";
|
|
8
|
+
import { EarnPosition, EarnVault } from "./earn_pb.js";
|
|
8
9
|
/**
|
|
9
10
|
* @generated from message data.v2.GetTokenRequest
|
|
10
11
|
*/
|
|
@@ -230,3 +231,200 @@ GetTokensMultiChainResponse.typeName = "data.v2.GetTokensMultiChainResponse";
|
|
|
230
231
|
GetTokensMultiChainResponse.fields = proto3.util.newFieldList(() => [
|
|
231
232
|
{ no: 1, name: "tokens", kind: "message", T: MultichainToken, repeated: true },
|
|
232
233
|
]);
|
|
234
|
+
/**
|
|
235
|
+
* @generated from message data.v2.ListEarnVaultsRequest
|
|
236
|
+
*/
|
|
237
|
+
export class ListEarnVaultsRequest extends Message {
|
|
238
|
+
constructor(data) {
|
|
239
|
+
super();
|
|
240
|
+
/**
|
|
241
|
+
* @generated from field: repeated uint32 chain_ids = 1;
|
|
242
|
+
*/
|
|
243
|
+
this.chainIds = [];
|
|
244
|
+
proto3.util.initPartial(data, this);
|
|
245
|
+
}
|
|
246
|
+
static fromBinary(bytes, options) {
|
|
247
|
+
return new ListEarnVaultsRequest().fromBinary(bytes, options);
|
|
248
|
+
}
|
|
249
|
+
static fromJson(jsonValue, options) {
|
|
250
|
+
return new ListEarnVaultsRequest().fromJson(jsonValue, options);
|
|
251
|
+
}
|
|
252
|
+
static fromJsonString(jsonString, options) {
|
|
253
|
+
return new ListEarnVaultsRequest().fromJsonString(jsonString, options);
|
|
254
|
+
}
|
|
255
|
+
static equals(a, b) {
|
|
256
|
+
return proto3.util.equals(ListEarnVaultsRequest, a, b);
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
ListEarnVaultsRequest.runtime = proto3;
|
|
260
|
+
ListEarnVaultsRequest.typeName = "data.v2.ListEarnVaultsRequest";
|
|
261
|
+
ListEarnVaultsRequest.fields = proto3.util.newFieldList(() => [
|
|
262
|
+
{ no: 1, name: "chain_ids", kind: "scalar", T: 13 /* ScalarType.UINT32 */, repeated: true },
|
|
263
|
+
{ no: 2, name: "page_size", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
|
|
264
|
+
{ no: 3, name: "page_token", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
265
|
+
]);
|
|
266
|
+
/**
|
|
267
|
+
* @generated from message data.v2.ListEarnVaultsResponse
|
|
268
|
+
*/
|
|
269
|
+
export class ListEarnVaultsResponse extends Message {
|
|
270
|
+
constructor(data) {
|
|
271
|
+
super();
|
|
272
|
+
/**
|
|
273
|
+
* @generated from field: repeated data.v2.EarnVault vaults = 1;
|
|
274
|
+
*/
|
|
275
|
+
this.vaults = [];
|
|
276
|
+
proto3.util.initPartial(data, this);
|
|
277
|
+
}
|
|
278
|
+
static fromBinary(bytes, options) {
|
|
279
|
+
return new ListEarnVaultsResponse().fromBinary(bytes, options);
|
|
280
|
+
}
|
|
281
|
+
static fromJson(jsonValue, options) {
|
|
282
|
+
return new ListEarnVaultsResponse().fromJson(jsonValue, options);
|
|
283
|
+
}
|
|
284
|
+
static fromJsonString(jsonString, options) {
|
|
285
|
+
return new ListEarnVaultsResponse().fromJsonString(jsonString, options);
|
|
286
|
+
}
|
|
287
|
+
static equals(a, b) {
|
|
288
|
+
return proto3.util.equals(ListEarnVaultsResponse, a, b);
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
ListEarnVaultsResponse.runtime = proto3;
|
|
292
|
+
ListEarnVaultsResponse.typeName = "data.v2.ListEarnVaultsResponse";
|
|
293
|
+
ListEarnVaultsResponse.fields = proto3.util.newFieldList(() => [
|
|
294
|
+
{ no: 1, name: "vaults", kind: "message", T: EarnVault, repeated: true },
|
|
295
|
+
{ no: 2, name: "next_page_token", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
296
|
+
]);
|
|
297
|
+
/**
|
|
298
|
+
* @generated from message data.v2.ListEarnPositionsRequest
|
|
299
|
+
*/
|
|
300
|
+
export class ListEarnPositionsRequest extends Message {
|
|
301
|
+
constructor(data) {
|
|
302
|
+
super();
|
|
303
|
+
/**
|
|
304
|
+
* @generated from field: string wallet_address = 1;
|
|
305
|
+
*/
|
|
306
|
+
this.walletAddress = "";
|
|
307
|
+
/**
|
|
308
|
+
* @generated from field: repeated uint32 chain_ids = 2;
|
|
309
|
+
*/
|
|
310
|
+
this.chainIds = [];
|
|
311
|
+
proto3.util.initPartial(data, this);
|
|
312
|
+
}
|
|
313
|
+
static fromBinary(bytes, options) {
|
|
314
|
+
return new ListEarnPositionsRequest().fromBinary(bytes, options);
|
|
315
|
+
}
|
|
316
|
+
static fromJson(jsonValue, options) {
|
|
317
|
+
return new ListEarnPositionsRequest().fromJson(jsonValue, options);
|
|
318
|
+
}
|
|
319
|
+
static fromJsonString(jsonString, options) {
|
|
320
|
+
return new ListEarnPositionsRequest().fromJsonString(jsonString, options);
|
|
321
|
+
}
|
|
322
|
+
static equals(a, b) {
|
|
323
|
+
return proto3.util.equals(ListEarnPositionsRequest, a, b);
|
|
324
|
+
}
|
|
325
|
+
}
|
|
326
|
+
ListEarnPositionsRequest.runtime = proto3;
|
|
327
|
+
ListEarnPositionsRequest.typeName = "data.v2.ListEarnPositionsRequest";
|
|
328
|
+
ListEarnPositionsRequest.fields = proto3.util.newFieldList(() => [
|
|
329
|
+
{ no: 1, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
330
|
+
{ no: 2, name: "chain_ids", kind: "scalar", T: 13 /* ScalarType.UINT32 */, repeated: true },
|
|
331
|
+
{ no: 3, name: "page_size", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
|
|
332
|
+
{ no: 4, name: "page_token", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
333
|
+
]);
|
|
334
|
+
/**
|
|
335
|
+
* @generated from message data.v2.ListEarnPositionsResponse
|
|
336
|
+
*/
|
|
337
|
+
export class ListEarnPositionsResponse extends Message {
|
|
338
|
+
constructor(data) {
|
|
339
|
+
super();
|
|
340
|
+
/**
|
|
341
|
+
* @generated from field: repeated data.v2.EarnPosition positions = 1;
|
|
342
|
+
*/
|
|
343
|
+
this.positions = [];
|
|
344
|
+
proto3.util.initPartial(data, this);
|
|
345
|
+
}
|
|
346
|
+
static fromBinary(bytes, options) {
|
|
347
|
+
return new ListEarnPositionsResponse().fromBinary(bytes, options);
|
|
348
|
+
}
|
|
349
|
+
static fromJson(jsonValue, options) {
|
|
350
|
+
return new ListEarnPositionsResponse().fromJson(jsonValue, options);
|
|
351
|
+
}
|
|
352
|
+
static fromJsonString(jsonString, options) {
|
|
353
|
+
return new ListEarnPositionsResponse().fromJsonString(jsonString, options);
|
|
354
|
+
}
|
|
355
|
+
static equals(a, b) {
|
|
356
|
+
return proto3.util.equals(ListEarnPositionsResponse, a, b);
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
ListEarnPositionsResponse.runtime = proto3;
|
|
360
|
+
ListEarnPositionsResponse.typeName = "data.v2.ListEarnPositionsResponse";
|
|
361
|
+
ListEarnPositionsResponse.fields = proto3.util.newFieldList(() => [
|
|
362
|
+
{ no: 1, name: "positions", kind: "message", T: EarnPosition, repeated: true },
|
|
363
|
+
{ no: 2, name: "next_page_token", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
364
|
+
]);
|
|
365
|
+
/**
|
|
366
|
+
* @generated from message data.v2.GetEarnPositionRequest
|
|
367
|
+
*/
|
|
368
|
+
export class GetEarnPositionRequest extends Message {
|
|
369
|
+
constructor(data) {
|
|
370
|
+
super();
|
|
371
|
+
/**
|
|
372
|
+
* @generated from field: string wallet_address = 1;
|
|
373
|
+
*/
|
|
374
|
+
this.walletAddress = "";
|
|
375
|
+
/**
|
|
376
|
+
* @generated from field: string vault_address = 2;
|
|
377
|
+
*/
|
|
378
|
+
this.vaultAddress = "";
|
|
379
|
+
/**
|
|
380
|
+
* @generated from field: uint32 chain_id = 3;
|
|
381
|
+
*/
|
|
382
|
+
this.chainId = 0;
|
|
383
|
+
proto3.util.initPartial(data, this);
|
|
384
|
+
}
|
|
385
|
+
static fromBinary(bytes, options) {
|
|
386
|
+
return new GetEarnPositionRequest().fromBinary(bytes, options);
|
|
387
|
+
}
|
|
388
|
+
static fromJson(jsonValue, options) {
|
|
389
|
+
return new GetEarnPositionRequest().fromJson(jsonValue, options);
|
|
390
|
+
}
|
|
391
|
+
static fromJsonString(jsonString, options) {
|
|
392
|
+
return new GetEarnPositionRequest().fromJsonString(jsonString, options);
|
|
393
|
+
}
|
|
394
|
+
static equals(a, b) {
|
|
395
|
+
return proto3.util.equals(GetEarnPositionRequest, a, b);
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
GetEarnPositionRequest.runtime = proto3;
|
|
399
|
+
GetEarnPositionRequest.typeName = "data.v2.GetEarnPositionRequest";
|
|
400
|
+
GetEarnPositionRequest.fields = proto3.util.newFieldList(() => [
|
|
401
|
+
{ no: 1, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
402
|
+
{ no: 2, name: "vault_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
403
|
+
{ no: 3, name: "chain_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
404
|
+
]);
|
|
405
|
+
/**
|
|
406
|
+
* @generated from message data.v2.GetEarnPositionResponse
|
|
407
|
+
*/
|
|
408
|
+
export class GetEarnPositionResponse extends Message {
|
|
409
|
+
constructor(data) {
|
|
410
|
+
super();
|
|
411
|
+
proto3.util.initPartial(data, this);
|
|
412
|
+
}
|
|
413
|
+
static fromBinary(bytes, options) {
|
|
414
|
+
return new GetEarnPositionResponse().fromBinary(bytes, options);
|
|
415
|
+
}
|
|
416
|
+
static fromJson(jsonValue, options) {
|
|
417
|
+
return new GetEarnPositionResponse().fromJson(jsonValue, options);
|
|
418
|
+
}
|
|
419
|
+
static fromJsonString(jsonString, options) {
|
|
420
|
+
return new GetEarnPositionResponse().fromJsonString(jsonString, options);
|
|
421
|
+
}
|
|
422
|
+
static equals(a, b) {
|
|
423
|
+
return proto3.util.equals(GetEarnPositionResponse, a, b);
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
GetEarnPositionResponse.runtime = proto3;
|
|
427
|
+
GetEarnPositionResponse.typeName = "data.v2.GetEarnPositionResponse";
|
|
428
|
+
GetEarnPositionResponse.fields = proto3.util.newFieldList(() => [
|
|
429
|
+
{ no: 1, name: "position", kind: "message", T: EarnPosition },
|
|
430
|
+
]);
|
|
@@ -0,0 +1,176 @@
|
|
|
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";
|
|
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
|
|
23
|
+
*/
|
|
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
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* @generated from message data.v2.EarnVault
|
|
40
|
+
*/
|
|
41
|
+
export declare class EarnVault extends Message<EarnVault> {
|
|
42
|
+
/**
|
|
43
|
+
* @generated from field: string address = 1;
|
|
44
|
+
*/
|
|
45
|
+
address: string;
|
|
46
|
+
/**
|
|
47
|
+
* @generated from field: uint32 chain_id = 2;
|
|
48
|
+
*/
|
|
49
|
+
chainId: number;
|
|
50
|
+
/**
|
|
51
|
+
* @generated from field: string name = 3;
|
|
52
|
+
*/
|
|
53
|
+
name: string;
|
|
54
|
+
/**
|
|
55
|
+
* @generated from field: string symbol = 4;
|
|
56
|
+
*/
|
|
57
|
+
symbol: string;
|
|
58
|
+
/**
|
|
59
|
+
* @generated from field: data.v1.Token underlying_token = 5;
|
|
60
|
+
*/
|
|
61
|
+
underlyingToken?: Token;
|
|
62
|
+
/**
|
|
63
|
+
* @generated from field: data.v2.EarnVaultStatus status = 6;
|
|
64
|
+
*/
|
|
65
|
+
status: EarnVaultStatus;
|
|
66
|
+
/**
|
|
67
|
+
* @generated from field: string total_assets_raw = 7;
|
|
68
|
+
*/
|
|
69
|
+
totalAssetsRaw: string;
|
|
70
|
+
/**
|
|
71
|
+
* @generated from field: optional double total_assets_usd = 8;
|
|
72
|
+
*/
|
|
73
|
+
totalAssetsUsd?: number;
|
|
74
|
+
/**
|
|
75
|
+
* @generated from field: string total_supply_raw = 9;
|
|
76
|
+
*/
|
|
77
|
+
totalSupplyRaw: string;
|
|
78
|
+
/**
|
|
79
|
+
* @generated from field: string liquidity_raw = 10;
|
|
80
|
+
*/
|
|
81
|
+
liquidityRaw: string;
|
|
82
|
+
/**
|
|
83
|
+
* @generated from field: optional double liquidity_usd = 11;
|
|
84
|
+
*/
|
|
85
|
+
liquidityUsd?: number;
|
|
86
|
+
/**
|
|
87
|
+
* @generated from field: double share_price = 12;
|
|
88
|
+
*/
|
|
89
|
+
sharePrice: number;
|
|
90
|
+
/**
|
|
91
|
+
* @generated from field: optional double apy = 13;
|
|
92
|
+
*/
|
|
93
|
+
apy?: number;
|
|
94
|
+
/**
|
|
95
|
+
* @generated from field: optional double net_apy = 14;
|
|
96
|
+
*/
|
|
97
|
+
netApy?: number;
|
|
98
|
+
/**
|
|
99
|
+
* @generated from field: optional double avg_net_apy = 15;
|
|
100
|
+
*/
|
|
101
|
+
avgNetApy?: number;
|
|
102
|
+
/**
|
|
103
|
+
* @generated from field: optional double performance_fee = 16;
|
|
104
|
+
*/
|
|
105
|
+
performanceFee?: number;
|
|
106
|
+
/**
|
|
107
|
+
* @generated from field: optional double management_fee = 17;
|
|
108
|
+
*/
|
|
109
|
+
managementFee?: number;
|
|
110
|
+
/**
|
|
111
|
+
* @generated from field: repeated data.v2.EarnVaultWarning warnings = 18;
|
|
112
|
+
*/
|
|
113
|
+
warnings: EarnVaultWarning[];
|
|
114
|
+
constructor(data?: PartialMessage<EarnVault>);
|
|
115
|
+
static readonly runtime: typeof proto3;
|
|
116
|
+
static readonly typeName = "data.v2.EarnVault";
|
|
117
|
+
static readonly fields: FieldList;
|
|
118
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EarnVault;
|
|
119
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EarnVault;
|
|
120
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EarnVault;
|
|
121
|
+
static equals(a: EarnVault | PlainMessage<EarnVault> | undefined, b: EarnVault | PlainMessage<EarnVault> | undefined): boolean;
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* @generated from message data.v2.EarnVaultWarning
|
|
125
|
+
*/
|
|
126
|
+
export declare class EarnVaultWarning extends Message<EarnVaultWarning> {
|
|
127
|
+
/**
|
|
128
|
+
* @generated from field: string type = 1;
|
|
129
|
+
*/
|
|
130
|
+
type: string;
|
|
131
|
+
/**
|
|
132
|
+
* @generated from field: string level = 2;
|
|
133
|
+
*/
|
|
134
|
+
level: string;
|
|
135
|
+
constructor(data?: PartialMessage<EarnVaultWarning>);
|
|
136
|
+
static readonly runtime: typeof proto3;
|
|
137
|
+
static readonly typeName = "data.v2.EarnVaultWarning";
|
|
138
|
+
static readonly fields: FieldList;
|
|
139
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EarnVaultWarning;
|
|
140
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EarnVaultWarning;
|
|
141
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EarnVaultWarning;
|
|
142
|
+
static equals(a: EarnVaultWarning | PlainMessage<EarnVaultWarning> | undefined, b: EarnVaultWarning | PlainMessage<EarnVaultWarning> | undefined): boolean;
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* @generated from message data.v2.EarnPosition
|
|
146
|
+
*/
|
|
147
|
+
export declare class EarnPosition extends Message<EarnPosition> {
|
|
148
|
+
/**
|
|
149
|
+
* @generated from field: data.v2.EarnVault vault = 1;
|
|
150
|
+
*/
|
|
151
|
+
vault?: EarnVault;
|
|
152
|
+
/**
|
|
153
|
+
* @generated from field: string shares_raw = 2;
|
|
154
|
+
*/
|
|
155
|
+
sharesRaw: string;
|
|
156
|
+
/**
|
|
157
|
+
* @generated from field: string current_assets_raw = 3;
|
|
158
|
+
*/
|
|
159
|
+
currentAssetsRaw: string;
|
|
160
|
+
/**
|
|
161
|
+
* @generated from field: optional double current_assets_usd = 4;
|
|
162
|
+
*/
|
|
163
|
+
currentAssetsUsd?: number;
|
|
164
|
+
/**
|
|
165
|
+
* @generated from field: data.v2.EarnPositionStatus status = 5;
|
|
166
|
+
*/
|
|
167
|
+
status: EarnPositionStatus;
|
|
168
|
+
constructor(data?: PartialMessage<EarnPosition>);
|
|
169
|
+
static readonly runtime: typeof proto3;
|
|
170
|
+
static readonly typeName = "data.v2.EarnPosition";
|
|
171
|
+
static readonly fields: FieldList;
|
|
172
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EarnPosition;
|
|
173
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EarnPosition;
|
|
174
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EarnPosition;
|
|
175
|
+
static equals(a: EarnPosition | PlainMessage<EarnPosition> | undefined, b: EarnPosition | PlainMessage<EarnPosition> | undefined): boolean;
|
|
176
|
+
}
|
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v1.10.1 with parameter "target=ts"
|
|
2
|
+
// @generated from file data/v2/earn.proto (package data.v2, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
6
|
+
import { Token } from "../v1/types_pb.js";
|
|
7
|
+
/**
|
|
8
|
+
* @generated from enum data.v2.EarnVaultStatus
|
|
9
|
+
*/
|
|
10
|
+
export var EarnVaultStatus;
|
|
11
|
+
(function (EarnVaultStatus) {
|
|
12
|
+
/**
|
|
13
|
+
* @generated from enum value: EARN_VAULT_STATUS_UNSPECIFIED = 0;
|
|
14
|
+
*/
|
|
15
|
+
EarnVaultStatus[EarnVaultStatus["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
16
|
+
/**
|
|
17
|
+
* @generated from enum value: EARN_VAULT_STATUS_ACTIVE = 1;
|
|
18
|
+
*/
|
|
19
|
+
EarnVaultStatus[EarnVaultStatus["ACTIVE"] = 1] = "ACTIVE";
|
|
20
|
+
/**
|
|
21
|
+
* @generated from enum value: EARN_VAULT_STATUS_DEPRECATED = 2;
|
|
22
|
+
*/
|
|
23
|
+
EarnVaultStatus[EarnVaultStatus["DEPRECATED"] = 2] = "DEPRECATED";
|
|
24
|
+
})(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
|
+
]);
|
|
31
|
+
/**
|
|
32
|
+
* @generated from enum data.v2.EarnPositionStatus
|
|
33
|
+
*/
|
|
34
|
+
export var EarnPositionStatus;
|
|
35
|
+
(function (EarnPositionStatus) {
|
|
36
|
+
/**
|
|
37
|
+
* @generated from enum value: EARN_POSITION_STATUS_UNSPECIFIED = 0;
|
|
38
|
+
*/
|
|
39
|
+
EarnPositionStatus[EarnPositionStatus["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
40
|
+
/**
|
|
41
|
+
* @generated from enum value: EARN_POSITION_STATUS_ACTIVE = 1;
|
|
42
|
+
*/
|
|
43
|
+
EarnPositionStatus[EarnPositionStatus["ACTIVE"] = 1] = "ACTIVE";
|
|
44
|
+
/**
|
|
45
|
+
* @generated from enum value: EARN_POSITION_STATUS_CLOSED = 2;
|
|
46
|
+
*/
|
|
47
|
+
EarnPositionStatus[EarnPositionStatus["CLOSED"] = 2] = "CLOSED";
|
|
48
|
+
})(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
|
+
proto3.util.initPartial(data, this);
|
|
102
|
+
}
|
|
103
|
+
static fromBinary(bytes, options) {
|
|
104
|
+
return new EarnVault().fromBinary(bytes, options);
|
|
105
|
+
}
|
|
106
|
+
static fromJson(jsonValue, options) {
|
|
107
|
+
return new EarnVault().fromJson(jsonValue, options);
|
|
108
|
+
}
|
|
109
|
+
static fromJsonString(jsonString, options) {
|
|
110
|
+
return new EarnVault().fromJsonString(jsonString, options);
|
|
111
|
+
}
|
|
112
|
+
static equals(a, b) {
|
|
113
|
+
return proto3.util.equals(EarnVault, a, b);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
EarnVault.runtime = proto3;
|
|
117
|
+
EarnVault.typeName = "data.v2.EarnVault";
|
|
118
|
+
EarnVault.fields = proto3.util.newFieldList(() => [
|
|
119
|
+
{ no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
120
|
+
{ no: 2, name: "chain_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
121
|
+
{ no: 3, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
122
|
+
{ no: 4, name: "symbol", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
123
|
+
{ no: 5, name: "underlying_token", kind: "message", T: Token },
|
|
124
|
+
{ no: 6, name: "status", kind: "enum", T: proto3.getEnumType(EarnVaultStatus) },
|
|
125
|
+
{ no: 7, name: "total_assets_raw", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
126
|
+
{ no: 8, name: "total_assets_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
127
|
+
{ no: 9, name: "total_supply_raw", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
128
|
+
{ no: 10, name: "liquidity_raw", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
129
|
+
{ no: 11, name: "liquidity_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
130
|
+
{ no: 12, name: "share_price", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
131
|
+
{ no: 13, name: "apy", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
132
|
+
{ no: 14, name: "net_apy", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
133
|
+
{ no: 15, name: "avg_net_apy", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
134
|
+
{ no: 16, name: "performance_fee", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
135
|
+
{ no: 17, name: "management_fee", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
136
|
+
{ no: 18, name: "warnings", kind: "message", T: EarnVaultWarning, repeated: true },
|
|
137
|
+
]);
|
|
138
|
+
/**
|
|
139
|
+
* @generated from message data.v2.EarnVaultWarning
|
|
140
|
+
*/
|
|
141
|
+
export class EarnVaultWarning extends Message {
|
|
142
|
+
constructor(data) {
|
|
143
|
+
super();
|
|
144
|
+
/**
|
|
145
|
+
* @generated from field: string type = 1;
|
|
146
|
+
*/
|
|
147
|
+
this.type = "";
|
|
148
|
+
/**
|
|
149
|
+
* @generated from field: string level = 2;
|
|
150
|
+
*/
|
|
151
|
+
this.level = "";
|
|
152
|
+
proto3.util.initPartial(data, this);
|
|
153
|
+
}
|
|
154
|
+
static fromBinary(bytes, options) {
|
|
155
|
+
return new EarnVaultWarning().fromBinary(bytes, options);
|
|
156
|
+
}
|
|
157
|
+
static fromJson(jsonValue, options) {
|
|
158
|
+
return new EarnVaultWarning().fromJson(jsonValue, options);
|
|
159
|
+
}
|
|
160
|
+
static fromJsonString(jsonString, options) {
|
|
161
|
+
return new EarnVaultWarning().fromJsonString(jsonString, options);
|
|
162
|
+
}
|
|
163
|
+
static equals(a, b) {
|
|
164
|
+
return proto3.util.equals(EarnVaultWarning, a, b);
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
EarnVaultWarning.runtime = proto3;
|
|
168
|
+
EarnVaultWarning.typeName = "data.v2.EarnVaultWarning";
|
|
169
|
+
EarnVaultWarning.fields = proto3.util.newFieldList(() => [
|
|
170
|
+
{ no: 1, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
171
|
+
{ no: 2, name: "level", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
172
|
+
]);
|
|
173
|
+
/**
|
|
174
|
+
* @generated from message data.v2.EarnPosition
|
|
175
|
+
*/
|
|
176
|
+
export class EarnPosition extends Message {
|
|
177
|
+
constructor(data) {
|
|
178
|
+
super();
|
|
179
|
+
/**
|
|
180
|
+
* @generated from field: string shares_raw = 2;
|
|
181
|
+
*/
|
|
182
|
+
this.sharesRaw = "";
|
|
183
|
+
/**
|
|
184
|
+
* @generated from field: string current_assets_raw = 3;
|
|
185
|
+
*/
|
|
186
|
+
this.currentAssetsRaw = "";
|
|
187
|
+
/**
|
|
188
|
+
* @generated from field: data.v2.EarnPositionStatus status = 5;
|
|
189
|
+
*/
|
|
190
|
+
this.status = EarnPositionStatus.UNSPECIFIED;
|
|
191
|
+
proto3.util.initPartial(data, this);
|
|
192
|
+
}
|
|
193
|
+
static fromBinary(bytes, options) {
|
|
194
|
+
return new EarnPosition().fromBinary(bytes, options);
|
|
195
|
+
}
|
|
196
|
+
static fromJson(jsonValue, options) {
|
|
197
|
+
return new EarnPosition().fromJson(jsonValue, options);
|
|
198
|
+
}
|
|
199
|
+
static fromJsonString(jsonString, options) {
|
|
200
|
+
return new EarnPosition().fromJsonString(jsonString, options);
|
|
201
|
+
}
|
|
202
|
+
static equals(a, b) {
|
|
203
|
+
return proto3.util.equals(EarnPosition, a, b);
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
EarnPosition.runtime = proto3;
|
|
207
|
+
EarnPosition.typeName = "data.v2.EarnPosition";
|
|
208
|
+
EarnPosition.fields = proto3.util.newFieldList(() => [
|
|
209
|
+
{ no: 1, name: "vault", kind: "message", T: EarnVault },
|
|
210
|
+
{ no: 2, name: "shares_raw", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
211
|
+
{ no: 3, name: "current_assets_raw", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
212
|
+
{ no: 4, name: "current_assets_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
213
|
+
{ no: 5, name: "status", kind: "enum", T: proto3.getEnumType(EarnPositionStatus) },
|
|
214
|
+
]);
|