@uniswap/client-trading 0.1.6 → 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.
- 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 +162 -25
- package/dist/trading/v1/api_pb.js +159 -45
- 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, 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
|
*/
|
|
@@ -585,11 +585,7 @@ export declare class Eip7702Authorization extends Message<Eip7702Authorization>
|
|
|
585
585
|
*/
|
|
586
586
|
s: string;
|
|
587
587
|
/**
|
|
588
|
-
* @generated from field: string
|
|
589
|
-
*/
|
|
590
|
-
v: string;
|
|
591
|
-
/**
|
|
592
|
-
* @generated from field: string y_parity = 7;
|
|
588
|
+
* @generated from field: string y_parity = 6;
|
|
593
589
|
*/
|
|
594
590
|
yParity: string;
|
|
595
591
|
constructor(data?: PartialMessage<Eip7702Authorization>);
|
|
@@ -675,21 +671,21 @@ export declare class UserOperation extends Message<UserOperation> {
|
|
|
675
671
|
*/
|
|
676
672
|
maxPriorityFeePerGas: string;
|
|
677
673
|
/**
|
|
678
|
-
* @generated from field: string paymaster = 9;
|
|
674
|
+
* @generated from field: optional string paymaster = 9;
|
|
679
675
|
*/
|
|
680
|
-
paymaster
|
|
676
|
+
paymaster?: string;
|
|
681
677
|
/**
|
|
682
|
-
* @generated from field: string paymaster_verification_gas_limit = 10;
|
|
678
|
+
* @generated from field: optional string paymaster_verification_gas_limit = 10;
|
|
683
679
|
*/
|
|
684
|
-
paymasterVerificationGasLimit
|
|
680
|
+
paymasterVerificationGasLimit?: string;
|
|
685
681
|
/**
|
|
686
|
-
* @generated from field: string paymaster_post_op_gas_limit = 11;
|
|
682
|
+
* @generated from field: optional string paymaster_post_op_gas_limit = 11;
|
|
687
683
|
*/
|
|
688
|
-
paymasterPostOpGasLimit
|
|
684
|
+
paymasterPostOpGasLimit?: string;
|
|
689
685
|
/**
|
|
690
|
-
* @generated from field: string paymaster_data = 12;
|
|
686
|
+
* @generated from field: optional string paymaster_data = 12;
|
|
691
687
|
*/
|
|
692
|
-
paymasterData
|
|
688
|
+
paymasterData?: string;
|
|
693
689
|
/**
|
|
694
690
|
* @generated from field: string signature = 13;
|
|
695
691
|
*/
|
|
@@ -724,9 +720,9 @@ export declare class SponsorMetadata extends Message<SponsorMetadata> {
|
|
|
724
720
|
*/
|
|
725
721
|
name: string;
|
|
726
722
|
/**
|
|
727
|
-
* @generated from field: string icon = 2;
|
|
723
|
+
* @generated from field: optional string icon = 2;
|
|
728
724
|
*/
|
|
729
|
-
icon
|
|
725
|
+
icon?: string;
|
|
730
726
|
constructor(data?: PartialMessage<SponsorMetadata>);
|
|
731
727
|
static readonly runtime: typeof proto3;
|
|
732
728
|
static readonly typeName = "trading.v1.SponsorMetadata";
|
|
@@ -757,9 +753,9 @@ export declare class Encode4337Response extends Message<Encode4337Response> {
|
|
|
757
753
|
*/
|
|
758
754
|
gasSponsored: boolean;
|
|
759
755
|
/**
|
|
760
|
-
* @generated from field: string
|
|
756
|
+
* @generated from field: optional string gas_sponsorship_rejection_reason = 5;
|
|
761
757
|
*/
|
|
762
|
-
|
|
758
|
+
gasSponsorshipRejectionReason?: string;
|
|
763
759
|
constructor(data?: PartialMessage<Encode4337Response>);
|
|
764
760
|
static readonly runtime: typeof proto3;
|
|
765
761
|
static readonly typeName = "trading.v1.Encode4337Response";
|
|
@@ -769,6 +765,89 @@ export declare class Encode4337Response extends Message<Encode4337Response> {
|
|
|
769
765
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Encode4337Response;
|
|
770
766
|
static equals(a: Encode4337Response | PlainMessage<Encode4337Response> | undefined, b: Encode4337Response | PlainMessage<Encode4337Response> | undefined): boolean;
|
|
771
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
|
+
}
|
|
772
851
|
/**
|
|
773
852
|
* @generated from message trading.v1.Swap5792Request
|
|
774
853
|
*/
|
|
@@ -855,6 +934,10 @@ export declare class Swap5792Response extends Message<Swap5792Response> {
|
|
|
855
934
|
* @generated from field: optional string public_key_id = 8;
|
|
856
935
|
*/
|
|
857
936
|
publicKeyId?: string;
|
|
937
|
+
/**
|
|
938
|
+
* @generated from field: optional trading.v1.PaymasterServiceCapability paymaster_service = 9;
|
|
939
|
+
*/
|
|
940
|
+
paymasterService?: PaymasterServiceCapability;
|
|
858
941
|
constructor(data?: PartialMessage<Swap5792Response>);
|
|
859
942
|
static readonly runtime: typeof proto3;
|
|
860
943
|
static readonly typeName = "trading.v1.Swap5792Response";
|
|
@@ -864,6 +947,44 @@ export declare class Swap5792Response extends Message<Swap5792Response> {
|
|
|
864
947
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Swap5792Response;
|
|
865
948
|
static equals(a: Swap5792Response | PlainMessage<Swap5792Response> | undefined, b: Swap5792Response | PlainMessage<Swap5792Response> | undefined): boolean;
|
|
866
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
|
+
}
|
|
867
988
|
/**
|
|
868
989
|
* @generated from message trading.v1.SendRequest
|
|
869
990
|
*/
|
|
@@ -1439,6 +1560,10 @@ export declare class QuoteRequest extends Message<QuoteRequest> {
|
|
|
1439
1560
|
* @generated from field: optional trading.v1.WalletExecutionContext wallet_execution_context = 21;
|
|
1440
1561
|
*/
|
|
1441
1562
|
walletExecutionContext?: WalletExecutionContext;
|
|
1563
|
+
/**
|
|
1564
|
+
* @generated from field: optional string recipient = 22;
|
|
1565
|
+
*/
|
|
1566
|
+
recipient?: string;
|
|
1442
1567
|
constructor(data?: PartialMessage<QuoteRequest>);
|
|
1443
1568
|
static readonly runtime: typeof proto3;
|
|
1444
1569
|
static readonly typeName = "trading.v1.QuoteRequest";
|
|
@@ -1721,9 +1846,9 @@ export declare class V2PoolInRoute extends Message<V2PoolInRoute> {
|
|
|
1721
1846
|
*/
|
|
1722
1847
|
amountOut?: string;
|
|
1723
1848
|
/**
|
|
1724
|
-
* @generated from field: optional string
|
|
1849
|
+
* @generated from field: optional string min_hop_price_x36 = 9;
|
|
1725
1850
|
*/
|
|
1726
|
-
|
|
1851
|
+
minHopPriceX36?: string;
|
|
1727
1852
|
constructor(data?: PartialMessage<V2PoolInRoute>);
|
|
1728
1853
|
static readonly runtime: typeof proto3;
|
|
1729
1854
|
static readonly typeName = "trading.v1.V2PoolInRoute";
|
|
@@ -1778,9 +1903,9 @@ export declare class V3PoolInRoute extends Message<V3PoolInRoute> {
|
|
|
1778
1903
|
*/
|
|
1779
1904
|
amountOut?: string;
|
|
1780
1905
|
/**
|
|
1781
|
-
* @generated from field: optional string
|
|
1906
|
+
* @generated from field: optional string min_hop_price_x36 = 11;
|
|
1782
1907
|
*/
|
|
1783
|
-
|
|
1908
|
+
minHopPriceX36?: string;
|
|
1784
1909
|
constructor(data?: PartialMessage<V3PoolInRoute>);
|
|
1785
1910
|
static readonly runtime: typeof proto3;
|
|
1786
1911
|
static readonly typeName = "trading.v1.V3PoolInRoute";
|
|
@@ -1843,9 +1968,9 @@ export declare class V4PoolInRoute extends Message<V4PoolInRoute> {
|
|
|
1843
1968
|
*/
|
|
1844
1969
|
amountOut?: string;
|
|
1845
1970
|
/**
|
|
1846
|
-
* @generated from field: optional string
|
|
1971
|
+
* @generated from field: optional string min_hop_price_x36 = 13;
|
|
1847
1972
|
*/
|
|
1848
|
-
|
|
1973
|
+
minHopPriceX36?: string;
|
|
1849
1974
|
constructor(data?: PartialMessage<V4PoolInRoute>);
|
|
1850
1975
|
static readonly runtime: typeof proto3;
|
|
1851
1976
|
static readonly typeName = "trading.v1.V4PoolInRoute";
|
|
@@ -2067,6 +2192,10 @@ export declare class ClassicQuote extends Message<ClassicQuote> {
|
|
|
2067
2192
|
* @generated from field: optional string portion_recipient = 24;
|
|
2068
2193
|
*/
|
|
2069
2194
|
portionRecipient?: string;
|
|
2195
|
+
/**
|
|
2196
|
+
* @generated from field: optional trading.v1.SponsorshipInfo sponsorship_info = 25;
|
|
2197
|
+
*/
|
|
2198
|
+
sponsorshipInfo?: SponsorshipInfo;
|
|
2070
2199
|
constructor(data?: PartialMessage<ClassicQuote>);
|
|
2071
2200
|
static readonly runtime: typeof proto3;
|
|
2072
2201
|
static readonly typeName = "trading.v1.ClassicQuote";
|
|
@@ -2389,6 +2518,10 @@ export declare class WrapUnwrapQuote extends Message<WrapUnwrapQuote> {
|
|
|
2389
2518
|
* @generated from field: optional string max_priority_fee_per_gas = 13;
|
|
2390
2519
|
*/
|
|
2391
2520
|
maxPriorityFeePerGas?: string;
|
|
2521
|
+
/**
|
|
2522
|
+
* @generated from field: optional trading.v1.SponsorshipInfo sponsorship_info = 14;
|
|
2523
|
+
*/
|
|
2524
|
+
sponsorshipInfo?: SponsorshipInfo;
|
|
2392
2525
|
constructor(data?: PartialMessage<WrapUnwrapQuote>);
|
|
2393
2526
|
static readonly runtime: typeof proto3;
|
|
2394
2527
|
static readonly typeName = "trading.v1.WrapUnwrapQuote";
|
|
@@ -3817,6 +3950,10 @@ export declare class BridgeQuote extends Message<BridgeQuote> {
|
|
|
3817
3950
|
* @generated from field: repeated trading.v1.GasEstimate gas_estimates = 19;
|
|
3818
3951
|
*/
|
|
3819
3952
|
gasEstimates: GasEstimate[];
|
|
3953
|
+
/**
|
|
3954
|
+
* @generated from field: optional trading.v1.SponsorshipInfo sponsorship_info = 20;
|
|
3955
|
+
*/
|
|
3956
|
+
sponsorshipInfo?: SponsorshipInfo;
|
|
3820
3957
|
constructor(data?: PartialMessage<BridgeQuote>);
|
|
3821
3958
|
static readonly runtime: typeof proto3;
|
|
3822
3959
|
static readonly typeName = "trading.v1.BridgeQuote";
|
|
@@ -5837,9 +5974,9 @@ export declare class SponsorSummary extends Message<SponsorSummary> {
|
|
|
5837
5974
|
*/
|
|
5838
5975
|
export declare class SponsorshipInfo extends Message<SponsorshipInfo> {
|
|
5839
5976
|
/**
|
|
5840
|
-
* @generated from field: bool sponsored = 1;
|
|
5977
|
+
* @generated from field: optional bool sponsored = 1;
|
|
5841
5978
|
*/
|
|
5842
|
-
sponsored
|
|
5979
|
+
sponsored?: boolean;
|
|
5843
5980
|
/**
|
|
5844
5981
|
* @generated from field: optional string rejection_reason = 2;
|
|
5845
5982
|
*/
|
|
@@ -798,11 +798,7 @@ export class Eip7702Authorization extends Message {
|
|
|
798
798
|
*/
|
|
799
799
|
this.s = "";
|
|
800
800
|
/**
|
|
801
|
-
* @generated from field: string
|
|
802
|
-
*/
|
|
803
|
-
this.v = "";
|
|
804
|
-
/**
|
|
805
|
-
* @generated from field: string y_parity = 7;
|
|
801
|
+
* @generated from field: string y_parity = 6;
|
|
806
802
|
*/
|
|
807
803
|
this.yParity = "";
|
|
808
804
|
proto3.util.initPartial(data, this);
|
|
@@ -828,8 +824,7 @@ Eip7702Authorization.fields = proto3.util.newFieldList(() => [
|
|
|
828
824
|
{ no: 3, name: "nonce", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
829
825
|
{ no: 4, name: "r", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
830
826
|
{ no: 5, name: "s", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
831
|
-
{ no: 6, name: "
|
|
832
|
-
{ no: 7, name: "y_parity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
827
|
+
{ no: 6, name: "y_parity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
833
828
|
]);
|
|
834
829
|
/**
|
|
835
830
|
* @generated from message trading.v1.Encode4337Request
|
|
@@ -916,22 +911,6 @@ export class UserOperation extends Message {
|
|
|
916
911
|
* @generated from field: string max_priority_fee_per_gas = 8;
|
|
917
912
|
*/
|
|
918
913
|
this.maxPriorityFeePerGas = "";
|
|
919
|
-
/**
|
|
920
|
-
* @generated from field: string paymaster = 9;
|
|
921
|
-
*/
|
|
922
|
-
this.paymaster = "";
|
|
923
|
-
/**
|
|
924
|
-
* @generated from field: string paymaster_verification_gas_limit = 10;
|
|
925
|
-
*/
|
|
926
|
-
this.paymasterVerificationGasLimit = "";
|
|
927
|
-
/**
|
|
928
|
-
* @generated from field: string paymaster_post_op_gas_limit = 11;
|
|
929
|
-
*/
|
|
930
|
-
this.paymasterPostOpGasLimit = "";
|
|
931
|
-
/**
|
|
932
|
-
* @generated from field: string paymaster_data = 12;
|
|
933
|
-
*/
|
|
934
|
-
this.paymasterData = "";
|
|
935
914
|
/**
|
|
936
915
|
* @generated from field: string signature = 13;
|
|
937
916
|
*/
|
|
@@ -962,10 +941,10 @@ UserOperation.fields = proto3.util.newFieldList(() => [
|
|
|
962
941
|
{ no: 6, name: "pre_verification_gas", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
963
942
|
{ no: 7, name: "max_fee_per_gas", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
964
943
|
{ no: 8, name: "max_priority_fee_per_gas", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
965
|
-
{ no: 9, name: "paymaster", kind: "scalar", T: 9 /* ScalarType.STRING
|
|
966
|
-
{ no: 10, name: "paymaster_verification_gas_limit", kind: "scalar", T: 9 /* ScalarType.STRING
|
|
967
|
-
{ no: 11, name: "paymaster_post_op_gas_limit", kind: "scalar", T: 9 /* ScalarType.STRING
|
|
968
|
-
{ no: 12, name: "paymaster_data", kind: "scalar", T: 9 /* ScalarType.STRING
|
|
944
|
+
{ no: 9, name: "paymaster", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
945
|
+
{ no: 10, name: "paymaster_verification_gas_limit", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
946
|
+
{ no: 11, name: "paymaster_post_op_gas_limit", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
947
|
+
{ no: 12, name: "paymaster_data", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
969
948
|
{ no: 13, name: "signature", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
970
949
|
{ no: 14, name: "eip7702_auth", kind: "message", T: Eip7702Authorization, opt: true },
|
|
971
950
|
{ no: 15, name: "factory", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
@@ -981,10 +960,6 @@ export class SponsorMetadata extends Message {
|
|
|
981
960
|
* @generated from field: string name = 1;
|
|
982
961
|
*/
|
|
983
962
|
this.name = "";
|
|
984
|
-
/**
|
|
985
|
-
* @generated from field: string icon = 2;
|
|
986
|
-
*/
|
|
987
|
-
this.icon = "";
|
|
988
963
|
proto3.util.initPartial(data, this);
|
|
989
964
|
}
|
|
990
965
|
static fromBinary(bytes, options) {
|
|
@@ -1004,7 +979,7 @@ SponsorMetadata.runtime = proto3;
|
|
|
1004
979
|
SponsorMetadata.typeName = "trading.v1.SponsorMetadata";
|
|
1005
980
|
SponsorMetadata.fields = proto3.util.newFieldList(() => [
|
|
1006
981
|
{ no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1007
|
-
{ no: 2, name: "icon", kind: "scalar", T: 9 /* ScalarType.STRING
|
|
982
|
+
{ no: 2, name: "icon", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1008
983
|
]);
|
|
1009
984
|
/**
|
|
1010
985
|
* @generated from message trading.v1.Encode4337Response
|
|
@@ -1020,10 +995,6 @@ export class Encode4337Response extends Message {
|
|
|
1020
995
|
* @generated from field: bool gas_sponsored = 4;
|
|
1021
996
|
*/
|
|
1022
997
|
this.gasSponsored = false;
|
|
1023
|
-
/**
|
|
1024
|
-
* @generated from field: string fallback_reason = 5;
|
|
1025
|
-
*/
|
|
1026
|
-
this.fallbackReason = "";
|
|
1027
998
|
proto3.util.initPartial(data, this);
|
|
1028
999
|
}
|
|
1029
1000
|
static fromBinary(bytes, options) {
|
|
@@ -1046,7 +1017,88 @@ Encode4337Response.fields = proto3.util.newFieldList(() => [
|
|
|
1046
1017
|
{ no: 2, name: "user_operation", kind: "message", T: UserOperation },
|
|
1047
1018
|
{ no: 3, name: "sponsor_metadata", kind: "message", T: SponsorMetadata },
|
|
1048
1019
|
{ no: 4, name: "gas_sponsored", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
1049
|
-
{ no: 5, name: "
|
|
1020
|
+
{ no: 5, name: "gas_sponsorship_rejection_reason", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
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 },
|
|
1050
1102
|
]);
|
|
1051
1103
|
/**
|
|
1052
1104
|
* @generated from message trading.v1.Swap5792Request
|
|
@@ -1139,6 +1191,68 @@ Swap5792Response.fields = proto3.util.newFieldList(() => [
|
|
|
1139
1191
|
{ no: 6, name: "gas_estimates", kind: "message", T: GasEstimate, repeated: true },
|
|
1140
1192
|
{ no: 7, name: "signature", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1141
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 */ },
|
|
1142
1256
|
]);
|
|
1143
1257
|
/**
|
|
1144
1258
|
* @generated from message trading.v1.SendRequest
|
|
@@ -1892,6 +2006,7 @@ QuoteRequest.fields = proto3.util.newFieldList(() => [
|
|
|
1892
2006
|
{ no: 19, name: "hooks_options", kind: "enum", T: proto3.getEnumType(HooksOptions), opt: true },
|
|
1893
2007
|
{ no: 20, name: "integrator_fees", kind: "message", T: IntegratorFee, repeated: true },
|
|
1894
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 },
|
|
1895
2010
|
]);
|
|
1896
2011
|
/**
|
|
1897
2012
|
* @generated from message trading.v1.IntegratorFee
|
|
@@ -2135,7 +2250,7 @@ V2PoolInRoute.fields = proto3.util.newFieldList(() => [
|
|
|
2135
2250
|
{ no: 6, name: "reserve1", kind: "message", T: V2Reserve },
|
|
2136
2251
|
{ no: 7, name: "amount_in", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2137
2252
|
{ no: 8, name: "amount_out", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2138
|
-
{ no: 9, name: "
|
|
2253
|
+
{ no: 9, name: "min_hop_price_x36", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2139
2254
|
]);
|
|
2140
2255
|
/**
|
|
2141
2256
|
* @generated from message trading.v1.V3PoolInRoute
|
|
@@ -2195,7 +2310,7 @@ V3PoolInRoute.fields = proto3.util.newFieldList(() => [
|
|
|
2195
2310
|
{ no: 8, name: "fee", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2196
2311
|
{ no: 9, name: "amount_in", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2197
2312
|
{ no: 10, name: "amount_out", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2198
|
-
{ no: 11, name: "
|
|
2313
|
+
{ no: 11, name: "min_hop_price_x36", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2199
2314
|
]);
|
|
2200
2315
|
/**
|
|
2201
2316
|
* @generated from message trading.v1.V4PoolInRoute
|
|
@@ -2265,7 +2380,7 @@ V4PoolInRoute.fields = proto3.util.newFieldList(() => [
|
|
|
2265
2380
|
{ no: 10, name: "hooks", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2266
2381
|
{ no: 11, name: "amount_in", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2267
2382
|
{ no: 12, name: "amount_out", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2268
|
-
{ no: 13, name: "
|
|
2383
|
+
{ no: 13, name: "min_hop_price_x36", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2269
2384
|
]);
|
|
2270
2385
|
/**
|
|
2271
2386
|
* @generated from message trading.v1.TokenInRoute
|
|
@@ -2502,6 +2617,7 @@ ClassicQuote.fields = proto3.util.newFieldList(() => [
|
|
|
2502
2617
|
{ no: 22, name: "portion_bips", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
2503
2618
|
{ no: 23, name: "portion_amount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2504
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 },
|
|
2505
2621
|
]);
|
|
2506
2622
|
/**
|
|
2507
2623
|
* @generated from message trading.v1.GasEstimate
|
|
@@ -2891,6 +3007,7 @@ WrapUnwrapQuote.fields = proto3.util.newFieldList(() => [
|
|
|
2891
3007
|
{ no: 11, name: "gas_price", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2892
3008
|
{ no: 12, name: "max_fee_per_gas", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2893
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 },
|
|
2894
3011
|
]);
|
|
2895
3012
|
/**
|
|
2896
3013
|
* @generated from message trading.v1.SwapRequest
|
|
@@ -4524,6 +4641,7 @@ BridgeQuote.fields = proto3.util.newFieldList(() => [
|
|
|
4524
4641
|
{ no: 17, name: "fill_deadline", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
4525
4642
|
{ no: 18, name: "gas_fee_usd", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
4526
4643
|
{ no: 19, name: "gas_estimates", kind: "message", T: GasEstimate, repeated: true },
|
|
4644
|
+
{ no: 20, name: "sponsorship_info", kind: "message", T: SponsorshipInfo, opt: true },
|
|
4527
4645
|
]);
|
|
4528
4646
|
/**
|
|
4529
4647
|
* @generated from message trading.v1.DutchLimitOrderInfo
|
|
@@ -6912,10 +7030,6 @@ SponsorSummary.fields = proto3.util.newFieldList(() => [
|
|
|
6912
7030
|
export class SponsorshipInfo extends Message {
|
|
6913
7031
|
constructor(data) {
|
|
6914
7032
|
super();
|
|
6915
|
-
/**
|
|
6916
|
-
* @generated from field: bool sponsored = 1;
|
|
6917
|
-
*/
|
|
6918
|
-
this.sponsored = false;
|
|
6919
7033
|
proto3.util.initPartial(data, this);
|
|
6920
7034
|
}
|
|
6921
7035
|
static fromBinary(bytes, options) {
|
|
@@ -6934,7 +7048,7 @@ export class SponsorshipInfo extends Message {
|
|
|
6934
7048
|
SponsorshipInfo.runtime = proto3;
|
|
6935
7049
|
SponsorshipInfo.typeName = "trading.v1.SponsorshipInfo";
|
|
6936
7050
|
SponsorshipInfo.fields = proto3.util.newFieldList(() => [
|
|
6937
|
-
{ no: 1, name: "sponsored", kind: "scalar", T: 8 /* ScalarType.BOOL
|
|
7051
|
+
{ no: 1, name: "sponsored", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
6938
7052
|
{ no: 2, name: "rejection_reason", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
6939
7053
|
{ no: 3, name: "sponsor", kind: "message", T: SponsorSummary, opt: true },
|
|
6940
7054
|
]);
|