@uniswap/client-trading 0.5.14 → 0.5.16

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.
@@ -2700,6 +2700,10 @@ export declare class ClassicQuote extends Message<ClassicQuote> {
2700
2700
  * @generated from field: repeated trading.v1.RouteCandidate route_candidates = 27;
2701
2701
  */
2702
2702
  routeCandidates: RouteCandidate[];
2703
+ /**
2704
+ * @generated from field: optional double price_difference = 28;
2705
+ */
2706
+ priceDifference?: number;
2703
2707
  constructor(data?: PartialMessage<ClassicQuote>);
2704
2708
  static readonly runtime: typeof proto3;
2705
2709
  static readonly typeName = "trading.v1.ClassicQuote";
@@ -2962,6 +2966,10 @@ export declare class V4Settle extends Message<V4Settle> {
2962
2966
  * @generated from field: string amount = 2;
2963
2967
  */
2964
2968
  amount: string;
2969
+ /**
2970
+ * @generated from field: bool payer_is_user = 3;
2971
+ */
2972
+ payerIsUser: boolean;
2965
2973
  constructor(data?: PartialMessage<V4Settle>);
2966
2974
  static readonly runtime: typeof proto3;
2967
2975
  static readonly typeName = "trading.v1.V4Settle";
@@ -3161,6 +3169,10 @@ export declare class V2SwapExactInStep extends Message<V2SwapExactInStep> {
3161
3169
  * @generated from field: repeated string min_hop_price_x36 = 5;
3162
3170
  */
3163
3171
  minHopPriceX36: string[];
3172
+ /**
3173
+ * @generated from field: bool payer_is_user = 6;
3174
+ */
3175
+ payerIsUser: boolean;
3164
3176
  constructor(data?: PartialMessage<V2SwapExactInStep>);
3165
3177
  static readonly runtime: typeof proto3;
3166
3178
  static readonly typeName = "trading.v1.V2SwapExactInStep";
@@ -3194,6 +3206,10 @@ export declare class V2SwapExactOutStep extends Message<V2SwapExactOutStep> {
3194
3206
  * @generated from field: repeated string min_hop_price_x36 = 5;
3195
3207
  */
3196
3208
  minHopPriceX36: string[];
3209
+ /**
3210
+ * @generated from field: bool payer_is_user = 6;
3211
+ */
3212
+ payerIsUser: boolean;
3197
3213
  constructor(data?: PartialMessage<V2SwapExactOutStep>);
3198
3214
  static readonly runtime: typeof proto3;
3199
3215
  static readonly typeName = "trading.v1.V2SwapExactOutStep";
@@ -3227,6 +3243,10 @@ export declare class V3SwapExactInStep extends Message<V3SwapExactInStep> {
3227
3243
  * @generated from field: repeated string min_hop_price_x36 = 5;
3228
3244
  */
3229
3245
  minHopPriceX36: string[];
3246
+ /**
3247
+ * @generated from field: bool payer_is_user = 6;
3248
+ */
3249
+ payerIsUser: boolean;
3230
3250
  constructor(data?: PartialMessage<V3SwapExactInStep>);
3231
3251
  static readonly runtime: typeof proto3;
3232
3252
  static readonly typeName = "trading.v1.V3SwapExactInStep";
@@ -3260,6 +3280,10 @@ export declare class V3SwapExactOutStep extends Message<V3SwapExactOutStep> {
3260
3280
  * @generated from field: repeated string min_hop_price_x36 = 5;
3261
3281
  */
3262
3282
  minHopPriceX36: string[];
3283
+ /**
3284
+ * @generated from field: bool payer_is_user = 6;
3285
+ */
3286
+ payerIsUser: boolean;
3263
3287
  constructor(data?: PartialMessage<V3SwapExactOutStep>);
3264
3288
  static readonly runtime: typeof proto3;
3265
3289
  static readonly typeName = "trading.v1.V3SwapExactOutStep";
@@ -3703,6 +3727,10 @@ export declare class WrapUnwrapQuote extends Message<WrapUnwrapQuote> {
3703
3727
  * @generated from field: optional string max_priority_fee_per_gas = 13;
3704
3728
  */
3705
3729
  maxPriorityFeePerGas?: string;
3730
+ /**
3731
+ * @generated from field: optional double price_difference = 15;
3732
+ */
3733
+ priceDifference?: number;
3706
3734
  constructor(data?: PartialMessage<WrapUnwrapQuote>);
3707
3735
  static readonly runtime: typeof proto3;
3708
3736
  static readonly typeName = "trading.v1.WrapUnwrapQuote";
@@ -5149,6 +5177,10 @@ export declare class BridgeQuote extends Message<BridgeQuote> {
5149
5177
  * @generated from field: repeated trading.v1.GasEstimate gas_estimates = 19;
5150
5178
  */
5151
5179
  gasEstimates: GasEstimate[];
5180
+ /**
5181
+ * @generated from field: optional double price_difference = 21;
5182
+ */
5183
+ priceDifference?: number;
5152
5184
  constructor(data?: PartialMessage<BridgeQuote>);
5153
5185
  static readonly runtime: typeof proto3;
5154
5186
  static readonly typeName = "trading.v1.BridgeQuote";
@@ -5393,6 +5425,10 @@ export declare class DutchLimitV2Quote extends Message<DutchLimitV2Quote> {
5393
5425
  * @generated from field: trading.v1.QuoteOutput output = 13;
5394
5426
  */
5395
5427
  output?: QuoteOutput;
5428
+ /**
5429
+ * @generated from field: optional double price_difference = 14;
5430
+ */
5431
+ priceDifference?: number;
5396
5432
  constructor(data?: PartialMessage<DutchLimitV2Quote>);
5397
5433
  static readonly runtime: typeof proto3;
5398
5434
  static readonly typeName = "trading.v1.DutchLimitV2Quote";
@@ -5523,6 +5559,10 @@ export declare class DutchLimitV3Quote extends Message<DutchLimitV3Quote> {
5523
5559
  * @generated from field: trading.v1.QuoteOutput output = 15;
5524
5560
  */
5525
5561
  output?: QuoteOutput;
5562
+ /**
5563
+ * @generated from field: optional double price_difference = 16;
5564
+ */
5565
+ priceDifference?: number;
5526
5566
  constructor(data?: PartialMessage<DutchLimitV3Quote>);
5527
5567
  static readonly runtime: typeof proto3;
5528
5568
  static readonly typeName = "trading.v1.DutchLimitV3Quote";
@@ -5826,6 +5866,10 @@ export declare class PriorityQuote extends Message<PriorityQuote> {
5826
5866
  * @generated from field: trading.v1.QuoteOutput output = 15;
5827
5867
  */
5828
5868
  output?: QuoteOutput;
5869
+ /**
5870
+ * @generated from field: optional double price_difference = 16;
5871
+ */
5872
+ priceDifference?: number;
5829
5873
  constructor(data?: PartialMessage<PriorityQuote>);
5830
5874
  static readonly runtime: typeof proto3;
5831
5875
  static readonly typeName = "trading.v1.PriorityQuote";
@@ -5863,6 +5907,10 @@ export declare class TruncatedPlanStep extends Message<TruncatedPlanStep> {
5863
5907
  * @generated from field: optional double slippage = 6;
5864
5908
  */
5865
5909
  slippage?: number;
5910
+ /**
5911
+ * @generated from field: optional double price_difference = 7;
5912
+ */
5913
+ priceDifference?: number;
5866
5914
  constructor(data?: PartialMessage<TruncatedPlanStep>);
5867
5915
  static readonly runtime: typeof proto3;
5868
5916
  static readonly typeName = "trading.v1.TruncatedPlanStep";
@@ -5960,6 +6008,10 @@ export declare class ChainedQuote extends Message<ChainedQuote> {
5960
6008
  * @generated from field: optional trading.v1.EarnPreview earn_preview = 21;
5961
6009
  */
5962
6010
  earnPreview?: EarnPreview;
6011
+ /**
6012
+ * @generated from field: optional double price_difference = 22;
6013
+ */
6014
+ priceDifference?: number;
5963
6015
  constructor(data?: PartialMessage<ChainedQuote>);
5964
6016
  static readonly runtime: typeof proto3;
5965
6017
  static readonly typeName = "trading.v1.ChainedQuote";
@@ -3153,6 +3153,7 @@ ClassicQuote.fields = proto3.util.newFieldList(() => [
3153
3153
  { no: 24, name: "portion_recipient", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
3154
3154
  { no: 26, name: "swap_steps", kind: "message", T: SwapStep, repeated: true },
3155
3155
  { no: 27, name: "route_candidates", kind: "message", T: RouteCandidate, repeated: true },
3156
+ { no: 28, name: "price_difference", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
3156
3157
  ]);
3157
3158
  /**
3158
3159
  * A quoted route candidate with its whole-route (not per-hop) amounts.
@@ -3506,6 +3507,10 @@ export class V4Settle extends Message {
3506
3507
  * @generated from field: string amount = 2;
3507
3508
  */
3508
3509
  this.amount = "";
3510
+ /**
3511
+ * @generated from field: bool payer_is_user = 3;
3512
+ */
3513
+ this.payerIsUser = false;
3509
3514
  proto3.util.initPartial(data, this);
3510
3515
  }
3511
3516
  static fromBinary(bytes, options) {
@@ -3526,6 +3531,7 @@ V4Settle.typeName = "trading.v1.V4Settle";
3526
3531
  V4Settle.fields = proto3.util.newFieldList(() => [
3527
3532
  { no: 1, name: "currency", kind: "scalar", T: 9 /* ScalarType.STRING */ },
3528
3533
  { no: 2, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ },
3534
+ { no: 3, name: "payer_is_user", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
3529
3535
  ]);
3530
3536
  /**
3531
3537
  * @generated from message trading.v1.V4SettleAll
@@ -3741,6 +3747,10 @@ export class V2SwapExactInStep extends Message {
3741
3747
  * @generated from field: repeated string min_hop_price_x36 = 5;
3742
3748
  */
3743
3749
  this.minHopPriceX36 = [];
3750
+ /**
3751
+ * @generated from field: bool payer_is_user = 6;
3752
+ */
3753
+ this.payerIsUser = false;
3744
3754
  proto3.util.initPartial(data, this);
3745
3755
  }
3746
3756
  static fromBinary(bytes, options) {
@@ -3764,6 +3774,7 @@ V2SwapExactInStep.fields = proto3.util.newFieldList(() => [
3764
3774
  { no: 3, name: "amount_out_min", kind: "scalar", T: 9 /* ScalarType.STRING */ },
3765
3775
  { no: 4, name: "path", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
3766
3776
  { no: 5, name: "min_hop_price_x36", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
3777
+ { no: 6, name: "payer_is_user", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
3767
3778
  ]);
3768
3779
  /**
3769
3780
  * @generated from message trading.v1.V2SwapExactOutStep
@@ -3791,6 +3802,10 @@ export class V2SwapExactOutStep extends Message {
3791
3802
  * @generated from field: repeated string min_hop_price_x36 = 5;
3792
3803
  */
3793
3804
  this.minHopPriceX36 = [];
3805
+ /**
3806
+ * @generated from field: bool payer_is_user = 6;
3807
+ */
3808
+ this.payerIsUser = false;
3794
3809
  proto3.util.initPartial(data, this);
3795
3810
  }
3796
3811
  static fromBinary(bytes, options) {
@@ -3814,6 +3829,7 @@ V2SwapExactOutStep.fields = proto3.util.newFieldList(() => [
3814
3829
  { no: 3, name: "amount_in_max", kind: "scalar", T: 9 /* ScalarType.STRING */ },
3815
3830
  { no: 4, name: "path", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
3816
3831
  { no: 5, name: "min_hop_price_x36", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
3832
+ { no: 6, name: "payer_is_user", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
3817
3833
  ]);
3818
3834
  /**
3819
3835
  * @generated from message trading.v1.V3SwapExactInStep
@@ -3841,6 +3857,10 @@ export class V3SwapExactInStep extends Message {
3841
3857
  * @generated from field: repeated string min_hop_price_x36 = 5;
3842
3858
  */
3843
3859
  this.minHopPriceX36 = [];
3860
+ /**
3861
+ * @generated from field: bool payer_is_user = 6;
3862
+ */
3863
+ this.payerIsUser = false;
3844
3864
  proto3.util.initPartial(data, this);
3845
3865
  }
3846
3866
  static fromBinary(bytes, options) {
@@ -3864,6 +3884,7 @@ V3SwapExactInStep.fields = proto3.util.newFieldList(() => [
3864
3884
  { no: 3, name: "amount_out_min", kind: "scalar", T: 9 /* ScalarType.STRING */ },
3865
3885
  { no: 4, name: "path", kind: "scalar", T: 9 /* ScalarType.STRING */ },
3866
3886
  { no: 5, name: "min_hop_price_x36", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
3887
+ { no: 6, name: "payer_is_user", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
3867
3888
  ]);
3868
3889
  /**
3869
3890
  * @generated from message trading.v1.V3SwapExactOutStep
@@ -3891,6 +3912,10 @@ export class V3SwapExactOutStep extends Message {
3891
3912
  * @generated from field: repeated string min_hop_price_x36 = 5;
3892
3913
  */
3893
3914
  this.minHopPriceX36 = [];
3915
+ /**
3916
+ * @generated from field: bool payer_is_user = 6;
3917
+ */
3918
+ this.payerIsUser = false;
3894
3919
  proto3.util.initPartial(data, this);
3895
3920
  }
3896
3921
  static fromBinary(bytes, options) {
@@ -3914,6 +3939,7 @@ V3SwapExactOutStep.fields = proto3.util.newFieldList(() => [
3914
3939
  { no: 3, name: "amount_in_max", kind: "scalar", T: 9 /* ScalarType.STRING */ },
3915
3940
  { no: 4, name: "path", kind: "scalar", T: 9 /* ScalarType.STRING */ },
3916
3941
  { no: 5, name: "min_hop_price_x36", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
3942
+ { no: 6, name: "payer_is_user", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
3917
3943
  ]);
3918
3944
  /**
3919
3945
  * @generated from message trading.v1.V4SwapStepInner
@@ -4439,6 +4465,7 @@ WrapUnwrapQuote.fields = proto3.util.newFieldList(() => [
4439
4465
  { no: 11, name: "gas_price", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
4440
4466
  { no: 12, name: "max_fee_per_gas", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
4441
4467
  { no: 13, name: "max_priority_fee_per_gas", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
4468
+ { no: 15, name: "price_difference", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
4442
4469
  ]);
4443
4470
  /**
4444
4471
  * @generated from message trading.v1.SwapRequest
@@ -6066,6 +6093,7 @@ BridgeQuote.fields = proto3.util.newFieldList(() => [
6066
6093
  { no: 17, name: "fill_deadline", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
6067
6094
  { no: 18, name: "gas_fee_usd", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
6068
6095
  { no: 19, name: "gas_estimates", kind: "message", T: GasEstimate, repeated: true },
6096
+ { no: 21, name: "price_difference", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
6069
6097
  ]);
6070
6098
  /**
6071
6099
  * @generated from message trading.v1.DutchLimitOrderInfo
@@ -6330,6 +6358,7 @@ DutchLimitV2Quote.fields = proto3.util.newFieldList(() => [
6330
6358
  { no: 11, name: "portion_recipient", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
6331
6359
  { no: 12, name: "input", kind: "message", T: QuoteInput },
6332
6360
  { no: 13, name: "output", kind: "message", T: QuoteOutput },
6361
+ { no: 14, name: "price_difference", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
6333
6362
  ]);
6334
6363
  /**
6335
6364
  * @generated from message trading.v1.DutchLimitV3OrderInfo
@@ -6466,6 +6495,7 @@ DutchLimitV3Quote.fields = proto3.util.newFieldList(() => [
6466
6495
  { no: 13, name: "portion_recipient", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
6467
6496
  { no: 14, name: "input", kind: "message", T: QuoteInput },
6468
6497
  { no: 15, name: "output", kind: "message", T: QuoteOutput },
6498
+ { no: 16, name: "price_difference", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
6469
6499
  ]);
6470
6500
  /**
6471
6501
  * @generated from message trading.v1.CheckApprovalRequest
@@ -6810,6 +6840,7 @@ PriorityQuote.fields = proto3.util.newFieldList(() => [
6810
6840
  { no: 13, name: "portion_recipient", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
6811
6841
  { no: 14, name: "input", kind: "message", T: QuoteInput },
6812
6842
  { no: 15, name: "output", kind: "message", T: QuoteOutput },
6843
+ { no: 16, name: "price_difference", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
6813
6844
  ]);
6814
6845
  /**
6815
6846
  * @generated from message trading.v1.TruncatedPlanStep
@@ -6845,6 +6876,7 @@ TruncatedPlanStep.fields = proto3.util.newFieldList(() => [
6845
6876
  { no: 4, name: "token_out", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
6846
6877
  { no: 5, name: "token_out_chain_id", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
6847
6878
  { no: 6, name: "slippage", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
6879
+ { no: 7, name: "price_difference", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
6848
6880
  ]);
6849
6881
  /**
6850
6882
  * @generated from message trading.v1.ChainedQuote
@@ -6923,6 +6955,7 @@ ChainedQuote.fields = proto3.util.newFieldList(() => [
6923
6955
  { no: 19, name: "compound_slippage", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
6924
6956
  { no: 20, name: "earn_intent", kind: "message", T: EarnQuoteIntent, opt: true },
6925
6957
  { no: 21, name: "earn_preview", kind: "message", T: EarnPreview, opt: true },
6958
+ { no: 22, name: "price_difference", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
6926
6959
  ]);
6927
6960
  /**
6928
6961
  * @generated from message trading.v1.PermitTransferFromData
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniswap/client-trading",
3
- "version": "0.5.14",
3
+ "version": "0.5.16",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },