@uniswap/client-trading 0.5.11 → 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.
@@ -1753,6 +1753,13 @@ export declare class QuoteRequest extends Message<QuoteRequest> {
1753
1753
  * @generated from field: optional trading.v1.EarnIntent earn_intent = 24;
1754
1754
  */
1755
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;
1756
1763
  constructor(data?: PartialMessage<QuoteRequest>);
1757
1764
  static readonly runtime: typeof proto3;
1758
1765
  static readonly typeName = "trading.v1.QuoteRequest";
@@ -2547,6 +2554,15 @@ export declare class ClassicQuote extends Message<ClassicQuote> {
2547
2554
  * @generated from field: repeated trading.v1.SwapStep swap_steps = 26;
2548
2555
  */
2549
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[];
2550
2566
  constructor(data?: PartialMessage<ClassicQuote>);
2551
2567
  static readonly runtime: typeof proto3;
2552
2568
  static readonly typeName = "trading.v1.ClassicQuote";
@@ -2556,6 +2572,38 @@ export declare class ClassicQuote extends Message<ClassicQuote> {
2556
2572
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ClassicQuote;
2557
2573
  static equals(a: ClassicQuote | PlainMessage<ClassicQuote> | undefined, b: ClassicQuote | PlainMessage<ClassicQuote> | undefined): boolean;
2558
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
+ }
2559
2607
  /**
2560
2608
  * Universal Router SwapStep representation (mirrors the SDK shape used by
2561
2609
  * SwapRouter.encodeSwaps). Only used in the swapsteps quote/encoding flow.
@@ -2142,6 +2142,7 @@ QuoteRequest.fields = proto3.util.newFieldList(() => [
2142
2142
  { no: 22, name: "recipient", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
2143
2143
  { no: 23, name: "urgency_overrides", kind: "message", T: UrgencyWithOverrides, opt: true },
2144
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 },
2145
2146
  ]);
2146
2147
  /**
2147
2148
  * @generated from message trading.v1.EarnIntent
@@ -2896,6 +2897,15 @@ export class ClassicQuote extends Message {
2896
2897
  * @generated from field: repeated trading.v1.SwapStep swap_steps = 26;
2897
2898
  */
2898
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 = [];
2899
2909
  proto3.util.initPartial(data, this);
2900
2910
  }
2901
2911
  static fromBinary(bytes, options) {
@@ -2939,6 +2949,48 @@ ClassicQuote.fields = proto3.util.newFieldList(() => [
2939
2949
  { no: 23, name: "portion_amount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
2940
2950
  { no: 24, name: "portion_recipient", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
2941
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 },
2942
2994
  ]);
2943
2995
  /**
2944
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.11",
3
+ "version": "0.5.12",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },