@uniswap/client-trading 0.5.8 → 0.5.11

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.
@@ -145,7 +145,11 @@ export declare enum ChainId {
145
145
  /**
146
146
  * @generated from enum value: ARC = 5042;
147
147
  */
148
- ARC = 5042
148
+ ARC = 5042,
149
+ /**
150
+ * @generated from enum value: INK = 57073;
151
+ */
152
+ INK = 57073
149
153
  }
150
154
  /**
151
155
  * @generated from enum trading.v1.Protocols
@@ -366,7 +370,31 @@ export declare enum PlanStepType {
366
370
  /**
367
371
  * @generated from enum value: PLAN_STEP_TYPE_RESET_APPROVAL_TXN = 13;
368
372
  */
369
- RESET_APPROVAL_TXN = 13
373
+ RESET_APPROVAL_TXN = 13,
374
+ /**
375
+ * @generated from enum value: PLAN_STEP_TYPE_VAULT_DEPOSIT = 14;
376
+ */
377
+ VAULT_DEPOSIT = 14,
378
+ /**
379
+ * @generated from enum value: PLAN_STEP_TYPE_VAULT_WITHDRAW = 15;
380
+ */
381
+ VAULT_WITHDRAW = 15
382
+ }
383
+ /**
384
+ * Set when the output is a fee taken from the swap; unset for the swapper's
385
+ * core output.
386
+ *
387
+ * @generated from enum trading.v1.AggregatedOutputFee
388
+ */
389
+ export declare enum AggregatedOutputFee {
390
+ /**
391
+ * @generated from enum value: AGGREGATED_OUTPUT_FEE_UNSPECIFIED = 0;
392
+ */
393
+ AGGREGATED_OUTPUT_FEE_UNSPECIFIED = 0,
394
+ /**
395
+ * @generated from enum value: INTEGRATOR = 1;
396
+ */
397
+ INTEGRATOR = 1
370
398
  }
371
399
  /**
372
400
  * @generated from enum trading.v1.PoolType
@@ -1721,6 +1749,10 @@ export declare class QuoteRequest extends Message<QuoteRequest> {
1721
1749
  * @generated from field: optional trading.v1.UrgencyWithOverrides urgency_overrides = 23;
1722
1750
  */
1723
1751
  urgencyOverrides?: UrgencyWithOverrides;
1752
+ /**
1753
+ * @generated from field: optional trading.v1.EarnIntent earn_intent = 24;
1754
+ */
1755
+ earnIntent?: EarnIntent;
1724
1756
  constructor(data?: PartialMessage<QuoteRequest>);
1725
1757
  static readonly runtime: typeof proto3;
1726
1758
  static readonly typeName = "trading.v1.QuoteRequest";
@@ -1730,6 +1762,146 @@ export declare class QuoteRequest extends Message<QuoteRequest> {
1730
1762
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): QuoteRequest;
1731
1763
  static equals(a: QuoteRequest | PlainMessage<QuoteRequest> | undefined, b: QuoteRequest | PlainMessage<QuoteRequest> | undefined): boolean;
1732
1764
  }
1765
+ /**
1766
+ * @generated from message trading.v1.EarnIntent
1767
+ */
1768
+ export declare class EarnIntent extends Message<EarnIntent> {
1769
+ /**
1770
+ * @generated from field: string action = 1;
1771
+ */
1772
+ action: string;
1773
+ /**
1774
+ * @generated from field: string vault = 2;
1775
+ */
1776
+ vault: string;
1777
+ /**
1778
+ * @generated from field: trading.v1.ChainId chain_id = 3;
1779
+ */
1780
+ chainId: ChainId;
1781
+ /**
1782
+ * @generated from field: optional string withdraw_mode = 4;
1783
+ */
1784
+ withdrawMode?: string;
1785
+ constructor(data?: PartialMessage<EarnIntent>);
1786
+ static readonly runtime: typeof proto3;
1787
+ static readonly typeName = "trading.v1.EarnIntent";
1788
+ static readonly fields: FieldList;
1789
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EarnIntent;
1790
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EarnIntent;
1791
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EarnIntent;
1792
+ static equals(a: EarnIntent | PlainMessage<EarnIntent> | undefined, b: EarnIntent | PlainMessage<EarnIntent> | undefined): boolean;
1793
+ }
1794
+ /**
1795
+ * @generated from message trading.v1.EarnPreview
1796
+ */
1797
+ export declare class EarnPreview extends Message<EarnPreview> {
1798
+ /**
1799
+ * @generated from field: string type = 1;
1800
+ */
1801
+ type: string;
1802
+ /**
1803
+ * @generated from field: repeated trading.v1.EarnPreviewDepositAsset deposit_assets = 2;
1804
+ */
1805
+ depositAssets: EarnPreviewDepositAsset[];
1806
+ /**
1807
+ * @generated from field: optional string estimated_shares_out = 3;
1808
+ */
1809
+ estimatedSharesOut?: string;
1810
+ /**
1811
+ * @generated from field: optional string requested_assets_out = 4;
1812
+ */
1813
+ requestedAssetsOut?: string;
1814
+ /**
1815
+ * @generated from field: optional string estimated_shares_in = 5;
1816
+ */
1817
+ estimatedSharesIn?: string;
1818
+ /**
1819
+ * @generated from field: optional string max_redeemable_shares_in = 6;
1820
+ */
1821
+ maxRedeemableSharesIn?: string;
1822
+ /**
1823
+ * @generated from field: optional string preview_assets_out = 7;
1824
+ */
1825
+ previewAssetsOut?: string;
1826
+ constructor(data?: PartialMessage<EarnPreview>);
1827
+ static readonly runtime: typeof proto3;
1828
+ static readonly typeName = "trading.v1.EarnPreview";
1829
+ static readonly fields: FieldList;
1830
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EarnPreview;
1831
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EarnPreview;
1832
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EarnPreview;
1833
+ static equals(a: EarnPreview | PlainMessage<EarnPreview> | undefined, b: EarnPreview | PlainMessage<EarnPreview> | undefined): boolean;
1834
+ }
1835
+ /**
1836
+ * @generated from message trading.v1.EarnPreviewDepositAsset
1837
+ */
1838
+ export declare class EarnPreviewDepositAsset extends Message<EarnPreviewDepositAsset> {
1839
+ /**
1840
+ * @generated from field: string token = 1;
1841
+ */
1842
+ token: string;
1843
+ /**
1844
+ * @generated from field: trading.v1.ChainId chain_id = 2;
1845
+ */
1846
+ chainId: ChainId;
1847
+ /**
1848
+ * @generated from field: string amount = 3;
1849
+ */
1850
+ amount: string;
1851
+ constructor(data?: PartialMessage<EarnPreviewDepositAsset>);
1852
+ static readonly runtime: typeof proto3;
1853
+ static readonly typeName = "trading.v1.EarnPreviewDepositAsset";
1854
+ static readonly fields: FieldList;
1855
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EarnPreviewDepositAsset;
1856
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EarnPreviewDepositAsset;
1857
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EarnPreviewDepositAsset;
1858
+ static equals(a: EarnPreviewDepositAsset | PlainMessage<EarnPreviewDepositAsset> | undefined, b: EarnPreviewDepositAsset | PlainMessage<EarnPreviewDepositAsset> | undefined): boolean;
1859
+ }
1860
+ /**
1861
+ * @generated from message trading.v1.EarnQuoteIntent
1862
+ */
1863
+ export declare class EarnQuoteIntent extends Message<EarnQuoteIntent> {
1864
+ /**
1865
+ * @generated from field: string action = 1;
1866
+ */
1867
+ action: string;
1868
+ /**
1869
+ * @generated from field: string vault = 2;
1870
+ */
1871
+ vault: string;
1872
+ /**
1873
+ * @generated from field: trading.v1.ChainId chain_id = 3;
1874
+ */
1875
+ chainId: ChainId;
1876
+ /**
1877
+ * @generated from field: optional string withdraw_mode = 4;
1878
+ */
1879
+ withdrawMode?: string;
1880
+ /**
1881
+ * @generated from field: string underlying_asset = 5;
1882
+ */
1883
+ underlyingAsset: string;
1884
+ /**
1885
+ * @generated from field: optional trading.v1.EarnPreview preview = 6;
1886
+ */
1887
+ preview?: EarnPreview;
1888
+ /**
1889
+ * @generated from field: optional string requested_assets = 7;
1890
+ */
1891
+ requestedAssets?: string;
1892
+ /**
1893
+ * @generated from field: optional string destination_gas_mode = 8;
1894
+ */
1895
+ destinationGasMode?: string;
1896
+ constructor(data?: PartialMessage<EarnQuoteIntent>);
1897
+ static readonly runtime: typeof proto3;
1898
+ static readonly typeName = "trading.v1.EarnQuoteIntent";
1899
+ static readonly fields: FieldList;
1900
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): EarnQuoteIntent;
1901
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): EarnQuoteIntent;
1902
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): EarnQuoteIntent;
1903
+ static equals(a: EarnQuoteIntent | PlainMessage<EarnQuoteIntent> | undefined, b: EarnQuoteIntent | PlainMessage<EarnQuoteIntent> | undefined): boolean;
1904
+ }
1733
1905
  /**
1734
1906
  * @generated from message trading.v1.IntegratorFee
1735
1907
  */
@@ -2241,6 +2413,10 @@ export declare class AggregatedOutput extends Message<AggregatedOutput> {
2241
2413
  * @generated from field: optional string min_amount = 5;
2242
2414
  */
2243
2415
  minAmount?: string;
2416
+ /**
2417
+ * @generated from field: optional trading.v1.AggregatedOutputFee fee = 6;
2418
+ */
2419
+ fee?: AggregatedOutputFee;
2244
2420
  constructor(data?: PartialMessage<AggregatedOutput>);
2245
2421
  static readonly runtime: typeof proto3;
2246
2422
  static readonly typeName = "trading.v1.AggregatedOutput";
@@ -5591,6 +5767,14 @@ export declare class ChainedQuote extends Message<ChainedQuote> {
5591
5767
  * @generated from field: optional double compound_slippage = 19;
5592
5768
  */
5593
5769
  compoundSlippage?: number;
5770
+ /**
5771
+ * @generated from field: optional trading.v1.EarnQuoteIntent earn_intent = 20;
5772
+ */
5773
+ earnIntent?: EarnQuoteIntent;
5774
+ /**
5775
+ * @generated from field: optional trading.v1.EarnPreview earn_preview = 21;
5776
+ */
5777
+ earnPreview?: EarnPreview;
5594
5778
  constructor(data?: PartialMessage<ChainedQuote>);
5595
5779
  static readonly runtime: typeof proto3;
5596
5780
  static readonly typeName = "trading.v1.ChainedQuote";
@@ -6484,6 +6668,10 @@ export declare class CreatePlanRequest extends Message<CreatePlanRequest> {
6484
6668
  * @generated from field: optional trading.v1.UrgencyWithOverrides urgency_overrides = 4;
6485
6669
  */
6486
6670
  urgencyOverrides?: UrgencyWithOverrides;
6671
+ /**
6672
+ * @generated from field: optional trading.v1.EarnIntent earn_intent = 5;
6673
+ */
6674
+ earnIntent?: EarnIntent;
6487
6675
  constructor(data?: PartialMessage<CreatePlanRequest>);
6488
6676
  static readonly runtime: typeof proto3;
6489
6677
  static readonly typeName = "trading.v1.CreatePlanRequest";
@@ -6602,6 +6790,10 @@ export declare class PlanResponse extends Message<PlanResponse> {
6602
6790
  * @generated from field: optional string last_user_action_at = 21;
6603
6791
  */
6604
6792
  lastUserActionAt?: string;
6793
+ /**
6794
+ * @generated from field: optional trading.v1.EarnQuoteIntent earn_intent = 22;
6795
+ */
6796
+ earnIntent?: EarnQuoteIntent;
6605
6797
  constructor(data?: PartialMessage<PlanResponse>);
6606
6798
  static readonly runtime: typeof proto3;
6607
6799
  static readonly typeName = "trading.v1.PlanResponse";
@@ -165,6 +165,10 @@ export var ChainId;
165
165
  * @generated from enum value: ARC = 5042;
166
166
  */
167
167
  ChainId[ChainId["ARC"] = 5042] = "ARC";
168
+ /**
169
+ * @generated from enum value: INK = 57073;
170
+ */
171
+ ChainId[ChainId["INK"] = 57073] = "INK";
168
172
  })(ChainId || (ChainId = {}));
169
173
  // Retrieve enum metadata with: proto3.getEnumType(ChainId)
170
174
  proto3.util.setEnumType(ChainId, "trading.v1.ChainId", [
@@ -194,6 +198,7 @@ proto3.util.setEnumType(ChainId, "trading.v1.ChainId", [
194
198
  { no: 4217, name: "TEMPO" },
195
199
  { no: 4663, name: "ROBINHOOD" },
196
200
  { no: 5042, name: "ARC" },
201
+ { no: 57073, name: "INK" },
197
202
  ]);
198
203
  /**
199
204
  * @generated from enum trading.v1.Protocols
@@ -478,6 +483,14 @@ export var PlanStepType;
478
483
  * @generated from enum value: PLAN_STEP_TYPE_RESET_APPROVAL_TXN = 13;
479
484
  */
480
485
  PlanStepType[PlanStepType["RESET_APPROVAL_TXN"] = 13] = "RESET_APPROVAL_TXN";
486
+ /**
487
+ * @generated from enum value: PLAN_STEP_TYPE_VAULT_DEPOSIT = 14;
488
+ */
489
+ PlanStepType[PlanStepType["VAULT_DEPOSIT"] = 14] = "VAULT_DEPOSIT";
490
+ /**
491
+ * @generated from enum value: PLAN_STEP_TYPE_VAULT_WITHDRAW = 15;
492
+ */
493
+ PlanStepType[PlanStepType["VAULT_WITHDRAW"] = 15] = "VAULT_WITHDRAW";
481
494
  })(PlanStepType || (PlanStepType = {}));
482
495
  // Retrieve enum metadata with: proto3.getEnumType(PlanStepType)
483
496
  proto3.util.setEnumType(PlanStepType, "trading.v1.PlanStepType", [
@@ -495,6 +508,30 @@ proto3.util.setEnumType(PlanStepType, "trading.v1.PlanStepType", [
495
508
  { no: 11, name: "PLAN_STEP_TYPE_APPROVAL_TXN" },
496
509
  { no: 12, name: "PLAN_STEP_TYPE_APPROVAL_PERMIT" },
497
510
  { no: 13, name: "PLAN_STEP_TYPE_RESET_APPROVAL_TXN" },
511
+ { no: 14, name: "PLAN_STEP_TYPE_VAULT_DEPOSIT" },
512
+ { no: 15, name: "PLAN_STEP_TYPE_VAULT_WITHDRAW" },
513
+ ]);
514
+ /**
515
+ * Set when the output is a fee taken from the swap; unset for the swapper's
516
+ * core output.
517
+ *
518
+ * @generated from enum trading.v1.AggregatedOutputFee
519
+ */
520
+ export var AggregatedOutputFee;
521
+ (function (AggregatedOutputFee) {
522
+ /**
523
+ * @generated from enum value: AGGREGATED_OUTPUT_FEE_UNSPECIFIED = 0;
524
+ */
525
+ AggregatedOutputFee[AggregatedOutputFee["AGGREGATED_OUTPUT_FEE_UNSPECIFIED"] = 0] = "AGGREGATED_OUTPUT_FEE_UNSPECIFIED";
526
+ /**
527
+ * @generated from enum value: INTEGRATOR = 1;
528
+ */
529
+ AggregatedOutputFee[AggregatedOutputFee["INTEGRATOR"] = 1] = "INTEGRATOR";
530
+ })(AggregatedOutputFee || (AggregatedOutputFee = {}));
531
+ // Retrieve enum metadata with: proto3.getEnumType(AggregatedOutputFee)
532
+ proto3.util.setEnumType(AggregatedOutputFee, "trading.v1.AggregatedOutputFee", [
533
+ { no: 0, name: "AGGREGATED_OUTPUT_FEE_UNSPECIFIED" },
534
+ { no: 1, name: "INTEGRATOR" },
498
535
  ]);
499
536
  /**
500
537
  * @generated from enum trading.v1.PoolType
@@ -2104,6 +2141,177 @@ QuoteRequest.fields = proto3.util.newFieldList(() => [
2104
2141
  { no: 21, name: "wallet_execution_context", kind: "message", T: WalletExecutionContext, opt: true },
2105
2142
  { no: 22, name: "recipient", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
2106
2143
  { no: 23, name: "urgency_overrides", kind: "message", T: UrgencyWithOverrides, opt: true },
2144
+ { no: 24, name: "earn_intent", kind: "message", T: EarnIntent, opt: true },
2145
+ ]);
2146
+ /**
2147
+ * @generated from message trading.v1.EarnIntent
2148
+ */
2149
+ export class EarnIntent extends Message {
2150
+ constructor(data) {
2151
+ super();
2152
+ /**
2153
+ * @generated from field: string action = 1;
2154
+ */
2155
+ this.action = "";
2156
+ /**
2157
+ * @generated from field: string vault = 2;
2158
+ */
2159
+ this.vault = "";
2160
+ /**
2161
+ * @generated from field: trading.v1.ChainId chain_id = 3;
2162
+ */
2163
+ this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
2164
+ proto3.util.initPartial(data, this);
2165
+ }
2166
+ static fromBinary(bytes, options) {
2167
+ return new EarnIntent().fromBinary(bytes, options);
2168
+ }
2169
+ static fromJson(jsonValue, options) {
2170
+ return new EarnIntent().fromJson(jsonValue, options);
2171
+ }
2172
+ static fromJsonString(jsonString, options) {
2173
+ return new EarnIntent().fromJsonString(jsonString, options);
2174
+ }
2175
+ static equals(a, b) {
2176
+ return proto3.util.equals(EarnIntent, a, b);
2177
+ }
2178
+ }
2179
+ EarnIntent.runtime = proto3;
2180
+ EarnIntent.typeName = "trading.v1.EarnIntent";
2181
+ EarnIntent.fields = proto3.util.newFieldList(() => [
2182
+ { no: 1, name: "action", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2183
+ { no: 2, name: "vault", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2184
+ { no: 3, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
2185
+ { no: 4, name: "withdraw_mode", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
2186
+ ]);
2187
+ /**
2188
+ * @generated from message trading.v1.EarnPreview
2189
+ */
2190
+ export class EarnPreview extends Message {
2191
+ constructor(data) {
2192
+ super();
2193
+ /**
2194
+ * @generated from field: string type = 1;
2195
+ */
2196
+ this.type = "";
2197
+ /**
2198
+ * @generated from field: repeated trading.v1.EarnPreviewDepositAsset deposit_assets = 2;
2199
+ */
2200
+ this.depositAssets = [];
2201
+ proto3.util.initPartial(data, this);
2202
+ }
2203
+ static fromBinary(bytes, options) {
2204
+ return new EarnPreview().fromBinary(bytes, options);
2205
+ }
2206
+ static fromJson(jsonValue, options) {
2207
+ return new EarnPreview().fromJson(jsonValue, options);
2208
+ }
2209
+ static fromJsonString(jsonString, options) {
2210
+ return new EarnPreview().fromJsonString(jsonString, options);
2211
+ }
2212
+ static equals(a, b) {
2213
+ return proto3.util.equals(EarnPreview, a, b);
2214
+ }
2215
+ }
2216
+ EarnPreview.runtime = proto3;
2217
+ EarnPreview.typeName = "trading.v1.EarnPreview";
2218
+ EarnPreview.fields = proto3.util.newFieldList(() => [
2219
+ { no: 1, name: "type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2220
+ { no: 2, name: "deposit_assets", kind: "message", T: EarnPreviewDepositAsset, repeated: true },
2221
+ { no: 3, name: "estimated_shares_out", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
2222
+ { no: 4, name: "requested_assets_out", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
2223
+ { no: 5, name: "estimated_shares_in", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
2224
+ { no: 6, name: "max_redeemable_shares_in", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
2225
+ { no: 7, name: "preview_assets_out", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
2226
+ ]);
2227
+ /**
2228
+ * @generated from message trading.v1.EarnPreviewDepositAsset
2229
+ */
2230
+ export class EarnPreviewDepositAsset extends Message {
2231
+ constructor(data) {
2232
+ super();
2233
+ /**
2234
+ * @generated from field: string token = 1;
2235
+ */
2236
+ this.token = "";
2237
+ /**
2238
+ * @generated from field: trading.v1.ChainId chain_id = 2;
2239
+ */
2240
+ this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
2241
+ /**
2242
+ * @generated from field: string amount = 3;
2243
+ */
2244
+ this.amount = "";
2245
+ proto3.util.initPartial(data, this);
2246
+ }
2247
+ static fromBinary(bytes, options) {
2248
+ return new EarnPreviewDepositAsset().fromBinary(bytes, options);
2249
+ }
2250
+ static fromJson(jsonValue, options) {
2251
+ return new EarnPreviewDepositAsset().fromJson(jsonValue, options);
2252
+ }
2253
+ static fromJsonString(jsonString, options) {
2254
+ return new EarnPreviewDepositAsset().fromJsonString(jsonString, options);
2255
+ }
2256
+ static equals(a, b) {
2257
+ return proto3.util.equals(EarnPreviewDepositAsset, a, b);
2258
+ }
2259
+ }
2260
+ EarnPreviewDepositAsset.runtime = proto3;
2261
+ EarnPreviewDepositAsset.typeName = "trading.v1.EarnPreviewDepositAsset";
2262
+ EarnPreviewDepositAsset.fields = proto3.util.newFieldList(() => [
2263
+ { no: 1, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2264
+ { no: 2, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
2265
+ { no: 3, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2266
+ ]);
2267
+ /**
2268
+ * @generated from message trading.v1.EarnQuoteIntent
2269
+ */
2270
+ export class EarnQuoteIntent extends Message {
2271
+ constructor(data) {
2272
+ super();
2273
+ /**
2274
+ * @generated from field: string action = 1;
2275
+ */
2276
+ this.action = "";
2277
+ /**
2278
+ * @generated from field: string vault = 2;
2279
+ */
2280
+ this.vault = "";
2281
+ /**
2282
+ * @generated from field: trading.v1.ChainId chain_id = 3;
2283
+ */
2284
+ this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
2285
+ /**
2286
+ * @generated from field: string underlying_asset = 5;
2287
+ */
2288
+ this.underlyingAsset = "";
2289
+ proto3.util.initPartial(data, this);
2290
+ }
2291
+ static fromBinary(bytes, options) {
2292
+ return new EarnQuoteIntent().fromBinary(bytes, options);
2293
+ }
2294
+ static fromJson(jsonValue, options) {
2295
+ return new EarnQuoteIntent().fromJson(jsonValue, options);
2296
+ }
2297
+ static fromJsonString(jsonString, options) {
2298
+ return new EarnQuoteIntent().fromJsonString(jsonString, options);
2299
+ }
2300
+ static equals(a, b) {
2301
+ return proto3.util.equals(EarnQuoteIntent, a, b);
2302
+ }
2303
+ }
2304
+ EarnQuoteIntent.runtime = proto3;
2305
+ EarnQuoteIntent.typeName = "trading.v1.EarnQuoteIntent";
2306
+ EarnQuoteIntent.fields = proto3.util.newFieldList(() => [
2307
+ { no: 1, name: "action", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2308
+ { no: 2, name: "vault", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2309
+ { no: 3, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
2310
+ { no: 4, name: "withdraw_mode", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
2311
+ { no: 5, name: "underlying_asset", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2312
+ { no: 6, name: "preview", kind: "message", T: EarnPreview, opt: true },
2313
+ { no: 7, name: "requested_assets", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
2314
+ { no: 8, name: "destination_gas_mode", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
2107
2315
  ]);
2108
2316
  /**
2109
2317
  * @generated from message trading.v1.IntegratorFee
@@ -2614,6 +2822,7 @@ AggregatedOutput.fields = proto3.util.newFieldList(() => [
2614
2822
  { no: 3, name: "recipient", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2615
2823
  { no: 4, name: "bps", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
2616
2824
  { no: 5, name: "min_amount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
2825
+ { no: 6, name: "fee", kind: "enum", T: proto3.getEnumType(AggregatedOutputFee), opt: true },
2617
2826
  ]);
2618
2827
  /**
2619
2828
  * @generated from message trading.v1.RouteList
@@ -6457,6 +6666,8 @@ ChainedQuote.fields = proto3.util.newFieldList(() => [
6457
6666
  { no: 17, name: "slippage_tolerance", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
6458
6667
  { no: 18, name: "auto_slippage", kind: "enum", T: proto3.getEnumType(AutoSlippage), opt: true },
6459
6668
  { no: 19, name: "compound_slippage", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
6669
+ { no: 20, name: "earn_intent", kind: "message", T: EarnQuoteIntent, opt: true },
6670
+ { no: 21, name: "earn_preview", kind: "message", T: EarnPreview, opt: true },
6460
6671
  ]);
6461
6672
  /**
6462
6673
  * @generated from message trading.v1.PermitTransferFromData
@@ -7567,6 +7778,7 @@ CreatePlanRequest.fields = proto3.util.newFieldList(() => [
7567
7778
  { no: 2, name: "quote", kind: "message", T: ChainedQuote },
7568
7779
  { no: 3, name: "wallet_execution_context", kind: "message", T: WalletExecutionContext, opt: true },
7569
7780
  { no: 4, name: "urgency_overrides", kind: "message", T: UrgencyWithOverrides, opt: true },
7781
+ { no: 5, name: "earn_intent", kind: "message", T: EarnIntent, opt: true },
7570
7782
  ]);
7571
7783
  /**
7572
7784
  * @generated from message trading.v1.GetPlanRequest
@@ -7692,6 +7904,7 @@ PlanResponse.fields = proto3.util.newFieldList(() => [
7692
7904
  { no: 19, name: "slippage_tolerance", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
7693
7905
  { no: 20, name: "auto_slippage", kind: "enum", T: proto3.getEnumType(AutoSlippage), opt: true },
7694
7906
  { no: 21, name: "last_user_action_at", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
7907
+ { no: 22, name: "earn_intent", kind: "message", T: EarnQuoteIntent, opt: true },
7695
7908
  ]);
7696
7909
  /**
7697
7910
  * @generated from enum trading.v1.PlanResponse.PlanStatus
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniswap/client-trading",
3
- "version": "0.5.8",
3
+ "version": "0.5.11",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },