@uniswap/client-trading 0.11.21 → 0.11.23

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.
@@ -2966,6 +2966,10 @@ export declare class V4PoolInRoute extends Message<V4PoolInRoute> {
2966
2966
  * @generated from field: optional string min_hop_price_x36 = 13;
2967
2967
  */
2968
2968
  minHopPriceX36?: string;
2969
+ /**
2970
+ * @generated from field: optional bool settle_before_swap = 14;
2971
+ */
2972
+ settleBeforeSwap?: boolean;
2969
2973
  constructor(data?: PartialMessage<V4PoolInRoute>);
2970
2974
  static readonly runtime: typeof proto3;
2971
2975
  static readonly typeName = "trading.v1.V4PoolInRoute";
@@ -8935,15 +8939,15 @@ export declare class MarginExecutionLeg extends Message<MarginExecutionLeg> {
8935
8939
  static equals(a: MarginExecutionLeg | PlainMessage<MarginExecutionLeg> | undefined, b: MarginExecutionLeg | PlainMessage<MarginExecutionLeg> | undefined): boolean;
8936
8940
  }
8937
8941
  /**
8938
- * The wallet-side swap as priced, in the same shape /quote uses for an ordinary
8939
- * swap, so the funding leg reads natively rather than inventing a fourth
8940
- * swap-quote vocabulary.
8942
+ * The wallet-side funding as priced, in the same shape /quote uses for an
8943
+ * ordinary swap, so the funding leg reads natively rather than inventing a
8944
+ * fourth swap-quote vocabulary.
8941
8945
  *
8942
- * Present IFF a swap was actually priced, so its presence is the signal that
8943
- * one happened. Absent when the action moves no equity, and absent when the
8944
- * caller already holds the collateral: paying in the collateral itself needs no
8945
- * funding swap, and a block whose input and output name the same token and the
8946
- * same amount describes no trade.
8946
+ * Present IFF funding was actually priced: a swap on the position's chain, or a
8947
+ * route from another chain. Absent when the action moves no equity, and absent
8948
+ * when the caller already holds the collateral on the position's chain: paying
8949
+ * in the collateral itself needs no funding, and a block whose input and output
8950
+ * name the same token and the same amount describes no trade.
8947
8951
  *
8948
8952
  * 7 was auto_slippage: a request-side mode, never an answer. What a caller
8949
8953
  * needs back is the percent it RESOLVED to, which slippage_tolerance already
@@ -8989,6 +8993,28 @@ export declare class MarginFunding extends Message<MarginFunding> {
8989
8993
  * @generated from field: optional double price_impact = 10;
8990
8994
  */
8991
8995
  priceImpact?: number;
8996
+ /**
8997
+ * The funding's steps in order, as /quote reports a chained route's: the
8998
+ * approvals the swapper still needs, then the route. Present whenever this
8999
+ * block is.
9000
+ *
9001
+ * @generated from field: repeated trading.v1.TruncatedPlanStep steps = 11;
9002
+ */
9003
+ steps: TruncatedPlanStep[];
9004
+ /**
9005
+ * Cross-chain pay-in only: estimated milliseconds to complete the funding
9006
+ * steps.
9007
+ *
9008
+ * @generated from field: optional int32 time_estimate_ms = 12;
9009
+ */
9010
+ timeEstimateMs?: number;
9011
+ /**
9012
+ * Cross-chain pay-in only: decimal USD, the gas of every funding step on both
9013
+ * chains.
9014
+ *
9015
+ * @generated from field: optional string gas_fee_usd = 13;
9016
+ */
9017
+ gasFeeUsd?: string;
8992
9018
  constructor(data?: PartialMessage<MarginFunding>);
8993
9019
  static readonly runtime: typeof proto3;
8994
9020
  static readonly typeName = "trading.v1.MarginFunding";
@@ -3538,6 +3538,7 @@ V4PoolInRoute.fields = proto3.util.newFieldList(() => [
3538
3538
  { no: 11, name: "amount_in", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
3539
3539
  { no: 12, name: "amount_out", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
3540
3540
  { no: 13, name: "min_hop_price_x36", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
3541
+ { no: 14, name: "settle_before_swap", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
3541
3542
  ]);
3542
3543
  /**
3543
3544
  * @generated from message trading.v1.TokenInRoute
@@ -10298,15 +10299,15 @@ MarginExecutionLeg.fields = proto3.util.newFieldList(() => [
10298
10299
  { no: 3, name: "operations", kind: "message", T: MarginOperation, repeated: true },
10299
10300
  ]);
10300
10301
  /**
10301
- * The wallet-side swap as priced, in the same shape /quote uses for an ordinary
10302
- * swap, so the funding leg reads natively rather than inventing a fourth
10303
- * swap-quote vocabulary.
10302
+ * The wallet-side funding as priced, in the same shape /quote uses for an
10303
+ * ordinary swap, so the funding leg reads natively rather than inventing a
10304
+ * fourth swap-quote vocabulary.
10304
10305
  *
10305
- * Present IFF a swap was actually priced, so its presence is the signal that
10306
- * one happened. Absent when the action moves no equity, and absent when the
10307
- * caller already holds the collateral: paying in the collateral itself needs no
10308
- * funding swap, and a block whose input and output name the same token and the
10309
- * same amount describes no trade.
10306
+ * Present IFF funding was actually priced: a swap on the position's chain, or a
10307
+ * route from another chain. Absent when the action moves no equity, and absent
10308
+ * when the caller already holds the collateral on the position's chain: paying
10309
+ * in the collateral itself needs no funding, and a block whose input and output
10310
+ * name the same token and the same amount describes no trade.
10310
10311
  *
10311
10312
  * 7 was auto_slippage: a request-side mode, never an answer. What a caller
10312
10313
  * needs back is the percent it RESOLVED to, which slippage_tolerance already
@@ -10324,6 +10325,14 @@ export class MarginFunding extends Message {
10324
10325
  * @generated from field: int32 token_in_chain_id = 1;
10325
10326
  */
10326
10327
  this.tokenInChainId = 0;
10328
+ /**
10329
+ * The funding's steps in order, as /quote reports a chained route's: the
10330
+ * approvals the swapper still needs, then the route. Present whenever this
10331
+ * block is.
10332
+ *
10333
+ * @generated from field: repeated trading.v1.TruncatedPlanStep steps = 11;
10334
+ */
10335
+ this.steps = [];
10327
10336
  proto3.util.initPartial(data, this);
10328
10337
  }
10329
10338
  static fromBinary(bytes, options) {
@@ -10348,6 +10357,9 @@ MarginFunding.fields = proto3.util.newFieldList(() => [
10348
10357
  { no: 6, name: "slippage_tolerance", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
10349
10358
  { no: 9, name: "min_bridge_out", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
10350
10359
  { no: 10, name: "price_impact", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
10360
+ { no: 11, name: "steps", kind: "message", T: TruncatedPlanStep, repeated: true },
10361
+ { no: 12, name: "time_estimate_ms", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
10362
+ { no: 13, name: "gas_fee_usd", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
10351
10363
  ]);
10352
10364
  /**
10353
10365
  * Everything POST /plan needs, and nothing it does not. This subtree is what a
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniswap/client-trading",
3
- "version": "0.11.21",
3
+ "version": "0.11.23",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },