@uniswap/client-trading 0.5.3 → 0.5.5

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.
@@ -888,13 +888,9 @@ export declare class CheckApproval4337Request extends Message<CheckApproval4337R
888
888
  */
889
889
  urgencyOverrides?: UrgencyWithOverrides;
890
890
  /**
891
- * Explicit opt-in: when true (and paymaster_url is set) the approval is sent
892
- * to the paymaster for server-side sponsorship. When false a plain approval
893
- * UserOperation is returned.
894
- *
895
- * @generated from field: bool request_gas_sponsorship = 7;
891
+ * @generated from field: optional trading.v1.SponsorshipInfo sponsorship_info = 7;
896
892
  */
897
- requestGasSponsorship: boolean;
893
+ sponsorshipInfo?: SponsorshipInfo;
898
894
  /**
899
895
  * @generated from field: optional string token_out = 8;
900
896
  */
@@ -911,16 +907,6 @@ export declare class CheckApproval4337Request extends Message<CheckApproval4337R
911
907
  * @generated from field: optional trading.v1.Eip7702Authorization eip7702_auth = 11;
912
908
  */
913
909
  eip7702Auth?: Eip7702Authorization;
914
- /**
915
- * Paymaster endpoint for the wallet flow (server-side paymaster fill).
916
- *
917
- * @generated from field: optional string paymaster_url = 12;
918
- */
919
- paymasterUrl?: string;
920
- /**
921
- * @generated from field: google.protobuf.Struct paymaster_service_context = 13;
922
- */
923
- paymasterServiceContext?: Struct;
924
910
  constructor(data?: PartialMessage<CheckApproval4337Request>);
925
911
  static readonly runtime: typeof proto3;
926
912
  static readonly typeName = "trading.v1.CheckApproval4337Request";
@@ -951,11 +937,9 @@ export declare class CheckApproval4337Response extends Message<CheckApproval4337
951
937
  */
952
938
  gasSponsorshipRejectionReason?: string;
953
939
  /**
954
- * sponsor_metadata describes the sponsor returned by the paymaster.
955
- *
956
- * @generated from field: optional trading.v1.SponsorMetadata sponsor_metadata = 5;
940
+ * @generated from field: optional trading.v1.PaymasterServiceContext paymaster_service_context = 5;
957
941
  */
958
- sponsorMetadata?: SponsorMetadata;
942
+ paymasterServiceContext?: PaymasterServiceContext;
959
943
  constructor(data?: PartialMessage<CheckApproval4337Response>);
960
944
  static readonly runtime: typeof proto3;
961
945
  static readonly typeName = "trading.v1.CheckApproval4337Response";
@@ -1048,13 +1032,6 @@ export declare class Swap5792Request extends Message<Swap5792Request> {
1048
1032
  * @generated from field: optional bool approval_only = 9;
1049
1033
  */
1050
1034
  approvalOnly?: boolean;
1051
- /**
1052
- * Explicit opt-in to gas sponsorship for approval-only batches (mirrors
1053
- * /check_approval_4337). The swap flow still uses sponsorship_info.
1054
- *
1055
- * @generated from field: optional bool request_gas_sponsorship = 14;
1056
- */
1057
- requestGasSponsorship?: boolean;
1058
1035
  constructor(data?: PartialMessage<Swap5792Request>);
1059
1036
  static readonly runtime: typeof proto3;
1060
1037
  static readonly typeName = "trading.v1.Swap5792Request";
@@ -1115,14 +1115,6 @@ export class CheckApproval4337Request extends Message {
1115
1115
  * @generated from field: trading.v1.ChainId chain_id = 4;
1116
1116
  */
1117
1117
  this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
1118
- /**
1119
- * Explicit opt-in: when true (and paymaster_url is set) the approval is sent
1120
- * to the paymaster for server-side sponsorship. When false a plain approval
1121
- * UserOperation is returned.
1122
- *
1123
- * @generated from field: bool request_gas_sponsorship = 7;
1124
- */
1125
- this.requestGasSponsorship = false;
1126
1118
  proto3.util.initPartial(data, this);
1127
1119
  }
1128
1120
  static fromBinary(bytes, options) {
@@ -1147,13 +1139,11 @@ CheckApproval4337Request.fields = proto3.util.newFieldList(() => [
1147
1139
  { no: 4, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
1148
1140
  { no: 5, name: "urgency", kind: "enum", T: proto3.getEnumType(Urgency), opt: true },
1149
1141
  { no: 6, name: "urgency_overrides", kind: "message", T: UrgencyWithOverrides, opt: true },
1150
- { no: 7, name: "request_gas_sponsorship", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
1142
+ { no: 7, name: "sponsorship_info", kind: "message", T: SponsorshipInfo, opt: true },
1151
1143
  { no: 8, name: "token_out", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1152
1144
  { no: 9, name: "token_out_chain_id", kind: "enum", T: proto3.getEnumType(ChainId), opt: true },
1153
1145
  { no: 10, name: "wallet_execution_context", kind: "message", T: WalletExecutionContext, opt: true },
1154
1146
  { no: 11, name: "eip7702_auth", kind: "message", T: Eip7702Authorization, opt: true },
1155
- { no: 12, name: "paymaster_url", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1156
- { no: 13, name: "paymaster_service_context", kind: "message", T: Struct },
1157
1147
  ]);
1158
1148
  /**
1159
1149
  * @generated from message trading.v1.CheckApproval4337Response
@@ -1191,7 +1181,7 @@ CheckApproval4337Response.fields = proto3.util.newFieldList(() => [
1191
1181
  { no: 2, name: "user_operation", kind: "message", T: UserOperation, opt: true },
1192
1182
  { no: 3, name: "gas_sponsored", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
1193
1183
  { no: 4, name: "gas_sponsorship_rejection_reason", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1194
- { no: 5, name: "sponsor_metadata", kind: "message", T: SponsorMetadata, opt: true },
1184
+ { no: 5, name: "paymaster_service_context", kind: "message", T: PaymasterServiceContext, opt: true },
1195
1185
  ]);
1196
1186
  /**
1197
1187
  * @generated from message trading.v1.Swap5792Request
@@ -1238,7 +1228,6 @@ Swap5792Request.fields = proto3.util.newFieldList(() => [
1238
1228
  { no: 7, name: "urgency_overrides", kind: "message", T: UrgencyWithOverrides, opt: true },
1239
1229
  { no: 8, name: "sponsorship_info", kind: "message", T: SponsorshipInfo, opt: true },
1240
1230
  { no: 9, name: "approval_only", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
1241
- { no: 14, name: "request_gas_sponsorship", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
1242
1231
  ]);
1243
1232
  /**
1244
1233
  * @generated from message trading.v1.Swap5792Response
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniswap/client-trading",
3
- "version": "0.5.3",
3
+ "version": "0.5.5",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },