@uniswap/client-trading 0.5.10 → 0.5.12

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.
@@ -380,6 +380,22 @@ export declare enum PlanStepType {
380
380
  */
381
381
  VAULT_WITHDRAW = 15
382
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
398
+ }
383
399
  /**
384
400
  * @generated from enum trading.v1.PoolType
385
401
  */
@@ -1737,6 +1753,13 @@ export declare class QuoteRequest extends Message<QuoteRequest> {
1737
1753
  * @generated from field: optional trading.v1.EarnIntent earn_intent = 24;
1738
1754
  */
1739
1755
  earnIntent?: EarnIntent;
1756
+ /**
1757
+ * When true, uniroute-backed classic quotes include routeCandidates —
1758
+ * the top alternative routes with whole-route amounts.
1759
+ *
1760
+ * @generated from field: optional bool include_route_candidates = 25;
1761
+ */
1762
+ includeRouteCandidates?: boolean;
1740
1763
  constructor(data?: PartialMessage<QuoteRequest>);
1741
1764
  static readonly runtime: typeof proto3;
1742
1765
  static readonly typeName = "trading.v1.QuoteRequest";
@@ -2398,9 +2421,9 @@ export declare class AggregatedOutput extends Message<AggregatedOutput> {
2398
2421
  */
2399
2422
  minAmount?: string;
2400
2423
  /**
2401
- * @generated from field: bool fee = 6;
2424
+ * @generated from field: optional trading.v1.AggregatedOutputFee fee = 6;
2402
2425
  */
2403
- fee: boolean;
2426
+ fee?: AggregatedOutputFee;
2404
2427
  constructor(data?: PartialMessage<AggregatedOutput>);
2405
2428
  static readonly runtime: typeof proto3;
2406
2429
  static readonly typeName = "trading.v1.AggregatedOutput";
@@ -2531,6 +2554,15 @@ export declare class ClassicQuote extends Message<ClassicQuote> {
2531
2554
  * @generated from field: repeated trading.v1.SwapStep swap_steps = 26;
2532
2555
  */
2533
2556
  swapSteps: SwapStep[];
2557
+ /**
2558
+ * Top quoted route candidates the router considered but did NOT serve
2559
+ * (the served route and candidates proven unviable — simulation or
2560
+ * trade-build failures — are excluded), best-first. Populated only for
2561
+ * uniroute-backed quotes when QuoteRequest.include_route_candidates is set.
2562
+ *
2563
+ * @generated from field: repeated trading.v1.RouteCandidate route_candidates = 27;
2564
+ */
2565
+ routeCandidates: RouteCandidate[];
2534
2566
  constructor(data?: PartialMessage<ClassicQuote>);
2535
2567
  static readonly runtime: typeof proto3;
2536
2568
  static readonly typeName = "trading.v1.ClassicQuote";
@@ -2540,6 +2572,38 @@ export declare class ClassicQuote extends Message<ClassicQuote> {
2540
2572
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ClassicQuote;
2541
2573
  static equals(a: ClassicQuote | PlainMessage<ClassicQuote> | undefined, b: ClassicQuote | PlainMessage<ClassicQuote> | undefined): boolean;
2542
2574
  }
2575
+ /**
2576
+ * A quoted route candidate with its whole-route (not per-hop) amounts.
2577
+ * quote_amount is the output amount for EXACT_INPUT and the required input
2578
+ * amount for EXACT_OUTPUT. Amounts are quoter estimates and do not carry
2579
+ * the simulation/portion corrections applied to the served quote.
2580
+ *
2581
+ * @generated from message trading.v1.RouteCandidate
2582
+ */
2583
+ export declare class RouteCandidate extends Message<RouteCandidate> {
2584
+ /**
2585
+ * @generated from field: string route_string = 1;
2586
+ */
2587
+ routeString: string;
2588
+ /**
2589
+ * @generated from field: string quote_amount = 2;
2590
+ */
2591
+ quoteAmount: string;
2592
+ /**
2593
+ * Gas-adjusted whole-route amount; omitted when gas details are unavailable.
2594
+ *
2595
+ * @generated from field: optional string quote_gas_adjusted = 3;
2596
+ */
2597
+ quoteGasAdjusted?: string;
2598
+ constructor(data?: PartialMessage<RouteCandidate>);
2599
+ static readonly runtime: typeof proto3;
2600
+ static readonly typeName = "trading.v1.RouteCandidate";
2601
+ static readonly fields: FieldList;
2602
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RouteCandidate;
2603
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RouteCandidate;
2604
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RouteCandidate;
2605
+ static equals(a: RouteCandidate | PlainMessage<RouteCandidate> | undefined, b: RouteCandidate | PlainMessage<RouteCandidate> | undefined): boolean;
2606
+ }
2543
2607
  /**
2544
2608
  * Universal Router SwapStep representation (mirrors the SDK shape used by
2545
2609
  * SwapRouter.encodeSwaps). Only used in the swapsteps quote/encoding flow.
@@ -511,6 +511,28 @@ proto3.util.setEnumType(PlanStepType, "trading.v1.PlanStepType", [
511
511
  { no: 14, name: "PLAN_STEP_TYPE_VAULT_DEPOSIT" },
512
512
  { no: 15, name: "PLAN_STEP_TYPE_VAULT_WITHDRAW" },
513
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" },
535
+ ]);
514
536
  /**
515
537
  * @generated from enum trading.v1.PoolType
516
538
  */
@@ -2120,6 +2142,7 @@ QuoteRequest.fields = proto3.util.newFieldList(() => [
2120
2142
  { no: 22, name: "recipient", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
2121
2143
  { no: 23, name: "urgency_overrides", kind: "message", T: UrgencyWithOverrides, opt: true },
2122
2144
  { no: 24, name: "earn_intent", kind: "message", T: EarnIntent, opt: true },
2145
+ { no: 25, name: "include_route_candidates", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
2123
2146
  ]);
2124
2147
  /**
2125
2148
  * @generated from message trading.v1.EarnIntent
@@ -2777,10 +2800,6 @@ export class AggregatedOutput extends Message {
2777
2800
  * @generated from field: double bps = 4;
2778
2801
  */
2779
2802
  this.bps = 0;
2780
- /**
2781
- * @generated from field: bool fee = 6;
2782
- */
2783
- this.fee = false;
2784
2803
  proto3.util.initPartial(data, this);
2785
2804
  }
2786
2805
  static fromBinary(bytes, options) {
@@ -2804,7 +2823,7 @@ AggregatedOutput.fields = proto3.util.newFieldList(() => [
2804
2823
  { no: 3, name: "recipient", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2805
2824
  { no: 4, name: "bps", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
2806
2825
  { no: 5, name: "min_amount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
2807
- { no: 6, name: "fee", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
2826
+ { no: 6, name: "fee", kind: "enum", T: proto3.getEnumType(AggregatedOutputFee), opt: true },
2808
2827
  ]);
2809
2828
  /**
2810
2829
  * @generated from message trading.v1.RouteList
@@ -2878,6 +2897,15 @@ export class ClassicQuote extends Message {
2878
2897
  * @generated from field: repeated trading.v1.SwapStep swap_steps = 26;
2879
2898
  */
2880
2899
  this.swapSteps = [];
2900
+ /**
2901
+ * Top quoted route candidates the router considered but did NOT serve
2902
+ * (the served route and candidates proven unviable — simulation or
2903
+ * trade-build failures — are excluded), best-first. Populated only for
2904
+ * uniroute-backed quotes when QuoteRequest.include_route_candidates is set.
2905
+ *
2906
+ * @generated from field: repeated trading.v1.RouteCandidate route_candidates = 27;
2907
+ */
2908
+ this.routeCandidates = [];
2881
2909
  proto3.util.initPartial(data, this);
2882
2910
  }
2883
2911
  static fromBinary(bytes, options) {
@@ -2921,6 +2949,48 @@ ClassicQuote.fields = proto3.util.newFieldList(() => [
2921
2949
  { no: 23, name: "portion_amount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
2922
2950
  { no: 24, name: "portion_recipient", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
2923
2951
  { no: 26, name: "swap_steps", kind: "message", T: SwapStep, repeated: true },
2952
+ { no: 27, name: "route_candidates", kind: "message", T: RouteCandidate, repeated: true },
2953
+ ]);
2954
+ /**
2955
+ * A quoted route candidate with its whole-route (not per-hop) amounts.
2956
+ * quote_amount is the output amount for EXACT_INPUT and the required input
2957
+ * amount for EXACT_OUTPUT. Amounts are quoter estimates and do not carry
2958
+ * the simulation/portion corrections applied to the served quote.
2959
+ *
2960
+ * @generated from message trading.v1.RouteCandidate
2961
+ */
2962
+ export class RouteCandidate extends Message {
2963
+ constructor(data) {
2964
+ super();
2965
+ /**
2966
+ * @generated from field: string route_string = 1;
2967
+ */
2968
+ this.routeString = "";
2969
+ /**
2970
+ * @generated from field: string quote_amount = 2;
2971
+ */
2972
+ this.quoteAmount = "";
2973
+ proto3.util.initPartial(data, this);
2974
+ }
2975
+ static fromBinary(bytes, options) {
2976
+ return new RouteCandidate().fromBinary(bytes, options);
2977
+ }
2978
+ static fromJson(jsonValue, options) {
2979
+ return new RouteCandidate().fromJson(jsonValue, options);
2980
+ }
2981
+ static fromJsonString(jsonString, options) {
2982
+ return new RouteCandidate().fromJsonString(jsonString, options);
2983
+ }
2984
+ static equals(a, b) {
2985
+ return proto3.util.equals(RouteCandidate, a, b);
2986
+ }
2987
+ }
2988
+ RouteCandidate.runtime = proto3;
2989
+ RouteCandidate.typeName = "trading.v1.RouteCandidate";
2990
+ RouteCandidate.fields = proto3.util.newFieldList(() => [
2991
+ { no: 1, name: "route_string", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2992
+ { no: 2, name: "quote_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2993
+ { no: 3, name: "quote_gas_adjusted", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
2924
2994
  ]);
2925
2995
  /**
2926
2996
  * Universal Router SwapStep representation (mirrors the SDK shape used by
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniswap/client-trading",
3
- "version": "0.5.10",
3
+ "version": "0.5.12",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },