@uniswap/client-trading 0.1.7 → 0.1.9

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, SendRequest, SendResponse, 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
  */
@@ -182,6 +182,20 @@ export declare const encode4337: {
182
182
  readonly typeName: "trading.v1.tradingService";
183
183
  };
184
184
  };
185
+ /**
186
+ * @generated from rpc trading.v1.tradingService.Swap4337
187
+ */
188
+ export declare const swap4337: {
189
+ readonly localName: "swap4337";
190
+ readonly name: "Swap4337";
191
+ readonly kind: MethodKind.Unary;
192
+ readonly I: typeof Swap4337Request;
193
+ readonly O: typeof Swap4337Response;
194
+ readonly idempotency: MethodIdempotency.NoSideEffects;
195
+ readonly service: {
196
+ readonly typeName: "trading.v1.tradingService";
197
+ };
198
+ };
185
199
  /**
186
200
  * @generated from rpc trading.v1.tradingService.CreatePlan
187
201
  */
@@ -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, SendRequest, SendResponse, 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
  */
@@ -186,6 +186,20 @@ export const encode4337 = {
186
186
  typeName: "trading.v1.tradingService"
187
187
  }
188
188
  };
189
+ /**
190
+ * @generated from rpc trading.v1.tradingService.Swap4337
191
+ */
192
+ export const swap4337 = {
193
+ localName: "swap4337",
194
+ name: "Swap4337",
195
+ kind: MethodKind.Unary,
196
+ I: Swap4337Request,
197
+ O: Swap4337Response,
198
+ idempotency: MethodIdempotency.NoSideEffects,
199
+ service: {
200
+ typeName: "trading.v1.tradingService"
201
+ }
202
+ };
189
203
  /**
190
204
  * @generated from rpc trading.v1.tradingService.CreatePlan
191
205
  */
@@ -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, SendRequest, SendResponse, 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
@@ -136,6 +136,16 @@ export declare const tradingService: {
136
136
  readonly kind: MethodKind.Unary;
137
137
  readonly idempotency: MethodIdempotency.NoSideEffects;
138
138
  };
139
+ /**
140
+ * @generated from rpc trading.v1.tradingService.Swap4337
141
+ */
142
+ readonly swap4337: {
143
+ readonly name: "Swap4337";
144
+ readonly I: typeof Swap4337Request;
145
+ readonly O: typeof Swap4337Response;
146
+ readonly kind: MethodKind.Unary;
147
+ readonly idempotency: MethodIdempotency.NoSideEffects;
148
+ };
139
149
  /**
140
150
  * @generated from rpc trading.v1.tradingService.CreatePlan
141
151
  */
@@ -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, SendRequest, SendResponse, 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
@@ -140,6 +140,16 @@ export const tradingService = {
140
140
  kind: MethodKind.Unary,
141
141
  idempotency: MethodIdempotency.NoSideEffects,
142
142
  },
143
+ /**
144
+ * @generated from rpc trading.v1.tradingService.Swap4337
145
+ */
146
+ swap4337: {
147
+ name: "Swap4337",
148
+ I: Swap4337Request,
149
+ O: Swap4337Response,
150
+ kind: MethodKind.Unary,
151
+ idempotency: MethodIdempotency.NoSideEffects,
152
+ },
143
153
  /**
144
154
  * @generated from rpc trading.v1.tradingService.CreatePlan
145
155
  */
@@ -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";
@@ -860,6 +947,44 @@ export declare class Swap5792Response extends Message<Swap5792Response> {
860
947
  static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Swap5792Response;
861
948
  static equals(a: Swap5792Response | PlainMessage<Swap5792Response> | undefined, b: Swap5792Response | PlainMessage<Swap5792Response> | undefined): boolean;
862
949
  }
950
+ /**
951
+ * @generated from message trading.v1.PaymasterServiceCapability
952
+ */
953
+ export declare class PaymasterServiceCapability extends Message<PaymasterServiceCapability> {
954
+ /**
955
+ * @generated from field: string url = 1;
956
+ */
957
+ url: string;
958
+ /**
959
+ * @generated from field: trading.v1.PaymasterServiceContext context = 2;
960
+ */
961
+ context?: PaymasterServiceContext;
962
+ constructor(data?: PartialMessage<PaymasterServiceCapability>);
963
+ static readonly runtime: typeof proto3;
964
+ static readonly typeName = "trading.v1.PaymasterServiceCapability";
965
+ static readonly fields: FieldList;
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;
970
+ }
971
+ /**
972
+ * @generated from message trading.v1.PaymasterServiceContext
973
+ */
974
+ export declare class PaymasterServiceContext extends Message<PaymasterServiceContext> {
975
+ /**
976
+ * @generated from field: string sponsorship = 1;
977
+ */
978
+ sponsorship: string;
979
+ constructor(data?: PartialMessage<PaymasterServiceContext>);
980
+ static readonly runtime: typeof proto3;
981
+ static readonly typeName = "trading.v1.PaymasterServiceContext";
982
+ static readonly fields: FieldList;
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;
987
+ }
863
988
  /**
864
989
  * @generated from message trading.v1.SendRequest
865
990
  */
@@ -1435,6 +1560,10 @@ export declare class QuoteRequest extends Message<QuoteRequest> {
1435
1560
  * @generated from field: optional trading.v1.WalletExecutionContext wallet_execution_context = 21;
1436
1561
  */
1437
1562
  walletExecutionContext?: WalletExecutionContext;
1563
+ /**
1564
+ * @generated from field: optional string recipient = 22;
1565
+ */
1566
+ recipient?: string;
1438
1567
  constructor(data?: PartialMessage<QuoteRequest>);
1439
1568
  static readonly runtime: typeof proto3;
1440
1569
  static readonly typeName = "trading.v1.QuoteRequest";
@@ -1717,9 +1846,9 @@ export declare class V2PoolInRoute extends Message<V2PoolInRoute> {
1717
1846
  */
1718
1847
  amountOut?: string;
1719
1848
  /**
1720
- * @generated from field: optional string max_hop_slippage = 9;
1849
+ * @generated from field: optional string min_hop_price_x36 = 9;
1721
1850
  */
1722
- maxHopSlippage?: string;
1851
+ minHopPriceX36?: string;
1723
1852
  constructor(data?: PartialMessage<V2PoolInRoute>);
1724
1853
  static readonly runtime: typeof proto3;
1725
1854
  static readonly typeName = "trading.v1.V2PoolInRoute";
@@ -1774,9 +1903,9 @@ export declare class V3PoolInRoute extends Message<V3PoolInRoute> {
1774
1903
  */
1775
1904
  amountOut?: string;
1776
1905
  /**
1777
- * @generated from field: optional string max_hop_slippage = 11;
1906
+ * @generated from field: optional string min_hop_price_x36 = 11;
1778
1907
  */
1779
- maxHopSlippage?: string;
1908
+ minHopPriceX36?: string;
1780
1909
  constructor(data?: PartialMessage<V3PoolInRoute>);
1781
1910
  static readonly runtime: typeof proto3;
1782
1911
  static readonly typeName = "trading.v1.V3PoolInRoute";
@@ -1839,9 +1968,9 @@ export declare class V4PoolInRoute extends Message<V4PoolInRoute> {
1839
1968
  */
1840
1969
  amountOut?: string;
1841
1970
  /**
1842
- * @generated from field: optional string max_hop_slippage = 13;
1971
+ * @generated from field: optional string min_hop_price_x36 = 13;
1843
1972
  */
1844
- maxHopSlippage?: string;
1973
+ minHopPriceX36?: string;
1845
1974
  constructor(data?: PartialMessage<V4PoolInRoute>);
1846
1975
  static readonly runtime: typeof proto3;
1847
1976
  static readonly typeName = "trading.v1.V4PoolInRoute";
@@ -2063,6 +2192,10 @@ export declare class ClassicQuote extends Message<ClassicQuote> {
2063
2192
  * @generated from field: optional string portion_recipient = 24;
2064
2193
  */
2065
2194
  portionRecipient?: string;
2195
+ /**
2196
+ * @generated from field: optional trading.v1.SponsorshipInfo sponsorship_info = 25;
2197
+ */
2198
+ sponsorshipInfo?: SponsorshipInfo;
2066
2199
  constructor(data?: PartialMessage<ClassicQuote>);
2067
2200
  static readonly runtime: typeof proto3;
2068
2201
  static readonly typeName = "trading.v1.ClassicQuote";
@@ -2385,6 +2518,10 @@ export declare class WrapUnwrapQuote extends Message<WrapUnwrapQuote> {
2385
2518
  * @generated from field: optional string max_priority_fee_per_gas = 13;
2386
2519
  */
2387
2520
  maxPriorityFeePerGas?: string;
2521
+ /**
2522
+ * @generated from field: optional trading.v1.SponsorshipInfo sponsorship_info = 14;
2523
+ */
2524
+ sponsorshipInfo?: SponsorshipInfo;
2388
2525
  constructor(data?: PartialMessage<WrapUnwrapQuote>);
2389
2526
  static readonly runtime: typeof proto3;
2390
2527
  static readonly typeName = "trading.v1.WrapUnwrapQuote";
@@ -3813,6 +3950,10 @@ export declare class BridgeQuote extends Message<BridgeQuote> {
3813
3950
  * @generated from field: repeated trading.v1.GasEstimate gas_estimates = 19;
3814
3951
  */
3815
3952
  gasEstimates: GasEstimate[];
3953
+ /**
3954
+ * @generated from field: optional trading.v1.SponsorshipInfo sponsorship_info = 20;
3955
+ */
3956
+ sponsorshipInfo?: SponsorshipInfo;
3816
3957
  constructor(data?: PartialMessage<BridgeQuote>);
3817
3958
  static readonly runtime: typeof proto3;
3818
3959
  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,6 +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 },
1195
+ ]);
1196
+ /**
1197
+ * @generated from message trading.v1.PaymasterServiceCapability
1198
+ */
1199
+ export class PaymasterServiceCapability extends Message {
1200
+ constructor(data) {
1201
+ super();
1202
+ /**
1203
+ * @generated from field: string url = 1;
1204
+ */
1205
+ this.url = "";
1206
+ proto3.util.initPartial(data, this);
1207
+ }
1208
+ static fromBinary(bytes, options) {
1209
+ return new PaymasterServiceCapability().fromBinary(bytes, options);
1210
+ }
1211
+ static fromJson(jsonValue, options) {
1212
+ return new PaymasterServiceCapability().fromJson(jsonValue, options);
1213
+ }
1214
+ static fromJsonString(jsonString, options) {
1215
+ return new PaymasterServiceCapability().fromJsonString(jsonString, options);
1216
+ }
1217
+ static equals(a, b) {
1218
+ return proto3.util.equals(PaymasterServiceCapability, a, b);
1219
+ }
1220
+ }
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 },
1226
+ ]);
1227
+ /**
1228
+ * @generated from message trading.v1.PaymasterServiceContext
1229
+ */
1230
+ export class PaymasterServiceContext extends Message {
1231
+ constructor(data) {
1232
+ super();
1233
+ /**
1234
+ * @generated from field: string sponsorship = 1;
1235
+ */
1236
+ this.sponsorship = "";
1237
+ proto3.util.initPartial(data, this);
1238
+ }
1239
+ static fromBinary(bytes, options) {
1240
+ return new PaymasterServiceContext().fromBinary(bytes, options);
1241
+ }
1242
+ static fromJson(jsonValue, options) {
1243
+ return new PaymasterServiceContext().fromJson(jsonValue, options);
1244
+ }
1245
+ static fromJsonString(jsonString, options) {
1246
+ return new PaymasterServiceContext().fromJsonString(jsonString, options);
1247
+ }
1248
+ static equals(a, b) {
1249
+ return proto3.util.equals(PaymasterServiceContext, a, b);
1250
+ }
1251
+ }
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 */ },
1113
1256
  ]);
1114
1257
  /**
1115
1258
  * @generated from message trading.v1.SendRequest
@@ -1863,6 +2006,7 @@ QuoteRequest.fields = proto3.util.newFieldList(() => [
1863
2006
  { no: 19, name: "hooks_options", kind: "enum", T: proto3.getEnumType(HooksOptions), opt: true },
1864
2007
  { no: 20, name: "integrator_fees", kind: "message", T: IntegratorFee, repeated: true },
1865
2008
  { no: 21, name: "wallet_execution_context", kind: "message", T: WalletExecutionContext, opt: true },
2009
+ { no: 22, name: "recipient", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1866
2010
  ]);
1867
2011
  /**
1868
2012
  * @generated from message trading.v1.IntegratorFee
@@ -2106,7 +2250,7 @@ V2PoolInRoute.fields = proto3.util.newFieldList(() => [
2106
2250
  { no: 6, name: "reserve1", kind: "message", T: V2Reserve },
2107
2251
  { no: 7, name: "amount_in", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
2108
2252
  { 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 },
2253
+ { no: 9, name: "min_hop_price_x36", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
2110
2254
  ]);
2111
2255
  /**
2112
2256
  * @generated from message trading.v1.V3PoolInRoute
@@ -2166,7 +2310,7 @@ V3PoolInRoute.fields = proto3.util.newFieldList(() => [
2166
2310
  { no: 8, name: "fee", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2167
2311
  { no: 9, name: "amount_in", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
2168
2312
  { 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 },
2313
+ { no: 11, name: "min_hop_price_x36", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
2170
2314
  ]);
2171
2315
  /**
2172
2316
  * @generated from message trading.v1.V4PoolInRoute
@@ -2236,7 +2380,7 @@ V4PoolInRoute.fields = proto3.util.newFieldList(() => [
2236
2380
  { no: 10, name: "hooks", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2237
2381
  { no: 11, name: "amount_in", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
2238
2382
  { 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 },
2383
+ { no: 13, name: "min_hop_price_x36", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
2240
2384
  ]);
2241
2385
  /**
2242
2386
  * @generated from message trading.v1.TokenInRoute
@@ -2473,6 +2617,7 @@ ClassicQuote.fields = proto3.util.newFieldList(() => [
2473
2617
  { no: 22, name: "portion_bips", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
2474
2618
  { no: 23, name: "portion_amount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
2475
2619
  { no: 24, name: "portion_recipient", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
2620
+ { no: 25, name: "sponsorship_info", kind: "message", T: SponsorshipInfo, opt: true },
2476
2621
  ]);
2477
2622
  /**
2478
2623
  * @generated from message trading.v1.GasEstimate
@@ -2862,6 +3007,7 @@ WrapUnwrapQuote.fields = proto3.util.newFieldList(() => [
2862
3007
  { no: 11, name: "gas_price", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
2863
3008
  { no: 12, name: "max_fee_per_gas", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
2864
3009
  { no: 13, name: "max_priority_fee_per_gas", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
3010
+ { no: 14, name: "sponsorship_info", kind: "message", T: SponsorshipInfo, opt: true },
2865
3011
  ]);
2866
3012
  /**
2867
3013
  * @generated from message trading.v1.SwapRequest
@@ -4495,6 +4641,7 @@ BridgeQuote.fields = proto3.util.newFieldList(() => [
4495
4641
  { no: 17, name: "fill_deadline", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
4496
4642
  { no: 18, name: "gas_fee_usd", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
4497
4643
  { no: 19, name: "gas_estimates", kind: "message", T: GasEstimate, repeated: true },
4644
+ { no: 20, name: "sponsorship_info", kind: "message", T: SponsorshipInfo, opt: true },
4498
4645
  ]);
4499
4646
  /**
4500
4647
  * @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.1.9",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },