@uniswap/client-trading 0.9.1 → 0.11.0

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.
@@ -2252,6 +2252,18 @@ export declare class QuoteRequest extends Message<QuoteRequest> {
2252
2252
  * @generated from field: optional bool include_route_candidates = 25;
2253
2253
  */
2254
2254
  includeRouteCandidates?: boolean;
2255
+ /**
2256
+ * Input funding source: unset = the user's wallet, "UR" = the router's own balance. Counts as an explicit calldata request.
2257
+ *
2258
+ * @generated from field: optional string swap_source = 26;
2259
+ */
2260
+ swapSource?: string;
2261
+ /**
2262
+ * Balance-swap only: caller asserts `amount` is guaranteed, so an on-chain input floor is emitted. Leave unset for estimates.
2263
+ *
2264
+ * @generated from field: optional bool enforce_exact_in = 27;
2265
+ */
2266
+ enforceExactIn?: boolean;
2255
2267
  constructor(data?: PartialMessage<QuoteRequest>);
2256
2268
  static readonly runtime: typeof proto3;
2257
2269
  static readonly typeName = "trading.v1.QuoteRequest";
@@ -2554,6 +2566,19 @@ export declare class QuoteResponse extends Message<QuoteResponse> {
2554
2566
  * @generated from field: optional bool is_token_approval_applicable = 22;
2555
2567
  */
2556
2568
  isTokenApprovalApplicable?: boolean;
2569
+ /**
2570
+ * Ready-to-send swap calldata, attached whenever possible: the quote was
2571
+ * compliance-screened (never FASTEST), needs no embedded permit signature
2572
+ * (permit2 disabled, permit already valid, or permit returned as a
2573
+ * transaction), and simulation reported no failure.
2574
+ *
2575
+ * @generated from field: optional trading.v1.TransactionRequest swap_transaction = 23;
2576
+ */
2577
+ swapTransaction?: TransactionRequest;
2578
+ /**
2579
+ * @generated from field: optional string swap_gas_fee = 24;
2580
+ */
2581
+ swapGasFee?: string;
2557
2582
  constructor(data?: PartialMessage<QuoteResponse>);
2558
2583
  static readonly runtime: typeof proto3;
2559
2584
  static readonly typeName = "trading.v1.QuoteResponse";
@@ -4173,6 +4198,16 @@ export declare class SwapRequest extends Message<SwapRequest> {
4173
4198
  * @generated from field: optional trading.v1.WalletExecutionContext wallet_execution_context = 15;
4174
4199
  */
4175
4200
  walletExecutionContext?: WalletExecutionContext;
4201
+ /**
4202
+ * Balance-swap mode, mirroring the /quote fields of the same name.
4203
+ *
4204
+ * @generated from field: optional string swap_source = 16;
4205
+ */
4206
+ swapSource?: string;
4207
+ /**
4208
+ * @generated from field: optional bool enforce_exact_in = 17;
4209
+ */
4210
+ enforceExactIn?: boolean;
4176
4211
  constructor(data?: PartialMessage<SwapRequest>);
4177
4212
  static readonly runtime: typeof proto3;
4178
4213
  static readonly typeName = "trading.v1.SwapRequest";
@@ -2829,6 +2829,8 @@ QuoteRequest.fields = proto3.util.newFieldList(() => [
2829
2829
  { no: 23, name: "urgency_overrides", kind: "message", T: UrgencyWithOverrides, opt: true },
2830
2830
  { no: 24, name: "earn_intent", kind: "message", T: EarnIntent, opt: true },
2831
2831
  { no: 25, name: "include_route_candidates", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
2832
+ { no: 26, name: "swap_source", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
2833
+ { no: 27, name: "enforce_exact_in", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
2832
2834
  ]);
2833
2835
  /**
2834
2836
  * @generated from message trading.v1.EarnIntent
@@ -3095,6 +3097,8 @@ QuoteResponse.fields = proto3.util.newFieldList(() => [
3095
3097
  { no: 20, name: "permit_gas_fee", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
3096
3098
  { no: 21, name: "sponsorship_info", kind: "message", T: SponsorshipInfo, opt: true },
3097
3099
  { no: 22, name: "is_token_approval_applicable", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
3100
+ { no: 23, name: "swap_transaction", kind: "message", T: TransactionRequest, opt: true },
3101
+ { no: 24, name: "swap_gas_fee", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
3098
3102
  ]);
3099
3103
  /**
3100
3104
  * @generated from message trading.v1.QuoteInput
@@ -4998,6 +5002,8 @@ SwapRequest.fields = proto3.util.newFieldList(() => [
4998
5002
  { no: 13, name: "include_gas_info", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
4999
5003
  { no: 14, name: "urgency_overrides", kind: "message", T: UrgencyWithOverrides, opt: true },
5000
5004
  { no: 15, name: "wallet_execution_context", kind: "message", T: WalletExecutionContext, opt: true },
5005
+ { no: 16, name: "swap_source", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
5006
+ { no: 17, name: "enforce_exact_in", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
5001
5007
  ]);
5002
5008
  /**
5003
5009
  * @generated from message trading.v1.SwapResponse
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniswap/client-trading",
3
- "version": "0.9.1",
3
+ "version": "0.11.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },