@uniswap/client-data-api 0.0.122 → 0.0.123

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.
@@ -131,6 +131,12 @@ export declare class EarnVault extends Message<EarnVault> {
131
131
  * @generated from field: optional int64 deployment_timestamp = 23;
132
132
  */
133
133
  deploymentTimestamp?: bigint;
134
+ /**
135
+ * Per-asset amounts; empty when adapter data was not fetched.
136
+ *
137
+ * @generated from field: repeated data.v2.EarnVaultExposure exposures = 24;
138
+ */
139
+ exposures: EarnVaultExposure[];
134
140
  constructor(data?: PartialMessage<EarnVault>);
135
141
  static readonly runtime: typeof proto3;
136
142
  static readonly typeName = "data.v2.EarnVault";
@@ -140,6 +146,40 @@ export declare class EarnVault extends Message<EarnVault> {
140
146
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EarnVault;
141
147
  static equals(a: EarnVault | PlainMessage<EarnVault> | undefined, b: EarnVault | PlainMessage<EarnVault> | undefined): boolean;
142
148
  }
149
+ /**
150
+ * @generated from message data.v2.EarnVaultExposure
151
+ */
152
+ export declare class EarnVaultExposure extends Message<EarnVaultExposure> {
153
+ /**
154
+ * @generated from field: data.v1.Token token = 1;
155
+ */
156
+ token?: Token;
157
+ /**
158
+ * Amount in vault-underlying base units, encoded as a string. Omitted when
159
+ * any amount-bearing contribution cannot be determined.
160
+ *
161
+ * @generated from field: optional string assets_raw = 2;
162
+ */
163
+ assetsRaw?: string;
164
+ /**
165
+ * @generated from field: optional double assets_usd = 3;
166
+ */
167
+ assetsUsd?: number;
168
+ /**
169
+ * Share of total vault assets; may sum to less than 1.
170
+ *
171
+ * @generated from field: optional double share = 4;
172
+ */
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
+ }
143
183
  /**
144
184
  * @generated from message data.v2.EarnVaultWarning
145
185
  */
@@ -110,6 +110,12 @@ export class EarnVault extends Message {
110
110
  * @generated from field: string curator_name = 21;
111
111
  */
112
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 = [];
113
119
  proto3.util.initPartial(data, this);
114
120
  }
115
121
  static fromBinary(bytes, options) {
@@ -151,6 +157,36 @@ EarnVault.fields = proto3.util.newFieldList(() => [
151
157
  { no: 21, name: "curator_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
152
158
  { no: 22, name: "curator_image_url", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
153
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 },
154
190
  ]);
155
191
  /**
156
192
  * @generated from message data.v2.EarnVaultWarning
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniswap/client-data-api",
3
- "version": "0.0.122",
3
+ "version": "0.0.123",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },