@uniswap/client-trading 0.2.0 → 0.2.1

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.
@@ -2481,6 +2481,10 @@ export class ClassicQuote extends Message {
2481
2481
  * @generated from field: repeated trading.v1.AggregatedOutput aggregated_outputs = 21;
2482
2482
  */
2483
2483
  this.aggregatedOutputs = [];
2484
+ /**
2485
+ * @generated from field: repeated trading.v1.SwapStep swap_steps = 26;
2486
+ */
2487
+ this.swapSteps = [];
2484
2488
  proto3.util.initPartial(data, this);
2485
2489
  }
2486
2490
  static fromBinary(bytes, options) {
@@ -2524,6 +2528,863 @@ ClassicQuote.fields = proto3.util.newFieldList(() => [
2524
2528
  { no: 23, name: "portion_amount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
2525
2529
  { no: 24, name: "portion_recipient", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
2526
2530
  { no: 25, name: "sponsorship_info", kind: "message", T: SponsorshipInfo, opt: true },
2531
+ { no: 26, name: "swap_steps", kind: "message", T: SwapStep, repeated: true },
2532
+ ]);
2533
+ /**
2534
+ * Universal Router SwapStep representation (mirrors the SDK shape used by
2535
+ * SwapRouter.encodeSwaps). Only used in the swapsteps quote/encoding flow.
2536
+ *
2537
+ * @generated from message trading.v1.SwapPoolKey
2538
+ */
2539
+ export class SwapPoolKey extends Message {
2540
+ constructor(data) {
2541
+ super();
2542
+ /**
2543
+ * @generated from field: string currency0 = 1;
2544
+ */
2545
+ this.currency0 = "";
2546
+ /**
2547
+ * @generated from field: string currency1 = 2;
2548
+ */
2549
+ this.currency1 = "";
2550
+ /**
2551
+ * @generated from field: int32 fee = 3;
2552
+ */
2553
+ this.fee = 0;
2554
+ /**
2555
+ * @generated from field: int32 tick_spacing = 4;
2556
+ */
2557
+ this.tickSpacing = 0;
2558
+ /**
2559
+ * @generated from field: string hooks = 5;
2560
+ */
2561
+ this.hooks = "";
2562
+ proto3.util.initPartial(data, this);
2563
+ }
2564
+ static fromBinary(bytes, options) {
2565
+ return new SwapPoolKey().fromBinary(bytes, options);
2566
+ }
2567
+ static fromJson(jsonValue, options) {
2568
+ return new SwapPoolKey().fromJson(jsonValue, options);
2569
+ }
2570
+ static fromJsonString(jsonString, options) {
2571
+ return new SwapPoolKey().fromJsonString(jsonString, options);
2572
+ }
2573
+ static equals(a, b) {
2574
+ return proto3.util.equals(SwapPoolKey, a, b);
2575
+ }
2576
+ }
2577
+ SwapPoolKey.runtime = proto3;
2578
+ SwapPoolKey.typeName = "trading.v1.SwapPoolKey";
2579
+ SwapPoolKey.fields = proto3.util.newFieldList(() => [
2580
+ { no: 1, name: "currency0", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2581
+ { no: 2, name: "currency1", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2582
+ { no: 3, name: "fee", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
2583
+ { no: 4, name: "tick_spacing", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
2584
+ { no: 5, name: "hooks", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2585
+ ]);
2586
+ /**
2587
+ * @generated from message trading.v1.SwapPathKey
2588
+ */
2589
+ export class SwapPathKey extends Message {
2590
+ constructor(data) {
2591
+ super();
2592
+ /**
2593
+ * @generated from field: string intermediate_currency = 1;
2594
+ */
2595
+ this.intermediateCurrency = "";
2596
+ /**
2597
+ * @generated from field: int32 fee = 2;
2598
+ */
2599
+ this.fee = 0;
2600
+ /**
2601
+ * @generated from field: int32 tick_spacing = 3;
2602
+ */
2603
+ this.tickSpacing = 0;
2604
+ /**
2605
+ * @generated from field: string hooks = 4;
2606
+ */
2607
+ this.hooks = "";
2608
+ /**
2609
+ * @generated from field: string hook_data = 5;
2610
+ */
2611
+ this.hookData = "";
2612
+ proto3.util.initPartial(data, this);
2613
+ }
2614
+ static fromBinary(bytes, options) {
2615
+ return new SwapPathKey().fromBinary(bytes, options);
2616
+ }
2617
+ static fromJson(jsonValue, options) {
2618
+ return new SwapPathKey().fromJson(jsonValue, options);
2619
+ }
2620
+ static fromJsonString(jsonString, options) {
2621
+ return new SwapPathKey().fromJsonString(jsonString, options);
2622
+ }
2623
+ static equals(a, b) {
2624
+ return proto3.util.equals(SwapPathKey, a, b);
2625
+ }
2626
+ }
2627
+ SwapPathKey.runtime = proto3;
2628
+ SwapPathKey.typeName = "trading.v1.SwapPathKey";
2629
+ SwapPathKey.fields = proto3.util.newFieldList(() => [
2630
+ { no: 1, name: "intermediate_currency", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2631
+ { no: 2, name: "fee", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
2632
+ { no: 3, name: "tick_spacing", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
2633
+ { no: 4, name: "hooks", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2634
+ { no: 5, name: "hook_data", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2635
+ ]);
2636
+ /**
2637
+ * @generated from message trading.v1.V4SwapExactIn
2638
+ */
2639
+ export class V4SwapExactIn extends Message {
2640
+ constructor(data) {
2641
+ super();
2642
+ /**
2643
+ * @generated from field: string currency_in = 1;
2644
+ */
2645
+ this.currencyIn = "";
2646
+ /**
2647
+ * @generated from field: repeated trading.v1.SwapPathKey path = 2;
2648
+ */
2649
+ this.path = [];
2650
+ /**
2651
+ * @generated from field: string amount_in = 3;
2652
+ */
2653
+ this.amountIn = "";
2654
+ /**
2655
+ * @generated from field: string amount_out_minimum = 4;
2656
+ */
2657
+ this.amountOutMinimum = "";
2658
+ /**
2659
+ * @generated from field: repeated string min_hop_price_x36 = 5;
2660
+ */
2661
+ this.minHopPriceX36 = [];
2662
+ proto3.util.initPartial(data, this);
2663
+ }
2664
+ static fromBinary(bytes, options) {
2665
+ return new V4SwapExactIn().fromBinary(bytes, options);
2666
+ }
2667
+ static fromJson(jsonValue, options) {
2668
+ return new V4SwapExactIn().fromJson(jsonValue, options);
2669
+ }
2670
+ static fromJsonString(jsonString, options) {
2671
+ return new V4SwapExactIn().fromJsonString(jsonString, options);
2672
+ }
2673
+ static equals(a, b) {
2674
+ return proto3.util.equals(V4SwapExactIn, a, b);
2675
+ }
2676
+ }
2677
+ V4SwapExactIn.runtime = proto3;
2678
+ V4SwapExactIn.typeName = "trading.v1.V4SwapExactIn";
2679
+ V4SwapExactIn.fields = proto3.util.newFieldList(() => [
2680
+ { no: 1, name: "currency_in", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2681
+ { no: 2, name: "path", kind: "message", T: SwapPathKey, repeated: true },
2682
+ { no: 3, name: "amount_in", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2683
+ { no: 4, name: "amount_out_minimum", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2684
+ { no: 5, name: "min_hop_price_x36", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
2685
+ ]);
2686
+ /**
2687
+ * @generated from message trading.v1.V4SwapExactInSingle
2688
+ */
2689
+ export class V4SwapExactInSingle extends Message {
2690
+ constructor(data) {
2691
+ super();
2692
+ /**
2693
+ * @generated from field: bool zero_for_one = 2;
2694
+ */
2695
+ this.zeroForOne = false;
2696
+ /**
2697
+ * @generated from field: string amount_in = 3;
2698
+ */
2699
+ this.amountIn = "";
2700
+ /**
2701
+ * @generated from field: string amount_out_minimum = 4;
2702
+ */
2703
+ this.amountOutMinimum = "";
2704
+ /**
2705
+ * @generated from field: string hook_data = 5;
2706
+ */
2707
+ this.hookData = "";
2708
+ proto3.util.initPartial(data, this);
2709
+ }
2710
+ static fromBinary(bytes, options) {
2711
+ return new V4SwapExactInSingle().fromBinary(bytes, options);
2712
+ }
2713
+ static fromJson(jsonValue, options) {
2714
+ return new V4SwapExactInSingle().fromJson(jsonValue, options);
2715
+ }
2716
+ static fromJsonString(jsonString, options) {
2717
+ return new V4SwapExactInSingle().fromJsonString(jsonString, options);
2718
+ }
2719
+ static equals(a, b) {
2720
+ return proto3.util.equals(V4SwapExactInSingle, a, b);
2721
+ }
2722
+ }
2723
+ V4SwapExactInSingle.runtime = proto3;
2724
+ V4SwapExactInSingle.typeName = "trading.v1.V4SwapExactInSingle";
2725
+ V4SwapExactInSingle.fields = proto3.util.newFieldList(() => [
2726
+ { no: 1, name: "pool_key", kind: "message", T: SwapPoolKey },
2727
+ { no: 2, name: "zero_for_one", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
2728
+ { no: 3, name: "amount_in", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2729
+ { no: 4, name: "amount_out_minimum", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2730
+ { no: 5, name: "hook_data", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2731
+ { no: 6, name: "min_hop_price_x36", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
2732
+ ]);
2733
+ /**
2734
+ * @generated from message trading.v1.V4SwapExactOut
2735
+ */
2736
+ export class V4SwapExactOut extends Message {
2737
+ constructor(data) {
2738
+ super();
2739
+ /**
2740
+ * @generated from field: string currency_out = 1;
2741
+ */
2742
+ this.currencyOut = "";
2743
+ /**
2744
+ * @generated from field: repeated trading.v1.SwapPathKey path = 2;
2745
+ */
2746
+ this.path = [];
2747
+ /**
2748
+ * @generated from field: string amount_out = 3;
2749
+ */
2750
+ this.amountOut = "";
2751
+ /**
2752
+ * @generated from field: string amount_in_maximum = 4;
2753
+ */
2754
+ this.amountInMaximum = "";
2755
+ /**
2756
+ * @generated from field: repeated string min_hop_price_x36 = 5;
2757
+ */
2758
+ this.minHopPriceX36 = [];
2759
+ proto3.util.initPartial(data, this);
2760
+ }
2761
+ static fromBinary(bytes, options) {
2762
+ return new V4SwapExactOut().fromBinary(bytes, options);
2763
+ }
2764
+ static fromJson(jsonValue, options) {
2765
+ return new V4SwapExactOut().fromJson(jsonValue, options);
2766
+ }
2767
+ static fromJsonString(jsonString, options) {
2768
+ return new V4SwapExactOut().fromJsonString(jsonString, options);
2769
+ }
2770
+ static equals(a, b) {
2771
+ return proto3.util.equals(V4SwapExactOut, a, b);
2772
+ }
2773
+ }
2774
+ V4SwapExactOut.runtime = proto3;
2775
+ V4SwapExactOut.typeName = "trading.v1.V4SwapExactOut";
2776
+ V4SwapExactOut.fields = proto3.util.newFieldList(() => [
2777
+ { no: 1, name: "currency_out", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2778
+ { no: 2, name: "path", kind: "message", T: SwapPathKey, repeated: true },
2779
+ { no: 3, name: "amount_out", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2780
+ { no: 4, name: "amount_in_maximum", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2781
+ { no: 5, name: "min_hop_price_x36", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
2782
+ ]);
2783
+ /**
2784
+ * @generated from message trading.v1.V4SwapExactOutSingle
2785
+ */
2786
+ export class V4SwapExactOutSingle extends Message {
2787
+ constructor(data) {
2788
+ super();
2789
+ /**
2790
+ * @generated from field: bool zero_for_one = 2;
2791
+ */
2792
+ this.zeroForOne = false;
2793
+ /**
2794
+ * @generated from field: string amount_out = 3;
2795
+ */
2796
+ this.amountOut = "";
2797
+ /**
2798
+ * @generated from field: string amount_in_maximum = 4;
2799
+ */
2800
+ this.amountInMaximum = "";
2801
+ /**
2802
+ * @generated from field: string hook_data = 5;
2803
+ */
2804
+ this.hookData = "";
2805
+ proto3.util.initPartial(data, this);
2806
+ }
2807
+ static fromBinary(bytes, options) {
2808
+ return new V4SwapExactOutSingle().fromBinary(bytes, options);
2809
+ }
2810
+ static fromJson(jsonValue, options) {
2811
+ return new V4SwapExactOutSingle().fromJson(jsonValue, options);
2812
+ }
2813
+ static fromJsonString(jsonString, options) {
2814
+ return new V4SwapExactOutSingle().fromJsonString(jsonString, options);
2815
+ }
2816
+ static equals(a, b) {
2817
+ return proto3.util.equals(V4SwapExactOutSingle, a, b);
2818
+ }
2819
+ }
2820
+ V4SwapExactOutSingle.runtime = proto3;
2821
+ V4SwapExactOutSingle.typeName = "trading.v1.V4SwapExactOutSingle";
2822
+ V4SwapExactOutSingle.fields = proto3.util.newFieldList(() => [
2823
+ { no: 1, name: "pool_key", kind: "message", T: SwapPoolKey },
2824
+ { no: 2, name: "zero_for_one", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
2825
+ { no: 3, name: "amount_out", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2826
+ { no: 4, name: "amount_in_maximum", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2827
+ { no: 5, name: "hook_data", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2828
+ { no: 6, name: "min_hop_price_x36", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
2829
+ ]);
2830
+ /**
2831
+ * @generated from message trading.v1.V4Settle
2832
+ */
2833
+ export class V4Settle extends Message {
2834
+ constructor(data) {
2835
+ super();
2836
+ /**
2837
+ * @generated from field: string currency = 1;
2838
+ */
2839
+ this.currency = "";
2840
+ /**
2841
+ * @generated from field: string amount = 2;
2842
+ */
2843
+ this.amount = "";
2844
+ proto3.util.initPartial(data, this);
2845
+ }
2846
+ static fromBinary(bytes, options) {
2847
+ return new V4Settle().fromBinary(bytes, options);
2848
+ }
2849
+ static fromJson(jsonValue, options) {
2850
+ return new V4Settle().fromJson(jsonValue, options);
2851
+ }
2852
+ static fromJsonString(jsonString, options) {
2853
+ return new V4Settle().fromJsonString(jsonString, options);
2854
+ }
2855
+ static equals(a, b) {
2856
+ return proto3.util.equals(V4Settle, a, b);
2857
+ }
2858
+ }
2859
+ V4Settle.runtime = proto3;
2860
+ V4Settle.typeName = "trading.v1.V4Settle";
2861
+ V4Settle.fields = proto3.util.newFieldList(() => [
2862
+ { no: 1, name: "currency", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2863
+ { no: 2, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2864
+ ]);
2865
+ /**
2866
+ * @generated from message trading.v1.V4SettleAll
2867
+ */
2868
+ export class V4SettleAll extends Message {
2869
+ constructor(data) {
2870
+ super();
2871
+ /**
2872
+ * @generated from field: string currency = 1;
2873
+ */
2874
+ this.currency = "";
2875
+ /**
2876
+ * @generated from field: string max_amount = 2;
2877
+ */
2878
+ this.maxAmount = "";
2879
+ proto3.util.initPartial(data, this);
2880
+ }
2881
+ static fromBinary(bytes, options) {
2882
+ return new V4SettleAll().fromBinary(bytes, options);
2883
+ }
2884
+ static fromJson(jsonValue, options) {
2885
+ return new V4SettleAll().fromJson(jsonValue, options);
2886
+ }
2887
+ static fromJsonString(jsonString, options) {
2888
+ return new V4SettleAll().fromJsonString(jsonString, options);
2889
+ }
2890
+ static equals(a, b) {
2891
+ return proto3.util.equals(V4SettleAll, a, b);
2892
+ }
2893
+ }
2894
+ V4SettleAll.runtime = proto3;
2895
+ V4SettleAll.typeName = "trading.v1.V4SettleAll";
2896
+ V4SettleAll.fields = proto3.util.newFieldList(() => [
2897
+ { no: 1, name: "currency", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2898
+ { no: 2, name: "max_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2899
+ ]);
2900
+ /**
2901
+ * @generated from message trading.v1.V4Take
2902
+ */
2903
+ export class V4Take extends Message {
2904
+ constructor(data) {
2905
+ super();
2906
+ /**
2907
+ * @generated from field: string currency = 1;
2908
+ */
2909
+ this.currency = "";
2910
+ /**
2911
+ * @generated from field: string recipient = 2;
2912
+ */
2913
+ this.recipient = "";
2914
+ /**
2915
+ * @generated from field: string amount = 3;
2916
+ */
2917
+ this.amount = "";
2918
+ proto3.util.initPartial(data, this);
2919
+ }
2920
+ static fromBinary(bytes, options) {
2921
+ return new V4Take().fromBinary(bytes, options);
2922
+ }
2923
+ static fromJson(jsonValue, options) {
2924
+ return new V4Take().fromJson(jsonValue, options);
2925
+ }
2926
+ static fromJsonString(jsonString, options) {
2927
+ return new V4Take().fromJsonString(jsonString, options);
2928
+ }
2929
+ static equals(a, b) {
2930
+ return proto3.util.equals(V4Take, a, b);
2931
+ }
2932
+ }
2933
+ V4Take.runtime = proto3;
2934
+ V4Take.typeName = "trading.v1.V4Take";
2935
+ V4Take.fields = proto3.util.newFieldList(() => [
2936
+ { no: 1, name: "currency", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2937
+ { no: 2, name: "recipient", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2938
+ { no: 3, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2939
+ ]);
2940
+ /**
2941
+ * @generated from message trading.v1.V4TakeAll
2942
+ */
2943
+ export class V4TakeAll extends Message {
2944
+ constructor(data) {
2945
+ super();
2946
+ /**
2947
+ * @generated from field: string currency = 1;
2948
+ */
2949
+ this.currency = "";
2950
+ /**
2951
+ * @generated from field: string min_amount = 2;
2952
+ */
2953
+ this.minAmount = "";
2954
+ proto3.util.initPartial(data, this);
2955
+ }
2956
+ static fromBinary(bytes, options) {
2957
+ return new V4TakeAll().fromBinary(bytes, options);
2958
+ }
2959
+ static fromJson(jsonValue, options) {
2960
+ return new V4TakeAll().fromJson(jsonValue, options);
2961
+ }
2962
+ static fromJsonString(jsonString, options) {
2963
+ return new V4TakeAll().fromJsonString(jsonString, options);
2964
+ }
2965
+ static equals(a, b) {
2966
+ return proto3.util.equals(V4TakeAll, a, b);
2967
+ }
2968
+ }
2969
+ V4TakeAll.runtime = proto3;
2970
+ V4TakeAll.typeName = "trading.v1.V4TakeAll";
2971
+ V4TakeAll.fields = proto3.util.newFieldList(() => [
2972
+ { no: 1, name: "currency", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2973
+ { no: 2, name: "min_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2974
+ ]);
2975
+ /**
2976
+ * @generated from message trading.v1.V4TakePortion
2977
+ */
2978
+ export class V4TakePortion extends Message {
2979
+ constructor(data) {
2980
+ super();
2981
+ /**
2982
+ * @generated from field: string currency = 1;
2983
+ */
2984
+ this.currency = "";
2985
+ /**
2986
+ * @generated from field: string recipient = 2;
2987
+ */
2988
+ this.recipient = "";
2989
+ /**
2990
+ * @generated from field: string bips = 3;
2991
+ */
2992
+ this.bips = "";
2993
+ proto3.util.initPartial(data, this);
2994
+ }
2995
+ static fromBinary(bytes, options) {
2996
+ return new V4TakePortion().fromBinary(bytes, options);
2997
+ }
2998
+ static fromJson(jsonValue, options) {
2999
+ return new V4TakePortion().fromJson(jsonValue, options);
3000
+ }
3001
+ static fromJsonString(jsonString, options) {
3002
+ return new V4TakePortion().fromJsonString(jsonString, options);
3003
+ }
3004
+ static equals(a, b) {
3005
+ return proto3.util.equals(V4TakePortion, a, b);
3006
+ }
3007
+ }
3008
+ V4TakePortion.runtime = proto3;
3009
+ V4TakePortion.typeName = "trading.v1.V4TakePortion";
3010
+ V4TakePortion.fields = proto3.util.newFieldList(() => [
3011
+ { no: 1, name: "currency", kind: "scalar", T: 9 /* ScalarType.STRING */ },
3012
+ { no: 2, name: "recipient", kind: "scalar", T: 9 /* ScalarType.STRING */ },
3013
+ { no: 3, name: "bips", kind: "scalar", T: 9 /* ScalarType.STRING */ },
3014
+ ]);
3015
+ /**
3016
+ * @generated from message trading.v1.V4SwapAction
3017
+ */
3018
+ export class V4SwapAction extends Message {
3019
+ constructor(data) {
3020
+ super();
3021
+ /**
3022
+ * @generated from oneof trading.v1.V4SwapAction.action
3023
+ */
3024
+ this.action = { case: undefined };
3025
+ proto3.util.initPartial(data, this);
3026
+ }
3027
+ static fromBinary(bytes, options) {
3028
+ return new V4SwapAction().fromBinary(bytes, options);
3029
+ }
3030
+ static fromJson(jsonValue, options) {
3031
+ return new V4SwapAction().fromJson(jsonValue, options);
3032
+ }
3033
+ static fromJsonString(jsonString, options) {
3034
+ return new V4SwapAction().fromJsonString(jsonString, options);
3035
+ }
3036
+ static equals(a, b) {
3037
+ return proto3.util.equals(V4SwapAction, a, b);
3038
+ }
3039
+ }
3040
+ V4SwapAction.runtime = proto3;
3041
+ V4SwapAction.typeName = "trading.v1.V4SwapAction";
3042
+ V4SwapAction.fields = proto3.util.newFieldList(() => [
3043
+ { no: 1, name: "swap_exact_in", kind: "message", T: V4SwapExactIn, oneof: "action" },
3044
+ { no: 2, name: "swap_exact_in_single", kind: "message", T: V4SwapExactInSingle, oneof: "action" },
3045
+ { no: 3, name: "swap_exact_out", kind: "message", T: V4SwapExactOut, oneof: "action" },
3046
+ { no: 4, name: "swap_exact_out_single", kind: "message", T: V4SwapExactOutSingle, oneof: "action" },
3047
+ { no: 5, name: "settle", kind: "message", T: V4Settle, oneof: "action" },
3048
+ { no: 6, name: "settle_all", kind: "message", T: V4SettleAll, oneof: "action" },
3049
+ { no: 7, name: "take", kind: "message", T: V4Take, oneof: "action" },
3050
+ { no: 8, name: "take_all", kind: "message", T: V4TakeAll, oneof: "action" },
3051
+ { no: 9, name: "take_portion", kind: "message", T: V4TakePortion, oneof: "action" },
3052
+ ]);
3053
+ /**
3054
+ * @generated from message trading.v1.V2SwapExactInStep
3055
+ */
3056
+ export class V2SwapExactInStep extends Message {
3057
+ constructor(data) {
3058
+ super();
3059
+ /**
3060
+ * @generated from field: string recipient = 1;
3061
+ */
3062
+ this.recipient = "";
3063
+ /**
3064
+ * @generated from field: string amount_in = 2;
3065
+ */
3066
+ this.amountIn = "";
3067
+ /**
3068
+ * @generated from field: string amount_out_min = 3;
3069
+ */
3070
+ this.amountOutMin = "";
3071
+ /**
3072
+ * @generated from field: repeated string path = 4;
3073
+ */
3074
+ this.path = [];
3075
+ /**
3076
+ * @generated from field: repeated string min_hop_price_x36 = 5;
3077
+ */
3078
+ this.minHopPriceX36 = [];
3079
+ proto3.util.initPartial(data, this);
3080
+ }
3081
+ static fromBinary(bytes, options) {
3082
+ return new V2SwapExactInStep().fromBinary(bytes, options);
3083
+ }
3084
+ static fromJson(jsonValue, options) {
3085
+ return new V2SwapExactInStep().fromJson(jsonValue, options);
3086
+ }
3087
+ static fromJsonString(jsonString, options) {
3088
+ return new V2SwapExactInStep().fromJsonString(jsonString, options);
3089
+ }
3090
+ static equals(a, b) {
3091
+ return proto3.util.equals(V2SwapExactInStep, a, b);
3092
+ }
3093
+ }
3094
+ V2SwapExactInStep.runtime = proto3;
3095
+ V2SwapExactInStep.typeName = "trading.v1.V2SwapExactInStep";
3096
+ V2SwapExactInStep.fields = proto3.util.newFieldList(() => [
3097
+ { no: 1, name: "recipient", kind: "scalar", T: 9 /* ScalarType.STRING */ },
3098
+ { no: 2, name: "amount_in", kind: "scalar", T: 9 /* ScalarType.STRING */ },
3099
+ { no: 3, name: "amount_out_min", kind: "scalar", T: 9 /* ScalarType.STRING */ },
3100
+ { no: 4, name: "path", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
3101
+ { no: 5, name: "min_hop_price_x36", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
3102
+ ]);
3103
+ /**
3104
+ * @generated from message trading.v1.V2SwapExactOutStep
3105
+ */
3106
+ export class V2SwapExactOutStep extends Message {
3107
+ constructor(data) {
3108
+ super();
3109
+ /**
3110
+ * @generated from field: string recipient = 1;
3111
+ */
3112
+ this.recipient = "";
3113
+ /**
3114
+ * @generated from field: string amount_out = 2;
3115
+ */
3116
+ this.amountOut = "";
3117
+ /**
3118
+ * @generated from field: string amount_in_max = 3;
3119
+ */
3120
+ this.amountInMax = "";
3121
+ /**
3122
+ * @generated from field: repeated string path = 4;
3123
+ */
3124
+ this.path = [];
3125
+ /**
3126
+ * @generated from field: repeated string min_hop_price_x36 = 5;
3127
+ */
3128
+ this.minHopPriceX36 = [];
3129
+ proto3.util.initPartial(data, this);
3130
+ }
3131
+ static fromBinary(bytes, options) {
3132
+ return new V2SwapExactOutStep().fromBinary(bytes, options);
3133
+ }
3134
+ static fromJson(jsonValue, options) {
3135
+ return new V2SwapExactOutStep().fromJson(jsonValue, options);
3136
+ }
3137
+ static fromJsonString(jsonString, options) {
3138
+ return new V2SwapExactOutStep().fromJsonString(jsonString, options);
3139
+ }
3140
+ static equals(a, b) {
3141
+ return proto3.util.equals(V2SwapExactOutStep, a, b);
3142
+ }
3143
+ }
3144
+ V2SwapExactOutStep.runtime = proto3;
3145
+ V2SwapExactOutStep.typeName = "trading.v1.V2SwapExactOutStep";
3146
+ V2SwapExactOutStep.fields = proto3.util.newFieldList(() => [
3147
+ { no: 1, name: "recipient", kind: "scalar", T: 9 /* ScalarType.STRING */ },
3148
+ { no: 2, name: "amount_out", kind: "scalar", T: 9 /* ScalarType.STRING */ },
3149
+ { no: 3, name: "amount_in_max", kind: "scalar", T: 9 /* ScalarType.STRING */ },
3150
+ { no: 4, name: "path", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
3151
+ { no: 5, name: "min_hop_price_x36", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
3152
+ ]);
3153
+ /**
3154
+ * @generated from message trading.v1.V3SwapExactInStep
3155
+ */
3156
+ export class V3SwapExactInStep extends Message {
3157
+ constructor(data) {
3158
+ super();
3159
+ /**
3160
+ * @generated from field: string recipient = 1;
3161
+ */
3162
+ this.recipient = "";
3163
+ /**
3164
+ * @generated from field: string amount_in = 2;
3165
+ */
3166
+ this.amountIn = "";
3167
+ /**
3168
+ * @generated from field: string amount_out_min = 3;
3169
+ */
3170
+ this.amountOutMin = "";
3171
+ /**
3172
+ * @generated from field: string path = 4;
3173
+ */
3174
+ this.path = "";
3175
+ /**
3176
+ * @generated from field: repeated string min_hop_price_x36 = 5;
3177
+ */
3178
+ this.minHopPriceX36 = [];
3179
+ proto3.util.initPartial(data, this);
3180
+ }
3181
+ static fromBinary(bytes, options) {
3182
+ return new V3SwapExactInStep().fromBinary(bytes, options);
3183
+ }
3184
+ static fromJson(jsonValue, options) {
3185
+ return new V3SwapExactInStep().fromJson(jsonValue, options);
3186
+ }
3187
+ static fromJsonString(jsonString, options) {
3188
+ return new V3SwapExactInStep().fromJsonString(jsonString, options);
3189
+ }
3190
+ static equals(a, b) {
3191
+ return proto3.util.equals(V3SwapExactInStep, a, b);
3192
+ }
3193
+ }
3194
+ V3SwapExactInStep.runtime = proto3;
3195
+ V3SwapExactInStep.typeName = "trading.v1.V3SwapExactInStep";
3196
+ V3SwapExactInStep.fields = proto3.util.newFieldList(() => [
3197
+ { no: 1, name: "recipient", kind: "scalar", T: 9 /* ScalarType.STRING */ },
3198
+ { no: 2, name: "amount_in", kind: "scalar", T: 9 /* ScalarType.STRING */ },
3199
+ { no: 3, name: "amount_out_min", kind: "scalar", T: 9 /* ScalarType.STRING */ },
3200
+ { no: 4, name: "path", kind: "scalar", T: 9 /* ScalarType.STRING */ },
3201
+ { no: 5, name: "min_hop_price_x36", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
3202
+ ]);
3203
+ /**
3204
+ * @generated from message trading.v1.V3SwapExactOutStep
3205
+ */
3206
+ export class V3SwapExactOutStep extends Message {
3207
+ constructor(data) {
3208
+ super();
3209
+ /**
3210
+ * @generated from field: string recipient = 1;
3211
+ */
3212
+ this.recipient = "";
3213
+ /**
3214
+ * @generated from field: string amount_out = 2;
3215
+ */
3216
+ this.amountOut = "";
3217
+ /**
3218
+ * @generated from field: string amount_in_max = 3;
3219
+ */
3220
+ this.amountInMax = "";
3221
+ /**
3222
+ * @generated from field: string path = 4;
3223
+ */
3224
+ this.path = "";
3225
+ /**
3226
+ * @generated from field: repeated string min_hop_price_x36 = 5;
3227
+ */
3228
+ this.minHopPriceX36 = [];
3229
+ proto3.util.initPartial(data, this);
3230
+ }
3231
+ static fromBinary(bytes, options) {
3232
+ return new V3SwapExactOutStep().fromBinary(bytes, options);
3233
+ }
3234
+ static fromJson(jsonValue, options) {
3235
+ return new V3SwapExactOutStep().fromJson(jsonValue, options);
3236
+ }
3237
+ static fromJsonString(jsonString, options) {
3238
+ return new V3SwapExactOutStep().fromJsonString(jsonString, options);
3239
+ }
3240
+ static equals(a, b) {
3241
+ return proto3.util.equals(V3SwapExactOutStep, a, b);
3242
+ }
3243
+ }
3244
+ V3SwapExactOutStep.runtime = proto3;
3245
+ V3SwapExactOutStep.typeName = "trading.v1.V3SwapExactOutStep";
3246
+ V3SwapExactOutStep.fields = proto3.util.newFieldList(() => [
3247
+ { no: 1, name: "recipient", kind: "scalar", T: 9 /* ScalarType.STRING */ },
3248
+ { no: 2, name: "amount_out", kind: "scalar", T: 9 /* ScalarType.STRING */ },
3249
+ { no: 3, name: "amount_in_max", kind: "scalar", T: 9 /* ScalarType.STRING */ },
3250
+ { no: 4, name: "path", kind: "scalar", T: 9 /* ScalarType.STRING */ },
3251
+ { no: 5, name: "min_hop_price_x36", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
3252
+ ]);
3253
+ /**
3254
+ * @generated from message trading.v1.V4SwapStepInner
3255
+ */
3256
+ export class V4SwapStepInner extends Message {
3257
+ constructor(data) {
3258
+ super();
3259
+ /**
3260
+ * @generated from field: repeated trading.v1.V4SwapAction v4_actions = 1;
3261
+ */
3262
+ this.v4Actions = [];
3263
+ proto3.util.initPartial(data, this);
3264
+ }
3265
+ static fromBinary(bytes, options) {
3266
+ return new V4SwapStepInner().fromBinary(bytes, options);
3267
+ }
3268
+ static fromJson(jsonValue, options) {
3269
+ return new V4SwapStepInner().fromJson(jsonValue, options);
3270
+ }
3271
+ static fromJsonString(jsonString, options) {
3272
+ return new V4SwapStepInner().fromJsonString(jsonString, options);
3273
+ }
3274
+ static equals(a, b) {
3275
+ return proto3.util.equals(V4SwapStepInner, a, b);
3276
+ }
3277
+ }
3278
+ V4SwapStepInner.runtime = proto3;
3279
+ V4SwapStepInner.typeName = "trading.v1.V4SwapStepInner";
3280
+ V4SwapStepInner.fields = proto3.util.newFieldList(() => [
3281
+ { no: 1, name: "v4_actions", kind: "message", T: V4SwapAction, repeated: true },
3282
+ ]);
3283
+ /**
3284
+ * @generated from message trading.v1.WrapEthStep
3285
+ */
3286
+ export class WrapEthStep extends Message {
3287
+ constructor(data) {
3288
+ super();
3289
+ /**
3290
+ * @generated from field: string recipient = 1;
3291
+ */
3292
+ this.recipient = "";
3293
+ /**
3294
+ * @generated from field: string amount = 2;
3295
+ */
3296
+ this.amount = "";
3297
+ proto3.util.initPartial(data, this);
3298
+ }
3299
+ static fromBinary(bytes, options) {
3300
+ return new WrapEthStep().fromBinary(bytes, options);
3301
+ }
3302
+ static fromJson(jsonValue, options) {
3303
+ return new WrapEthStep().fromJson(jsonValue, options);
3304
+ }
3305
+ static fromJsonString(jsonString, options) {
3306
+ return new WrapEthStep().fromJsonString(jsonString, options);
3307
+ }
3308
+ static equals(a, b) {
3309
+ return proto3.util.equals(WrapEthStep, a, b);
3310
+ }
3311
+ }
3312
+ WrapEthStep.runtime = proto3;
3313
+ WrapEthStep.typeName = "trading.v1.WrapEthStep";
3314
+ WrapEthStep.fields = proto3.util.newFieldList(() => [
3315
+ { no: 1, name: "recipient", kind: "scalar", T: 9 /* ScalarType.STRING */ },
3316
+ { no: 2, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ },
3317
+ ]);
3318
+ /**
3319
+ * @generated from message trading.v1.UnwrapWethStep
3320
+ */
3321
+ export class UnwrapWethStep extends Message {
3322
+ constructor(data) {
3323
+ super();
3324
+ /**
3325
+ * @generated from field: string recipient = 1;
3326
+ */
3327
+ this.recipient = "";
3328
+ /**
3329
+ * @generated from field: string amount_min = 2;
3330
+ */
3331
+ this.amountMin = "";
3332
+ proto3.util.initPartial(data, this);
3333
+ }
3334
+ static fromBinary(bytes, options) {
3335
+ return new UnwrapWethStep().fromBinary(bytes, options);
3336
+ }
3337
+ static fromJson(jsonValue, options) {
3338
+ return new UnwrapWethStep().fromJson(jsonValue, options);
3339
+ }
3340
+ static fromJsonString(jsonString, options) {
3341
+ return new UnwrapWethStep().fromJsonString(jsonString, options);
3342
+ }
3343
+ static equals(a, b) {
3344
+ return proto3.util.equals(UnwrapWethStep, a, b);
3345
+ }
3346
+ }
3347
+ UnwrapWethStep.runtime = proto3;
3348
+ UnwrapWethStep.typeName = "trading.v1.UnwrapWethStep";
3349
+ UnwrapWethStep.fields = proto3.util.newFieldList(() => [
3350
+ { no: 1, name: "recipient", kind: "scalar", T: 9 /* ScalarType.STRING */ },
3351
+ { no: 2, name: "amount_min", kind: "scalar", T: 9 /* ScalarType.STRING */ },
3352
+ ]);
3353
+ /**
3354
+ * @generated from message trading.v1.SwapStep
3355
+ */
3356
+ export class SwapStep extends Message {
3357
+ constructor(data) {
3358
+ super();
3359
+ /**
3360
+ * @generated from oneof trading.v1.SwapStep.step
3361
+ */
3362
+ this.step = { case: undefined };
3363
+ proto3.util.initPartial(data, this);
3364
+ }
3365
+ static fromBinary(bytes, options) {
3366
+ return new SwapStep().fromBinary(bytes, options);
3367
+ }
3368
+ static fromJson(jsonValue, options) {
3369
+ return new SwapStep().fromJson(jsonValue, options);
3370
+ }
3371
+ static fromJsonString(jsonString, options) {
3372
+ return new SwapStep().fromJsonString(jsonString, options);
3373
+ }
3374
+ static equals(a, b) {
3375
+ return proto3.util.equals(SwapStep, a, b);
3376
+ }
3377
+ }
3378
+ SwapStep.runtime = proto3;
3379
+ SwapStep.typeName = "trading.v1.SwapStep";
3380
+ SwapStep.fields = proto3.util.newFieldList(() => [
3381
+ { no: 1, name: "v2_swap_exact_in", kind: "message", T: V2SwapExactInStep, oneof: "step" },
3382
+ { no: 2, name: "v2_swap_exact_out", kind: "message", T: V2SwapExactOutStep, oneof: "step" },
3383
+ { no: 3, name: "v3_swap_exact_in", kind: "message", T: V3SwapExactInStep, oneof: "step" },
3384
+ { no: 4, name: "v3_swap_exact_out", kind: "message", T: V3SwapExactOutStep, oneof: "step" },
3385
+ { no: 5, name: "v4_swap", kind: "message", T: V4SwapStepInner, oneof: "step" },
3386
+ { no: 6, name: "wrap_eth", kind: "message", T: WrapEthStep, oneof: "step" },
3387
+ { no: 7, name: "unwrap_weth", kind: "message", T: UnwrapWethStep, oneof: "step" },
2527
3388
  ]);
2528
3389
  /**
2529
3390
  * @generated from message trading.v1.GasEstimate