@uniswap/client-trading 0.2.0 → 0.2.2

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.
@@ -2010,9 +2010,9 @@ QuoteResponse.fields = proto3.util.newFieldList(() => [
2010
2010
  { no: 21, name: "sponsorship_info", kind: "message", T: SponsorshipInfo, opt: true },
2011
2011
  ]);
2012
2012
  /**
2013
- * @generated from message trading.v1.ClassicInput
2013
+ * @generated from message trading.v1.QuoteInput
2014
2014
  */
2015
- export class ClassicInput extends Message {
2015
+ export class QuoteInput extends Message {
2016
2016
  constructor(data) {
2017
2017
  super();
2018
2018
  /**
@@ -2023,31 +2023,36 @@ export class ClassicInput extends Message {
2023
2023
  * @generated from field: string token = 2;
2024
2024
  */
2025
2025
  this.token = "";
2026
+ /**
2027
+ * @generated from field: string maximum_amount = 3;
2028
+ */
2029
+ this.maximumAmount = "";
2026
2030
  proto3.util.initPartial(data, this);
2027
2031
  }
2028
2032
  static fromBinary(bytes, options) {
2029
- return new ClassicInput().fromBinary(bytes, options);
2033
+ return new QuoteInput().fromBinary(bytes, options);
2030
2034
  }
2031
2035
  static fromJson(jsonValue, options) {
2032
- return new ClassicInput().fromJson(jsonValue, options);
2036
+ return new QuoteInput().fromJson(jsonValue, options);
2033
2037
  }
2034
2038
  static fromJsonString(jsonString, options) {
2035
- return new ClassicInput().fromJsonString(jsonString, options);
2039
+ return new QuoteInput().fromJsonString(jsonString, options);
2036
2040
  }
2037
2041
  static equals(a, b) {
2038
- return proto3.util.equals(ClassicInput, a, b);
2042
+ return proto3.util.equals(QuoteInput, a, b);
2039
2043
  }
2040
2044
  }
2041
- ClassicInput.runtime = proto3;
2042
- ClassicInput.typeName = "trading.v1.ClassicInput";
2043
- ClassicInput.fields = proto3.util.newFieldList(() => [
2045
+ QuoteInput.runtime = proto3;
2046
+ QuoteInput.typeName = "trading.v1.QuoteInput";
2047
+ QuoteInput.fields = proto3.util.newFieldList(() => [
2044
2048
  { no: 1, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2045
2049
  { no: 2, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2050
+ { no: 3, name: "maximum_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2046
2051
  ]);
2047
2052
  /**
2048
- * @generated from message trading.v1.ClassicOutput
2053
+ * @generated from message trading.v1.QuoteOutput
2049
2054
  */
2050
- export class ClassicOutput extends Message {
2055
+ export class QuoteOutput extends Message {
2051
2056
  constructor(data) {
2052
2057
  super();
2053
2058
  /**
@@ -2062,27 +2067,32 @@ export class ClassicOutput extends Message {
2062
2067
  * @generated from field: string recipient = 3;
2063
2068
  */
2064
2069
  this.recipient = "";
2070
+ /**
2071
+ * @generated from field: string minimum_amount = 4;
2072
+ */
2073
+ this.minimumAmount = "";
2065
2074
  proto3.util.initPartial(data, this);
2066
2075
  }
2067
2076
  static fromBinary(bytes, options) {
2068
- return new ClassicOutput().fromBinary(bytes, options);
2077
+ return new QuoteOutput().fromBinary(bytes, options);
2069
2078
  }
2070
2079
  static fromJson(jsonValue, options) {
2071
- return new ClassicOutput().fromJson(jsonValue, options);
2080
+ return new QuoteOutput().fromJson(jsonValue, options);
2072
2081
  }
2073
2082
  static fromJsonString(jsonString, options) {
2074
- return new ClassicOutput().fromJsonString(jsonString, options);
2083
+ return new QuoteOutput().fromJsonString(jsonString, options);
2075
2084
  }
2076
2085
  static equals(a, b) {
2077
- return proto3.util.equals(ClassicOutput, a, b);
2086
+ return proto3.util.equals(QuoteOutput, a, b);
2078
2087
  }
2079
2088
  }
2080
- ClassicOutput.runtime = proto3;
2081
- ClassicOutput.typeName = "trading.v1.ClassicOutput";
2082
- ClassicOutput.fields = proto3.util.newFieldList(() => [
2089
+ QuoteOutput.runtime = proto3;
2090
+ QuoteOutput.typeName = "trading.v1.QuoteOutput";
2091
+ QuoteOutput.fields = proto3.util.newFieldList(() => [
2083
2092
  { no: 1, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2084
2093
  { no: 2, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2085
2094
  { no: 3, name: "recipient", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2095
+ { no: 4, name: "minimum_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2086
2096
  ]);
2087
2097
  /**
2088
2098
  * @generated from message trading.v1.CandidatePoolInRoute
@@ -2481,6 +2491,10 @@ export class ClassicQuote extends Message {
2481
2491
  * @generated from field: repeated trading.v1.AggregatedOutput aggregated_outputs = 21;
2482
2492
  */
2483
2493
  this.aggregatedOutputs = [];
2494
+ /**
2495
+ * @generated from field: repeated trading.v1.SwapStep swap_steps = 26;
2496
+ */
2497
+ this.swapSteps = [];
2484
2498
  proto3.util.initPartial(data, this);
2485
2499
  }
2486
2500
  static fromBinary(bytes, options) {
@@ -2501,8 +2515,8 @@ ClassicQuote.typeName = "trading.v1.ClassicQuote";
2501
2515
  ClassicQuote.fields = proto3.util.newFieldList(() => [
2502
2516
  { no: 1, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
2503
2517
  { no: 2, name: "swapper", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2504
- { no: 3, name: "input", kind: "message", T: ClassicInput },
2505
- { no: 4, name: "output", kind: "message", T: ClassicOutput },
2518
+ { no: 3, name: "input", kind: "message", T: QuoteInput },
2519
+ { no: 4, name: "output", kind: "message", T: QuoteOutput },
2506
2520
  { no: 5, name: "slippage", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
2507
2521
  { no: 6, name: "trade_type", kind: "enum", T: proto3.getEnumType(TradeType) },
2508
2522
  { no: 7, name: "route", kind: "message", T: RouteList, repeated: true },
@@ -2524,6 +2538,863 @@ ClassicQuote.fields = proto3.util.newFieldList(() => [
2524
2538
  { no: 23, name: "portion_amount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
2525
2539
  { no: 24, name: "portion_recipient", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
2526
2540
  { no: 25, name: "sponsorship_info", kind: "message", T: SponsorshipInfo, opt: true },
2541
+ { no: 26, name: "swap_steps", kind: "message", T: SwapStep, repeated: true },
2542
+ ]);
2543
+ /**
2544
+ * Universal Router SwapStep representation (mirrors the SDK shape used by
2545
+ * SwapRouter.encodeSwaps). Only used in the swapsteps quote/encoding flow.
2546
+ *
2547
+ * @generated from message trading.v1.SwapPoolKey
2548
+ */
2549
+ export class SwapPoolKey extends Message {
2550
+ constructor(data) {
2551
+ super();
2552
+ /**
2553
+ * @generated from field: string currency0 = 1;
2554
+ */
2555
+ this.currency0 = "";
2556
+ /**
2557
+ * @generated from field: string currency1 = 2;
2558
+ */
2559
+ this.currency1 = "";
2560
+ /**
2561
+ * @generated from field: int32 fee = 3;
2562
+ */
2563
+ this.fee = 0;
2564
+ /**
2565
+ * @generated from field: int32 tick_spacing = 4;
2566
+ */
2567
+ this.tickSpacing = 0;
2568
+ /**
2569
+ * @generated from field: string hooks = 5;
2570
+ */
2571
+ this.hooks = "";
2572
+ proto3.util.initPartial(data, this);
2573
+ }
2574
+ static fromBinary(bytes, options) {
2575
+ return new SwapPoolKey().fromBinary(bytes, options);
2576
+ }
2577
+ static fromJson(jsonValue, options) {
2578
+ return new SwapPoolKey().fromJson(jsonValue, options);
2579
+ }
2580
+ static fromJsonString(jsonString, options) {
2581
+ return new SwapPoolKey().fromJsonString(jsonString, options);
2582
+ }
2583
+ static equals(a, b) {
2584
+ return proto3.util.equals(SwapPoolKey, a, b);
2585
+ }
2586
+ }
2587
+ SwapPoolKey.runtime = proto3;
2588
+ SwapPoolKey.typeName = "trading.v1.SwapPoolKey";
2589
+ SwapPoolKey.fields = proto3.util.newFieldList(() => [
2590
+ { no: 1, name: "currency0", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2591
+ { no: 2, name: "currency1", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2592
+ { no: 3, name: "fee", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
2593
+ { no: 4, name: "tick_spacing", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
2594
+ { no: 5, name: "hooks", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2595
+ ]);
2596
+ /**
2597
+ * @generated from message trading.v1.SwapPathKey
2598
+ */
2599
+ export class SwapPathKey extends Message {
2600
+ constructor(data) {
2601
+ super();
2602
+ /**
2603
+ * @generated from field: string intermediate_currency = 1;
2604
+ */
2605
+ this.intermediateCurrency = "";
2606
+ /**
2607
+ * @generated from field: int32 fee = 2;
2608
+ */
2609
+ this.fee = 0;
2610
+ /**
2611
+ * @generated from field: int32 tick_spacing = 3;
2612
+ */
2613
+ this.tickSpacing = 0;
2614
+ /**
2615
+ * @generated from field: string hooks = 4;
2616
+ */
2617
+ this.hooks = "";
2618
+ /**
2619
+ * @generated from field: string hook_data = 5;
2620
+ */
2621
+ this.hookData = "";
2622
+ proto3.util.initPartial(data, this);
2623
+ }
2624
+ static fromBinary(bytes, options) {
2625
+ return new SwapPathKey().fromBinary(bytes, options);
2626
+ }
2627
+ static fromJson(jsonValue, options) {
2628
+ return new SwapPathKey().fromJson(jsonValue, options);
2629
+ }
2630
+ static fromJsonString(jsonString, options) {
2631
+ return new SwapPathKey().fromJsonString(jsonString, options);
2632
+ }
2633
+ static equals(a, b) {
2634
+ return proto3.util.equals(SwapPathKey, a, b);
2635
+ }
2636
+ }
2637
+ SwapPathKey.runtime = proto3;
2638
+ SwapPathKey.typeName = "trading.v1.SwapPathKey";
2639
+ SwapPathKey.fields = proto3.util.newFieldList(() => [
2640
+ { no: 1, name: "intermediate_currency", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2641
+ { no: 2, name: "fee", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
2642
+ { no: 3, name: "tick_spacing", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
2643
+ { no: 4, name: "hooks", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2644
+ { no: 5, name: "hook_data", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2645
+ ]);
2646
+ /**
2647
+ * @generated from message trading.v1.V4SwapExactIn
2648
+ */
2649
+ export class V4SwapExactIn extends Message {
2650
+ constructor(data) {
2651
+ super();
2652
+ /**
2653
+ * @generated from field: string currency_in = 1;
2654
+ */
2655
+ this.currencyIn = "";
2656
+ /**
2657
+ * @generated from field: repeated trading.v1.SwapPathKey path = 2;
2658
+ */
2659
+ this.path = [];
2660
+ /**
2661
+ * @generated from field: string amount_in = 3;
2662
+ */
2663
+ this.amountIn = "";
2664
+ /**
2665
+ * @generated from field: string amount_out_minimum = 4;
2666
+ */
2667
+ this.amountOutMinimum = "";
2668
+ /**
2669
+ * @generated from field: repeated string min_hop_price_x36 = 5;
2670
+ */
2671
+ this.minHopPriceX36 = [];
2672
+ proto3.util.initPartial(data, this);
2673
+ }
2674
+ static fromBinary(bytes, options) {
2675
+ return new V4SwapExactIn().fromBinary(bytes, options);
2676
+ }
2677
+ static fromJson(jsonValue, options) {
2678
+ return new V4SwapExactIn().fromJson(jsonValue, options);
2679
+ }
2680
+ static fromJsonString(jsonString, options) {
2681
+ return new V4SwapExactIn().fromJsonString(jsonString, options);
2682
+ }
2683
+ static equals(a, b) {
2684
+ return proto3.util.equals(V4SwapExactIn, a, b);
2685
+ }
2686
+ }
2687
+ V4SwapExactIn.runtime = proto3;
2688
+ V4SwapExactIn.typeName = "trading.v1.V4SwapExactIn";
2689
+ V4SwapExactIn.fields = proto3.util.newFieldList(() => [
2690
+ { no: 1, name: "currency_in", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2691
+ { no: 2, name: "path", kind: "message", T: SwapPathKey, repeated: true },
2692
+ { no: 3, name: "amount_in", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2693
+ { no: 4, name: "amount_out_minimum", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2694
+ { no: 5, name: "min_hop_price_x36", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
2695
+ ]);
2696
+ /**
2697
+ * @generated from message trading.v1.V4SwapExactInSingle
2698
+ */
2699
+ export class V4SwapExactInSingle extends Message {
2700
+ constructor(data) {
2701
+ super();
2702
+ /**
2703
+ * @generated from field: bool zero_for_one = 2;
2704
+ */
2705
+ this.zeroForOne = false;
2706
+ /**
2707
+ * @generated from field: string amount_in = 3;
2708
+ */
2709
+ this.amountIn = "";
2710
+ /**
2711
+ * @generated from field: string amount_out_minimum = 4;
2712
+ */
2713
+ this.amountOutMinimum = "";
2714
+ /**
2715
+ * @generated from field: string hook_data = 5;
2716
+ */
2717
+ this.hookData = "";
2718
+ proto3.util.initPartial(data, this);
2719
+ }
2720
+ static fromBinary(bytes, options) {
2721
+ return new V4SwapExactInSingle().fromBinary(bytes, options);
2722
+ }
2723
+ static fromJson(jsonValue, options) {
2724
+ return new V4SwapExactInSingle().fromJson(jsonValue, options);
2725
+ }
2726
+ static fromJsonString(jsonString, options) {
2727
+ return new V4SwapExactInSingle().fromJsonString(jsonString, options);
2728
+ }
2729
+ static equals(a, b) {
2730
+ return proto3.util.equals(V4SwapExactInSingle, a, b);
2731
+ }
2732
+ }
2733
+ V4SwapExactInSingle.runtime = proto3;
2734
+ V4SwapExactInSingle.typeName = "trading.v1.V4SwapExactInSingle";
2735
+ V4SwapExactInSingle.fields = proto3.util.newFieldList(() => [
2736
+ { no: 1, name: "pool_key", kind: "message", T: SwapPoolKey },
2737
+ { no: 2, name: "zero_for_one", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
2738
+ { no: 3, name: "amount_in", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2739
+ { no: 4, name: "amount_out_minimum", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2740
+ { no: 5, name: "hook_data", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2741
+ { no: 6, name: "min_hop_price_x36", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
2742
+ ]);
2743
+ /**
2744
+ * @generated from message trading.v1.V4SwapExactOut
2745
+ */
2746
+ export class V4SwapExactOut extends Message {
2747
+ constructor(data) {
2748
+ super();
2749
+ /**
2750
+ * @generated from field: string currency_out = 1;
2751
+ */
2752
+ this.currencyOut = "";
2753
+ /**
2754
+ * @generated from field: repeated trading.v1.SwapPathKey path = 2;
2755
+ */
2756
+ this.path = [];
2757
+ /**
2758
+ * @generated from field: string amount_out = 3;
2759
+ */
2760
+ this.amountOut = "";
2761
+ /**
2762
+ * @generated from field: string amount_in_maximum = 4;
2763
+ */
2764
+ this.amountInMaximum = "";
2765
+ /**
2766
+ * @generated from field: repeated string min_hop_price_x36 = 5;
2767
+ */
2768
+ this.minHopPriceX36 = [];
2769
+ proto3.util.initPartial(data, this);
2770
+ }
2771
+ static fromBinary(bytes, options) {
2772
+ return new V4SwapExactOut().fromBinary(bytes, options);
2773
+ }
2774
+ static fromJson(jsonValue, options) {
2775
+ return new V4SwapExactOut().fromJson(jsonValue, options);
2776
+ }
2777
+ static fromJsonString(jsonString, options) {
2778
+ return new V4SwapExactOut().fromJsonString(jsonString, options);
2779
+ }
2780
+ static equals(a, b) {
2781
+ return proto3.util.equals(V4SwapExactOut, a, b);
2782
+ }
2783
+ }
2784
+ V4SwapExactOut.runtime = proto3;
2785
+ V4SwapExactOut.typeName = "trading.v1.V4SwapExactOut";
2786
+ V4SwapExactOut.fields = proto3.util.newFieldList(() => [
2787
+ { no: 1, name: "currency_out", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2788
+ { no: 2, name: "path", kind: "message", T: SwapPathKey, repeated: true },
2789
+ { no: 3, name: "amount_out", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2790
+ { no: 4, name: "amount_in_maximum", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2791
+ { no: 5, name: "min_hop_price_x36", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
2792
+ ]);
2793
+ /**
2794
+ * @generated from message trading.v1.V4SwapExactOutSingle
2795
+ */
2796
+ export class V4SwapExactOutSingle extends Message {
2797
+ constructor(data) {
2798
+ super();
2799
+ /**
2800
+ * @generated from field: bool zero_for_one = 2;
2801
+ */
2802
+ this.zeroForOne = false;
2803
+ /**
2804
+ * @generated from field: string amount_out = 3;
2805
+ */
2806
+ this.amountOut = "";
2807
+ /**
2808
+ * @generated from field: string amount_in_maximum = 4;
2809
+ */
2810
+ this.amountInMaximum = "";
2811
+ /**
2812
+ * @generated from field: string hook_data = 5;
2813
+ */
2814
+ this.hookData = "";
2815
+ proto3.util.initPartial(data, this);
2816
+ }
2817
+ static fromBinary(bytes, options) {
2818
+ return new V4SwapExactOutSingle().fromBinary(bytes, options);
2819
+ }
2820
+ static fromJson(jsonValue, options) {
2821
+ return new V4SwapExactOutSingle().fromJson(jsonValue, options);
2822
+ }
2823
+ static fromJsonString(jsonString, options) {
2824
+ return new V4SwapExactOutSingle().fromJsonString(jsonString, options);
2825
+ }
2826
+ static equals(a, b) {
2827
+ return proto3.util.equals(V4SwapExactOutSingle, a, b);
2828
+ }
2829
+ }
2830
+ V4SwapExactOutSingle.runtime = proto3;
2831
+ V4SwapExactOutSingle.typeName = "trading.v1.V4SwapExactOutSingle";
2832
+ V4SwapExactOutSingle.fields = proto3.util.newFieldList(() => [
2833
+ { no: 1, name: "pool_key", kind: "message", T: SwapPoolKey },
2834
+ { no: 2, name: "zero_for_one", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
2835
+ { no: 3, name: "amount_out", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2836
+ { no: 4, name: "amount_in_maximum", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2837
+ { no: 5, name: "hook_data", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2838
+ { no: 6, name: "min_hop_price_x36", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
2839
+ ]);
2840
+ /**
2841
+ * @generated from message trading.v1.V4Settle
2842
+ */
2843
+ export class V4Settle extends Message {
2844
+ constructor(data) {
2845
+ super();
2846
+ /**
2847
+ * @generated from field: string currency = 1;
2848
+ */
2849
+ this.currency = "";
2850
+ /**
2851
+ * @generated from field: string amount = 2;
2852
+ */
2853
+ this.amount = "";
2854
+ proto3.util.initPartial(data, this);
2855
+ }
2856
+ static fromBinary(bytes, options) {
2857
+ return new V4Settle().fromBinary(bytes, options);
2858
+ }
2859
+ static fromJson(jsonValue, options) {
2860
+ return new V4Settle().fromJson(jsonValue, options);
2861
+ }
2862
+ static fromJsonString(jsonString, options) {
2863
+ return new V4Settle().fromJsonString(jsonString, options);
2864
+ }
2865
+ static equals(a, b) {
2866
+ return proto3.util.equals(V4Settle, a, b);
2867
+ }
2868
+ }
2869
+ V4Settle.runtime = proto3;
2870
+ V4Settle.typeName = "trading.v1.V4Settle";
2871
+ V4Settle.fields = proto3.util.newFieldList(() => [
2872
+ { no: 1, name: "currency", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2873
+ { no: 2, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2874
+ ]);
2875
+ /**
2876
+ * @generated from message trading.v1.V4SettleAll
2877
+ */
2878
+ export class V4SettleAll extends Message {
2879
+ constructor(data) {
2880
+ super();
2881
+ /**
2882
+ * @generated from field: string currency = 1;
2883
+ */
2884
+ this.currency = "";
2885
+ /**
2886
+ * @generated from field: string max_amount = 2;
2887
+ */
2888
+ this.maxAmount = "";
2889
+ proto3.util.initPartial(data, this);
2890
+ }
2891
+ static fromBinary(bytes, options) {
2892
+ return new V4SettleAll().fromBinary(bytes, options);
2893
+ }
2894
+ static fromJson(jsonValue, options) {
2895
+ return new V4SettleAll().fromJson(jsonValue, options);
2896
+ }
2897
+ static fromJsonString(jsonString, options) {
2898
+ return new V4SettleAll().fromJsonString(jsonString, options);
2899
+ }
2900
+ static equals(a, b) {
2901
+ return proto3.util.equals(V4SettleAll, a, b);
2902
+ }
2903
+ }
2904
+ V4SettleAll.runtime = proto3;
2905
+ V4SettleAll.typeName = "trading.v1.V4SettleAll";
2906
+ V4SettleAll.fields = proto3.util.newFieldList(() => [
2907
+ { no: 1, name: "currency", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2908
+ { no: 2, name: "max_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2909
+ ]);
2910
+ /**
2911
+ * @generated from message trading.v1.V4Take
2912
+ */
2913
+ export class V4Take extends Message {
2914
+ constructor(data) {
2915
+ super();
2916
+ /**
2917
+ * @generated from field: string currency = 1;
2918
+ */
2919
+ this.currency = "";
2920
+ /**
2921
+ * @generated from field: string recipient = 2;
2922
+ */
2923
+ this.recipient = "";
2924
+ /**
2925
+ * @generated from field: string amount = 3;
2926
+ */
2927
+ this.amount = "";
2928
+ proto3.util.initPartial(data, this);
2929
+ }
2930
+ static fromBinary(bytes, options) {
2931
+ return new V4Take().fromBinary(bytes, options);
2932
+ }
2933
+ static fromJson(jsonValue, options) {
2934
+ return new V4Take().fromJson(jsonValue, options);
2935
+ }
2936
+ static fromJsonString(jsonString, options) {
2937
+ return new V4Take().fromJsonString(jsonString, options);
2938
+ }
2939
+ static equals(a, b) {
2940
+ return proto3.util.equals(V4Take, a, b);
2941
+ }
2942
+ }
2943
+ V4Take.runtime = proto3;
2944
+ V4Take.typeName = "trading.v1.V4Take";
2945
+ V4Take.fields = proto3.util.newFieldList(() => [
2946
+ { no: 1, name: "currency", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2947
+ { no: 2, name: "recipient", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2948
+ { no: 3, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2949
+ ]);
2950
+ /**
2951
+ * @generated from message trading.v1.V4TakeAll
2952
+ */
2953
+ export class V4TakeAll extends Message {
2954
+ constructor(data) {
2955
+ super();
2956
+ /**
2957
+ * @generated from field: string currency = 1;
2958
+ */
2959
+ this.currency = "";
2960
+ /**
2961
+ * @generated from field: string min_amount = 2;
2962
+ */
2963
+ this.minAmount = "";
2964
+ proto3.util.initPartial(data, this);
2965
+ }
2966
+ static fromBinary(bytes, options) {
2967
+ return new V4TakeAll().fromBinary(bytes, options);
2968
+ }
2969
+ static fromJson(jsonValue, options) {
2970
+ return new V4TakeAll().fromJson(jsonValue, options);
2971
+ }
2972
+ static fromJsonString(jsonString, options) {
2973
+ return new V4TakeAll().fromJsonString(jsonString, options);
2974
+ }
2975
+ static equals(a, b) {
2976
+ return proto3.util.equals(V4TakeAll, a, b);
2977
+ }
2978
+ }
2979
+ V4TakeAll.runtime = proto3;
2980
+ V4TakeAll.typeName = "trading.v1.V4TakeAll";
2981
+ V4TakeAll.fields = proto3.util.newFieldList(() => [
2982
+ { no: 1, name: "currency", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2983
+ { no: 2, name: "min_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2984
+ ]);
2985
+ /**
2986
+ * @generated from message trading.v1.V4TakePortion
2987
+ */
2988
+ export class V4TakePortion extends Message {
2989
+ constructor(data) {
2990
+ super();
2991
+ /**
2992
+ * @generated from field: string currency = 1;
2993
+ */
2994
+ this.currency = "";
2995
+ /**
2996
+ * @generated from field: string recipient = 2;
2997
+ */
2998
+ this.recipient = "";
2999
+ /**
3000
+ * @generated from field: string bips = 3;
3001
+ */
3002
+ this.bips = "";
3003
+ proto3.util.initPartial(data, this);
3004
+ }
3005
+ static fromBinary(bytes, options) {
3006
+ return new V4TakePortion().fromBinary(bytes, options);
3007
+ }
3008
+ static fromJson(jsonValue, options) {
3009
+ return new V4TakePortion().fromJson(jsonValue, options);
3010
+ }
3011
+ static fromJsonString(jsonString, options) {
3012
+ return new V4TakePortion().fromJsonString(jsonString, options);
3013
+ }
3014
+ static equals(a, b) {
3015
+ return proto3.util.equals(V4TakePortion, a, b);
3016
+ }
3017
+ }
3018
+ V4TakePortion.runtime = proto3;
3019
+ V4TakePortion.typeName = "trading.v1.V4TakePortion";
3020
+ V4TakePortion.fields = proto3.util.newFieldList(() => [
3021
+ { no: 1, name: "currency", kind: "scalar", T: 9 /* ScalarType.STRING */ },
3022
+ { no: 2, name: "recipient", kind: "scalar", T: 9 /* ScalarType.STRING */ },
3023
+ { no: 3, name: "bips", kind: "scalar", T: 9 /* ScalarType.STRING */ },
3024
+ ]);
3025
+ /**
3026
+ * @generated from message trading.v1.V4SwapAction
3027
+ */
3028
+ export class V4SwapAction extends Message {
3029
+ constructor(data) {
3030
+ super();
3031
+ /**
3032
+ * @generated from oneof trading.v1.V4SwapAction.action
3033
+ */
3034
+ this.action = { case: undefined };
3035
+ proto3.util.initPartial(data, this);
3036
+ }
3037
+ static fromBinary(bytes, options) {
3038
+ return new V4SwapAction().fromBinary(bytes, options);
3039
+ }
3040
+ static fromJson(jsonValue, options) {
3041
+ return new V4SwapAction().fromJson(jsonValue, options);
3042
+ }
3043
+ static fromJsonString(jsonString, options) {
3044
+ return new V4SwapAction().fromJsonString(jsonString, options);
3045
+ }
3046
+ static equals(a, b) {
3047
+ return proto3.util.equals(V4SwapAction, a, b);
3048
+ }
3049
+ }
3050
+ V4SwapAction.runtime = proto3;
3051
+ V4SwapAction.typeName = "trading.v1.V4SwapAction";
3052
+ V4SwapAction.fields = proto3.util.newFieldList(() => [
3053
+ { no: 1, name: "swap_exact_in", kind: "message", T: V4SwapExactIn, oneof: "action" },
3054
+ { no: 2, name: "swap_exact_in_single", kind: "message", T: V4SwapExactInSingle, oneof: "action" },
3055
+ { no: 3, name: "swap_exact_out", kind: "message", T: V4SwapExactOut, oneof: "action" },
3056
+ { no: 4, name: "swap_exact_out_single", kind: "message", T: V4SwapExactOutSingle, oneof: "action" },
3057
+ { no: 5, name: "settle", kind: "message", T: V4Settle, oneof: "action" },
3058
+ { no: 6, name: "settle_all", kind: "message", T: V4SettleAll, oneof: "action" },
3059
+ { no: 7, name: "take", kind: "message", T: V4Take, oneof: "action" },
3060
+ { no: 8, name: "take_all", kind: "message", T: V4TakeAll, oneof: "action" },
3061
+ { no: 9, name: "take_portion", kind: "message", T: V4TakePortion, oneof: "action" },
3062
+ ]);
3063
+ /**
3064
+ * @generated from message trading.v1.V2SwapExactInStep
3065
+ */
3066
+ export class V2SwapExactInStep extends Message {
3067
+ constructor(data) {
3068
+ super();
3069
+ /**
3070
+ * @generated from field: string recipient = 1;
3071
+ */
3072
+ this.recipient = "";
3073
+ /**
3074
+ * @generated from field: string amount_in = 2;
3075
+ */
3076
+ this.amountIn = "";
3077
+ /**
3078
+ * @generated from field: string amount_out_min = 3;
3079
+ */
3080
+ this.amountOutMin = "";
3081
+ /**
3082
+ * @generated from field: repeated string path = 4;
3083
+ */
3084
+ this.path = [];
3085
+ /**
3086
+ * @generated from field: repeated string min_hop_price_x36 = 5;
3087
+ */
3088
+ this.minHopPriceX36 = [];
3089
+ proto3.util.initPartial(data, this);
3090
+ }
3091
+ static fromBinary(bytes, options) {
3092
+ return new V2SwapExactInStep().fromBinary(bytes, options);
3093
+ }
3094
+ static fromJson(jsonValue, options) {
3095
+ return new V2SwapExactInStep().fromJson(jsonValue, options);
3096
+ }
3097
+ static fromJsonString(jsonString, options) {
3098
+ return new V2SwapExactInStep().fromJsonString(jsonString, options);
3099
+ }
3100
+ static equals(a, b) {
3101
+ return proto3.util.equals(V2SwapExactInStep, a, b);
3102
+ }
3103
+ }
3104
+ V2SwapExactInStep.runtime = proto3;
3105
+ V2SwapExactInStep.typeName = "trading.v1.V2SwapExactInStep";
3106
+ V2SwapExactInStep.fields = proto3.util.newFieldList(() => [
3107
+ { no: 1, name: "recipient", kind: "scalar", T: 9 /* ScalarType.STRING */ },
3108
+ { no: 2, name: "amount_in", kind: "scalar", T: 9 /* ScalarType.STRING */ },
3109
+ { no: 3, name: "amount_out_min", kind: "scalar", T: 9 /* ScalarType.STRING */ },
3110
+ { no: 4, name: "path", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
3111
+ { no: 5, name: "min_hop_price_x36", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
3112
+ ]);
3113
+ /**
3114
+ * @generated from message trading.v1.V2SwapExactOutStep
3115
+ */
3116
+ export class V2SwapExactOutStep extends Message {
3117
+ constructor(data) {
3118
+ super();
3119
+ /**
3120
+ * @generated from field: string recipient = 1;
3121
+ */
3122
+ this.recipient = "";
3123
+ /**
3124
+ * @generated from field: string amount_out = 2;
3125
+ */
3126
+ this.amountOut = "";
3127
+ /**
3128
+ * @generated from field: string amount_in_max = 3;
3129
+ */
3130
+ this.amountInMax = "";
3131
+ /**
3132
+ * @generated from field: repeated string path = 4;
3133
+ */
3134
+ this.path = [];
3135
+ /**
3136
+ * @generated from field: repeated string min_hop_price_x36 = 5;
3137
+ */
3138
+ this.minHopPriceX36 = [];
3139
+ proto3.util.initPartial(data, this);
3140
+ }
3141
+ static fromBinary(bytes, options) {
3142
+ return new V2SwapExactOutStep().fromBinary(bytes, options);
3143
+ }
3144
+ static fromJson(jsonValue, options) {
3145
+ return new V2SwapExactOutStep().fromJson(jsonValue, options);
3146
+ }
3147
+ static fromJsonString(jsonString, options) {
3148
+ return new V2SwapExactOutStep().fromJsonString(jsonString, options);
3149
+ }
3150
+ static equals(a, b) {
3151
+ return proto3.util.equals(V2SwapExactOutStep, a, b);
3152
+ }
3153
+ }
3154
+ V2SwapExactOutStep.runtime = proto3;
3155
+ V2SwapExactOutStep.typeName = "trading.v1.V2SwapExactOutStep";
3156
+ V2SwapExactOutStep.fields = proto3.util.newFieldList(() => [
3157
+ { no: 1, name: "recipient", kind: "scalar", T: 9 /* ScalarType.STRING */ },
3158
+ { no: 2, name: "amount_out", kind: "scalar", T: 9 /* ScalarType.STRING */ },
3159
+ { no: 3, name: "amount_in_max", kind: "scalar", T: 9 /* ScalarType.STRING */ },
3160
+ { no: 4, name: "path", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
3161
+ { no: 5, name: "min_hop_price_x36", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
3162
+ ]);
3163
+ /**
3164
+ * @generated from message trading.v1.V3SwapExactInStep
3165
+ */
3166
+ export class V3SwapExactInStep extends Message {
3167
+ constructor(data) {
3168
+ super();
3169
+ /**
3170
+ * @generated from field: string recipient = 1;
3171
+ */
3172
+ this.recipient = "";
3173
+ /**
3174
+ * @generated from field: string amount_in = 2;
3175
+ */
3176
+ this.amountIn = "";
3177
+ /**
3178
+ * @generated from field: string amount_out_min = 3;
3179
+ */
3180
+ this.amountOutMin = "";
3181
+ /**
3182
+ * @generated from field: string path = 4;
3183
+ */
3184
+ this.path = "";
3185
+ /**
3186
+ * @generated from field: repeated string min_hop_price_x36 = 5;
3187
+ */
3188
+ this.minHopPriceX36 = [];
3189
+ proto3.util.initPartial(data, this);
3190
+ }
3191
+ static fromBinary(bytes, options) {
3192
+ return new V3SwapExactInStep().fromBinary(bytes, options);
3193
+ }
3194
+ static fromJson(jsonValue, options) {
3195
+ return new V3SwapExactInStep().fromJson(jsonValue, options);
3196
+ }
3197
+ static fromJsonString(jsonString, options) {
3198
+ return new V3SwapExactInStep().fromJsonString(jsonString, options);
3199
+ }
3200
+ static equals(a, b) {
3201
+ return proto3.util.equals(V3SwapExactInStep, a, b);
3202
+ }
3203
+ }
3204
+ V3SwapExactInStep.runtime = proto3;
3205
+ V3SwapExactInStep.typeName = "trading.v1.V3SwapExactInStep";
3206
+ V3SwapExactInStep.fields = proto3.util.newFieldList(() => [
3207
+ { no: 1, name: "recipient", kind: "scalar", T: 9 /* ScalarType.STRING */ },
3208
+ { no: 2, name: "amount_in", kind: "scalar", T: 9 /* ScalarType.STRING */ },
3209
+ { no: 3, name: "amount_out_min", kind: "scalar", T: 9 /* ScalarType.STRING */ },
3210
+ { no: 4, name: "path", kind: "scalar", T: 9 /* ScalarType.STRING */ },
3211
+ { no: 5, name: "min_hop_price_x36", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
3212
+ ]);
3213
+ /**
3214
+ * @generated from message trading.v1.V3SwapExactOutStep
3215
+ */
3216
+ export class V3SwapExactOutStep extends Message {
3217
+ constructor(data) {
3218
+ super();
3219
+ /**
3220
+ * @generated from field: string recipient = 1;
3221
+ */
3222
+ this.recipient = "";
3223
+ /**
3224
+ * @generated from field: string amount_out = 2;
3225
+ */
3226
+ this.amountOut = "";
3227
+ /**
3228
+ * @generated from field: string amount_in_max = 3;
3229
+ */
3230
+ this.amountInMax = "";
3231
+ /**
3232
+ * @generated from field: string path = 4;
3233
+ */
3234
+ this.path = "";
3235
+ /**
3236
+ * @generated from field: repeated string min_hop_price_x36 = 5;
3237
+ */
3238
+ this.minHopPriceX36 = [];
3239
+ proto3.util.initPartial(data, this);
3240
+ }
3241
+ static fromBinary(bytes, options) {
3242
+ return new V3SwapExactOutStep().fromBinary(bytes, options);
3243
+ }
3244
+ static fromJson(jsonValue, options) {
3245
+ return new V3SwapExactOutStep().fromJson(jsonValue, options);
3246
+ }
3247
+ static fromJsonString(jsonString, options) {
3248
+ return new V3SwapExactOutStep().fromJsonString(jsonString, options);
3249
+ }
3250
+ static equals(a, b) {
3251
+ return proto3.util.equals(V3SwapExactOutStep, a, b);
3252
+ }
3253
+ }
3254
+ V3SwapExactOutStep.runtime = proto3;
3255
+ V3SwapExactOutStep.typeName = "trading.v1.V3SwapExactOutStep";
3256
+ V3SwapExactOutStep.fields = proto3.util.newFieldList(() => [
3257
+ { no: 1, name: "recipient", kind: "scalar", T: 9 /* ScalarType.STRING */ },
3258
+ { no: 2, name: "amount_out", kind: "scalar", T: 9 /* ScalarType.STRING */ },
3259
+ { no: 3, name: "amount_in_max", kind: "scalar", T: 9 /* ScalarType.STRING */ },
3260
+ { no: 4, name: "path", kind: "scalar", T: 9 /* ScalarType.STRING */ },
3261
+ { no: 5, name: "min_hop_price_x36", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
3262
+ ]);
3263
+ /**
3264
+ * @generated from message trading.v1.V4SwapStepInner
3265
+ */
3266
+ export class V4SwapStepInner extends Message {
3267
+ constructor(data) {
3268
+ super();
3269
+ /**
3270
+ * @generated from field: repeated trading.v1.V4SwapAction v4_actions = 1;
3271
+ */
3272
+ this.v4Actions = [];
3273
+ proto3.util.initPartial(data, this);
3274
+ }
3275
+ static fromBinary(bytes, options) {
3276
+ return new V4SwapStepInner().fromBinary(bytes, options);
3277
+ }
3278
+ static fromJson(jsonValue, options) {
3279
+ return new V4SwapStepInner().fromJson(jsonValue, options);
3280
+ }
3281
+ static fromJsonString(jsonString, options) {
3282
+ return new V4SwapStepInner().fromJsonString(jsonString, options);
3283
+ }
3284
+ static equals(a, b) {
3285
+ return proto3.util.equals(V4SwapStepInner, a, b);
3286
+ }
3287
+ }
3288
+ V4SwapStepInner.runtime = proto3;
3289
+ V4SwapStepInner.typeName = "trading.v1.V4SwapStepInner";
3290
+ V4SwapStepInner.fields = proto3.util.newFieldList(() => [
3291
+ { no: 1, name: "v4_actions", kind: "message", T: V4SwapAction, repeated: true },
3292
+ ]);
3293
+ /**
3294
+ * @generated from message trading.v1.WrapEthStep
3295
+ */
3296
+ export class WrapEthStep extends Message {
3297
+ constructor(data) {
3298
+ super();
3299
+ /**
3300
+ * @generated from field: string recipient = 1;
3301
+ */
3302
+ this.recipient = "";
3303
+ /**
3304
+ * @generated from field: string amount = 2;
3305
+ */
3306
+ this.amount = "";
3307
+ proto3.util.initPartial(data, this);
3308
+ }
3309
+ static fromBinary(bytes, options) {
3310
+ return new WrapEthStep().fromBinary(bytes, options);
3311
+ }
3312
+ static fromJson(jsonValue, options) {
3313
+ return new WrapEthStep().fromJson(jsonValue, options);
3314
+ }
3315
+ static fromJsonString(jsonString, options) {
3316
+ return new WrapEthStep().fromJsonString(jsonString, options);
3317
+ }
3318
+ static equals(a, b) {
3319
+ return proto3.util.equals(WrapEthStep, a, b);
3320
+ }
3321
+ }
3322
+ WrapEthStep.runtime = proto3;
3323
+ WrapEthStep.typeName = "trading.v1.WrapEthStep";
3324
+ WrapEthStep.fields = proto3.util.newFieldList(() => [
3325
+ { no: 1, name: "recipient", kind: "scalar", T: 9 /* ScalarType.STRING */ },
3326
+ { no: 2, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ },
3327
+ ]);
3328
+ /**
3329
+ * @generated from message trading.v1.UnwrapWethStep
3330
+ */
3331
+ export class UnwrapWethStep extends Message {
3332
+ constructor(data) {
3333
+ super();
3334
+ /**
3335
+ * @generated from field: string recipient = 1;
3336
+ */
3337
+ this.recipient = "";
3338
+ /**
3339
+ * @generated from field: string amount_min = 2;
3340
+ */
3341
+ this.amountMin = "";
3342
+ proto3.util.initPartial(data, this);
3343
+ }
3344
+ static fromBinary(bytes, options) {
3345
+ return new UnwrapWethStep().fromBinary(bytes, options);
3346
+ }
3347
+ static fromJson(jsonValue, options) {
3348
+ return new UnwrapWethStep().fromJson(jsonValue, options);
3349
+ }
3350
+ static fromJsonString(jsonString, options) {
3351
+ return new UnwrapWethStep().fromJsonString(jsonString, options);
3352
+ }
3353
+ static equals(a, b) {
3354
+ return proto3.util.equals(UnwrapWethStep, a, b);
3355
+ }
3356
+ }
3357
+ UnwrapWethStep.runtime = proto3;
3358
+ UnwrapWethStep.typeName = "trading.v1.UnwrapWethStep";
3359
+ UnwrapWethStep.fields = proto3.util.newFieldList(() => [
3360
+ { no: 1, name: "recipient", kind: "scalar", T: 9 /* ScalarType.STRING */ },
3361
+ { no: 2, name: "amount_min", kind: "scalar", T: 9 /* ScalarType.STRING */ },
3362
+ ]);
3363
+ /**
3364
+ * @generated from message trading.v1.SwapStep
3365
+ */
3366
+ export class SwapStep extends Message {
3367
+ constructor(data) {
3368
+ super();
3369
+ /**
3370
+ * @generated from oneof trading.v1.SwapStep.step
3371
+ */
3372
+ this.step = { case: undefined };
3373
+ proto3.util.initPartial(data, this);
3374
+ }
3375
+ static fromBinary(bytes, options) {
3376
+ return new SwapStep().fromBinary(bytes, options);
3377
+ }
3378
+ static fromJson(jsonValue, options) {
3379
+ return new SwapStep().fromJson(jsonValue, options);
3380
+ }
3381
+ static fromJsonString(jsonString, options) {
3382
+ return new SwapStep().fromJsonString(jsonString, options);
3383
+ }
3384
+ static equals(a, b) {
3385
+ return proto3.util.equals(SwapStep, a, b);
3386
+ }
3387
+ }
3388
+ SwapStep.runtime = proto3;
3389
+ SwapStep.typeName = "trading.v1.SwapStep";
3390
+ SwapStep.fields = proto3.util.newFieldList(() => [
3391
+ { no: 1, name: "v2_swap_exact_in", kind: "message", T: V2SwapExactInStep, oneof: "step" },
3392
+ { no: 2, name: "v2_swap_exact_out", kind: "message", T: V2SwapExactOutStep, oneof: "step" },
3393
+ { no: 3, name: "v3_swap_exact_in", kind: "message", T: V3SwapExactInStep, oneof: "step" },
3394
+ { no: 4, name: "v3_swap_exact_out", kind: "message", T: V3SwapExactOutStep, oneof: "step" },
3395
+ { no: 5, name: "v4_swap", kind: "message", T: V4SwapStepInner, oneof: "step" },
3396
+ { no: 6, name: "wrap_eth", kind: "message", T: WrapEthStep, oneof: "step" },
3397
+ { no: 7, name: "unwrap_weth", kind: "message", T: UnwrapWethStep, oneof: "step" },
2527
3398
  ]);
2528
3399
  /**
2529
3400
  * @generated from message trading.v1.GasEstimate
@@ -2903,8 +3774,8 @@ WrapUnwrapQuote.fields = proto3.util.newFieldList(() => [
2903
3774
  { no: 1, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
2904
3775
  { no: 2, name: "destination_chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
2905
3776
  { no: 3, name: "swapper", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2906
- { no: 4, name: "input", kind: "message", T: ClassicInput },
2907
- { no: 5, name: "output", kind: "message", T: ClassicOutput },
3777
+ { no: 4, name: "input", kind: "message", T: QuoteInput },
3778
+ { no: 5, name: "output", kind: "message", T: QuoteOutput },
2908
3779
  { no: 6, name: "trade_type", kind: "enum", T: proto3.getEnumType(TradeType) },
2909
3780
  { no: 7, name: "gas_fee", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
2910
3781
  { no: 8, name: "gas_fee_usd", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
@@ -4532,8 +5403,8 @@ BridgeQuote.fields = proto3.util.newFieldList(() => [
4532
5403
  { no: 2, name: "destination_chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
4533
5404
  { no: 3, name: "swapper", kind: "scalar", T: 9 /* ScalarType.STRING */ },
4534
5405
  { no: 4, name: "quote_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
4535
- { no: 5, name: "input", kind: "message", T: ClassicInput },
4536
- { no: 6, name: "output", kind: "message", T: ClassicOutput },
5406
+ { no: 5, name: "input", kind: "message", T: QuoteInput },
5407
+ { no: 6, name: "output", kind: "message", T: QuoteOutput },
4537
5408
  { no: 7, name: "trade_type", kind: "enum", T: proto3.getEnumType(TradeType) },
4538
5409
  { no: 8, name: "quote_timestamp", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
4539
5410
  { no: 9, name: "estimated_fill_time_ms", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
@@ -4681,6 +5552,8 @@ DutchLimitQuote.fields = proto3.util.newFieldList(() => [
4681
5552
  { no: 8, name: "portion_bips", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
4682
5553
  { no: 9, name: "portion_amount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
4683
5554
  { no: 10, name: "portion_recipient", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
5555
+ { no: 11, name: "input", kind: "message", T: QuoteInput },
5556
+ { no: 12, name: "output", kind: "message", T: QuoteOutput },
4684
5557
  ]);
4685
5558
  /**
4686
5559
  * @generated from message trading.v1.DutchLimitV2OrderInfo
@@ -4808,6 +5681,8 @@ DutchLimitV2Quote.fields = proto3.util.newFieldList(() => [
4808
5681
  { no: 9, name: "portion_bips", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
4809
5682
  { no: 10, name: "portion_amount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
4810
5683
  { no: 11, name: "portion_recipient", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
5684
+ { no: 12, name: "input", kind: "message", T: QuoteInput },
5685
+ { no: 13, name: "output", kind: "message", T: QuoteOutput },
4811
5686
  ]);
4812
5687
  /**
4813
5688
  * @generated from message trading.v1.DutchLimitV3OrderInfo
@@ -4942,6 +5817,8 @@ DutchLimitV3Quote.fields = proto3.util.newFieldList(() => [
4942
5817
  { no: 11, name: "portion_bips", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
4943
5818
  { no: 12, name: "portion_amount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
4944
5819
  { no: 13, name: "portion_recipient", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
5820
+ { no: 14, name: "input", kind: "message", T: QuoteInput },
5821
+ { no: 15, name: "output", kind: "message", T: QuoteOutput },
4945
5822
  ]);
4946
5823
  /**
4947
5824
  * @generated from message trading.v1.CheckApprovalRequest
@@ -5165,6 +6042,8 @@ PriorityQuote.fields = proto3.util.newFieldList(() => [
5165
6042
  { no: 11, name: "portion_bips", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
5166
6043
  { no: 12, name: "portion_amount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
5167
6044
  { no: 13, name: "portion_recipient", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
6045
+ { no: 14, name: "input", kind: "message", T: QuoteInput },
6046
+ { no: 15, name: "output", kind: "message", T: QuoteOutput },
5168
6047
  ]);
5169
6048
  /**
5170
6049
  * @generated from message trading.v1.TruncatedPlanStep
@@ -5260,8 +6139,8 @@ ChainedQuote.fields = proto3.util.newFieldList(() => [
5260
6139
  { no: 1, name: "token_in_chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
5261
6140
  { no: 2, name: "token_out_chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
5262
6141
  { no: 3, name: "swapper", kind: "scalar", T: 9 /* ScalarType.STRING */ },
5263
- { no: 4, name: "input", kind: "message", T: ClassicInput },
5264
- { no: 5, name: "output", kind: "message", T: ClassicOutput },
6142
+ { no: 4, name: "input", kind: "message", T: QuoteInput },
6143
+ { no: 5, name: "output", kind: "message", T: QuoteOutput },
5265
6144
  { no: 6, name: "trade_type", kind: "enum", T: proto3.getEnumType(TradeType) },
5266
6145
  { no: 7, name: "quote_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
5267
6146
  { no: 8, name: "gas_estimates", kind: "message", T: GasEstimate, repeated: true },
@@ -5275,6 +6154,7 @@ ChainedQuote.fields = proto3.util.newFieldList(() => [
5275
6154
  { no: 16, name: "steps", kind: "message", T: TruncatedPlanStep, repeated: true },
5276
6155
  { no: 17, name: "slippage_tolerance", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
5277
6156
  { no: 18, name: "auto_slippage", kind: "enum", T: proto3.getEnumType(AutoSlippage), opt: true },
6157
+ { no: 19, name: "compound_slippage", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
5278
6158
  ]);
5279
6159
  /**
5280
6160
  * @generated from message trading.v1.PermitTransferFromData