@uniswap/client-data-api 0.0.80 → 0.0.82
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/earn_pb.d.ts +30 -4
- package/dist/data/v2/earn_pb.js +14 -4
- package/package.json +1 -1
|
@@ -112,13 +112,25 @@ export declare class EarnVault extends Message<EarnVault> {
|
|
|
112
112
|
*/
|
|
113
113
|
warnings: EarnVaultWarning[];
|
|
114
114
|
/**
|
|
115
|
-
* Deduplicated tokens the vault has exposure to via its allocations.
|
|
116
|
-
* Always begins with underlying_token. Only populated on ListEarnVaults;
|
|
117
|
-
* EarnPosition.vault only carries underlying_token here.
|
|
118
|
-
*
|
|
119
115
|
* @generated from field: repeated data.v1.Token exposure_tokens = 19;
|
|
120
116
|
*/
|
|
121
117
|
exposureTokens: Token[];
|
|
118
|
+
/**
|
|
119
|
+
* @generated from field: string curator_address = 20;
|
|
120
|
+
*/
|
|
121
|
+
curatorAddress: string;
|
|
122
|
+
/**
|
|
123
|
+
* @generated from field: string curator_name = 21;
|
|
124
|
+
*/
|
|
125
|
+
curatorName: string;
|
|
126
|
+
/**
|
|
127
|
+
* @generated from field: optional string curator_image_url = 22;
|
|
128
|
+
*/
|
|
129
|
+
curatorImageUrl?: string;
|
|
130
|
+
/**
|
|
131
|
+
* @generated from field: optional int64 deployment_timestamp = 23;
|
|
132
|
+
*/
|
|
133
|
+
deploymentTimestamp?: bigint;
|
|
122
134
|
constructor(data?: PartialMessage<EarnVault>);
|
|
123
135
|
static readonly runtime: typeof proto3;
|
|
124
136
|
static readonly typeName = "data.v2.EarnVault";
|
|
@@ -173,6 +185,20 @@ export declare class EarnPosition extends Message<EarnPosition> {
|
|
|
173
185
|
* @generated from field: data.v2.EarnPositionStatus status = 5;
|
|
174
186
|
*/
|
|
175
187
|
status: EarnPositionStatus;
|
|
188
|
+
/**
|
|
189
|
+
* Lifetime PnL in underlying-asset units (signed BigInt as string):
|
|
190
|
+
* current_assets_raw + Σ(withdrawals) − Σ(deposits). Transfers in/out
|
|
191
|
+
* are ignored. Populated by GetEarnPosition only.
|
|
192
|
+
*
|
|
193
|
+
* @generated from field: optional string lifetime_pnl_raw = 6;
|
|
194
|
+
*/
|
|
195
|
+
lifetimePnlRaw?: string;
|
|
196
|
+
/**
|
|
197
|
+
* lifetime_pnl_raw valued at the underlying's current USD price.
|
|
198
|
+
*
|
|
199
|
+
* @generated from field: optional double lifetime_pnl_usd = 7;
|
|
200
|
+
*/
|
|
201
|
+
lifetimePnlUsd?: number;
|
|
176
202
|
constructor(data?: PartialMessage<EarnPosition>);
|
|
177
203
|
static readonly runtime: typeof proto3;
|
|
178
204
|
static readonly typeName = "data.v2.EarnPosition";
|
package/dist/data/v2/earn_pb.js
CHANGED
|
@@ -99,13 +99,17 @@ export class EarnVault extends Message {
|
|
|
99
99
|
*/
|
|
100
100
|
this.warnings = [];
|
|
101
101
|
/**
|
|
102
|
-
* Deduplicated tokens the vault has exposure to via its allocations.
|
|
103
|
-
* Always begins with underlying_token. Only populated on ListEarnVaults;
|
|
104
|
-
* EarnPosition.vault only carries underlying_token here.
|
|
105
|
-
*
|
|
106
102
|
* @generated from field: repeated data.v1.Token exposure_tokens = 19;
|
|
107
103
|
*/
|
|
108
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 = "";
|
|
109
113
|
proto3.util.initPartial(data, this);
|
|
110
114
|
}
|
|
111
115
|
static fromBinary(bytes, options) {
|
|
@@ -143,6 +147,10 @@ EarnVault.fields = proto3.util.newFieldList(() => [
|
|
|
143
147
|
{ no: 17, name: "management_fee", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
144
148
|
{ no: 18, name: "warnings", kind: "message", T: EarnVaultWarning, repeated: true },
|
|
145
149
|
{ no: 19, name: "exposure_tokens", kind: "message", T: Token, repeated: true },
|
|
150
|
+
{ no: 20, name: "curator_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
151
|
+
{ no: 21, name: "curator_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
152
|
+
{ no: 22, name: "curator_image_url", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
153
|
+
{ no: 23, name: "deployment_timestamp", kind: "scalar", T: 3 /* ScalarType.INT64 */, opt: true },
|
|
146
154
|
]);
|
|
147
155
|
/**
|
|
148
156
|
* @generated from message data.v2.EarnVaultWarning
|
|
@@ -220,4 +228,6 @@ EarnPosition.fields = proto3.util.newFieldList(() => [
|
|
|
220
228
|
{ no: 3, name: "current_assets_raw", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
221
229
|
{ no: 4, name: "current_assets_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
222
230
|
{ no: 5, name: "status", kind: "enum", T: proto3.getEnumType(EarnPositionStatus) },
|
|
231
|
+
{ no: 6, name: "lifetime_pnl_raw", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
232
|
+
{ no: 7, name: "lifetime_pnl_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
223
233
|
]);
|