@uniswap/client-trading 0.5.1 → 0.5.2
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-tradingService_connectquery.d.ts +15 -1
- package/dist/trading/v1/api-tradingService_connectquery.js +15 -1
- package/dist/trading/v1/api_connect.d.ts +11 -1
- package/dist/trading/v1/api_connect.js +11 -1
- package/dist/trading/v1/api_pb.d.ts +106 -0
- package/dist/trading/v1/api_pb.js +100 -0
- package/package.json +1 -1
|
@@ -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, PermissionsRequest, PermissionsResponse, PlanResponse, QuoteRequest, QuoteResponse, Swap4337Request, Swap4337Response, Swap5792Request, Swap5792Response, Swap7702Request, Swap7702Response, SwappableTokensRequest, SwappableTokensResponse, SwapRequest, SwapResponse, UpdatePlanRequest } from "./api_pb.js";
|
|
2
|
+
import { CheckApproval4337Request, CheckApproval4337Response, CheckApprovalRequest, CheckApprovalResponse, CheckWalletDelegationRequest, CheckWalletDelegationResponse, CreatePlanRequest, DocsRequest, DocsResponse, Encode4337Request, Encode4337Response, Encode7702Request, Encode7702Response, GetOrdersRequest, GetOrdersResponse, GetPlanRequest, GetPlansRequest, GetPlansResponse, GetSwapsRequest, GetSwapsResponse, OrderRequest, OrderResponse, PermissionsRequest, PermissionsResponse, 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
|
*/
|
|
@@ -196,6 +196,20 @@ export declare const swap4337: {
|
|
|
196
196
|
readonly typeName: "trading.v1.tradingService";
|
|
197
197
|
};
|
|
198
198
|
};
|
|
199
|
+
/**
|
|
200
|
+
* @generated from rpc trading.v1.tradingService.CheckApproval4337
|
|
201
|
+
*/
|
|
202
|
+
export declare const checkApproval4337: {
|
|
203
|
+
readonly localName: "checkApproval4337";
|
|
204
|
+
readonly name: "CheckApproval4337";
|
|
205
|
+
readonly kind: MethodKind.Unary;
|
|
206
|
+
readonly I: typeof CheckApproval4337Request;
|
|
207
|
+
readonly O: typeof CheckApproval4337Response;
|
|
208
|
+
readonly idempotency: MethodIdempotency.NoSideEffects;
|
|
209
|
+
readonly service: {
|
|
210
|
+
readonly typeName: "trading.v1.tradingService";
|
|
211
|
+
};
|
|
212
|
+
};
|
|
199
213
|
/**
|
|
200
214
|
* @generated from rpc trading.v1.tradingService.CreatePlan
|
|
201
215
|
*/
|
|
@@ -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, PermissionsRequest, PermissionsResponse, PlanResponse, QuoteRequest, QuoteResponse, Swap4337Request, Swap4337Response, Swap5792Request, Swap5792Response, Swap7702Request, Swap7702Response, SwappableTokensRequest, SwappableTokensResponse, SwapRequest, SwapResponse, UpdatePlanRequest } from "./api_pb.js";
|
|
6
|
+
import { CheckApproval4337Request, CheckApproval4337Response, CheckApprovalRequest, CheckApprovalResponse, CheckWalletDelegationRequest, CheckWalletDelegationResponse, CreatePlanRequest, DocsRequest, DocsResponse, Encode4337Request, Encode4337Response, Encode7702Request, Encode7702Response, GetOrdersRequest, GetOrdersResponse, GetPlanRequest, GetPlansRequest, GetPlansResponse, GetSwapsRequest, GetSwapsResponse, OrderRequest, OrderResponse, PermissionsRequest, PermissionsResponse, 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
|
*/
|
|
@@ -200,6 +200,20 @@ export const swap4337 = {
|
|
|
200
200
|
typeName: "trading.v1.tradingService"
|
|
201
201
|
}
|
|
202
202
|
};
|
|
203
|
+
/**
|
|
204
|
+
* @generated from rpc trading.v1.tradingService.CheckApproval4337
|
|
205
|
+
*/
|
|
206
|
+
export const checkApproval4337 = {
|
|
207
|
+
localName: "checkApproval4337",
|
|
208
|
+
name: "CheckApproval4337",
|
|
209
|
+
kind: MethodKind.Unary,
|
|
210
|
+
I: CheckApproval4337Request,
|
|
211
|
+
O: CheckApproval4337Response,
|
|
212
|
+
idempotency: MethodIdempotency.NoSideEffects,
|
|
213
|
+
service: {
|
|
214
|
+
typeName: "trading.v1.tradingService"
|
|
215
|
+
}
|
|
216
|
+
};
|
|
203
217
|
/**
|
|
204
218
|
* @generated from rpc trading.v1.tradingService.CreatePlan
|
|
205
219
|
*/
|
|
@@ -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, PermissionsRequest, PermissionsResponse, PlanResponse, QuoteRequest, QuoteResponse, Swap4337Request, Swap4337Response, Swap5792Request, Swap5792Response, Swap7702Request, Swap7702Response, SwappableTokensRequest, SwappableTokensResponse, SwapRequest, SwapResponse, UpdatePlanRequest } from "./api_pb.js";
|
|
1
|
+
import { CheckApproval4337Request, CheckApproval4337Response, CheckApprovalRequest, CheckApprovalResponse, CheckWalletDelegationRequest, CheckWalletDelegationResponse, CreatePlanRequest, DocsRequest, DocsResponse, Encode4337Request, Encode4337Response, Encode7702Request, Encode7702Response, GetOrdersRequest, GetOrdersResponse, GetPlanRequest, GetPlansRequest, GetPlansResponse, GetSwapsRequest, GetSwapsResponse, OrderRequest, OrderResponse, PermissionsRequest, PermissionsResponse, 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
|
|
@@ -146,6 +146,16 @@ export declare const tradingService: {
|
|
|
146
146
|
readonly kind: MethodKind.Unary;
|
|
147
147
|
readonly idempotency: MethodIdempotency.NoSideEffects;
|
|
148
148
|
};
|
|
149
|
+
/**
|
|
150
|
+
* @generated from rpc trading.v1.tradingService.CheckApproval4337
|
|
151
|
+
*/
|
|
152
|
+
readonly checkApproval4337: {
|
|
153
|
+
readonly name: "CheckApproval4337";
|
|
154
|
+
readonly I: typeof CheckApproval4337Request;
|
|
155
|
+
readonly O: typeof CheckApproval4337Response;
|
|
156
|
+
readonly kind: MethodKind.Unary;
|
|
157
|
+
readonly idempotency: MethodIdempotency.NoSideEffects;
|
|
158
|
+
};
|
|
149
159
|
/**
|
|
150
160
|
* @generated from rpc trading.v1.tradingService.CreatePlan
|
|
151
161
|
*/
|
|
@@ -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, PermissionsRequest, PermissionsResponse, PlanResponse, QuoteRequest, QuoteResponse, Swap4337Request, Swap4337Response, Swap5792Request, Swap5792Response, Swap7702Request, Swap7702Response, SwappableTokensRequest, SwappableTokensResponse, SwapRequest, SwapResponse, UpdatePlanRequest } from "./api_pb.js";
|
|
5
|
+
import { CheckApproval4337Request, CheckApproval4337Response, CheckApprovalRequest, CheckApprovalResponse, CheckWalletDelegationRequest, CheckWalletDelegationResponse, CreatePlanRequest, DocsRequest, DocsResponse, Encode4337Request, Encode4337Response, Encode7702Request, Encode7702Response, GetOrdersRequest, GetOrdersResponse, GetPlanRequest, GetPlansRequest, GetPlansResponse, GetSwapsRequest, GetSwapsResponse, OrderRequest, OrderResponse, PermissionsRequest, PermissionsResponse, 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
|
|
@@ -150,6 +150,16 @@ export const tradingService = {
|
|
|
150
150
|
kind: MethodKind.Unary,
|
|
151
151
|
idempotency: MethodIdempotency.NoSideEffects,
|
|
152
152
|
},
|
|
153
|
+
/**
|
|
154
|
+
* @generated from rpc trading.v1.tradingService.CheckApproval4337
|
|
155
|
+
*/
|
|
156
|
+
checkApproval4337: {
|
|
157
|
+
name: "CheckApproval4337",
|
|
158
|
+
I: CheckApproval4337Request,
|
|
159
|
+
O: CheckApproval4337Response,
|
|
160
|
+
kind: MethodKind.Unary,
|
|
161
|
+
idempotency: MethodIdempotency.NoSideEffects,
|
|
162
|
+
},
|
|
153
163
|
/**
|
|
154
164
|
* @generated from rpc trading.v1.tradingService.CreatePlan
|
|
155
165
|
*/
|
|
@@ -859,6 +859,112 @@ export declare class Swap4337Response extends Message<Swap4337Response> {
|
|
|
859
859
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Swap4337Response;
|
|
860
860
|
static equals(a: Swap4337Response | PlainMessage<Swap4337Response> | undefined, b: Swap4337Response | PlainMessage<Swap4337Response> | undefined): boolean;
|
|
861
861
|
}
|
|
862
|
+
/**
|
|
863
|
+
* @generated from message trading.v1.CheckApproval4337Request
|
|
864
|
+
*/
|
|
865
|
+
export declare class CheckApproval4337Request extends Message<CheckApproval4337Request> {
|
|
866
|
+
/**
|
|
867
|
+
* @generated from field: string sender = 1;
|
|
868
|
+
*/
|
|
869
|
+
sender: string;
|
|
870
|
+
/**
|
|
871
|
+
* @generated from field: string token = 2;
|
|
872
|
+
*/
|
|
873
|
+
token: string;
|
|
874
|
+
/**
|
|
875
|
+
* @generated from field: string amount = 3;
|
|
876
|
+
*/
|
|
877
|
+
amount: string;
|
|
878
|
+
/**
|
|
879
|
+
* @generated from field: trading.v1.ChainId chain_id = 4;
|
|
880
|
+
*/
|
|
881
|
+
chainId: ChainId;
|
|
882
|
+
/**
|
|
883
|
+
* @generated from field: optional trading.v1.Urgency urgency = 5;
|
|
884
|
+
*/
|
|
885
|
+
urgency?: Urgency;
|
|
886
|
+
/**
|
|
887
|
+
* @generated from field: optional trading.v1.UrgencyWithOverrides urgency_overrides = 6;
|
|
888
|
+
*/
|
|
889
|
+
urgencyOverrides?: UrgencyWithOverrides;
|
|
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;
|
|
896
|
+
*/
|
|
897
|
+
requestGasSponsorship: boolean;
|
|
898
|
+
/**
|
|
899
|
+
* @generated from field: optional string token_out = 8;
|
|
900
|
+
*/
|
|
901
|
+
tokenOut?: string;
|
|
902
|
+
/**
|
|
903
|
+
* @generated from field: optional trading.v1.ChainId token_out_chain_id = 9;
|
|
904
|
+
*/
|
|
905
|
+
tokenOutChainId?: ChainId;
|
|
906
|
+
/**
|
|
907
|
+
* @generated from field: optional trading.v1.WalletExecutionContext wallet_execution_context = 10;
|
|
908
|
+
*/
|
|
909
|
+
walletExecutionContext?: WalletExecutionContext;
|
|
910
|
+
/**
|
|
911
|
+
* @generated from field: optional trading.v1.Eip7702Authorization eip7702_auth = 11;
|
|
912
|
+
*/
|
|
913
|
+
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
|
+
constructor(data?: PartialMessage<CheckApproval4337Request>);
|
|
925
|
+
static readonly runtime: typeof proto3;
|
|
926
|
+
static readonly typeName = "trading.v1.CheckApproval4337Request";
|
|
927
|
+
static readonly fields: FieldList;
|
|
928
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CheckApproval4337Request;
|
|
929
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CheckApproval4337Request;
|
|
930
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CheckApproval4337Request;
|
|
931
|
+
static equals(a: CheckApproval4337Request | PlainMessage<CheckApproval4337Request> | undefined, b: CheckApproval4337Request | PlainMessage<CheckApproval4337Request> | undefined): boolean;
|
|
932
|
+
}
|
|
933
|
+
/**
|
|
934
|
+
* @generated from message trading.v1.CheckApproval4337Response
|
|
935
|
+
*/
|
|
936
|
+
export declare class CheckApproval4337Response extends Message<CheckApproval4337Response> {
|
|
937
|
+
/**
|
|
938
|
+
* @generated from field: string request_id = 1;
|
|
939
|
+
*/
|
|
940
|
+
requestId: string;
|
|
941
|
+
/**
|
|
942
|
+
* @generated from field: optional trading.v1.UserOperation user_operation = 2;
|
|
943
|
+
*/
|
|
944
|
+
userOperation?: UserOperation;
|
|
945
|
+
/**
|
|
946
|
+
* @generated from field: bool gas_sponsored = 3;
|
|
947
|
+
*/
|
|
948
|
+
gasSponsored: boolean;
|
|
949
|
+
/**
|
|
950
|
+
* @generated from field: optional string gas_sponsorship_rejection_reason = 4;
|
|
951
|
+
*/
|
|
952
|
+
gasSponsorshipRejectionReason?: string;
|
|
953
|
+
/**
|
|
954
|
+
* sponsor_metadata describes the sponsor returned by the paymaster.
|
|
955
|
+
*
|
|
956
|
+
* @generated from field: optional trading.v1.SponsorMetadata sponsor_metadata = 5;
|
|
957
|
+
*/
|
|
958
|
+
sponsorMetadata?: SponsorMetadata;
|
|
959
|
+
constructor(data?: PartialMessage<CheckApproval4337Response>);
|
|
960
|
+
static readonly runtime: typeof proto3;
|
|
961
|
+
static readonly typeName = "trading.v1.CheckApproval4337Response";
|
|
962
|
+
static readonly fields: FieldList;
|
|
963
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): CheckApproval4337Response;
|
|
964
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): CheckApproval4337Response;
|
|
965
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): CheckApproval4337Response;
|
|
966
|
+
static equals(a: CheckApproval4337Response | PlainMessage<CheckApproval4337Response> | undefined, b: CheckApproval4337Response | PlainMessage<CheckApproval4337Response> | undefined): boolean;
|
|
967
|
+
}
|
|
862
968
|
/**
|
|
863
969
|
* @generated from message trading.v1.Swap5792Request
|
|
864
970
|
*/
|
|
@@ -1093,6 +1093,106 @@ Swap4337Response.fields = proto3.util.newFieldList(() => [
|
|
|
1093
1093
|
{ no: 4, name: "gas_sponsorship_rejection_reason", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1094
1094
|
{ no: 5, name: "paymaster_service_context", kind: "message", T: PaymasterServiceContext, opt: true },
|
|
1095
1095
|
]);
|
|
1096
|
+
/**
|
|
1097
|
+
* @generated from message trading.v1.CheckApproval4337Request
|
|
1098
|
+
*/
|
|
1099
|
+
export class CheckApproval4337Request extends Message {
|
|
1100
|
+
constructor(data) {
|
|
1101
|
+
super();
|
|
1102
|
+
/**
|
|
1103
|
+
* @generated from field: string sender = 1;
|
|
1104
|
+
*/
|
|
1105
|
+
this.sender = "";
|
|
1106
|
+
/**
|
|
1107
|
+
* @generated from field: string token = 2;
|
|
1108
|
+
*/
|
|
1109
|
+
this.token = "";
|
|
1110
|
+
/**
|
|
1111
|
+
* @generated from field: string amount = 3;
|
|
1112
|
+
*/
|
|
1113
|
+
this.amount = "";
|
|
1114
|
+
/**
|
|
1115
|
+
* @generated from field: trading.v1.ChainId chain_id = 4;
|
|
1116
|
+
*/
|
|
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
|
+
proto3.util.initPartial(data, this);
|
|
1127
|
+
}
|
|
1128
|
+
static fromBinary(bytes, options) {
|
|
1129
|
+
return new CheckApproval4337Request().fromBinary(bytes, options);
|
|
1130
|
+
}
|
|
1131
|
+
static fromJson(jsonValue, options) {
|
|
1132
|
+
return new CheckApproval4337Request().fromJson(jsonValue, options);
|
|
1133
|
+
}
|
|
1134
|
+
static fromJsonString(jsonString, options) {
|
|
1135
|
+
return new CheckApproval4337Request().fromJsonString(jsonString, options);
|
|
1136
|
+
}
|
|
1137
|
+
static equals(a, b) {
|
|
1138
|
+
return proto3.util.equals(CheckApproval4337Request, a, b);
|
|
1139
|
+
}
|
|
1140
|
+
}
|
|
1141
|
+
CheckApproval4337Request.runtime = proto3;
|
|
1142
|
+
CheckApproval4337Request.typeName = "trading.v1.CheckApproval4337Request";
|
|
1143
|
+
CheckApproval4337Request.fields = proto3.util.newFieldList(() => [
|
|
1144
|
+
{ no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1145
|
+
{ no: 2, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1146
|
+
{ no: 3, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1147
|
+
{ no: 4, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
|
|
1148
|
+
{ no: 5, name: "urgency", kind: "enum", T: proto3.getEnumType(Urgency), opt: true },
|
|
1149
|
+
{ no: 6, name: "urgency_overrides", kind: "message", T: UrgencyWithOverrides, opt: true },
|
|
1150
|
+
{ no: 7, name: "request_gas_sponsorship", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
1151
|
+
{ no: 8, name: "token_out", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1152
|
+
{ no: 9, name: "token_out_chain_id", kind: "enum", T: proto3.getEnumType(ChainId), opt: true },
|
|
1153
|
+
{ no: 10, name: "wallet_execution_context", kind: "message", T: WalletExecutionContext, opt: true },
|
|
1154
|
+
{ 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
|
+
]);
|
|
1158
|
+
/**
|
|
1159
|
+
* @generated from message trading.v1.CheckApproval4337Response
|
|
1160
|
+
*/
|
|
1161
|
+
export class CheckApproval4337Response extends Message {
|
|
1162
|
+
constructor(data) {
|
|
1163
|
+
super();
|
|
1164
|
+
/**
|
|
1165
|
+
* @generated from field: string request_id = 1;
|
|
1166
|
+
*/
|
|
1167
|
+
this.requestId = "";
|
|
1168
|
+
/**
|
|
1169
|
+
* @generated from field: bool gas_sponsored = 3;
|
|
1170
|
+
*/
|
|
1171
|
+
this.gasSponsored = false;
|
|
1172
|
+
proto3.util.initPartial(data, this);
|
|
1173
|
+
}
|
|
1174
|
+
static fromBinary(bytes, options) {
|
|
1175
|
+
return new CheckApproval4337Response().fromBinary(bytes, options);
|
|
1176
|
+
}
|
|
1177
|
+
static fromJson(jsonValue, options) {
|
|
1178
|
+
return new CheckApproval4337Response().fromJson(jsonValue, options);
|
|
1179
|
+
}
|
|
1180
|
+
static fromJsonString(jsonString, options) {
|
|
1181
|
+
return new CheckApproval4337Response().fromJsonString(jsonString, options);
|
|
1182
|
+
}
|
|
1183
|
+
static equals(a, b) {
|
|
1184
|
+
return proto3.util.equals(CheckApproval4337Response, a, b);
|
|
1185
|
+
}
|
|
1186
|
+
}
|
|
1187
|
+
CheckApproval4337Response.runtime = proto3;
|
|
1188
|
+
CheckApproval4337Response.typeName = "trading.v1.CheckApproval4337Response";
|
|
1189
|
+
CheckApproval4337Response.fields = proto3.util.newFieldList(() => [
|
|
1190
|
+
{ no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1191
|
+
{ no: 2, name: "user_operation", kind: "message", T: UserOperation, opt: true },
|
|
1192
|
+
{ no: 3, name: "gas_sponsored", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
1193
|
+
{ 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 },
|
|
1195
|
+
]);
|
|
1096
1196
|
/**
|
|
1097
1197
|
* @generated from message trading.v1.Swap5792Request
|
|
1098
1198
|
*/
|