@uniswap/client-trading 0.5.2 → 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.
- package/dist/trading/v1/api_pb.d.ts +38 -20
- package/dist/trading/v1/api_pb.js +7 -12
- package/package.json +1 -1
|
@@ -888,13 +888,9 @@ export declare class CheckApproval4337Request extends Message<CheckApproval4337R
|
|
|
888
888
|
*/
|
|
889
889
|
urgencyOverrides?: UrgencyWithOverrides;
|
|
890
890
|
/**
|
|
891
|
-
*
|
|
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
|
-
|
|
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
|
-
*
|
|
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
|
-
|
|
942
|
+
paymasterServiceContext?: PaymasterServiceContext;
|
|
959
943
|
constructor(data?: PartialMessage<CheckApproval4337Response>);
|
|
960
944
|
static readonly runtime: typeof proto3;
|
|
961
945
|
static readonly typeName = "trading.v1.CheckApproval4337Response";
|
|
@@ -990,6 +974,33 @@ export declare class Swap5792Request extends Message<Swap5792Request> {
|
|
|
990
974
|
*/
|
|
991
975
|
value: BridgeQuote;
|
|
992
976
|
case: "bridgeQuote";
|
|
977
|
+
} | {
|
|
978
|
+
/**
|
|
979
|
+
* UniswapX quotes are only accepted with approval_only = true (the swap
|
|
980
|
+
* itself is an off-chain signed order).
|
|
981
|
+
*
|
|
982
|
+
* @generated from field: trading.v1.DutchLimitQuote dutch_limit_quote = 10;
|
|
983
|
+
*/
|
|
984
|
+
value: DutchLimitQuote;
|
|
985
|
+
case: "dutchLimitQuote";
|
|
986
|
+
} | {
|
|
987
|
+
/**
|
|
988
|
+
* @generated from field: trading.v1.DutchLimitV2Quote dutch_limit_v2_quote = 11;
|
|
989
|
+
*/
|
|
990
|
+
value: DutchLimitV2Quote;
|
|
991
|
+
case: "dutchLimitV2Quote";
|
|
992
|
+
} | {
|
|
993
|
+
/**
|
|
994
|
+
* @generated from field: trading.v1.DutchLimitV3Quote dutch_limit_v3_quote = 12;
|
|
995
|
+
*/
|
|
996
|
+
value: DutchLimitV3Quote;
|
|
997
|
+
case: "dutchLimitV3Quote";
|
|
998
|
+
} | {
|
|
999
|
+
/**
|
|
1000
|
+
* @generated from field: trading.v1.PriorityQuote priority_quote = 13;
|
|
1001
|
+
*/
|
|
1002
|
+
value: PriorityQuote;
|
|
1003
|
+
case: "priorityQuote";
|
|
993
1004
|
} | {
|
|
994
1005
|
case: undefined;
|
|
995
1006
|
value?: undefined;
|
|
@@ -1014,6 +1025,13 @@ export declare class Swap5792Request extends Message<Swap5792Request> {
|
|
|
1014
1025
|
* @generated from field: optional trading.v1.SponsorshipInfo sponsorship_info = 8;
|
|
1015
1026
|
*/
|
|
1016
1027
|
sponsorshipInfo?: SponsorshipInfo;
|
|
1028
|
+
/**
|
|
1029
|
+
* Return only the ERC-20 approval call(s) for the quote's input token —
|
|
1030
|
+
* no swap transaction. Required for UniswapX quotes.
|
|
1031
|
+
*
|
|
1032
|
+
* @generated from field: optional bool approval_only = 9;
|
|
1033
|
+
*/
|
|
1034
|
+
approvalOnly?: boolean;
|
|
1017
1035
|
constructor(data?: PartialMessage<Swap5792Request>);
|
|
1018
1036
|
static readonly runtime: typeof proto3;
|
|
1019
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: "
|
|
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: "
|
|
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
|
|
@@ -1228,11 +1218,16 @@ Swap5792Request.fields = proto3.util.newFieldList(() => [
|
|
|
1228
1218
|
{ no: 1, name: "classic_quote", kind: "message", T: ClassicQuote, oneof: "quote" },
|
|
1229
1219
|
{ no: 2, name: "wrap_unwrap_quote", kind: "message", T: WrapUnwrapQuote, oneof: "quote" },
|
|
1230
1220
|
{ no: 3, name: "bridge_quote", kind: "message", T: BridgeQuote, oneof: "quote" },
|
|
1221
|
+
{ no: 10, name: "dutch_limit_quote", kind: "message", T: DutchLimitQuote, oneof: "quote" },
|
|
1222
|
+
{ no: 11, name: "dutch_limit_v2_quote", kind: "message", T: DutchLimitV2Quote, oneof: "quote" },
|
|
1223
|
+
{ no: 12, name: "dutch_limit_v3_quote", kind: "message", T: DutchLimitV3Quote, oneof: "quote" },
|
|
1224
|
+
{ no: 13, name: "priority_quote", kind: "message", T: PriorityQuote, oneof: "quote" },
|
|
1231
1225
|
{ no: 4, name: "permit_data", kind: "message", T: PermitSingleData, opt: true },
|
|
1232
1226
|
{ no: 5, name: "deadline", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
1233
1227
|
{ no: 6, name: "urgency", kind: "enum", T: proto3.getEnumType(Urgency), opt: true },
|
|
1234
1228
|
{ no: 7, name: "urgency_overrides", kind: "message", T: UrgencyWithOverrides, opt: true },
|
|
1235
1229
|
{ no: 8, name: "sponsorship_info", kind: "message", T: SponsorshipInfo, opt: true },
|
|
1230
|
+
{ no: 9, name: "approval_only", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
1236
1231
|
]);
|
|
1237
1232
|
/**
|
|
1238
1233
|
* @generated from message trading.v1.Swap5792Response
|