@uniswap/client-data-api 0.0.81 → 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 +14 -15
- package/dist/data/v2/earn_pb.js +2 -10
- package/package.json +1 -1
|
@@ -112,37 +112,22 @@ 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[];
|
|
122
118
|
/**
|
|
123
|
-
* On-chain curator account (EIP-55 checksummed). Sourced from
|
|
124
|
-
* VaultV2.curator.address.
|
|
125
|
-
*
|
|
126
119
|
* @generated from field: string curator_address = 20;
|
|
127
120
|
*/
|
|
128
121
|
curatorAddress: string;
|
|
129
122
|
/**
|
|
130
|
-
* Display name from the curator's Morpho profile, e.g. "Gauntlet".
|
|
131
|
-
* Empty when Morpho has no profile for this vault's curator.
|
|
132
|
-
*
|
|
133
123
|
* @generated from field: string curator_name = 21;
|
|
134
124
|
*/
|
|
135
125
|
curatorName: string;
|
|
136
126
|
/**
|
|
137
|
-
* Optional avatar URL for the curator profile.
|
|
138
|
-
*
|
|
139
127
|
* @generated from field: optional string curator_image_url = 22;
|
|
140
128
|
*/
|
|
141
129
|
curatorImageUrl?: string;
|
|
142
130
|
/**
|
|
143
|
-
* Vault deployment time as unix seconds. Sourced from
|
|
144
|
-
* VaultV2.creationTimestamp.
|
|
145
|
-
*
|
|
146
131
|
* @generated from field: optional int64 deployment_timestamp = 23;
|
|
147
132
|
*/
|
|
148
133
|
deploymentTimestamp?: bigint;
|
|
@@ -200,6 +185,20 @@ export declare class EarnPosition extends Message<EarnPosition> {
|
|
|
200
185
|
* @generated from field: data.v2.EarnPositionStatus status = 5;
|
|
201
186
|
*/
|
|
202
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;
|
|
203
202
|
constructor(data?: PartialMessage<EarnPosition>);
|
|
204
203
|
static readonly runtime: typeof proto3;
|
|
205
204
|
static readonly typeName = "data.v2.EarnPosition";
|
package/dist/data/v2/earn_pb.js
CHANGED
|
@@ -99,24 +99,14 @@ 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 = [];
|
|
109
105
|
/**
|
|
110
|
-
* On-chain curator account (EIP-55 checksummed). Sourced from
|
|
111
|
-
* VaultV2.curator.address.
|
|
112
|
-
*
|
|
113
106
|
* @generated from field: string curator_address = 20;
|
|
114
107
|
*/
|
|
115
108
|
this.curatorAddress = "";
|
|
116
109
|
/**
|
|
117
|
-
* Display name from the curator's Morpho profile, e.g. "Gauntlet".
|
|
118
|
-
* Empty when Morpho has no profile for this vault's curator.
|
|
119
|
-
*
|
|
120
110
|
* @generated from field: string curator_name = 21;
|
|
121
111
|
*/
|
|
122
112
|
this.curatorName = "";
|
|
@@ -238,4 +228,6 @@ EarnPosition.fields = proto3.util.newFieldList(() => [
|
|
|
238
228
|
{ no: 3, name: "current_assets_raw", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
239
229
|
{ no: 4, name: "current_assets_usd", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
240
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 },
|
|
241
233
|
]);
|