@uniswap/client-trading 0.4.4 → 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 +131 -1
- package/dist/trading/v1/api_pb.js +114 -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
|
*/
|
|
@@ -141,7 +141,11 @@ export declare enum ChainId {
|
|
|
141
141
|
/**
|
|
142
142
|
* @generated from enum value: ROBINHOOD = 4663;
|
|
143
143
|
*/
|
|
144
|
-
ROBINHOOD = 4663
|
|
144
|
+
ROBINHOOD = 4663,
|
|
145
|
+
/**
|
|
146
|
+
* @generated from enum value: ARC = 5042;
|
|
147
|
+
*/
|
|
148
|
+
ARC = 5042
|
|
145
149
|
}
|
|
146
150
|
/**
|
|
147
151
|
* @generated from enum trading.v1.Protocols
|
|
@@ -637,6 +641,10 @@ export declare class Encode4337Request extends Message<Encode4337Request> {
|
|
|
637
641
|
* @generated from field: optional trading.v1.Eip7702Authorization eip7702_auth = 6;
|
|
638
642
|
*/
|
|
639
643
|
eip7702Auth?: Eip7702Authorization;
|
|
644
|
+
/**
|
|
645
|
+
* @generated from field: optional trading.v1.WalletExecutionContext wallet_execution_context = 7;
|
|
646
|
+
*/
|
|
647
|
+
walletExecutionContext?: WalletExecutionContext;
|
|
640
648
|
constructor(data?: PartialMessage<Encode4337Request>);
|
|
641
649
|
static readonly runtime: typeof proto3;
|
|
642
650
|
static readonly typeName = "trading.v1.Encode4337Request";
|
|
@@ -805,6 +813,10 @@ export declare class Swap4337Request extends Message<Swap4337Request> {
|
|
|
805
813
|
* @generated from field: optional trading.v1.SponsorshipInfo sponsorship_info = 8;
|
|
806
814
|
*/
|
|
807
815
|
sponsorshipInfo?: SponsorshipInfo;
|
|
816
|
+
/**
|
|
817
|
+
* @generated from field: optional trading.v1.WalletExecutionContext wallet_execution_context = 9;
|
|
818
|
+
*/
|
|
819
|
+
walletExecutionContext?: WalletExecutionContext;
|
|
808
820
|
constructor(data?: PartialMessage<Swap4337Request>);
|
|
809
821
|
static readonly runtime: typeof proto3;
|
|
810
822
|
static readonly typeName = "trading.v1.Swap4337Request";
|
|
@@ -847,6 +859,112 @@ export declare class Swap4337Response extends Message<Swap4337Response> {
|
|
|
847
859
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Swap4337Response;
|
|
848
860
|
static equals(a: Swap4337Response | PlainMessage<Swap4337Response> | undefined, b: Swap4337Response | PlainMessage<Swap4337Response> | undefined): boolean;
|
|
849
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
|
+
}
|
|
850
968
|
/**
|
|
851
969
|
* @generated from message trading.v1.Swap5792Request
|
|
852
970
|
*/
|
|
@@ -3262,6 +3380,10 @@ export declare class SwapRequest extends Message<SwapRequest> {
|
|
|
3262
3380
|
* @generated from field: optional trading.v1.UrgencyWithOverrides urgency_overrides = 14;
|
|
3263
3381
|
*/
|
|
3264
3382
|
urgencyOverrides?: UrgencyWithOverrides;
|
|
3383
|
+
/**
|
|
3384
|
+
* @generated from field: optional trading.v1.WalletExecutionContext wallet_execution_context = 15;
|
|
3385
|
+
*/
|
|
3386
|
+
walletExecutionContext?: WalletExecutionContext;
|
|
3265
3387
|
constructor(data?: PartialMessage<SwapRequest>);
|
|
3266
3388
|
static readonly runtime: typeof proto3;
|
|
3267
3389
|
static readonly typeName = "trading.v1.SwapRequest";
|
|
@@ -3374,6 +3496,10 @@ export declare class Swap7702Request extends Message<Swap7702Request> {
|
|
|
3374
3496
|
* @generated from field: optional trading.v1.UrgencyWithOverrides urgency_overrides = 11;
|
|
3375
3497
|
*/
|
|
3376
3498
|
urgencyOverrides?: UrgencyWithOverrides;
|
|
3499
|
+
/**
|
|
3500
|
+
* @generated from field: optional trading.v1.WalletExecutionContext wallet_execution_context = 12;
|
|
3501
|
+
*/
|
|
3502
|
+
walletExecutionContext?: WalletExecutionContext;
|
|
3377
3503
|
constructor(data?: PartialMessage<Swap7702Request>);
|
|
3378
3504
|
static readonly runtime: typeof proto3;
|
|
3379
3505
|
static readonly typeName = "trading.v1.Swap7702Request";
|
|
@@ -5156,6 +5282,10 @@ export declare class PermissionsResult extends Message<PermissionsResult> {
|
|
|
5156
5282
|
* @generated from field: optional string kyc_url = 5;
|
|
5157
5283
|
*/
|
|
5158
5284
|
kycUrl?: string;
|
|
5285
|
+
/**
|
|
5286
|
+
* @generated from field: string issuer = 6;
|
|
5287
|
+
*/
|
|
5288
|
+
issuer: string;
|
|
5159
5289
|
constructor(data?: PartialMessage<PermissionsResult>);
|
|
5160
5290
|
static readonly runtime: typeof proto3;
|
|
5161
5291
|
static readonly typeName = "trading.v1.PermissionsResult";
|
|
@@ -161,6 +161,10 @@ export var ChainId;
|
|
|
161
161
|
* @generated from enum value: ROBINHOOD = 4663;
|
|
162
162
|
*/
|
|
163
163
|
ChainId[ChainId["ROBINHOOD"] = 4663] = "ROBINHOOD";
|
|
164
|
+
/**
|
|
165
|
+
* @generated from enum value: ARC = 5042;
|
|
166
|
+
*/
|
|
167
|
+
ChainId[ChainId["ARC"] = 5042] = "ARC";
|
|
164
168
|
})(ChainId || (ChainId = {}));
|
|
165
169
|
// Retrieve enum metadata with: proto3.getEnumType(ChainId)
|
|
166
170
|
proto3.util.setEnumType(ChainId, "trading.v1.ChainId", [
|
|
@@ -189,6 +193,7 @@ proto3.util.setEnumType(ChainId, "trading.v1.ChainId", [
|
|
|
189
193
|
{ no: 4326, name: "MEGAETH" },
|
|
190
194
|
{ no: 4217, name: "TEMPO" },
|
|
191
195
|
{ no: 4663, name: "ROBINHOOD" },
|
|
196
|
+
{ no: 5042, name: "ARC" },
|
|
192
197
|
]);
|
|
193
198
|
/**
|
|
194
199
|
* @generated from enum trading.v1.Protocols
|
|
@@ -887,6 +892,7 @@ Encode4337Request.fields = proto3.util.newFieldList(() => [
|
|
|
887
892
|
{ no: 4, name: "paymaster_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
888
893
|
{ no: 5, name: "paymaster_service_context", kind: "message", T: Struct },
|
|
889
894
|
{ no: 6, name: "eip7702_auth", kind: "message", T: Eip7702Authorization, opt: true },
|
|
895
|
+
{ no: 7, name: "wallet_execution_context", kind: "message", T: WalletExecutionContext, opt: true },
|
|
890
896
|
]);
|
|
891
897
|
/**
|
|
892
898
|
* @generated from message trading.v1.UserOperation
|
|
@@ -1047,6 +1053,7 @@ Swap4337Request.fields = proto3.util.newFieldList(() => [
|
|
|
1047
1053
|
{ no: 6, name: "deadline", kind: "scalar", T: 3 /* ScalarType.INT64 */ },
|
|
1048
1054
|
{ no: 7, name: "eip7702_auth", kind: "message", T: Eip7702Authorization, opt: true },
|
|
1049
1055
|
{ no: 8, name: "sponsorship_info", kind: "message", T: SponsorshipInfo, opt: true },
|
|
1056
|
+
{ no: 9, name: "wallet_execution_context", kind: "message", T: WalletExecutionContext, opt: true },
|
|
1050
1057
|
]);
|
|
1051
1058
|
/**
|
|
1052
1059
|
* @generated from message trading.v1.Swap4337Response
|
|
@@ -1086,6 +1093,106 @@ Swap4337Response.fields = proto3.util.newFieldList(() => [
|
|
|
1086
1093
|
{ no: 4, name: "gas_sponsorship_rejection_reason", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1087
1094
|
{ no: 5, name: "paymaster_service_context", kind: "message", T: PaymasterServiceContext, opt: true },
|
|
1088
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
|
+
]);
|
|
1089
1196
|
/**
|
|
1090
1197
|
* @generated from message trading.v1.Swap5792Request
|
|
1091
1198
|
*/
|
|
@@ -3896,6 +4003,7 @@ SwapRequest.fields = proto3.util.newFieldList(() => [
|
|
|
3896
4003
|
{ no: 12, name: "gas_strategies", kind: "message", T: GasStrategy, repeated: true },
|
|
3897
4004
|
{ no: 13, name: "include_gas_info", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
3898
4005
|
{ no: 14, name: "urgency_overrides", kind: "message", T: UrgencyWithOverrides, opt: true },
|
|
4006
|
+
{ no: 15, name: "wallet_execution_context", kind: "message", T: WalletExecutionContext, opt: true },
|
|
3899
4007
|
]);
|
|
3900
4008
|
/**
|
|
3901
4009
|
* @generated from message trading.v1.SwapResponse
|
|
@@ -4001,6 +4109,7 @@ Swap7702Request.fields = proto3.util.newFieldList(() => [
|
|
|
4001
4109
|
{ no: 9, name: "urgency", kind: "enum", T: proto3.getEnumType(Urgency), opt: true },
|
|
4002
4110
|
{ no: 10, name: "gas_strategies", kind: "message", T: GasStrategy, repeated: true },
|
|
4003
4111
|
{ no: 11, name: "urgency_overrides", kind: "message", T: UrgencyWithOverrides, opt: true },
|
|
4112
|
+
{ no: 12, name: "wallet_execution_context", kind: "message", T: WalletExecutionContext, opt: true },
|
|
4004
4113
|
]);
|
|
4005
4114
|
/**
|
|
4006
4115
|
* @generated from message trading.v1.Swap7702Response
|
|
@@ -6052,6 +6161,10 @@ export class PermissionsResult extends Message {
|
|
|
6052
6161
|
* @generated from field: bool is_permissioned = 2;
|
|
6053
6162
|
*/
|
|
6054
6163
|
this.isPermissioned = false;
|
|
6164
|
+
/**
|
|
6165
|
+
* @generated from field: string issuer = 6;
|
|
6166
|
+
*/
|
|
6167
|
+
this.issuer = "";
|
|
6055
6168
|
proto3.util.initPartial(data, this);
|
|
6056
6169
|
}
|
|
6057
6170
|
static fromBinary(bytes, options) {
|
|
@@ -6075,6 +6188,7 @@ PermissionsResult.fields = proto3.util.newFieldList(() => [
|
|
|
6075
6188
|
{ no: 3, name: "is_allowlisted", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
6076
6189
|
{ no: 4, name: "adapter_token_address", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
6077
6190
|
{ no: 5, name: "kyc_url", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
6191
|
+
{ no: 6, name: "issuer", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
6078
6192
|
]);
|
|
6079
6193
|
/**
|
|
6080
6194
|
* @generated from message trading.v1.PriorityOrderInfo
|