@uniswap/client-trading 0.0.0 → 0.1.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.
@@ -1,5 +1,5 @@
1
1
  import { MethodIdempotency, MethodKind } from "@bufbuild/protobuf";
2
- import { CheckApprovalLPRequest, CheckApprovalLPResponse, CheckApprovalRequest, CheckApprovalResponse, CheckWalletDelegationRequest, CheckWalletDelegationResponse, ClaimLPFeesRequest, ClaimLPFeesResponse, ClaimLPRewardsRequest, ClaimLPRewardsResponse, CreateLPPositionRequest, CreateLPPositionResponse, DecreaseLPPositionRequest, DecreaseLPPositionResponse, GetLPPriceDiscrepancyRequest, GetLPPriceDiscrepancyResponse, GetOrdersRequest, GetOrdersResponse, GetSwapsRequest, GetSwapsResponse, IncreaseLPPositionRequest, IncreaseLPPositionResponse, MigrateLpPositionRequest, MigrateLpPositionResponse, OrderRequest, OrderResponse, PoolInfoRequest, PoolInfoResponse, QuoteRequest, QuoteResponse, SendRequest, SendResponse, Swap5792Request, Swap5792Response, SwappableTokensRequest, SwappableTokensResponse, SwapRequest, SwapResponse } from "./api_pb.js";
2
+ import { CheckApprovalLPRequest, CheckApprovalLPResponse, CheckApprovalRequest, CheckApprovalResponse, CheckWalletDelegationRequest, CheckWalletDelegationResponse, ClaimLPFeesRequest, ClaimLPFeesResponse, ClaimLPRewardsRequest, ClaimLPRewardsResponse, CreateLPPositionRequest, CreateLPPositionResponse, DecreaseLPPositionRequest, DecreaseLPPositionResponse, Encode7702Request, Encode7702Response, GetLPPriceDiscrepancyRequest, GetLPPriceDiscrepancyResponse, GetOrdersRequest, GetOrdersResponse, GetSwapsRequest, GetSwapsResponse, IncreaseLPPositionRequest, IncreaseLPPositionResponse, MigrateLpPositionRequest, MigrateLpPositionResponse, MigrateV2ToV3LPPositionRequest, MigrateV2ToV3LPPositionResponse, OrderRequest, OrderResponse, PoolInfoRequest, PoolInfoResponse, QuoteRequest, QuoteResponse, SendRequest, SendResponse, Swap5792Request, Swap5792Response, SwappableTokensRequest, SwappableTokensResponse, SwapRequest, SwapResponse } from "./api_pb.js";
3
3
  /**
4
4
  * @generated from rpc trading.v1.tradingService.Quote
5
5
  */
@@ -266,3 +266,31 @@ export declare const getLPPriceDiscrepancy: {
266
266
  readonly typeName: "trading.v1.tradingService";
267
267
  };
268
268
  };
269
+ /**
270
+ * @generated from rpc trading.v1.tradingService.Encode7702
271
+ */
272
+ export declare const encode7702: {
273
+ readonly localName: "encode7702";
274
+ readonly name: "Encode7702";
275
+ readonly kind: MethodKind.Unary;
276
+ readonly I: typeof Encode7702Request;
277
+ readonly O: typeof Encode7702Response;
278
+ readonly idempotency: MethodIdempotency.NoSideEffects;
279
+ readonly service: {
280
+ readonly typeName: "trading.v1.tradingService";
281
+ };
282
+ };
283
+ /**
284
+ * @generated from rpc trading.v1.tradingService.MigrateV2ToV3LPPosition
285
+ */
286
+ export declare const migrateV2ToV3LPPosition: {
287
+ readonly localName: "migrateV2ToV3LPPosition";
288
+ readonly name: "MigrateV2ToV3LPPosition";
289
+ readonly kind: MethodKind.Unary;
290
+ readonly I: typeof MigrateV2ToV3LPPositionRequest;
291
+ readonly O: typeof MigrateV2ToV3LPPositionResponse;
292
+ readonly idempotency: MethodIdempotency.NoSideEffects;
293
+ readonly service: {
294
+ readonly typeName: "trading.v1.tradingService";
295
+ };
296
+ };
@@ -3,7 +3,7 @@
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
5
5
  import { MethodIdempotency, MethodKind } from "@bufbuild/protobuf";
6
- import { CheckApprovalLPRequest, CheckApprovalLPResponse, CheckApprovalRequest, CheckApprovalResponse, CheckWalletDelegationRequest, CheckWalletDelegationResponse, ClaimLPFeesRequest, ClaimLPFeesResponse, ClaimLPRewardsRequest, ClaimLPRewardsResponse, CreateLPPositionRequest, CreateLPPositionResponse, DecreaseLPPositionRequest, DecreaseLPPositionResponse, GetLPPriceDiscrepancyRequest, GetLPPriceDiscrepancyResponse, GetOrdersRequest, GetOrdersResponse, GetSwapsRequest, GetSwapsResponse, IncreaseLPPositionRequest, IncreaseLPPositionResponse, MigrateLpPositionRequest, MigrateLpPositionResponse, OrderRequest, OrderResponse, PoolInfoRequest, PoolInfoResponse, QuoteRequest, QuoteResponse, SendRequest, SendResponse, Swap5792Request, Swap5792Response, SwappableTokensRequest, SwappableTokensResponse, SwapRequest, SwapResponse } from "./api_pb.js";
6
+ import { CheckApprovalLPRequest, CheckApprovalLPResponse, CheckApprovalRequest, CheckApprovalResponse, CheckWalletDelegationRequest, CheckWalletDelegationResponse, ClaimLPFeesRequest, ClaimLPFeesResponse, ClaimLPRewardsRequest, ClaimLPRewardsResponse, CreateLPPositionRequest, CreateLPPositionResponse, DecreaseLPPositionRequest, DecreaseLPPositionResponse, Encode7702Request, Encode7702Response, GetLPPriceDiscrepancyRequest, GetLPPriceDiscrepancyResponse, GetOrdersRequest, GetOrdersResponse, GetSwapsRequest, GetSwapsResponse, IncreaseLPPositionRequest, IncreaseLPPositionResponse, MigrateLpPositionRequest, MigrateLpPositionResponse, MigrateV2ToV3LPPositionRequest, MigrateV2ToV3LPPositionResponse, OrderRequest, OrderResponse, PoolInfoRequest, PoolInfoResponse, QuoteRequest, QuoteResponse, SendRequest, SendResponse, Swap5792Request, Swap5792Response, SwappableTokensRequest, SwappableTokensResponse, SwapRequest, SwapResponse } from "./api_pb.js";
7
7
  /**
8
8
  * @generated from rpc trading.v1.tradingService.Quote
9
9
  */
@@ -270,3 +270,31 @@ export const getLPPriceDiscrepancy = {
270
270
  typeName: "trading.v1.tradingService"
271
271
  }
272
272
  };
273
+ /**
274
+ * @generated from rpc trading.v1.tradingService.Encode7702
275
+ */
276
+ export const encode7702 = {
277
+ localName: "encode7702",
278
+ name: "Encode7702",
279
+ kind: MethodKind.Unary,
280
+ I: Encode7702Request,
281
+ O: Encode7702Response,
282
+ idempotency: MethodIdempotency.NoSideEffects,
283
+ service: {
284
+ typeName: "trading.v1.tradingService"
285
+ }
286
+ };
287
+ /**
288
+ * @generated from rpc trading.v1.tradingService.MigrateV2ToV3LPPosition
289
+ */
290
+ export const migrateV2ToV3LPPosition = {
291
+ localName: "migrateV2ToV3LPPosition",
292
+ name: "MigrateV2ToV3LPPosition",
293
+ kind: MethodKind.Unary,
294
+ I: MigrateV2ToV3LPPositionRequest,
295
+ O: MigrateV2ToV3LPPositionResponse,
296
+ idempotency: MethodIdempotency.NoSideEffects,
297
+ service: {
298
+ typeName: "trading.v1.tradingService"
299
+ }
300
+ };
@@ -1,4 +1,4 @@
1
- import { CheckApprovalLPRequest, CheckApprovalLPResponse, CheckApprovalRequest, CheckApprovalResponse, CheckWalletDelegationRequest, CheckWalletDelegationResponse, ClaimLPFeesRequest, ClaimLPFeesResponse, ClaimLPRewardsRequest, ClaimLPRewardsResponse, CreateLPPositionRequest, CreateLPPositionResponse, DecreaseLPPositionRequest, DecreaseLPPositionResponse, GetLPPriceDiscrepancyRequest, GetLPPriceDiscrepancyResponse, GetOrdersRequest, GetOrdersResponse, GetSwapsRequest, GetSwapsResponse, IncreaseLPPositionRequest, IncreaseLPPositionResponse, MigrateLpPositionRequest, MigrateLpPositionResponse, OrderRequest, OrderResponse, PoolInfoRequest, PoolInfoResponse, QuoteRequest, QuoteResponse, SendRequest, SendResponse, Swap5792Request, Swap5792Response, SwappableTokensRequest, SwappableTokensResponse, SwapRequest, SwapResponse } from "./api_pb.js";
1
+ import { CheckApprovalLPRequest, CheckApprovalLPResponse, CheckApprovalRequest, CheckApprovalResponse, CheckWalletDelegationRequest, CheckWalletDelegationResponse, ClaimLPFeesRequest, ClaimLPFeesResponse, ClaimLPRewardsRequest, ClaimLPRewardsResponse, CreateLPPositionRequest, CreateLPPositionResponse, DecreaseLPPositionRequest, DecreaseLPPositionResponse, Encode7702Request, Encode7702Response, GetLPPriceDiscrepancyRequest, GetLPPriceDiscrepancyResponse, GetOrdersRequest, GetOrdersResponse, GetSwapsRequest, GetSwapsResponse, IncreaseLPPositionRequest, IncreaseLPPositionResponse, MigrateLpPositionRequest, MigrateLpPositionResponse, MigrateV2ToV3LPPositionRequest, MigrateV2ToV3LPPositionResponse, OrderRequest, OrderResponse, PoolInfoRequest, PoolInfoResponse, QuoteRequest, QuoteResponse, SendRequest, SendResponse, Swap5792Request, Swap5792Response, SwappableTokensRequest, SwappableTokensResponse, SwapRequest, SwapResponse } from "./api_pb.js";
2
2
  import { MethodIdempotency, MethodKind } from "@bufbuild/protobuf";
3
3
  /**
4
4
  * @generated from service trading.v1.tradingService
@@ -196,5 +196,25 @@ export declare const tradingService: {
196
196
  readonly kind: MethodKind.Unary;
197
197
  readonly idempotency: MethodIdempotency.NoSideEffects;
198
198
  };
199
+ /**
200
+ * @generated from rpc trading.v1.tradingService.Encode7702
201
+ */
202
+ readonly encode7702: {
203
+ readonly name: "Encode7702";
204
+ readonly I: typeof Encode7702Request;
205
+ readonly O: typeof Encode7702Response;
206
+ readonly kind: MethodKind.Unary;
207
+ readonly idempotency: MethodIdempotency.NoSideEffects;
208
+ };
209
+ /**
210
+ * @generated from rpc trading.v1.tradingService.MigrateV2ToV3LPPosition
211
+ */
212
+ readonly migrateV2ToV3LPPosition: {
213
+ readonly name: "MigrateV2ToV3LPPosition";
214
+ readonly I: typeof MigrateV2ToV3LPPositionRequest;
215
+ readonly O: typeof MigrateV2ToV3LPPositionResponse;
216
+ readonly kind: MethodKind.Unary;
217
+ readonly idempotency: MethodIdempotency.NoSideEffects;
218
+ };
199
219
  };
200
220
  };
@@ -2,7 +2,7 @@
2
2
  // @generated from file trading/v1/api.proto (package trading.v1, syntax proto3)
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
5
- import { CheckApprovalLPRequest, CheckApprovalLPResponse, CheckApprovalRequest, CheckApprovalResponse, CheckWalletDelegationRequest, CheckWalletDelegationResponse, ClaimLPFeesRequest, ClaimLPFeesResponse, ClaimLPRewardsRequest, ClaimLPRewardsResponse, CreateLPPositionRequest, CreateLPPositionResponse, DecreaseLPPositionRequest, DecreaseLPPositionResponse, GetLPPriceDiscrepancyRequest, GetLPPriceDiscrepancyResponse, GetOrdersRequest, GetOrdersResponse, GetSwapsRequest, GetSwapsResponse, IncreaseLPPositionRequest, IncreaseLPPositionResponse, MigrateLpPositionRequest, MigrateLpPositionResponse, OrderRequest, OrderResponse, PoolInfoRequest, PoolInfoResponse, QuoteRequest, QuoteResponse, SendRequest, SendResponse, Swap5792Request, Swap5792Response, SwappableTokensRequest, SwappableTokensResponse, SwapRequest, SwapResponse } from "./api_pb.js";
5
+ import { CheckApprovalLPRequest, CheckApprovalLPResponse, CheckApprovalRequest, CheckApprovalResponse, CheckWalletDelegationRequest, CheckWalletDelegationResponse, ClaimLPFeesRequest, ClaimLPFeesResponse, ClaimLPRewardsRequest, ClaimLPRewardsResponse, CreateLPPositionRequest, CreateLPPositionResponse, DecreaseLPPositionRequest, DecreaseLPPositionResponse, Encode7702Request, Encode7702Response, GetLPPriceDiscrepancyRequest, GetLPPriceDiscrepancyResponse, GetOrdersRequest, GetOrdersResponse, GetSwapsRequest, GetSwapsResponse, IncreaseLPPositionRequest, IncreaseLPPositionResponse, MigrateLpPositionRequest, MigrateLpPositionResponse, MigrateV2ToV3LPPositionRequest, MigrateV2ToV3LPPositionResponse, OrderRequest, OrderResponse, PoolInfoRequest, PoolInfoResponse, QuoteRequest, QuoteResponse, SendRequest, SendResponse, Swap5792Request, Swap5792Response, SwappableTokensRequest, SwappableTokensResponse, SwapRequest, SwapResponse } from "./api_pb.js";
6
6
  import { MethodIdempotency, MethodKind } from "@bufbuild/protobuf";
7
7
  /**
8
8
  * @generated from service trading.v1.tradingService
@@ -200,5 +200,25 @@ export const tradingService = {
200
200
  kind: MethodKind.Unary,
201
201
  idempotency: MethodIdempotency.NoSideEffects,
202
202
  },
203
+ /**
204
+ * @generated from rpc trading.v1.tradingService.Encode7702
205
+ */
206
+ encode7702: {
207
+ name: "Encode7702",
208
+ I: Encode7702Request,
209
+ O: Encode7702Response,
210
+ kind: MethodKind.Unary,
211
+ idempotency: MethodIdempotency.NoSideEffects,
212
+ },
213
+ /**
214
+ * @generated from rpc trading.v1.tradingService.MigrateV2ToV3LPPosition
215
+ */
216
+ migrateV2ToV3LPPosition: {
217
+ name: "MigrateV2ToV3LPPosition",
218
+ I: MigrateV2ToV3LPPositionRequest,
219
+ O: MigrateV2ToV3LPPositionResponse,
220
+ kind: MethodKind.Unary,
221
+ idempotency: MethodIdempotency.NoSideEffects,
222
+ },
203
223
  }
204
224
  };
@@ -174,10 +174,6 @@ export declare enum Protocols {
174
174
  * @generated from enum value: V4 = 2;
175
175
  */
176
176
  V4 = 2,
177
- /**
178
- * @generated from enum value: UNISWAPX = 3;
179
- */
180
- UNISWAPX = 3,
181
177
  /**
182
178
  * @generated from enum value: UNISWAPX_V2 = 4;
183
179
  */
@@ -203,10 +199,6 @@ export declare enum RoutingPreference {
203
199
  * @generated from enum value: ROUTING_CLASSIC = 2;
204
200
  */
205
201
  ROUTING_CLASSIC = 2,
206
- /**
207
- * @generated from enum value: ROUTING_UNISWAPX = 3;
208
- */
209
- ROUTING_UNISWAPX = 3,
210
202
  /**
211
203
  * @generated from enum value: ROUTING_UNISWAPX_V2 = 4;
212
204
  */
@@ -460,18 +452,10 @@ export declare enum OrderTypeQueryParam {
460
452
  * @generated from enum value: ORDER_TYPE_QUERY_PARAM_UNSPECIFIED = 0;
461
453
  */
462
454
  ORDER_TYPE_QUERY_PARAM_UNSPECIFIED = 0,
463
- /**
464
- * @generated from enum value: OrderTypeQueryParam_DUTCH = 1;
465
- */
466
- OrderTypeQueryParam_DUTCH = 1,
467
455
  /**
468
456
  * @generated from enum value: OrderTypeQueryParam_DUTCH_V2 = 2;
469
457
  */
470
458
  OrderTypeQueryParam_DUTCH_V2 = 2,
471
- /**
472
- * @generated from enum value: OrderTypeQueryParam_DUTCH_V1_V2 = 3;
473
- */
474
- OrderTypeQueryParam_DUTCH_V1_V2 = 3,
475
459
  /**
476
460
  * @generated from enum value: OrderTypeQueryParam_LIMIT = 4;
477
461
  */
@@ -512,6 +496,72 @@ export declare enum OrderType {
512
496
  */
513
497
  OrderType_DUTCH_V3 = 4
514
498
  }
499
+ /**
500
+ * @generated from message trading.v1.MigrateV2ToV3LPPositionRequest
501
+ */
502
+ export declare class MigrateV2ToV3LPPositionRequest extends Message<MigrateV2ToV3LPPositionRequest> {
503
+ /**
504
+ * @generated from field: string wallet_address = 1;
505
+ */
506
+ walletAddress: string;
507
+ /**
508
+ * @generated from field: trading.v1.ChainId chain_id = 2;
509
+ */
510
+ chainId: ChainId;
511
+ /**
512
+ * @generated from field: trading.v1.V3Position v3_params = 3;
513
+ */
514
+ v3Params?: V3Position;
515
+ /**
516
+ * @generated from field: optional int32 slippage_bps = 4;
517
+ */
518
+ slippageBps?: number;
519
+ /**
520
+ * @generated from field: optional string deadline = 5;
521
+ */
522
+ deadline?: string;
523
+ /**
524
+ * @generated from field: optional bool refund_as_eth = 6;
525
+ */
526
+ refundAsEth?: boolean;
527
+ /**
528
+ * @generated from field: optional bool simulate_transaction = 7;
529
+ */
530
+ simulateTransaction?: boolean;
531
+ constructor(data?: PartialMessage<MigrateV2ToV3LPPositionRequest>);
532
+ static readonly runtime: typeof proto3;
533
+ static readonly typeName = "trading.v1.MigrateV2ToV3LPPositionRequest";
534
+ static readonly fields: FieldList;
535
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MigrateV2ToV3LPPositionRequest;
536
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MigrateV2ToV3LPPositionRequest;
537
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MigrateV2ToV3LPPositionRequest;
538
+ static equals(a: MigrateV2ToV3LPPositionRequest | PlainMessage<MigrateV2ToV3LPPositionRequest> | undefined, b: MigrateV2ToV3LPPositionRequest | PlainMessage<MigrateV2ToV3LPPositionRequest> | undefined): boolean;
539
+ }
540
+ /**
541
+ * @generated from message trading.v1.MigrateV2ToV3LPPositionResponse
542
+ */
543
+ export declare class MigrateV2ToV3LPPositionResponse extends Message<MigrateV2ToV3LPPositionResponse> {
544
+ /**
545
+ * @generated from field: string request_id = 1;
546
+ */
547
+ requestId: string;
548
+ /**
549
+ * @generated from field: trading.v1.TransactionRequest migrate = 2;
550
+ */
551
+ migrate?: TransactionRequest;
552
+ /**
553
+ * @generated from field: optional string gasFee = 3;
554
+ */
555
+ gasFee?: string;
556
+ constructor(data?: PartialMessage<MigrateV2ToV3LPPositionResponse>);
557
+ static readonly runtime: typeof proto3;
558
+ static readonly typeName = "trading.v1.MigrateV2ToV3LPPositionResponse";
559
+ static readonly fields: FieldList;
560
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): MigrateV2ToV3LPPositionResponse;
561
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): MigrateV2ToV3LPPositionResponse;
562
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): MigrateV2ToV3LPPositionResponse;
563
+ static equals(a: MigrateV2ToV3LPPositionResponse | PlainMessage<MigrateV2ToV3LPPositionResponse> | undefined, b: MigrateV2ToV3LPPositionResponse | PlainMessage<MigrateV2ToV3LPPositionResponse> | undefined): boolean;
564
+ }
515
565
  /**
516
566
  * @generated from message trading.v1.GetLPPriceDiscrepancyRequest
517
567
  */
@@ -602,6 +652,52 @@ export declare class GetLPPriceDiscrepancyResponse extends Message<GetLPPriceDis
602
652
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetLPPriceDiscrepancyResponse;
603
653
  static equals(a: GetLPPriceDiscrepancyResponse | PlainMessage<GetLPPriceDiscrepancyResponse> | undefined, b: GetLPPriceDiscrepancyResponse | PlainMessage<GetLPPriceDiscrepancyResponse> | undefined): boolean;
604
654
  }
655
+ /**
656
+ * @generated from message trading.v1.Encode7702Request
657
+ */
658
+ export declare class Encode7702Request extends Message<Encode7702Request> {
659
+ /**
660
+ * @generated from field: repeated trading.v1.TransactionRequest calls = 1;
661
+ */
662
+ calls: TransactionRequest[];
663
+ /**
664
+ * @generated from field: string wallet_address = 2;
665
+ */
666
+ walletAddress: string;
667
+ /**
668
+ * @generated from field: string smart_contract_delegation_address = 3;
669
+ */
670
+ smartContractDelegationAddress: string;
671
+ constructor(data?: PartialMessage<Encode7702Request>);
672
+ static readonly runtime: typeof proto3;
673
+ static readonly typeName = "trading.v1.Encode7702Request";
674
+ static readonly fields: FieldList;
675
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Encode7702Request;
676
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Encode7702Request;
677
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Encode7702Request;
678
+ static equals(a: Encode7702Request | PlainMessage<Encode7702Request> | undefined, b: Encode7702Request | PlainMessage<Encode7702Request> | undefined): boolean;
679
+ }
680
+ /**
681
+ * @generated from message trading.v1.Encode7702Response
682
+ */
683
+ export declare class Encode7702Response extends Message<Encode7702Response> {
684
+ /**
685
+ * @generated from field: string request_id = 1;
686
+ */
687
+ requestId: string;
688
+ /**
689
+ * @generated from field: trading.v1.TransactionRequest encoded_transaction = 2;
690
+ */
691
+ encodedTransaction?: TransactionRequest;
692
+ constructor(data?: PartialMessage<Encode7702Response>);
693
+ static readonly runtime: typeof proto3;
694
+ static readonly typeName = "trading.v1.Encode7702Response";
695
+ static readonly fields: FieldList;
696
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Encode7702Response;
697
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Encode7702Response;
698
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Encode7702Response;
699
+ static equals(a: Encode7702Response | PlainMessage<Encode7702Response> | undefined, b: Encode7702Response | PlainMessage<Encode7702Response> | undefined): boolean;
700
+ }
605
701
  /**
606
702
  * @generated from message trading.v1.Swap5792Request
607
703
  */
@@ -702,9 +798,9 @@ export declare class PoolInfoRequest extends Message<PoolInfoRequest> {
702
798
  */
703
799
  poolReferences: PoolReferenceByProtocol[];
704
800
  /**
705
- * @generated from field: optional trading.v1.PoolParameters pool_params = 3;
801
+ * @generated from field: optional trading.v1.PoolParameters pool_parameters = 3;
706
802
  */
707
- poolParams?: PoolParameters;
803
+ poolParameters?: PoolParameters;
708
804
  /**
709
805
  * @generated from field: optional trading.v1.ChainId chain_id = 4;
710
806
  */
@@ -4068,6 +4164,14 @@ export declare class SwapResponse extends Message<SwapResponse> {
4068
4164
  * @generated from field: repeated trading.v1.GasEstimate gas_estimates = 5;
4069
4165
  */
4070
4166
  gasEstimates: GasEstimate[];
4167
+ /**
4168
+ * @generated from field: optional string signature = 6;
4169
+ */
4170
+ signature?: string;
4171
+ /**
4172
+ * @generated from field: optional string public_key_id = 7;
4173
+ */
4174
+ publicKeyId?: string;
4071
4175
  constructor(data?: PartialMessage<SwapResponse>);
4072
4176
  static readonly runtime: typeof proto3;
4073
4177
  static readonly typeName = "trading.v1.SwapResponse";
@@ -5249,6 +5353,10 @@ export declare class BridgeQuote extends Message<BridgeQuote> {
5249
5353
  * @generated from field: optional string gas_fee_usd = 18;
5250
5354
  */
5251
5355
  gasFeeUsd?: string;
5356
+ /**
5357
+ * @generated from field: repeated trading.v1.GasEstimate gas_estimates = 19;
5358
+ */
5359
+ gasEstimates: GasEstimate[];
5252
5360
  constructor(data?: PartialMessage<BridgeQuote>);
5253
5361
  static readonly runtime: typeof proto3;
5254
5362
  static readonly typeName = "trading.v1.BridgeQuote";
@@ -234,10 +234,6 @@ export var Protocols;
234
234
  * @generated from enum value: V4 = 2;
235
235
  */
236
236
  Protocols[Protocols["V4"] = 2] = "V4";
237
- /**
238
- * @generated from enum value: UNISWAPX = 3;
239
- */
240
- Protocols[Protocols["UNISWAPX"] = 3] = "UNISWAPX";
241
237
  /**
242
238
  * @generated from enum value: UNISWAPX_V2 = 4;
243
239
  */
@@ -252,7 +248,6 @@ proto3.util.setEnumType(Protocols, "trading.v1.Protocols", [
252
248
  { no: 0, name: "V2" },
253
249
  { no: 1, name: "V3" },
254
250
  { no: 2, name: "V4" },
255
- { no: 3, name: "UNISWAPX" },
256
251
  { no: 4, name: "UNISWAPX_V2" },
257
252
  { no: 5, name: "UNISWAPX_V3" },
258
253
  ]);
@@ -273,10 +268,6 @@ export var RoutingPreference;
273
268
  * @generated from enum value: ROUTING_CLASSIC = 2;
274
269
  */
275
270
  RoutingPreference[RoutingPreference["ROUTING_CLASSIC"] = 2] = "ROUTING_CLASSIC";
276
- /**
277
- * @generated from enum value: ROUTING_UNISWAPX = 3;
278
- */
279
- RoutingPreference[RoutingPreference["ROUTING_UNISWAPX"] = 3] = "ROUTING_UNISWAPX";
280
271
  /**
281
272
  * @generated from enum value: ROUTING_UNISWAPX_V2 = 4;
282
273
  */
@@ -299,7 +290,6 @@ proto3.util.setEnumType(RoutingPreference, "trading.v1.RoutingPreference", [
299
290
  { no: 0, name: "BEST_PRICE" },
300
291
  { no: 1, name: "FASTEST" },
301
292
  { no: 2, name: "ROUTING_CLASSIC" },
302
- { no: 3, name: "ROUTING_UNISWAPX" },
303
293
  { no: 4, name: "ROUTING_UNISWAPX_V2" },
304
294
  { no: 5, name: "V3_ONLY" },
305
295
  { no: 6, name: "V2_ONLY" },
@@ -632,18 +622,10 @@ export var OrderTypeQueryParam;
632
622
  * @generated from enum value: ORDER_TYPE_QUERY_PARAM_UNSPECIFIED = 0;
633
623
  */
634
624
  OrderTypeQueryParam[OrderTypeQueryParam["ORDER_TYPE_QUERY_PARAM_UNSPECIFIED"] = 0] = "ORDER_TYPE_QUERY_PARAM_UNSPECIFIED";
635
- /**
636
- * @generated from enum value: OrderTypeQueryParam_DUTCH = 1;
637
- */
638
- OrderTypeQueryParam[OrderTypeQueryParam["OrderTypeQueryParam_DUTCH"] = 1] = "OrderTypeQueryParam_DUTCH";
639
625
  /**
640
626
  * @generated from enum value: OrderTypeQueryParam_DUTCH_V2 = 2;
641
627
  */
642
628
  OrderTypeQueryParam[OrderTypeQueryParam["OrderTypeQueryParam_DUTCH_V2"] = 2] = "OrderTypeQueryParam_DUTCH_V2";
643
- /**
644
- * @generated from enum value: OrderTypeQueryParam_DUTCH_V1_V2 = 3;
645
- */
646
- OrderTypeQueryParam[OrderTypeQueryParam["OrderTypeQueryParam_DUTCH_V1_V2"] = 3] = "OrderTypeQueryParam_DUTCH_V1_V2";
647
629
  /**
648
630
  * @generated from enum value: OrderTypeQueryParam_LIMIT = 4;
649
631
  */
@@ -660,9 +642,7 @@ export var OrderTypeQueryParam;
660
642
  // Retrieve enum metadata with: proto3.getEnumType(OrderTypeQueryParam)
661
643
  proto3.util.setEnumType(OrderTypeQueryParam, "trading.v1.OrderTypeQueryParam", [
662
644
  { no: 0, name: "ORDER_TYPE_QUERY_PARAM_UNSPECIFIED" },
663
- { no: 1, name: "OrderTypeQueryParam_DUTCH" },
664
645
  { no: 2, name: "OrderTypeQueryParam_DUTCH_V2" },
665
- { no: 3, name: "OrderTypeQueryParam_DUTCH_V1_V2" },
666
646
  { no: 4, name: "OrderTypeQueryParam_LIMIT" },
667
647
  { no: 5, name: "OrderTypeQueryParam_PRIORITY" },
668
648
  { no: 6, name: "OrderTypeQueryParam_DUTCH_V3" },
@@ -703,6 +683,78 @@ proto3.util.setEnumType(OrderType, "trading.v1.OrderType", [
703
683
  { no: 3, name: "OrderType_PRIORITY" },
704
684
  { no: 4, name: "OrderType_DUTCH_V3" },
705
685
  ]);
686
+ /**
687
+ * @generated from message trading.v1.MigrateV2ToV3LPPositionRequest
688
+ */
689
+ export class MigrateV2ToV3LPPositionRequest extends Message {
690
+ constructor(data) {
691
+ super();
692
+ /**
693
+ * @generated from field: string wallet_address = 1;
694
+ */
695
+ this.walletAddress = "";
696
+ /**
697
+ * @generated from field: trading.v1.ChainId chain_id = 2;
698
+ */
699
+ this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
700
+ proto3.util.initPartial(data, this);
701
+ }
702
+ static fromBinary(bytes, options) {
703
+ return new MigrateV2ToV3LPPositionRequest().fromBinary(bytes, options);
704
+ }
705
+ static fromJson(jsonValue, options) {
706
+ return new MigrateV2ToV3LPPositionRequest().fromJson(jsonValue, options);
707
+ }
708
+ static fromJsonString(jsonString, options) {
709
+ return new MigrateV2ToV3LPPositionRequest().fromJsonString(jsonString, options);
710
+ }
711
+ static equals(a, b) {
712
+ return proto3.util.equals(MigrateV2ToV3LPPositionRequest, a, b);
713
+ }
714
+ }
715
+ MigrateV2ToV3LPPositionRequest.runtime = proto3;
716
+ MigrateV2ToV3LPPositionRequest.typeName = "trading.v1.MigrateV2ToV3LPPositionRequest";
717
+ MigrateV2ToV3LPPositionRequest.fields = proto3.util.newFieldList(() => [
718
+ { no: 1, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
719
+ { no: 2, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
720
+ { no: 3, name: "v3_params", kind: "message", T: V3Position },
721
+ { no: 4, name: "slippage_bps", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
722
+ { no: 5, name: "deadline", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
723
+ { no: 6, name: "refund_as_eth", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
724
+ { no: 7, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
725
+ ]);
726
+ /**
727
+ * @generated from message trading.v1.MigrateV2ToV3LPPositionResponse
728
+ */
729
+ export class MigrateV2ToV3LPPositionResponse extends Message {
730
+ constructor(data) {
731
+ super();
732
+ /**
733
+ * @generated from field: string request_id = 1;
734
+ */
735
+ this.requestId = "";
736
+ proto3.util.initPartial(data, this);
737
+ }
738
+ static fromBinary(bytes, options) {
739
+ return new MigrateV2ToV3LPPositionResponse().fromBinary(bytes, options);
740
+ }
741
+ static fromJson(jsonValue, options) {
742
+ return new MigrateV2ToV3LPPositionResponse().fromJson(jsonValue, options);
743
+ }
744
+ static fromJsonString(jsonString, options) {
745
+ return new MigrateV2ToV3LPPositionResponse().fromJsonString(jsonString, options);
746
+ }
747
+ static equals(a, b) {
748
+ return proto3.util.equals(MigrateV2ToV3LPPositionResponse, a, b);
749
+ }
750
+ }
751
+ MigrateV2ToV3LPPositionResponse.runtime = proto3;
752
+ MigrateV2ToV3LPPositionResponse.typeName = "trading.v1.MigrateV2ToV3LPPositionResponse";
753
+ MigrateV2ToV3LPPositionResponse.fields = proto3.util.newFieldList(() => [
754
+ { no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
755
+ { no: 2, name: "migrate", kind: "message", T: TransactionRequest },
756
+ { no: 3, name: "gasFee", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
757
+ ]);
706
758
  /**
707
759
  * @generated from message trading.v1.GetLPPriceDiscrepancyRequest
708
760
  */
@@ -821,6 +873,77 @@ GetLPPriceDiscrepancyResponse.fields = proto3.util.newFieldList(() => [
821
873
  { no: 6, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
822
874
  { no: 7, name: "protocol", kind: "enum", T: proto3.getEnumType(Protocols) },
823
875
  ]);
876
+ /**
877
+ * @generated from message trading.v1.Encode7702Request
878
+ */
879
+ export class Encode7702Request extends Message {
880
+ constructor(data) {
881
+ super();
882
+ /**
883
+ * @generated from field: repeated trading.v1.TransactionRequest calls = 1;
884
+ */
885
+ this.calls = [];
886
+ /**
887
+ * @generated from field: string wallet_address = 2;
888
+ */
889
+ this.walletAddress = "";
890
+ /**
891
+ * @generated from field: string smart_contract_delegation_address = 3;
892
+ */
893
+ this.smartContractDelegationAddress = "";
894
+ proto3.util.initPartial(data, this);
895
+ }
896
+ static fromBinary(bytes, options) {
897
+ return new Encode7702Request().fromBinary(bytes, options);
898
+ }
899
+ static fromJson(jsonValue, options) {
900
+ return new Encode7702Request().fromJson(jsonValue, options);
901
+ }
902
+ static fromJsonString(jsonString, options) {
903
+ return new Encode7702Request().fromJsonString(jsonString, options);
904
+ }
905
+ static equals(a, b) {
906
+ return proto3.util.equals(Encode7702Request, a, b);
907
+ }
908
+ }
909
+ Encode7702Request.runtime = proto3;
910
+ Encode7702Request.typeName = "trading.v1.Encode7702Request";
911
+ Encode7702Request.fields = proto3.util.newFieldList(() => [
912
+ { no: 1, name: "calls", kind: "message", T: TransactionRequest, repeated: true },
913
+ { no: 2, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
914
+ { no: 3, name: "smart_contract_delegation_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
915
+ ]);
916
+ /**
917
+ * @generated from message trading.v1.Encode7702Response
918
+ */
919
+ export class Encode7702Response extends Message {
920
+ constructor(data) {
921
+ super();
922
+ /**
923
+ * @generated from field: string request_id = 1;
924
+ */
925
+ this.requestId = "";
926
+ proto3.util.initPartial(data, this);
927
+ }
928
+ static fromBinary(bytes, options) {
929
+ return new Encode7702Response().fromBinary(bytes, options);
930
+ }
931
+ static fromJson(jsonValue, options) {
932
+ return new Encode7702Response().fromJson(jsonValue, options);
933
+ }
934
+ static fromJsonString(jsonString, options) {
935
+ return new Encode7702Response().fromJsonString(jsonString, options);
936
+ }
937
+ static equals(a, b) {
938
+ return proto3.util.equals(Encode7702Response, a, b);
939
+ }
940
+ }
941
+ Encode7702Response.runtime = proto3;
942
+ Encode7702Response.typeName = "trading.v1.Encode7702Response";
943
+ Encode7702Response.fields = proto3.util.newFieldList(() => [
944
+ { no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
945
+ { no: 2, name: "encoded_transaction", kind: "message", T: TransactionRequest },
946
+ ]);
824
947
  /**
825
948
  * @generated from message trading.v1.Swap5792Request
826
949
  */
@@ -945,7 +1068,7 @@ PoolInfoRequest.typeName = "trading.v1.PoolInfoRequest";
945
1068
  PoolInfoRequest.fields = proto3.util.newFieldList(() => [
946
1069
  { no: 1, name: "protocol", kind: "enum", T: proto3.getEnumType(Protocols) },
947
1070
  { no: 2, name: "pool_references", kind: "message", T: PoolReferenceByProtocol, repeated: true },
948
- { no: 3, name: "pool_params", kind: "message", T: PoolParameters, opt: true },
1071
+ { no: 3, name: "pool_parameters", kind: "message", T: PoolParameters, opt: true },
949
1072
  { no: 4, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId), opt: true },
950
1073
  { no: 5, name: "page_size", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
951
1074
  { no: 6, name: "current_page", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
@@ -4456,6 +4579,8 @@ SwapResponse.fields = proto3.util.newFieldList(() => [
4456
4579
  { no: 3, name: "gas_fee", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
4457
4580
  { no: 4, name: "tx_failure_reasons", kind: "enum", T: proto3.getEnumType(TransactionFailureReason), repeated: true },
4458
4581
  { no: 5, name: "gas_estimates", kind: "message", T: GasEstimate, repeated: true },
4582
+ { no: 6, name: "signature", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
4583
+ { no: 7, name: "public_key_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
4459
4584
  ]);
4460
4585
  /**
4461
4586
  * @generated from message trading.v1.GetSwapsRequest
@@ -5827,6 +5952,10 @@ export class BridgeQuote extends Message {
5827
5952
  * @generated from field: int32 estimated_fill_time_ms = 9;
5828
5953
  */
5829
5954
  this.estimatedFillTimeMs = 0;
5955
+ /**
5956
+ * @generated from field: repeated trading.v1.GasEstimate gas_estimates = 19;
5957
+ */
5958
+ this.gasEstimates = [];
5830
5959
  proto3.util.initPartial(data, this);
5831
5960
  }
5832
5961
  static fromBinary(bytes, options) {
@@ -5863,6 +5992,7 @@ BridgeQuote.fields = proto3.util.newFieldList(() => [
5863
5992
  { no: 16, name: "exclusivity_deadline", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
5864
5993
  { no: 17, name: "fill_deadline", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
5865
5994
  { no: 18, name: "gas_fee_usd", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
5995
+ { no: 19, name: "gas_estimates", kind: "message", T: GasEstimate, repeated: true },
5866
5996
  ]);
5867
5997
  /**
5868
5998
  * @generated from message trading.v1.DutchLimitOrderInfo
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@uniswap/client-trading",
3
- "version": "0.0.0",
3
+ "version": "0.1.1",
4
4
  "publishConfig": {
5
- "access": "restricted"
5
+ "access": "public"
6
6
  },
7
7
  "files": [
8
8
  "dist"