@uniswap/client-trading 0.1.7 → 0.2.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.
@@ -1,5 +1,5 @@
1
1
  import { MethodIdempotency, MethodKind } from "@bufbuild/protobuf";
2
- import { CheckApprovalRequest, CheckApprovalResponse, CheckWalletDelegationRequest, CheckWalletDelegationResponse, CreatePlanRequest, DocsRequest, DocsResponse, Encode4337Request, Encode4337Response, Encode7702Request, Encode7702Response, GetOrdersRequest, GetOrdersResponse, GetPlanRequest, GetPlansRequest, GetPlansResponse, GetSwapsRequest, GetSwapsResponse, OrderRequest, OrderResponse, PlanResponse, QuoteRequest, QuoteResponse, SendRequest, SendResponse, Swap5792Request, Swap5792Response, Swap7702Request, Swap7702Response, SwappableTokensRequest, SwappableTokensResponse, SwapRequest, SwapResponse, UpdatePlanRequest } from "./api_pb.js";
2
+ import { CheckApprovalRequest, CheckApprovalResponse, CheckWalletDelegationRequest, CheckWalletDelegationResponse, CreatePlanRequest, DocsRequest, DocsResponse, Encode4337Request, Encode4337Response, Encode7702Request, Encode7702Response, GetOrdersRequest, GetOrdersResponse, GetPlanRequest, GetPlansRequest, GetPlansResponse, GetSwapsRequest, GetSwapsResponse, OrderRequest, OrderResponse, PlanResponse, QuoteRequest, QuoteResponse, Swap4337Request, Swap4337Response, Swap5792Request, Swap5792Response, Swap7702Request, Swap7702Response, SwappableTokensRequest, SwappableTokensResponse, SwapRequest, SwapResponse, UpdatePlanRequest } from "./api_pb.js";
3
3
  /**
4
4
  * @generated from rpc trading.v1.tradingService.Quote
5
5
  */
@@ -112,20 +112,6 @@ export declare const order: {
112
112
  readonly typeName: "trading.v1.tradingService";
113
113
  };
114
114
  };
115
- /**
116
- * @generated from rpc trading.v1.tradingService.Send
117
- */
118
- export declare const send: {
119
- readonly localName: "send";
120
- readonly name: "Send";
121
- readonly kind: MethodKind.Unary;
122
- readonly I: typeof SendRequest;
123
- readonly O: typeof SendResponse;
124
- readonly idempotency: MethodIdempotency.NoSideEffects;
125
- readonly service: {
126
- readonly typeName: "trading.v1.tradingService";
127
- };
128
- };
129
115
  /**
130
116
  * @generated from rpc trading.v1.tradingService.CheckWalletDelegation
131
117
  */
@@ -182,6 +168,20 @@ export declare const encode4337: {
182
168
  readonly typeName: "trading.v1.tradingService";
183
169
  };
184
170
  };
171
+ /**
172
+ * @generated from rpc trading.v1.tradingService.Swap4337
173
+ */
174
+ export declare const swap4337: {
175
+ readonly localName: "swap4337";
176
+ readonly name: "Swap4337";
177
+ readonly kind: MethodKind.Unary;
178
+ readonly I: typeof Swap4337Request;
179
+ readonly O: typeof Swap4337Response;
180
+ readonly idempotency: MethodIdempotency.NoSideEffects;
181
+ readonly service: {
182
+ readonly typeName: "trading.v1.tradingService";
183
+ };
184
+ };
185
185
  /**
186
186
  * @generated from rpc trading.v1.tradingService.CreatePlan
187
187
  */
@@ -3,7 +3,7 @@
3
3
  /* eslint-disable */
4
4
  // @ts-nocheck
5
5
  import { MethodIdempotency, MethodKind } from "@bufbuild/protobuf";
6
- import { CheckApprovalRequest, CheckApprovalResponse, CheckWalletDelegationRequest, CheckWalletDelegationResponse, CreatePlanRequest, DocsRequest, DocsResponse, Encode4337Request, Encode4337Response, Encode7702Request, Encode7702Response, GetOrdersRequest, GetOrdersResponse, GetPlanRequest, GetPlansRequest, GetPlansResponse, GetSwapsRequest, GetSwapsResponse, OrderRequest, OrderResponse, PlanResponse, QuoteRequest, QuoteResponse, SendRequest, SendResponse, Swap5792Request, Swap5792Response, Swap7702Request, Swap7702Response, SwappableTokensRequest, SwappableTokensResponse, SwapRequest, SwapResponse, UpdatePlanRequest } from "./api_pb.js";
6
+ import { CheckApprovalRequest, CheckApprovalResponse, CheckWalletDelegationRequest, CheckWalletDelegationResponse, CreatePlanRequest, DocsRequest, DocsResponse, Encode4337Request, Encode4337Response, Encode7702Request, Encode7702Response, GetOrdersRequest, GetOrdersResponse, GetPlanRequest, GetPlansRequest, GetPlansResponse, GetSwapsRequest, GetSwapsResponse, OrderRequest, OrderResponse, PlanResponse, QuoteRequest, QuoteResponse, Swap4337Request, Swap4337Response, Swap5792Request, Swap5792Response, Swap7702Request, Swap7702Response, SwappableTokensRequest, SwappableTokensResponse, SwapRequest, SwapResponse, UpdatePlanRequest } from "./api_pb.js";
7
7
  /**
8
8
  * @generated from rpc trading.v1.tradingService.Quote
9
9
  */
@@ -116,20 +116,6 @@ export const order = {
116
116
  typeName: "trading.v1.tradingService"
117
117
  }
118
118
  };
119
- /**
120
- * @generated from rpc trading.v1.tradingService.Send
121
- */
122
- export const send = {
123
- localName: "send",
124
- name: "Send",
125
- kind: MethodKind.Unary,
126
- I: SendRequest,
127
- O: SendResponse,
128
- idempotency: MethodIdempotency.NoSideEffects,
129
- service: {
130
- typeName: "trading.v1.tradingService"
131
- }
132
- };
133
119
  /**
134
120
  * @generated from rpc trading.v1.tradingService.CheckWalletDelegation
135
121
  */
@@ -186,6 +172,20 @@ export const encode4337 = {
186
172
  typeName: "trading.v1.tradingService"
187
173
  }
188
174
  };
175
+ /**
176
+ * @generated from rpc trading.v1.tradingService.Swap4337
177
+ */
178
+ export const swap4337 = {
179
+ localName: "swap4337",
180
+ name: "Swap4337",
181
+ kind: MethodKind.Unary,
182
+ I: Swap4337Request,
183
+ O: Swap4337Response,
184
+ idempotency: MethodIdempotency.NoSideEffects,
185
+ service: {
186
+ typeName: "trading.v1.tradingService"
187
+ }
188
+ };
189
189
  /**
190
190
  * @generated from rpc trading.v1.tradingService.CreatePlan
191
191
  */
@@ -1,4 +1,4 @@
1
- import { CheckApprovalRequest, CheckApprovalResponse, CheckWalletDelegationRequest, CheckWalletDelegationResponse, CreatePlanRequest, DocsRequest, DocsResponse, Encode4337Request, Encode4337Response, Encode7702Request, Encode7702Response, GetOrdersRequest, GetOrdersResponse, GetPlanRequest, GetPlansRequest, GetPlansResponse, GetSwapsRequest, GetSwapsResponse, OrderRequest, OrderResponse, PlanResponse, QuoteRequest, QuoteResponse, SendRequest, SendResponse, Swap5792Request, Swap5792Response, Swap7702Request, Swap7702Response, SwappableTokensRequest, SwappableTokensResponse, SwapRequest, SwapResponse, UpdatePlanRequest } from "./api_pb.js";
1
+ import { CheckApprovalRequest, CheckApprovalResponse, CheckWalletDelegationRequest, CheckWalletDelegationResponse, CreatePlanRequest, DocsRequest, DocsResponse, Encode4337Request, Encode4337Response, Encode7702Request, Encode7702Response, GetOrdersRequest, GetOrdersResponse, GetPlanRequest, GetPlansRequest, GetPlansResponse, GetSwapsRequest, GetSwapsResponse, OrderRequest, OrderResponse, PlanResponse, QuoteRequest, QuoteResponse, Swap4337Request, Swap4337Response, Swap5792Request, Swap5792Response, Swap7702Request, Swap7702Response, SwappableTokensRequest, SwappableTokensResponse, SwapRequest, SwapResponse, UpdatePlanRequest } from "./api_pb.js";
2
2
  import { MethodIdempotency, MethodKind } from "@bufbuild/protobuf";
3
3
  /**
4
4
  * @generated from service trading.v1.tradingService
@@ -86,16 +86,6 @@ export declare const tradingService: {
86
86
  readonly kind: MethodKind.Unary;
87
87
  readonly idempotency: MethodIdempotency.NoSideEffects;
88
88
  };
89
- /**
90
- * @generated from rpc trading.v1.tradingService.Send
91
- */
92
- readonly send: {
93
- readonly name: "Send";
94
- readonly I: typeof SendRequest;
95
- readonly O: typeof SendResponse;
96
- readonly kind: MethodKind.Unary;
97
- readonly idempotency: MethodIdempotency.NoSideEffects;
98
- };
99
89
  /**
100
90
  * @generated from rpc trading.v1.tradingService.CheckWalletDelegation
101
91
  */
@@ -136,6 +126,16 @@ export declare const tradingService: {
136
126
  readonly kind: MethodKind.Unary;
137
127
  readonly idempotency: MethodIdempotency.NoSideEffects;
138
128
  };
129
+ /**
130
+ * @generated from rpc trading.v1.tradingService.Swap4337
131
+ */
132
+ readonly swap4337: {
133
+ readonly name: "Swap4337";
134
+ readonly I: typeof Swap4337Request;
135
+ readonly O: typeof Swap4337Response;
136
+ readonly kind: MethodKind.Unary;
137
+ readonly idempotency: MethodIdempotency.NoSideEffects;
138
+ };
139
139
  /**
140
140
  * @generated from rpc trading.v1.tradingService.CreatePlan
141
141
  */
@@ -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 { CheckApprovalRequest, CheckApprovalResponse, CheckWalletDelegationRequest, CheckWalletDelegationResponse, CreatePlanRequest, DocsRequest, DocsResponse, Encode4337Request, Encode4337Response, Encode7702Request, Encode7702Response, GetOrdersRequest, GetOrdersResponse, GetPlanRequest, GetPlansRequest, GetPlansResponse, GetSwapsRequest, GetSwapsResponse, OrderRequest, OrderResponse, PlanResponse, QuoteRequest, QuoteResponse, SendRequest, SendResponse, Swap5792Request, Swap5792Response, Swap7702Request, Swap7702Response, SwappableTokensRequest, SwappableTokensResponse, SwapRequest, SwapResponse, UpdatePlanRequest } from "./api_pb.js";
5
+ import { CheckApprovalRequest, CheckApprovalResponse, CheckWalletDelegationRequest, CheckWalletDelegationResponse, CreatePlanRequest, DocsRequest, DocsResponse, Encode4337Request, Encode4337Response, Encode7702Request, Encode7702Response, GetOrdersRequest, GetOrdersResponse, GetPlanRequest, GetPlansRequest, GetPlansResponse, GetSwapsRequest, GetSwapsResponse, OrderRequest, OrderResponse, PlanResponse, QuoteRequest, QuoteResponse, Swap4337Request, Swap4337Response, Swap5792Request, Swap5792Response, Swap7702Request, Swap7702Response, SwappableTokensRequest, SwappableTokensResponse, SwapRequest, SwapResponse, UpdatePlanRequest } from "./api_pb.js";
6
6
  import { MethodIdempotency, MethodKind } from "@bufbuild/protobuf";
7
7
  /**
8
8
  * @generated from service trading.v1.tradingService
@@ -90,16 +90,6 @@ export const tradingService = {
90
90
  kind: MethodKind.Unary,
91
91
  idempotency: MethodIdempotency.NoSideEffects,
92
92
  },
93
- /**
94
- * @generated from rpc trading.v1.tradingService.Send
95
- */
96
- send: {
97
- name: "Send",
98
- I: SendRequest,
99
- O: SendResponse,
100
- kind: MethodKind.Unary,
101
- idempotency: MethodIdempotency.NoSideEffects,
102
- },
103
93
  /**
104
94
  * @generated from rpc trading.v1.tradingService.CheckWalletDelegation
105
95
  */
@@ -140,6 +130,16 @@ export const tradingService = {
140
130
  kind: MethodKind.Unary,
141
131
  idempotency: MethodIdempotency.NoSideEffects,
142
132
  },
133
+ /**
134
+ * @generated from rpc trading.v1.tradingService.Swap4337
135
+ */
136
+ swap4337: {
137
+ name: "Swap4337",
138
+ I: Swap4337Request,
139
+ O: Swap4337Response,
140
+ kind: MethodKind.Unary,
141
+ idempotency: MethodIdempotency.NoSideEffects,
142
+ },
143
143
  /**
144
144
  * @generated from rpc trading.v1.tradingService.CreatePlan
145
145
  */
@@ -765,6 +765,89 @@ export declare class Encode4337Response extends Message<Encode4337Response> {
765
765
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Encode4337Response;
766
766
  static equals(a: Encode4337Response | PlainMessage<Encode4337Response> | undefined, b: Encode4337Response | PlainMessage<Encode4337Response> | undefined): boolean;
767
767
  }
768
+ /**
769
+ * @generated from message trading.v1.Swap4337Request
770
+ */
771
+ export declare class Swap4337Request extends Message<Swap4337Request> {
772
+ /**
773
+ * @generated from oneof trading.v1.Swap4337Request.quote
774
+ */
775
+ quote: {
776
+ /**
777
+ * @generated from field: trading.v1.ClassicQuote classic_quote = 1;
778
+ */
779
+ value: ClassicQuote;
780
+ case: "classicQuote";
781
+ } | {
782
+ /**
783
+ * @generated from field: trading.v1.WrapUnwrapQuote wrap_unwrap_quote = 2;
784
+ */
785
+ value: WrapUnwrapQuote;
786
+ case: "wrapUnwrapQuote";
787
+ } | {
788
+ /**
789
+ * @generated from field: trading.v1.BridgeQuote bridge_quote = 3;
790
+ */
791
+ value: BridgeQuote;
792
+ case: "bridgeQuote";
793
+ } | {
794
+ case: undefined;
795
+ value?: undefined;
796
+ };
797
+ /**
798
+ * @generated from field: string sender = 4;
799
+ */
800
+ sender: string;
801
+ /**
802
+ * @generated from field: optional trading.v1.PermitSingleData permit_data = 5;
803
+ */
804
+ permitData?: PermitSingleData;
805
+ /**
806
+ * @generated from field: int64 deadline = 6;
807
+ */
808
+ deadline: bigint;
809
+ /**
810
+ * @generated from field: optional trading.v1.Eip7702Authorization eip7702_auth = 7;
811
+ */
812
+ eip7702Auth?: Eip7702Authorization;
813
+ constructor(data?: PartialMessage<Swap4337Request>);
814
+ static readonly runtime: typeof proto3;
815
+ static readonly typeName = "trading.v1.Swap4337Request";
816
+ static readonly fields: FieldList;
817
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Swap4337Request;
818
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Swap4337Request;
819
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Swap4337Request;
820
+ static equals(a: Swap4337Request | PlainMessage<Swap4337Request> | undefined, b: Swap4337Request | PlainMessage<Swap4337Request> | undefined): boolean;
821
+ }
822
+ /**
823
+ * @generated from message trading.v1.Swap4337Response
824
+ */
825
+ export declare class Swap4337Response extends Message<Swap4337Response> {
826
+ /**
827
+ * @generated from field: string request_id = 1;
828
+ */
829
+ requestId: string;
830
+ /**
831
+ * @generated from field: trading.v1.UserOperation user_operation = 2;
832
+ */
833
+ userOperation?: UserOperation;
834
+ /**
835
+ * @generated from field: bool gas_sponsored = 3;
836
+ */
837
+ gasSponsored: boolean;
838
+ /**
839
+ * @generated from field: optional string gas_sponsorship_rejection_reason = 4;
840
+ */
841
+ gasSponsorshipRejectionReason?: string;
842
+ constructor(data?: PartialMessage<Swap4337Response>);
843
+ static readonly runtime: typeof proto3;
844
+ static readonly typeName = "trading.v1.Swap4337Response";
845
+ static readonly fields: FieldList;
846
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Swap4337Response;
847
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Swap4337Response;
848
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Swap4337Response;
849
+ static equals(a: Swap4337Response | PlainMessage<Swap4337Response> | undefined, b: Swap4337Response | PlainMessage<Swap4337Response> | undefined): boolean;
850
+ }
768
851
  /**
769
852
  * @generated from message trading.v1.Swap5792Request
770
853
  */
@@ -851,6 +934,10 @@ export declare class Swap5792Response extends Message<Swap5792Response> {
851
934
  * @generated from field: optional string public_key_id = 8;
852
935
  */
853
936
  publicKeyId?: string;
937
+ /**
938
+ * @generated from field: optional trading.v1.PaymasterServiceCapability paymaster_service = 9;
939
+ */
940
+ paymasterService?: PaymasterServiceCapability;
854
941
  constructor(data?: PartialMessage<Swap5792Response>);
855
942
  static readonly runtime: typeof proto3;
856
943
  static readonly typeName = "trading.v1.Swap5792Response";
@@ -861,78 +948,42 @@ export declare class Swap5792Response extends Message<Swap5792Response> {
861
948
  static equals(a: Swap5792Response | PlainMessage<Swap5792Response> | undefined, b: Swap5792Response | PlainMessage<Swap5792Response> | undefined): boolean;
862
949
  }
863
950
  /**
864
- * @generated from message trading.v1.SendRequest
951
+ * @generated from message trading.v1.PaymasterServiceCapability
865
952
  */
866
- export declare class SendRequest extends Message<SendRequest> {
867
- /**
868
- * @generated from field: string sender = 1;
869
- */
870
- sender: string;
871
- /**
872
- * @generated from field: string recipient = 2;
873
- */
874
- recipient: string;
875
- /**
876
- * @generated from field: trading.v1.ChainId chain_id = 3;
877
- */
878
- chainId: ChainId;
879
- /**
880
- * @generated from field: string token = 4;
881
- */
882
- token: string;
953
+ export declare class PaymasterServiceCapability extends Message<PaymasterServiceCapability> {
883
954
  /**
884
- * @generated from field: string amount = 5;
955
+ * @generated from field: string url = 1;
885
956
  */
886
- amount: string;
957
+ url: string;
887
958
  /**
888
- * @generated from field: optional trading.v1.Urgency urgency = 6;
959
+ * @generated from field: trading.v1.PaymasterServiceContext context = 2;
889
960
  */
890
- urgency?: Urgency;
891
- /**
892
- * @generated from field: repeated trading.v1.GasStrategy gas_strategies = 7;
893
- */
894
- gasStrategies: GasStrategy[];
895
- constructor(data?: PartialMessage<SendRequest>);
961
+ context?: PaymasterServiceContext;
962
+ constructor(data?: PartialMessage<PaymasterServiceCapability>);
896
963
  static readonly runtime: typeof proto3;
897
- static readonly typeName = "trading.v1.SendRequest";
964
+ static readonly typeName = "trading.v1.PaymasterServiceCapability";
898
965
  static readonly fields: FieldList;
899
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SendRequest;
900
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SendRequest;
901
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SendRequest;
902
- static equals(a: SendRequest | PlainMessage<SendRequest> | undefined, b: SendRequest | PlainMessage<SendRequest> | undefined): boolean;
966
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PaymasterServiceCapability;
967
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PaymasterServiceCapability;
968
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PaymasterServiceCapability;
969
+ static equals(a: PaymasterServiceCapability | PlainMessage<PaymasterServiceCapability> | undefined, b: PaymasterServiceCapability | PlainMessage<PaymasterServiceCapability> | undefined): boolean;
903
970
  }
904
971
  /**
905
- * @generated from message trading.v1.SendResponse
972
+ * @generated from message trading.v1.PaymasterServiceContext
906
973
  */
907
- export declare class SendResponse extends Message<SendResponse> {
974
+ export declare class PaymasterServiceContext extends Message<PaymasterServiceContext> {
908
975
  /**
909
- * @generated from field: string request_id = 1;
910
- */
911
- requestId: string;
912
- /**
913
- * @generated from field: optional trading.v1.TransactionRequest send = 2;
914
- */
915
- send?: TransactionRequest;
916
- /**
917
- * @generated from field: optional string gas_fee = 3;
918
- */
919
- gasFee?: string;
920
- /**
921
- * @generated from field: optional string gas_fee_usd = 4;
922
- */
923
- gasFeeUsd?: string;
924
- /**
925
- * @generated from field: repeated trading.v1.GasEstimate gas_estimates = 5;
976
+ * @generated from field: string sponsorship = 1;
926
977
  */
927
- gasEstimates: GasEstimate[];
928
- constructor(data?: PartialMessage<SendResponse>);
978
+ sponsorship: string;
979
+ constructor(data?: PartialMessage<PaymasterServiceContext>);
929
980
  static readonly runtime: typeof proto3;
930
- static readonly typeName = "trading.v1.SendResponse";
981
+ static readonly typeName = "trading.v1.PaymasterServiceContext";
931
982
  static readonly fields: FieldList;
932
- static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SendResponse;
933
- static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SendResponse;
934
- static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SendResponse;
935
- static equals(a: SendResponse | PlainMessage<SendResponse> | undefined, b: SendResponse | PlainMessage<SendResponse> | undefined): boolean;
983
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): PaymasterServiceContext;
984
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): PaymasterServiceContext;
985
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PaymasterServiceContext;
986
+ static equals(a: PaymasterServiceContext | PlainMessage<PaymasterServiceContext> | undefined, b: PaymasterServiceContext | PlainMessage<PaymasterServiceContext> | undefined): boolean;
936
987
  }
937
988
  /**
938
989
  * @generated from message trading.v1.V4Position
@@ -1435,6 +1486,10 @@ export declare class QuoteRequest extends Message<QuoteRequest> {
1435
1486
  * @generated from field: optional trading.v1.WalletExecutionContext wallet_execution_context = 21;
1436
1487
  */
1437
1488
  walletExecutionContext?: WalletExecutionContext;
1489
+ /**
1490
+ * @generated from field: optional string recipient = 22;
1491
+ */
1492
+ recipient?: string;
1438
1493
  constructor(data?: PartialMessage<QuoteRequest>);
1439
1494
  static readonly runtime: typeof proto3;
1440
1495
  static readonly typeName = "trading.v1.QuoteRequest";
@@ -1717,9 +1772,9 @@ export declare class V2PoolInRoute extends Message<V2PoolInRoute> {
1717
1772
  */
1718
1773
  amountOut?: string;
1719
1774
  /**
1720
- * @generated from field: optional string max_hop_slippage = 9;
1775
+ * @generated from field: optional string min_hop_price_x36 = 9;
1721
1776
  */
1722
- maxHopSlippage?: string;
1777
+ minHopPriceX36?: string;
1723
1778
  constructor(data?: PartialMessage<V2PoolInRoute>);
1724
1779
  static readonly runtime: typeof proto3;
1725
1780
  static readonly typeName = "trading.v1.V2PoolInRoute";
@@ -1774,9 +1829,9 @@ export declare class V3PoolInRoute extends Message<V3PoolInRoute> {
1774
1829
  */
1775
1830
  amountOut?: string;
1776
1831
  /**
1777
- * @generated from field: optional string max_hop_slippage = 11;
1832
+ * @generated from field: optional string min_hop_price_x36 = 11;
1778
1833
  */
1779
- maxHopSlippage?: string;
1834
+ minHopPriceX36?: string;
1780
1835
  constructor(data?: PartialMessage<V3PoolInRoute>);
1781
1836
  static readonly runtime: typeof proto3;
1782
1837
  static readonly typeName = "trading.v1.V3PoolInRoute";
@@ -1839,9 +1894,9 @@ export declare class V4PoolInRoute extends Message<V4PoolInRoute> {
1839
1894
  */
1840
1895
  amountOut?: string;
1841
1896
  /**
1842
- * @generated from field: optional string max_hop_slippage = 13;
1897
+ * @generated from field: optional string min_hop_price_x36 = 13;
1843
1898
  */
1844
- maxHopSlippage?: string;
1899
+ minHopPriceX36?: string;
1845
1900
  constructor(data?: PartialMessage<V4PoolInRoute>);
1846
1901
  static readonly runtime: typeof proto3;
1847
1902
  static readonly typeName = "trading.v1.V4PoolInRoute";
@@ -2063,6 +2118,10 @@ export declare class ClassicQuote extends Message<ClassicQuote> {
2063
2118
  * @generated from field: optional string portion_recipient = 24;
2064
2119
  */
2065
2120
  portionRecipient?: string;
2121
+ /**
2122
+ * @generated from field: optional trading.v1.SponsorshipInfo sponsorship_info = 25;
2123
+ */
2124
+ sponsorshipInfo?: SponsorshipInfo;
2066
2125
  constructor(data?: PartialMessage<ClassicQuote>);
2067
2126
  static readonly runtime: typeof proto3;
2068
2127
  static readonly typeName = "trading.v1.ClassicQuote";
@@ -2385,6 +2444,10 @@ export declare class WrapUnwrapQuote extends Message<WrapUnwrapQuote> {
2385
2444
  * @generated from field: optional string max_priority_fee_per_gas = 13;
2386
2445
  */
2387
2446
  maxPriorityFeePerGas?: string;
2447
+ /**
2448
+ * @generated from field: optional trading.v1.SponsorshipInfo sponsorship_info = 14;
2449
+ */
2450
+ sponsorshipInfo?: SponsorshipInfo;
2388
2451
  constructor(data?: PartialMessage<WrapUnwrapQuote>);
2389
2452
  static readonly runtime: typeof proto3;
2390
2453
  static readonly typeName = "trading.v1.WrapUnwrapQuote";
@@ -3813,6 +3876,10 @@ export declare class BridgeQuote extends Message<BridgeQuote> {
3813
3876
  * @generated from field: repeated trading.v1.GasEstimate gas_estimates = 19;
3814
3877
  */
3815
3878
  gasEstimates: GasEstimate[];
3879
+ /**
3880
+ * @generated from field: optional trading.v1.SponsorshipInfo sponsorship_info = 20;
3881
+ */
3882
+ sponsorshipInfo?: SponsorshipInfo;
3816
3883
  constructor(data?: PartialMessage<BridgeQuote>);
3817
3884
  static readonly runtime: typeof proto3;
3818
3885
  static readonly typeName = "trading.v1.BridgeQuote";
@@ -1019,6 +1019,87 @@ Encode4337Response.fields = proto3.util.newFieldList(() => [
1019
1019
  { no: 4, name: "gas_sponsored", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
1020
1020
  { no: 5, name: "gas_sponsorship_rejection_reason", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1021
1021
  ]);
1022
+ /**
1023
+ * @generated from message trading.v1.Swap4337Request
1024
+ */
1025
+ export class Swap4337Request extends Message {
1026
+ constructor(data) {
1027
+ super();
1028
+ /**
1029
+ * @generated from oneof trading.v1.Swap4337Request.quote
1030
+ */
1031
+ this.quote = { case: undefined };
1032
+ /**
1033
+ * @generated from field: string sender = 4;
1034
+ */
1035
+ this.sender = "";
1036
+ /**
1037
+ * @generated from field: int64 deadline = 6;
1038
+ */
1039
+ this.deadline = protoInt64.zero;
1040
+ proto3.util.initPartial(data, this);
1041
+ }
1042
+ static fromBinary(bytes, options) {
1043
+ return new Swap4337Request().fromBinary(bytes, options);
1044
+ }
1045
+ static fromJson(jsonValue, options) {
1046
+ return new Swap4337Request().fromJson(jsonValue, options);
1047
+ }
1048
+ static fromJsonString(jsonString, options) {
1049
+ return new Swap4337Request().fromJsonString(jsonString, options);
1050
+ }
1051
+ static equals(a, b) {
1052
+ return proto3.util.equals(Swap4337Request, a, b);
1053
+ }
1054
+ }
1055
+ Swap4337Request.runtime = proto3;
1056
+ Swap4337Request.typeName = "trading.v1.Swap4337Request";
1057
+ Swap4337Request.fields = proto3.util.newFieldList(() => [
1058
+ { no: 1, name: "classic_quote", kind: "message", T: ClassicQuote, oneof: "quote" },
1059
+ { no: 2, name: "wrap_unwrap_quote", kind: "message", T: WrapUnwrapQuote, oneof: "quote" },
1060
+ { no: 3, name: "bridge_quote", kind: "message", T: BridgeQuote, oneof: "quote" },
1061
+ { no: 4, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1062
+ { no: 5, name: "permit_data", kind: "message", T: PermitSingleData, opt: true },
1063
+ { no: 6, name: "deadline", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
1064
+ { no: 7, name: "eip7702_auth", kind: "message", T: Eip7702Authorization, opt: true },
1065
+ ]);
1066
+ /**
1067
+ * @generated from message trading.v1.Swap4337Response
1068
+ */
1069
+ export class Swap4337Response extends Message {
1070
+ constructor(data) {
1071
+ super();
1072
+ /**
1073
+ * @generated from field: string request_id = 1;
1074
+ */
1075
+ this.requestId = "";
1076
+ /**
1077
+ * @generated from field: bool gas_sponsored = 3;
1078
+ */
1079
+ this.gasSponsored = false;
1080
+ proto3.util.initPartial(data, this);
1081
+ }
1082
+ static fromBinary(bytes, options) {
1083
+ return new Swap4337Response().fromBinary(bytes, options);
1084
+ }
1085
+ static fromJson(jsonValue, options) {
1086
+ return new Swap4337Response().fromJson(jsonValue, options);
1087
+ }
1088
+ static fromJsonString(jsonString, options) {
1089
+ return new Swap4337Response().fromJsonString(jsonString, options);
1090
+ }
1091
+ static equals(a, b) {
1092
+ return proto3.util.equals(Swap4337Response, a, b);
1093
+ }
1094
+ }
1095
+ Swap4337Response.runtime = proto3;
1096
+ Swap4337Response.typeName = "trading.v1.Swap4337Response";
1097
+ Swap4337Response.fields = proto3.util.newFieldList(() => [
1098
+ { no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1099
+ { no: 2, name: "user_operation", kind: "message", T: UserOperation },
1100
+ { no: 3, name: "gas_sponsored", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
1101
+ { no: 4, name: "gas_sponsorship_rejection_reason", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1102
+ ]);
1022
1103
  /**
1023
1104
  * @generated from message trading.v1.Swap5792Request
1024
1105
  */
@@ -1110,100 +1191,68 @@ Swap5792Response.fields = proto3.util.newFieldList(() => [
1110
1191
  { no: 6, name: "gas_estimates", kind: "message", T: GasEstimate, repeated: true },
1111
1192
  { no: 7, name: "signature", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1112
1193
  { no: 8, name: "public_key_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1194
+ { no: 9, name: "paymaster_service", kind: "message", T: PaymasterServiceCapability, opt: true },
1113
1195
  ]);
1114
1196
  /**
1115
- * @generated from message trading.v1.SendRequest
1197
+ * @generated from message trading.v1.PaymasterServiceCapability
1116
1198
  */
1117
- export class SendRequest extends Message {
1199
+ export class PaymasterServiceCapability extends Message {
1118
1200
  constructor(data) {
1119
1201
  super();
1120
1202
  /**
1121
- * @generated from field: string sender = 1;
1122
- */
1123
- this.sender = "";
1124
- /**
1125
- * @generated from field: string recipient = 2;
1126
- */
1127
- this.recipient = "";
1128
- /**
1129
- * @generated from field: trading.v1.ChainId chain_id = 3;
1130
- */
1131
- this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
1132
- /**
1133
- * @generated from field: string token = 4;
1134
- */
1135
- this.token = "";
1136
- /**
1137
- * @generated from field: string amount = 5;
1203
+ * @generated from field: string url = 1;
1138
1204
  */
1139
- this.amount = "";
1140
- /**
1141
- * @generated from field: repeated trading.v1.GasStrategy gas_strategies = 7;
1142
- */
1143
- this.gasStrategies = [];
1205
+ this.url = "";
1144
1206
  proto3.util.initPartial(data, this);
1145
1207
  }
1146
1208
  static fromBinary(bytes, options) {
1147
- return new SendRequest().fromBinary(bytes, options);
1209
+ return new PaymasterServiceCapability().fromBinary(bytes, options);
1148
1210
  }
1149
1211
  static fromJson(jsonValue, options) {
1150
- return new SendRequest().fromJson(jsonValue, options);
1212
+ return new PaymasterServiceCapability().fromJson(jsonValue, options);
1151
1213
  }
1152
1214
  static fromJsonString(jsonString, options) {
1153
- return new SendRequest().fromJsonString(jsonString, options);
1215
+ return new PaymasterServiceCapability().fromJsonString(jsonString, options);
1154
1216
  }
1155
1217
  static equals(a, b) {
1156
- return proto3.util.equals(SendRequest, a, b);
1218
+ return proto3.util.equals(PaymasterServiceCapability, a, b);
1157
1219
  }
1158
1220
  }
1159
- SendRequest.runtime = proto3;
1160
- SendRequest.typeName = "trading.v1.SendRequest";
1161
- SendRequest.fields = proto3.util.newFieldList(() => [
1162
- { no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1163
- { no: 2, name: "recipient", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1164
- { no: 3, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
1165
- { no: 4, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1166
- { no: 5, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1167
- { no: 6, name: "urgency", kind: "enum", T: proto3.getEnumType(Urgency), opt: true },
1168
- { no: 7, name: "gas_strategies", kind: "message", T: GasStrategy, repeated: true },
1221
+ PaymasterServiceCapability.runtime = proto3;
1222
+ PaymasterServiceCapability.typeName = "trading.v1.PaymasterServiceCapability";
1223
+ PaymasterServiceCapability.fields = proto3.util.newFieldList(() => [
1224
+ { no: 1, name: "url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1225
+ { no: 2, name: "context", kind: "message", T: PaymasterServiceContext },
1169
1226
  ]);
1170
1227
  /**
1171
- * @generated from message trading.v1.SendResponse
1228
+ * @generated from message trading.v1.PaymasterServiceContext
1172
1229
  */
1173
- export class SendResponse extends Message {
1230
+ export class PaymasterServiceContext extends Message {
1174
1231
  constructor(data) {
1175
1232
  super();
1176
1233
  /**
1177
- * @generated from field: string request_id = 1;
1178
- */
1179
- this.requestId = "";
1180
- /**
1181
- * @generated from field: repeated trading.v1.GasEstimate gas_estimates = 5;
1234
+ * @generated from field: string sponsorship = 1;
1182
1235
  */
1183
- this.gasEstimates = [];
1236
+ this.sponsorship = "";
1184
1237
  proto3.util.initPartial(data, this);
1185
1238
  }
1186
1239
  static fromBinary(bytes, options) {
1187
- return new SendResponse().fromBinary(bytes, options);
1240
+ return new PaymasterServiceContext().fromBinary(bytes, options);
1188
1241
  }
1189
1242
  static fromJson(jsonValue, options) {
1190
- return new SendResponse().fromJson(jsonValue, options);
1243
+ return new PaymasterServiceContext().fromJson(jsonValue, options);
1191
1244
  }
1192
1245
  static fromJsonString(jsonString, options) {
1193
- return new SendResponse().fromJsonString(jsonString, options);
1246
+ return new PaymasterServiceContext().fromJsonString(jsonString, options);
1194
1247
  }
1195
1248
  static equals(a, b) {
1196
- return proto3.util.equals(SendResponse, a, b);
1249
+ return proto3.util.equals(PaymasterServiceContext, a, b);
1197
1250
  }
1198
1251
  }
1199
- SendResponse.runtime = proto3;
1200
- SendResponse.typeName = "trading.v1.SendResponse";
1201
- SendResponse.fields = proto3.util.newFieldList(() => [
1202
- { no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1203
- { no: 2, name: "send", kind: "message", T: TransactionRequest, opt: true },
1204
- { no: 3, name: "gas_fee", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1205
- { no: 4, name: "gas_fee_usd", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1206
- { no: 5, name: "gas_estimates", kind: "message", T: GasEstimate, repeated: true },
1252
+ PaymasterServiceContext.runtime = proto3;
1253
+ PaymasterServiceContext.typeName = "trading.v1.PaymasterServiceContext";
1254
+ PaymasterServiceContext.fields = proto3.util.newFieldList(() => [
1255
+ { no: 1, name: "sponsorship", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1207
1256
  ]);
1208
1257
  /**
1209
1258
  * @generated from message trading.v1.V4Position
@@ -1863,6 +1912,7 @@ QuoteRequest.fields = proto3.util.newFieldList(() => [
1863
1912
  { no: 19, name: "hooks_options", kind: "enum", T: proto3.getEnumType(HooksOptions), opt: true },
1864
1913
  { no: 20, name: "integrator_fees", kind: "message", T: IntegratorFee, repeated: true },
1865
1914
  { no: 21, name: "wallet_execution_context", kind: "message", T: WalletExecutionContext, opt: true },
1915
+ { no: 22, name: "recipient", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1866
1916
  ]);
1867
1917
  /**
1868
1918
  * @generated from message trading.v1.IntegratorFee
@@ -2106,7 +2156,7 @@ V2PoolInRoute.fields = proto3.util.newFieldList(() => [
2106
2156
  { no: 6, name: "reserve1", kind: "message", T: V2Reserve },
2107
2157
  { no: 7, name: "amount_in", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
2108
2158
  { no: 8, name: "amount_out", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
2109
- { no: 9, name: "max_hop_slippage", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
2159
+ { no: 9, name: "min_hop_price_x36", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
2110
2160
  ]);
2111
2161
  /**
2112
2162
  * @generated from message trading.v1.V3PoolInRoute
@@ -2166,7 +2216,7 @@ V3PoolInRoute.fields = proto3.util.newFieldList(() => [
2166
2216
  { no: 8, name: "fee", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2167
2217
  { no: 9, name: "amount_in", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
2168
2218
  { no: 10, name: "amount_out", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
2169
- { no: 11, name: "max_hop_slippage", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
2219
+ { no: 11, name: "min_hop_price_x36", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
2170
2220
  ]);
2171
2221
  /**
2172
2222
  * @generated from message trading.v1.V4PoolInRoute
@@ -2236,7 +2286,7 @@ V4PoolInRoute.fields = proto3.util.newFieldList(() => [
2236
2286
  { no: 10, name: "hooks", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2237
2287
  { no: 11, name: "amount_in", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
2238
2288
  { no: 12, name: "amount_out", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
2239
- { no: 13, name: "max_hop_slippage", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
2289
+ { no: 13, name: "min_hop_price_x36", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
2240
2290
  ]);
2241
2291
  /**
2242
2292
  * @generated from message trading.v1.TokenInRoute
@@ -2473,6 +2523,7 @@ ClassicQuote.fields = proto3.util.newFieldList(() => [
2473
2523
  { no: 22, name: "portion_bips", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
2474
2524
  { no: 23, name: "portion_amount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
2475
2525
  { no: 24, name: "portion_recipient", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
2526
+ { no: 25, name: "sponsorship_info", kind: "message", T: SponsorshipInfo, opt: true },
2476
2527
  ]);
2477
2528
  /**
2478
2529
  * @generated from message trading.v1.GasEstimate
@@ -2862,6 +2913,7 @@ WrapUnwrapQuote.fields = proto3.util.newFieldList(() => [
2862
2913
  { no: 11, name: "gas_price", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
2863
2914
  { no: 12, name: "max_fee_per_gas", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
2864
2915
  { no: 13, name: "max_priority_fee_per_gas", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
2916
+ { no: 14, name: "sponsorship_info", kind: "message", T: SponsorshipInfo, opt: true },
2865
2917
  ]);
2866
2918
  /**
2867
2919
  * @generated from message trading.v1.SwapRequest
@@ -4495,6 +4547,7 @@ BridgeQuote.fields = proto3.util.newFieldList(() => [
4495
4547
  { no: 17, name: "fill_deadline", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
4496
4548
  { no: 18, name: "gas_fee_usd", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
4497
4549
  { no: 19, name: "gas_estimates", kind: "message", T: GasEstimate, repeated: true },
4550
+ { no: 20, name: "sponsorship_info", kind: "message", T: SponsorshipInfo, opt: true },
4498
4551
  ]);
4499
4552
  /**
4500
4553
  * @generated from message trading.v1.DutchLimitOrderInfo
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniswap/client-trading",
3
- "version": "0.1.7",
3
+ "version": "0.2.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },