@uniswap/client-trading 0.1.5 → 0.1.7
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 +309 -1
- package/dist/trading/v1/api_pb.js +353 -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, 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, 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
|
*/
|
|
@@ -168,6 +168,20 @@ export declare const encode7702: {
|
|
|
168
168
|
readonly typeName: "trading.v1.tradingService";
|
|
169
169
|
};
|
|
170
170
|
};
|
|
171
|
+
/**
|
|
172
|
+
* @generated from rpc trading.v1.tradingService.Encode4337
|
|
173
|
+
*/
|
|
174
|
+
export declare const encode4337: {
|
|
175
|
+
readonly localName: "encode4337";
|
|
176
|
+
readonly name: "Encode4337";
|
|
177
|
+
readonly kind: MethodKind.Unary;
|
|
178
|
+
readonly I: typeof Encode4337Request;
|
|
179
|
+
readonly O: typeof Encode4337Response;
|
|
180
|
+
readonly idempotency: MethodIdempotency.NoSideEffects;
|
|
181
|
+
readonly service: {
|
|
182
|
+
readonly typeName: "trading.v1.tradingService";
|
|
183
|
+
};
|
|
184
|
+
};
|
|
171
185
|
/**
|
|
172
186
|
* @generated from rpc trading.v1.tradingService.CreatePlan
|
|
173
187
|
*/
|
|
@@ -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, 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, 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
|
*/
|
|
@@ -172,6 +172,20 @@ export const encode7702 = {
|
|
|
172
172
|
typeName: "trading.v1.tradingService"
|
|
173
173
|
}
|
|
174
174
|
};
|
|
175
|
+
/**
|
|
176
|
+
* @generated from rpc trading.v1.tradingService.Encode4337
|
|
177
|
+
*/
|
|
178
|
+
export const encode4337 = {
|
|
179
|
+
localName: "encode4337",
|
|
180
|
+
name: "Encode4337",
|
|
181
|
+
kind: MethodKind.Unary,
|
|
182
|
+
I: Encode4337Request,
|
|
183
|
+
O: Encode4337Response,
|
|
184
|
+
idempotency: MethodIdempotency.NoSideEffects,
|
|
185
|
+
service: {
|
|
186
|
+
typeName: "trading.v1.tradingService"
|
|
187
|
+
}
|
|
188
|
+
};
|
|
175
189
|
/**
|
|
176
190
|
* @generated from rpc trading.v1.tradingService.CreatePlan
|
|
177
191
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CheckApprovalRequest, CheckApprovalResponse, CheckWalletDelegationRequest, CheckWalletDelegationResponse, CreatePlanRequest, DocsRequest, DocsResponse, 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, 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
|
|
@@ -126,6 +126,16 @@ export declare const tradingService: {
|
|
|
126
126
|
readonly kind: MethodKind.Unary;
|
|
127
127
|
readonly idempotency: MethodIdempotency.NoSideEffects;
|
|
128
128
|
};
|
|
129
|
+
/**
|
|
130
|
+
* @generated from rpc trading.v1.tradingService.Encode4337
|
|
131
|
+
*/
|
|
132
|
+
readonly encode4337: {
|
|
133
|
+
readonly name: "Encode4337";
|
|
134
|
+
readonly I: typeof Encode4337Request;
|
|
135
|
+
readonly O: typeof Encode4337Response;
|
|
136
|
+
readonly kind: MethodKind.Unary;
|
|
137
|
+
readonly idempotency: MethodIdempotency.NoSideEffects;
|
|
138
|
+
};
|
|
129
139
|
/**
|
|
130
140
|
* @generated from rpc trading.v1.tradingService.CreatePlan
|
|
131
141
|
*/
|
|
@@ -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, 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, 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
|
|
@@ -130,6 +130,16 @@ export const tradingService = {
|
|
|
130
130
|
kind: MethodKind.Unary,
|
|
131
131
|
idempotency: MethodIdempotency.NoSideEffects,
|
|
132
132
|
},
|
|
133
|
+
/**
|
|
134
|
+
* @generated from rpc trading.v1.tradingService.Encode4337
|
|
135
|
+
*/
|
|
136
|
+
encode4337: {
|
|
137
|
+
name: "Encode4337",
|
|
138
|
+
I: Encode4337Request,
|
|
139
|
+
O: Encode4337Response,
|
|
140
|
+
kind: MethodKind.Unary,
|
|
141
|
+
idempotency: MethodIdempotency.NoSideEffects,
|
|
142
|
+
},
|
|
133
143
|
/**
|
|
134
144
|
* @generated from rpc trading.v1.tradingService.CreatePlan
|
|
135
145
|
*/
|
|
@@ -125,7 +125,15 @@ export declare enum ChainId {
|
|
|
125
125
|
/**
|
|
126
126
|
* @generated from enum value: XLAYER = 196;
|
|
127
127
|
*/
|
|
128
|
-
XLAYER = 196
|
|
128
|
+
XLAYER = 196,
|
|
129
|
+
/**
|
|
130
|
+
* @generated from enum value: LINEA = 59144;
|
|
131
|
+
*/
|
|
132
|
+
LINEA = 59144,
|
|
133
|
+
/**
|
|
134
|
+
* @generated from enum value: TEMPO = 4217;
|
|
135
|
+
*/
|
|
136
|
+
TEMPO = 4217
|
|
129
137
|
}
|
|
130
138
|
/**
|
|
131
139
|
* @generated from enum trading.v1.Protocols
|
|
@@ -552,6 +560,211 @@ export declare class Encode7702Response extends Message<Encode7702Response> {
|
|
|
552
560
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Encode7702Response;
|
|
553
561
|
static equals(a: Encode7702Response | PlainMessage<Encode7702Response> | undefined, b: Encode7702Response | PlainMessage<Encode7702Response> | undefined): boolean;
|
|
554
562
|
}
|
|
563
|
+
/**
|
|
564
|
+
* @generated from message trading.v1.Eip7702Authorization
|
|
565
|
+
*/
|
|
566
|
+
export declare class Eip7702Authorization extends Message<Eip7702Authorization> {
|
|
567
|
+
/**
|
|
568
|
+
* @generated from field: string address = 1;
|
|
569
|
+
*/
|
|
570
|
+
address: string;
|
|
571
|
+
/**
|
|
572
|
+
* @generated from field: string chain_id = 2;
|
|
573
|
+
*/
|
|
574
|
+
chainId: string;
|
|
575
|
+
/**
|
|
576
|
+
* @generated from field: string nonce = 3;
|
|
577
|
+
*/
|
|
578
|
+
nonce: string;
|
|
579
|
+
/**
|
|
580
|
+
* @generated from field: string r = 4;
|
|
581
|
+
*/
|
|
582
|
+
r: string;
|
|
583
|
+
/**
|
|
584
|
+
* @generated from field: string s = 5;
|
|
585
|
+
*/
|
|
586
|
+
s: string;
|
|
587
|
+
/**
|
|
588
|
+
* @generated from field: string y_parity = 6;
|
|
589
|
+
*/
|
|
590
|
+
yParity: string;
|
|
591
|
+
constructor(data?: PartialMessage<Eip7702Authorization>);
|
|
592
|
+
static readonly runtime: typeof proto3;
|
|
593
|
+
static readonly typeName = "trading.v1.Eip7702Authorization";
|
|
594
|
+
static readonly fields: FieldList;
|
|
595
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Eip7702Authorization;
|
|
596
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Eip7702Authorization;
|
|
597
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Eip7702Authorization;
|
|
598
|
+
static equals(a: Eip7702Authorization | PlainMessage<Eip7702Authorization> | undefined, b: Eip7702Authorization | PlainMessage<Eip7702Authorization> | undefined): boolean;
|
|
599
|
+
}
|
|
600
|
+
/**
|
|
601
|
+
* @generated from message trading.v1.Encode4337Request
|
|
602
|
+
*/
|
|
603
|
+
export declare class Encode4337Request extends Message<Encode4337Request> {
|
|
604
|
+
/**
|
|
605
|
+
* @generated from field: repeated trading.v1.TransactionRequest calls = 1;
|
|
606
|
+
*/
|
|
607
|
+
calls: TransactionRequest[];
|
|
608
|
+
/**
|
|
609
|
+
* @generated from field: string sender = 2;
|
|
610
|
+
*/
|
|
611
|
+
sender: string;
|
|
612
|
+
/**
|
|
613
|
+
* @generated from field: trading.v1.ChainId chain_id = 3;
|
|
614
|
+
*/
|
|
615
|
+
chainId: ChainId;
|
|
616
|
+
/**
|
|
617
|
+
* @generated from field: string paymaster_url = 4;
|
|
618
|
+
*/
|
|
619
|
+
paymasterUrl: string;
|
|
620
|
+
/**
|
|
621
|
+
* @generated from field: google.protobuf.Struct paymaster_service_context = 5;
|
|
622
|
+
*/
|
|
623
|
+
paymasterServiceContext?: Struct;
|
|
624
|
+
/**
|
|
625
|
+
* @generated from field: optional trading.v1.Eip7702Authorization eip7702_auth = 6;
|
|
626
|
+
*/
|
|
627
|
+
eip7702Auth?: Eip7702Authorization;
|
|
628
|
+
constructor(data?: PartialMessage<Encode4337Request>);
|
|
629
|
+
static readonly runtime: typeof proto3;
|
|
630
|
+
static readonly typeName = "trading.v1.Encode4337Request";
|
|
631
|
+
static readonly fields: FieldList;
|
|
632
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Encode4337Request;
|
|
633
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Encode4337Request;
|
|
634
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Encode4337Request;
|
|
635
|
+
static equals(a: Encode4337Request | PlainMessage<Encode4337Request> | undefined, b: Encode4337Request | PlainMessage<Encode4337Request> | undefined): boolean;
|
|
636
|
+
}
|
|
637
|
+
/**
|
|
638
|
+
* @generated from message trading.v1.UserOperation
|
|
639
|
+
*/
|
|
640
|
+
export declare class UserOperation extends Message<UserOperation> {
|
|
641
|
+
/**
|
|
642
|
+
* @generated from field: string sender = 1;
|
|
643
|
+
*/
|
|
644
|
+
sender: string;
|
|
645
|
+
/**
|
|
646
|
+
* @generated from field: string nonce = 2;
|
|
647
|
+
*/
|
|
648
|
+
nonce: string;
|
|
649
|
+
/**
|
|
650
|
+
* @generated from field: string call_data = 3;
|
|
651
|
+
*/
|
|
652
|
+
callData: string;
|
|
653
|
+
/**
|
|
654
|
+
* @generated from field: string call_gas_limit = 4;
|
|
655
|
+
*/
|
|
656
|
+
callGasLimit: string;
|
|
657
|
+
/**
|
|
658
|
+
* @generated from field: string verification_gas_limit = 5;
|
|
659
|
+
*/
|
|
660
|
+
verificationGasLimit: string;
|
|
661
|
+
/**
|
|
662
|
+
* @generated from field: string pre_verification_gas = 6;
|
|
663
|
+
*/
|
|
664
|
+
preVerificationGas: string;
|
|
665
|
+
/**
|
|
666
|
+
* @generated from field: string max_fee_per_gas = 7;
|
|
667
|
+
*/
|
|
668
|
+
maxFeePerGas: string;
|
|
669
|
+
/**
|
|
670
|
+
* @generated from field: string max_priority_fee_per_gas = 8;
|
|
671
|
+
*/
|
|
672
|
+
maxPriorityFeePerGas: string;
|
|
673
|
+
/**
|
|
674
|
+
* @generated from field: optional string paymaster = 9;
|
|
675
|
+
*/
|
|
676
|
+
paymaster?: string;
|
|
677
|
+
/**
|
|
678
|
+
* @generated from field: optional string paymaster_verification_gas_limit = 10;
|
|
679
|
+
*/
|
|
680
|
+
paymasterVerificationGasLimit?: string;
|
|
681
|
+
/**
|
|
682
|
+
* @generated from field: optional string paymaster_post_op_gas_limit = 11;
|
|
683
|
+
*/
|
|
684
|
+
paymasterPostOpGasLimit?: string;
|
|
685
|
+
/**
|
|
686
|
+
* @generated from field: optional string paymaster_data = 12;
|
|
687
|
+
*/
|
|
688
|
+
paymasterData?: string;
|
|
689
|
+
/**
|
|
690
|
+
* @generated from field: string signature = 13;
|
|
691
|
+
*/
|
|
692
|
+
signature: string;
|
|
693
|
+
/**
|
|
694
|
+
* @generated from field: optional trading.v1.Eip7702Authorization eip7702_auth = 14;
|
|
695
|
+
*/
|
|
696
|
+
eip7702Auth?: Eip7702Authorization;
|
|
697
|
+
/**
|
|
698
|
+
* @generated from field: optional string factory = 15;
|
|
699
|
+
*/
|
|
700
|
+
factory?: string;
|
|
701
|
+
/**
|
|
702
|
+
* @generated from field: optional string factory_data = 16;
|
|
703
|
+
*/
|
|
704
|
+
factoryData?: string;
|
|
705
|
+
constructor(data?: PartialMessage<UserOperation>);
|
|
706
|
+
static readonly runtime: typeof proto3;
|
|
707
|
+
static readonly typeName = "trading.v1.UserOperation";
|
|
708
|
+
static readonly fields: FieldList;
|
|
709
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UserOperation;
|
|
710
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UserOperation;
|
|
711
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UserOperation;
|
|
712
|
+
static equals(a: UserOperation | PlainMessage<UserOperation> | undefined, b: UserOperation | PlainMessage<UserOperation> | undefined): boolean;
|
|
713
|
+
}
|
|
714
|
+
/**
|
|
715
|
+
* @generated from message trading.v1.SponsorMetadata
|
|
716
|
+
*/
|
|
717
|
+
export declare class SponsorMetadata extends Message<SponsorMetadata> {
|
|
718
|
+
/**
|
|
719
|
+
* @generated from field: string name = 1;
|
|
720
|
+
*/
|
|
721
|
+
name: string;
|
|
722
|
+
/**
|
|
723
|
+
* @generated from field: optional string icon = 2;
|
|
724
|
+
*/
|
|
725
|
+
icon?: string;
|
|
726
|
+
constructor(data?: PartialMessage<SponsorMetadata>);
|
|
727
|
+
static readonly runtime: typeof proto3;
|
|
728
|
+
static readonly typeName = "trading.v1.SponsorMetadata";
|
|
729
|
+
static readonly fields: FieldList;
|
|
730
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SponsorMetadata;
|
|
731
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SponsorMetadata;
|
|
732
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SponsorMetadata;
|
|
733
|
+
static equals(a: SponsorMetadata | PlainMessage<SponsorMetadata> | undefined, b: SponsorMetadata | PlainMessage<SponsorMetadata> | undefined): boolean;
|
|
734
|
+
}
|
|
735
|
+
/**
|
|
736
|
+
* @generated from message trading.v1.Encode4337Response
|
|
737
|
+
*/
|
|
738
|
+
export declare class Encode4337Response extends Message<Encode4337Response> {
|
|
739
|
+
/**
|
|
740
|
+
* @generated from field: string request_id = 1;
|
|
741
|
+
*/
|
|
742
|
+
requestId: string;
|
|
743
|
+
/**
|
|
744
|
+
* @generated from field: trading.v1.UserOperation user_operation = 2;
|
|
745
|
+
*/
|
|
746
|
+
userOperation?: UserOperation;
|
|
747
|
+
/**
|
|
748
|
+
* @generated from field: trading.v1.SponsorMetadata sponsor_metadata = 3;
|
|
749
|
+
*/
|
|
750
|
+
sponsorMetadata?: SponsorMetadata;
|
|
751
|
+
/**
|
|
752
|
+
* @generated from field: bool gas_sponsored = 4;
|
|
753
|
+
*/
|
|
754
|
+
gasSponsored: boolean;
|
|
755
|
+
/**
|
|
756
|
+
* @generated from field: optional string gas_sponsorship_rejection_reason = 5;
|
|
757
|
+
*/
|
|
758
|
+
gasSponsorshipRejectionReason?: string;
|
|
759
|
+
constructor(data?: PartialMessage<Encode4337Response>);
|
|
760
|
+
static readonly runtime: typeof proto3;
|
|
761
|
+
static readonly typeName = "trading.v1.Encode4337Response";
|
|
762
|
+
static readonly fields: FieldList;
|
|
763
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Encode4337Response;
|
|
764
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Encode4337Response;
|
|
765
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Encode4337Response;
|
|
766
|
+
static equals(a: Encode4337Response | PlainMessage<Encode4337Response> | undefined, b: Encode4337Response | PlainMessage<Encode4337Response> | undefined): boolean;
|
|
767
|
+
}
|
|
555
768
|
/**
|
|
556
769
|
* @generated from message trading.v1.Swap5792Request
|
|
557
770
|
*/
|
|
@@ -1218,6 +1431,10 @@ export declare class QuoteRequest extends Message<QuoteRequest> {
|
|
|
1218
1431
|
* @generated from field: repeated trading.v1.IntegratorFee integrator_fees = 20;
|
|
1219
1432
|
*/
|
|
1220
1433
|
integratorFees: IntegratorFee[];
|
|
1434
|
+
/**
|
|
1435
|
+
* @generated from field: optional trading.v1.WalletExecutionContext wallet_execution_context = 21;
|
|
1436
|
+
*/
|
|
1437
|
+
walletExecutionContext?: WalletExecutionContext;
|
|
1221
1438
|
constructor(data?: PartialMessage<QuoteRequest>);
|
|
1222
1439
|
static readonly runtime: typeof proto3;
|
|
1223
1440
|
static readonly typeName = "trading.v1.QuoteRequest";
|
|
@@ -1366,6 +1583,10 @@ export declare class QuoteResponse extends Message<QuoteResponse> {
|
|
|
1366
1583
|
* @generated from field: optional string permit_gas_fee = 20;
|
|
1367
1584
|
*/
|
|
1368
1585
|
permitGasFee?: string;
|
|
1586
|
+
/**
|
|
1587
|
+
* @generated from field: optional trading.v1.SponsorshipInfo sponsorship_info = 21;
|
|
1588
|
+
*/
|
|
1589
|
+
sponsorshipInfo?: SponsorshipInfo;
|
|
1369
1590
|
constructor(data?: PartialMessage<QuoteResponse>);
|
|
1370
1591
|
static readonly runtime: typeof proto3;
|
|
1371
1592
|
static readonly typeName = "trading.v1.QuoteResponse";
|
|
@@ -1495,6 +1716,10 @@ export declare class V2PoolInRoute extends Message<V2PoolInRoute> {
|
|
|
1495
1716
|
* @generated from field: optional string amount_out = 8;
|
|
1496
1717
|
*/
|
|
1497
1718
|
amountOut?: string;
|
|
1719
|
+
/**
|
|
1720
|
+
* @generated from field: optional string max_hop_slippage = 9;
|
|
1721
|
+
*/
|
|
1722
|
+
maxHopSlippage?: string;
|
|
1498
1723
|
constructor(data?: PartialMessage<V2PoolInRoute>);
|
|
1499
1724
|
static readonly runtime: typeof proto3;
|
|
1500
1725
|
static readonly typeName = "trading.v1.V2PoolInRoute";
|
|
@@ -1548,6 +1773,10 @@ export declare class V3PoolInRoute extends Message<V3PoolInRoute> {
|
|
|
1548
1773
|
* @generated from field: optional string amount_out = 10;
|
|
1549
1774
|
*/
|
|
1550
1775
|
amountOut?: string;
|
|
1776
|
+
/**
|
|
1777
|
+
* @generated from field: optional string max_hop_slippage = 11;
|
|
1778
|
+
*/
|
|
1779
|
+
maxHopSlippage?: string;
|
|
1551
1780
|
constructor(data?: PartialMessage<V3PoolInRoute>);
|
|
1552
1781
|
static readonly runtime: typeof proto3;
|
|
1553
1782
|
static readonly typeName = "trading.v1.V3PoolInRoute";
|
|
@@ -1609,6 +1838,10 @@ export declare class V4PoolInRoute extends Message<V4PoolInRoute> {
|
|
|
1609
1838
|
* @generated from field: optional string amount_out = 12;
|
|
1610
1839
|
*/
|
|
1611
1840
|
amountOut?: string;
|
|
1841
|
+
/**
|
|
1842
|
+
* @generated from field: optional string max_hop_slippage = 13;
|
|
1843
|
+
*/
|
|
1844
|
+
maxHopSlippage?: string;
|
|
1612
1845
|
constructor(data?: PartialMessage<V4PoolInRoute>);
|
|
1613
1846
|
static readonly runtime: typeof proto3;
|
|
1614
1847
|
static readonly typeName = "trading.v1.V4PoolInRoute";
|
|
@@ -2387,6 +2620,10 @@ export declare class GetSwapsRequest extends Message<GetSwapsRequest> {
|
|
|
2387
2620
|
* @generated from field: trading.v1.ChainId chain_id = 2;
|
|
2388
2621
|
*/
|
|
2389
2622
|
chainId: ChainId;
|
|
2623
|
+
/**
|
|
2624
|
+
* @generated from field: repeated string user_op_hashes = 3;
|
|
2625
|
+
*/
|
|
2626
|
+
userOpHashes: string[];
|
|
2390
2627
|
constructor(data?: PartialMessage<GetSwapsRequest>);
|
|
2391
2628
|
static readonly runtime: typeof proto3;
|
|
2392
2629
|
static readonly typeName = "trading.v1.GetSwapsRequest";
|
|
@@ -2437,6 +2674,14 @@ export declare class SwapResult extends Message<SwapResult> {
|
|
|
2437
2674
|
* @generated from field: optional string swap_id = 4;
|
|
2438
2675
|
*/
|
|
2439
2676
|
swapId?: string;
|
|
2677
|
+
/**
|
|
2678
|
+
* @generated from field: optional string user_op_hash = 5;
|
|
2679
|
+
*/
|
|
2680
|
+
userOpHash?: string;
|
|
2681
|
+
/**
|
|
2682
|
+
* @generated from field: trading.v1.SwapResult.HashType hash_type = 6;
|
|
2683
|
+
*/
|
|
2684
|
+
hashType: SwapResult_HashType;
|
|
2440
2685
|
constructor(data?: PartialMessage<SwapResult>);
|
|
2441
2686
|
static readonly runtime: typeof proto3;
|
|
2442
2687
|
static readonly typeName = "trading.v1.SwapResult";
|
|
@@ -2475,6 +2720,23 @@ export declare enum SwapResult_SwapStatus {
|
|
|
2475
2720
|
*/
|
|
2476
2721
|
EXPIRED = 5
|
|
2477
2722
|
}
|
|
2723
|
+
/**
|
|
2724
|
+
* @generated from enum trading.v1.SwapResult.HashType
|
|
2725
|
+
*/
|
|
2726
|
+
export declare enum SwapResult_HashType {
|
|
2727
|
+
/**
|
|
2728
|
+
* @generated from enum value: HASH_TYPE_UNSPECIFIED = 0;
|
|
2729
|
+
*/
|
|
2730
|
+
HASH_TYPE_UNSPECIFIED = 0,
|
|
2731
|
+
/**
|
|
2732
|
+
* @generated from enum value: TX = 1;
|
|
2733
|
+
*/
|
|
2734
|
+
TX = 1,
|
|
2735
|
+
/**
|
|
2736
|
+
* @generated from enum value: USER_OP = 2;
|
|
2737
|
+
*/
|
|
2738
|
+
USER_OP = 2
|
|
2739
|
+
}
|
|
2478
2740
|
/**
|
|
2479
2741
|
* @generated from message trading.v1.Customer
|
|
2480
2742
|
*/
|
|
@@ -5545,3 +5807,49 @@ export declare class WalletInfo extends Message<WalletInfo> {
|
|
|
5545
5807
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): WalletInfo;
|
|
5546
5808
|
static equals(a: WalletInfo | PlainMessage<WalletInfo> | undefined, b: WalletInfo | PlainMessage<WalletInfo> | undefined): boolean;
|
|
5547
5809
|
}
|
|
5810
|
+
/**
|
|
5811
|
+
* @generated from message trading.v1.SponsorSummary
|
|
5812
|
+
*/
|
|
5813
|
+
export declare class SponsorSummary extends Message<SponsorSummary> {
|
|
5814
|
+
/**
|
|
5815
|
+
* @generated from field: optional string name = 1;
|
|
5816
|
+
*/
|
|
5817
|
+
name?: string;
|
|
5818
|
+
/**
|
|
5819
|
+
* @generated from field: optional string logo_url = 2;
|
|
5820
|
+
*/
|
|
5821
|
+
logoUrl?: string;
|
|
5822
|
+
constructor(data?: PartialMessage<SponsorSummary>);
|
|
5823
|
+
static readonly runtime: typeof proto3;
|
|
5824
|
+
static readonly typeName = "trading.v1.SponsorSummary";
|
|
5825
|
+
static readonly fields: FieldList;
|
|
5826
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SponsorSummary;
|
|
5827
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SponsorSummary;
|
|
5828
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SponsorSummary;
|
|
5829
|
+
static equals(a: SponsorSummary | PlainMessage<SponsorSummary> | undefined, b: SponsorSummary | PlainMessage<SponsorSummary> | undefined): boolean;
|
|
5830
|
+
}
|
|
5831
|
+
/**
|
|
5832
|
+
* @generated from message trading.v1.SponsorshipInfo
|
|
5833
|
+
*/
|
|
5834
|
+
export declare class SponsorshipInfo extends Message<SponsorshipInfo> {
|
|
5835
|
+
/**
|
|
5836
|
+
* @generated from field: optional bool sponsored = 1;
|
|
5837
|
+
*/
|
|
5838
|
+
sponsored?: boolean;
|
|
5839
|
+
/**
|
|
5840
|
+
* @generated from field: optional string rejection_reason = 2;
|
|
5841
|
+
*/
|
|
5842
|
+
rejectionReason?: string;
|
|
5843
|
+
/**
|
|
5844
|
+
* @generated from field: optional trading.v1.SponsorSummary sponsor = 3;
|
|
5845
|
+
*/
|
|
5846
|
+
sponsor?: SponsorSummary;
|
|
5847
|
+
constructor(data?: PartialMessage<SponsorshipInfo>);
|
|
5848
|
+
static readonly runtime: typeof proto3;
|
|
5849
|
+
static readonly typeName = "trading.v1.SponsorshipInfo";
|
|
5850
|
+
static readonly fields: FieldList;
|
|
5851
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SponsorshipInfo;
|
|
5852
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SponsorshipInfo;
|
|
5853
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SponsorshipInfo;
|
|
5854
|
+
static equals(a: SponsorshipInfo | PlainMessage<SponsorshipInfo> | undefined, b: SponsorshipInfo | PlainMessage<SponsorshipInfo> | undefined): boolean;
|
|
5855
|
+
}
|
|
@@ -145,6 +145,14 @@ export var ChainId;
|
|
|
145
145
|
* @generated from enum value: XLAYER = 196;
|
|
146
146
|
*/
|
|
147
147
|
ChainId[ChainId["XLAYER"] = 196] = "XLAYER";
|
|
148
|
+
/**
|
|
149
|
+
* @generated from enum value: LINEA = 59144;
|
|
150
|
+
*/
|
|
151
|
+
ChainId[ChainId["LINEA"] = 59144] = "LINEA";
|
|
152
|
+
/**
|
|
153
|
+
* @generated from enum value: TEMPO = 4217;
|
|
154
|
+
*/
|
|
155
|
+
ChainId[ChainId["TEMPO"] = 4217] = "TEMPO";
|
|
148
156
|
})(ChainId || (ChainId = {}));
|
|
149
157
|
// Retrieve enum metadata with: proto3.getEnumType(ChainId)
|
|
150
158
|
proto3.util.setEnumType(ChainId, "trading.v1.ChainId", [
|
|
@@ -169,6 +177,8 @@ proto3.util.setEnumType(ChainId, "trading.v1.ChainId", [
|
|
|
169
177
|
{ no: 130, name: "UNICHAIN" },
|
|
170
178
|
{ no: 1868, name: "SONEIUM" },
|
|
171
179
|
{ no: 196, name: "XLAYER" },
|
|
180
|
+
{ no: 59144, name: "LINEA" },
|
|
181
|
+
{ no: 4217, name: "TEMPO" },
|
|
172
182
|
]);
|
|
173
183
|
/**
|
|
174
184
|
* @generated from enum trading.v1.Protocols
|
|
@@ -761,6 +771,254 @@ Encode7702Response.fields = proto3.util.newFieldList(() => [
|
|
|
761
771
|
{ no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
762
772
|
{ no: 2, name: "encoded_transaction", kind: "message", T: TransactionRequest },
|
|
763
773
|
]);
|
|
774
|
+
/**
|
|
775
|
+
* @generated from message trading.v1.Eip7702Authorization
|
|
776
|
+
*/
|
|
777
|
+
export class Eip7702Authorization extends Message {
|
|
778
|
+
constructor(data) {
|
|
779
|
+
super();
|
|
780
|
+
/**
|
|
781
|
+
* @generated from field: string address = 1;
|
|
782
|
+
*/
|
|
783
|
+
this.address = "";
|
|
784
|
+
/**
|
|
785
|
+
* @generated from field: string chain_id = 2;
|
|
786
|
+
*/
|
|
787
|
+
this.chainId = "";
|
|
788
|
+
/**
|
|
789
|
+
* @generated from field: string nonce = 3;
|
|
790
|
+
*/
|
|
791
|
+
this.nonce = "";
|
|
792
|
+
/**
|
|
793
|
+
* @generated from field: string r = 4;
|
|
794
|
+
*/
|
|
795
|
+
this.r = "";
|
|
796
|
+
/**
|
|
797
|
+
* @generated from field: string s = 5;
|
|
798
|
+
*/
|
|
799
|
+
this.s = "";
|
|
800
|
+
/**
|
|
801
|
+
* @generated from field: string y_parity = 6;
|
|
802
|
+
*/
|
|
803
|
+
this.yParity = "";
|
|
804
|
+
proto3.util.initPartial(data, this);
|
|
805
|
+
}
|
|
806
|
+
static fromBinary(bytes, options) {
|
|
807
|
+
return new Eip7702Authorization().fromBinary(bytes, options);
|
|
808
|
+
}
|
|
809
|
+
static fromJson(jsonValue, options) {
|
|
810
|
+
return new Eip7702Authorization().fromJson(jsonValue, options);
|
|
811
|
+
}
|
|
812
|
+
static fromJsonString(jsonString, options) {
|
|
813
|
+
return new Eip7702Authorization().fromJsonString(jsonString, options);
|
|
814
|
+
}
|
|
815
|
+
static equals(a, b) {
|
|
816
|
+
return proto3.util.equals(Eip7702Authorization, a, b);
|
|
817
|
+
}
|
|
818
|
+
}
|
|
819
|
+
Eip7702Authorization.runtime = proto3;
|
|
820
|
+
Eip7702Authorization.typeName = "trading.v1.Eip7702Authorization";
|
|
821
|
+
Eip7702Authorization.fields = proto3.util.newFieldList(() => [
|
|
822
|
+
{ no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
823
|
+
{ no: 2, name: "chain_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
824
|
+
{ no: 3, name: "nonce", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
825
|
+
{ no: 4, name: "r", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
826
|
+
{ no: 5, name: "s", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
827
|
+
{ no: 6, name: "y_parity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
828
|
+
]);
|
|
829
|
+
/**
|
|
830
|
+
* @generated from message trading.v1.Encode4337Request
|
|
831
|
+
*/
|
|
832
|
+
export class Encode4337Request extends Message {
|
|
833
|
+
constructor(data) {
|
|
834
|
+
super();
|
|
835
|
+
/**
|
|
836
|
+
* @generated from field: repeated trading.v1.TransactionRequest calls = 1;
|
|
837
|
+
*/
|
|
838
|
+
this.calls = [];
|
|
839
|
+
/**
|
|
840
|
+
* @generated from field: string sender = 2;
|
|
841
|
+
*/
|
|
842
|
+
this.sender = "";
|
|
843
|
+
/**
|
|
844
|
+
* @generated from field: trading.v1.ChainId chain_id = 3;
|
|
845
|
+
*/
|
|
846
|
+
this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
|
|
847
|
+
/**
|
|
848
|
+
* @generated from field: string paymaster_url = 4;
|
|
849
|
+
*/
|
|
850
|
+
this.paymasterUrl = "";
|
|
851
|
+
proto3.util.initPartial(data, this);
|
|
852
|
+
}
|
|
853
|
+
static fromBinary(bytes, options) {
|
|
854
|
+
return new Encode4337Request().fromBinary(bytes, options);
|
|
855
|
+
}
|
|
856
|
+
static fromJson(jsonValue, options) {
|
|
857
|
+
return new Encode4337Request().fromJson(jsonValue, options);
|
|
858
|
+
}
|
|
859
|
+
static fromJsonString(jsonString, options) {
|
|
860
|
+
return new Encode4337Request().fromJsonString(jsonString, options);
|
|
861
|
+
}
|
|
862
|
+
static equals(a, b) {
|
|
863
|
+
return proto3.util.equals(Encode4337Request, a, b);
|
|
864
|
+
}
|
|
865
|
+
}
|
|
866
|
+
Encode4337Request.runtime = proto3;
|
|
867
|
+
Encode4337Request.typeName = "trading.v1.Encode4337Request";
|
|
868
|
+
Encode4337Request.fields = proto3.util.newFieldList(() => [
|
|
869
|
+
{ no: 1, name: "calls", kind: "message", T: TransactionRequest, repeated: true },
|
|
870
|
+
{ no: 2, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
871
|
+
{ no: 3, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
|
|
872
|
+
{ no: 4, name: "paymaster_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
873
|
+
{ no: 5, name: "paymaster_service_context", kind: "message", T: Struct },
|
|
874
|
+
{ no: 6, name: "eip7702_auth", kind: "message", T: Eip7702Authorization, opt: true },
|
|
875
|
+
]);
|
|
876
|
+
/**
|
|
877
|
+
* @generated from message trading.v1.UserOperation
|
|
878
|
+
*/
|
|
879
|
+
export class UserOperation extends Message {
|
|
880
|
+
constructor(data) {
|
|
881
|
+
super();
|
|
882
|
+
/**
|
|
883
|
+
* @generated from field: string sender = 1;
|
|
884
|
+
*/
|
|
885
|
+
this.sender = "";
|
|
886
|
+
/**
|
|
887
|
+
* @generated from field: string nonce = 2;
|
|
888
|
+
*/
|
|
889
|
+
this.nonce = "";
|
|
890
|
+
/**
|
|
891
|
+
* @generated from field: string call_data = 3;
|
|
892
|
+
*/
|
|
893
|
+
this.callData = "";
|
|
894
|
+
/**
|
|
895
|
+
* @generated from field: string call_gas_limit = 4;
|
|
896
|
+
*/
|
|
897
|
+
this.callGasLimit = "";
|
|
898
|
+
/**
|
|
899
|
+
* @generated from field: string verification_gas_limit = 5;
|
|
900
|
+
*/
|
|
901
|
+
this.verificationGasLimit = "";
|
|
902
|
+
/**
|
|
903
|
+
* @generated from field: string pre_verification_gas = 6;
|
|
904
|
+
*/
|
|
905
|
+
this.preVerificationGas = "";
|
|
906
|
+
/**
|
|
907
|
+
* @generated from field: string max_fee_per_gas = 7;
|
|
908
|
+
*/
|
|
909
|
+
this.maxFeePerGas = "";
|
|
910
|
+
/**
|
|
911
|
+
* @generated from field: string max_priority_fee_per_gas = 8;
|
|
912
|
+
*/
|
|
913
|
+
this.maxPriorityFeePerGas = "";
|
|
914
|
+
/**
|
|
915
|
+
* @generated from field: string signature = 13;
|
|
916
|
+
*/
|
|
917
|
+
this.signature = "";
|
|
918
|
+
proto3.util.initPartial(data, this);
|
|
919
|
+
}
|
|
920
|
+
static fromBinary(bytes, options) {
|
|
921
|
+
return new UserOperation().fromBinary(bytes, options);
|
|
922
|
+
}
|
|
923
|
+
static fromJson(jsonValue, options) {
|
|
924
|
+
return new UserOperation().fromJson(jsonValue, options);
|
|
925
|
+
}
|
|
926
|
+
static fromJsonString(jsonString, options) {
|
|
927
|
+
return new UserOperation().fromJsonString(jsonString, options);
|
|
928
|
+
}
|
|
929
|
+
static equals(a, b) {
|
|
930
|
+
return proto3.util.equals(UserOperation, a, b);
|
|
931
|
+
}
|
|
932
|
+
}
|
|
933
|
+
UserOperation.runtime = proto3;
|
|
934
|
+
UserOperation.typeName = "trading.v1.UserOperation";
|
|
935
|
+
UserOperation.fields = proto3.util.newFieldList(() => [
|
|
936
|
+
{ no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
937
|
+
{ no: 2, name: "nonce", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
938
|
+
{ no: 3, name: "call_data", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
939
|
+
{ no: 4, name: "call_gas_limit", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
940
|
+
{ no: 5, name: "verification_gas_limit", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
941
|
+
{ no: 6, name: "pre_verification_gas", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
942
|
+
{ no: 7, name: "max_fee_per_gas", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
943
|
+
{ no: 8, name: "max_priority_fee_per_gas", 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 },
|
|
948
|
+
{ no: 13, name: "signature", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
949
|
+
{ no: 14, name: "eip7702_auth", kind: "message", T: Eip7702Authorization, opt: true },
|
|
950
|
+
{ no: 15, name: "factory", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
951
|
+
{ no: 16, name: "factory_data", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
952
|
+
]);
|
|
953
|
+
/**
|
|
954
|
+
* @generated from message trading.v1.SponsorMetadata
|
|
955
|
+
*/
|
|
956
|
+
export class SponsorMetadata extends Message {
|
|
957
|
+
constructor(data) {
|
|
958
|
+
super();
|
|
959
|
+
/**
|
|
960
|
+
* @generated from field: string name = 1;
|
|
961
|
+
*/
|
|
962
|
+
this.name = "";
|
|
963
|
+
proto3.util.initPartial(data, this);
|
|
964
|
+
}
|
|
965
|
+
static fromBinary(bytes, options) {
|
|
966
|
+
return new SponsorMetadata().fromBinary(bytes, options);
|
|
967
|
+
}
|
|
968
|
+
static fromJson(jsonValue, options) {
|
|
969
|
+
return new SponsorMetadata().fromJson(jsonValue, options);
|
|
970
|
+
}
|
|
971
|
+
static fromJsonString(jsonString, options) {
|
|
972
|
+
return new SponsorMetadata().fromJsonString(jsonString, options);
|
|
973
|
+
}
|
|
974
|
+
static equals(a, b) {
|
|
975
|
+
return proto3.util.equals(SponsorMetadata, a, b);
|
|
976
|
+
}
|
|
977
|
+
}
|
|
978
|
+
SponsorMetadata.runtime = proto3;
|
|
979
|
+
SponsorMetadata.typeName = "trading.v1.SponsorMetadata";
|
|
980
|
+
SponsorMetadata.fields = proto3.util.newFieldList(() => [
|
|
981
|
+
{ no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
982
|
+
{ no: 2, name: "icon", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
983
|
+
]);
|
|
984
|
+
/**
|
|
985
|
+
* @generated from message trading.v1.Encode4337Response
|
|
986
|
+
*/
|
|
987
|
+
export class Encode4337Response extends Message {
|
|
988
|
+
constructor(data) {
|
|
989
|
+
super();
|
|
990
|
+
/**
|
|
991
|
+
* @generated from field: string request_id = 1;
|
|
992
|
+
*/
|
|
993
|
+
this.requestId = "";
|
|
994
|
+
/**
|
|
995
|
+
* @generated from field: bool gas_sponsored = 4;
|
|
996
|
+
*/
|
|
997
|
+
this.gasSponsored = false;
|
|
998
|
+
proto3.util.initPartial(data, this);
|
|
999
|
+
}
|
|
1000
|
+
static fromBinary(bytes, options) {
|
|
1001
|
+
return new Encode4337Response().fromBinary(bytes, options);
|
|
1002
|
+
}
|
|
1003
|
+
static fromJson(jsonValue, options) {
|
|
1004
|
+
return new Encode4337Response().fromJson(jsonValue, options);
|
|
1005
|
+
}
|
|
1006
|
+
static fromJsonString(jsonString, options) {
|
|
1007
|
+
return new Encode4337Response().fromJsonString(jsonString, options);
|
|
1008
|
+
}
|
|
1009
|
+
static equals(a, b) {
|
|
1010
|
+
return proto3.util.equals(Encode4337Response, a, b);
|
|
1011
|
+
}
|
|
1012
|
+
}
|
|
1013
|
+
Encode4337Response.runtime = proto3;
|
|
1014
|
+
Encode4337Response.typeName = "trading.v1.Encode4337Response";
|
|
1015
|
+
Encode4337Response.fields = proto3.util.newFieldList(() => [
|
|
1016
|
+
{ no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1017
|
+
{ no: 2, name: "user_operation", kind: "message", T: UserOperation },
|
|
1018
|
+
{ no: 3, name: "sponsor_metadata", kind: "message", T: SponsorMetadata },
|
|
1019
|
+
{ no: 4, name: "gas_sponsored", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
1020
|
+
{ no: 5, name: "gas_sponsorship_rejection_reason", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1021
|
+
]);
|
|
764
1022
|
/**
|
|
765
1023
|
* @generated from message trading.v1.Swap5792Request
|
|
766
1024
|
*/
|
|
@@ -1604,6 +1862,7 @@ QuoteRequest.fields = proto3.util.newFieldList(() => [
|
|
|
1604
1862
|
{ no: 18, name: "generate_permit_as_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
1605
1863
|
{ no: 19, name: "hooks_options", kind: "enum", T: proto3.getEnumType(HooksOptions), opt: true },
|
|
1606
1864
|
{ no: 20, name: "integrator_fees", kind: "message", T: IntegratorFee, repeated: true },
|
|
1865
|
+
{ no: 21, name: "wallet_execution_context", kind: "message", T: WalletExecutionContext, opt: true },
|
|
1607
1866
|
]);
|
|
1608
1867
|
/**
|
|
1609
1868
|
* @generated from message trading.v1.IntegratorFee
|
|
@@ -1698,6 +1957,7 @@ QuoteResponse.fields = proto3.util.newFieldList(() => [
|
|
|
1698
1957
|
{ no: 18, name: "priority_permit_data", kind: "message", T: PriorityPermitData, oneof: "permit_data" },
|
|
1699
1958
|
{ no: 19, name: "permit_transaction", kind: "message", T: TransactionRequest, opt: true },
|
|
1700
1959
|
{ no: 20, name: "permit_gas_fee", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1960
|
+
{ no: 21, name: "sponsorship_info", kind: "message", T: SponsorshipInfo, opt: true },
|
|
1701
1961
|
]);
|
|
1702
1962
|
/**
|
|
1703
1963
|
* @generated from message trading.v1.ClassicInput
|
|
@@ -1846,6 +2106,7 @@ V2PoolInRoute.fields = proto3.util.newFieldList(() => [
|
|
|
1846
2106
|
{ no: 6, name: "reserve1", kind: "message", T: V2Reserve },
|
|
1847
2107
|
{ no: 7, name: "amount_in", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1848
2108
|
{ no: 8, name: "amount_out", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2109
|
+
{ no: 9, name: "max_hop_slippage", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1849
2110
|
]);
|
|
1850
2111
|
/**
|
|
1851
2112
|
* @generated from message trading.v1.V3PoolInRoute
|
|
@@ -1905,6 +2166,7 @@ V3PoolInRoute.fields = proto3.util.newFieldList(() => [
|
|
|
1905
2166
|
{ no: 8, name: "fee", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1906
2167
|
{ no: 9, name: "amount_in", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1907
2168
|
{ no: 10, name: "amount_out", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2169
|
+
{ no: 11, name: "max_hop_slippage", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1908
2170
|
]);
|
|
1909
2171
|
/**
|
|
1910
2172
|
* @generated from message trading.v1.V4PoolInRoute
|
|
@@ -1974,6 +2236,7 @@ V4PoolInRoute.fields = proto3.util.newFieldList(() => [
|
|
|
1974
2236
|
{ no: 10, name: "hooks", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1975
2237
|
{ no: 11, name: "amount_in", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1976
2238
|
{ no: 12, name: "amount_out", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2239
|
+
{ no: 13, name: "max_hop_slippage", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1977
2240
|
]);
|
|
1978
2241
|
/**
|
|
1979
2242
|
* @generated from message trading.v1.TokenInRoute
|
|
@@ -2800,6 +3063,10 @@ export class GetSwapsRequest extends Message {
|
|
|
2800
3063
|
* @generated from field: trading.v1.ChainId chain_id = 2;
|
|
2801
3064
|
*/
|
|
2802
3065
|
this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
|
|
3066
|
+
/**
|
|
3067
|
+
* @generated from field: repeated string user_op_hashes = 3;
|
|
3068
|
+
*/
|
|
3069
|
+
this.userOpHashes = [];
|
|
2803
3070
|
proto3.util.initPartial(data, this);
|
|
2804
3071
|
}
|
|
2805
3072
|
static fromBinary(bytes, options) {
|
|
@@ -2820,6 +3087,7 @@ GetSwapsRequest.typeName = "trading.v1.GetSwapsRequest";
|
|
|
2820
3087
|
GetSwapsRequest.fields = proto3.util.newFieldList(() => [
|
|
2821
3088
|
{ no: 1, name: "tx_hashes", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
2822
3089
|
{ no: 2, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
|
|
3090
|
+
{ no: 3, name: "user_op_hashes", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
2823
3091
|
]);
|
|
2824
3092
|
/**
|
|
2825
3093
|
* @generated from message trading.v1.GetSwapsResponse
|
|
@@ -2874,6 +3142,10 @@ export class SwapResult extends Message {
|
|
|
2874
3142
|
* @generated from field: string tx_hash = 3;
|
|
2875
3143
|
*/
|
|
2876
3144
|
this.txHash = "";
|
|
3145
|
+
/**
|
|
3146
|
+
* @generated from field: trading.v1.SwapResult.HashType hash_type = 6;
|
|
3147
|
+
*/
|
|
3148
|
+
this.hashType = SwapResult_HashType.HASH_TYPE_UNSPECIFIED;
|
|
2877
3149
|
proto3.util.initPartial(data, this);
|
|
2878
3150
|
}
|
|
2879
3151
|
static fromBinary(bytes, options) {
|
|
@@ -2896,6 +3168,8 @@ SwapResult.fields = proto3.util.newFieldList(() => [
|
|
|
2896
3168
|
{ no: 2, name: "swap_type", kind: "enum", T: proto3.getEnumType(SwapType) },
|
|
2897
3169
|
{ no: 3, name: "tx_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2898
3170
|
{ no: 4, name: "swap_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
3171
|
+
{ no: 5, name: "user_op_hash", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
3172
|
+
{ no: 6, name: "hash_type", kind: "enum", T: proto3.getEnumType(SwapResult_HashType) },
|
|
2899
3173
|
]);
|
|
2900
3174
|
/**
|
|
2901
3175
|
* @generated from enum trading.v1.SwapResult.SwapStatus
|
|
@@ -2936,6 +3210,30 @@ proto3.util.setEnumType(SwapResult_SwapStatus, "trading.v1.SwapResult.SwapStatus
|
|
|
2936
3210
|
{ no: 4, name: "FAILED" },
|
|
2937
3211
|
{ no: 5, name: "EXPIRED" },
|
|
2938
3212
|
]);
|
|
3213
|
+
/**
|
|
3214
|
+
* @generated from enum trading.v1.SwapResult.HashType
|
|
3215
|
+
*/
|
|
3216
|
+
export var SwapResult_HashType;
|
|
3217
|
+
(function (SwapResult_HashType) {
|
|
3218
|
+
/**
|
|
3219
|
+
* @generated from enum value: HASH_TYPE_UNSPECIFIED = 0;
|
|
3220
|
+
*/
|
|
3221
|
+
SwapResult_HashType[SwapResult_HashType["HASH_TYPE_UNSPECIFIED"] = 0] = "HASH_TYPE_UNSPECIFIED";
|
|
3222
|
+
/**
|
|
3223
|
+
* @generated from enum value: TX = 1;
|
|
3224
|
+
*/
|
|
3225
|
+
SwapResult_HashType[SwapResult_HashType["TX"] = 1] = "TX";
|
|
3226
|
+
/**
|
|
3227
|
+
* @generated from enum value: USER_OP = 2;
|
|
3228
|
+
*/
|
|
3229
|
+
SwapResult_HashType[SwapResult_HashType["USER_OP"] = 2] = "USER_OP";
|
|
3230
|
+
})(SwapResult_HashType || (SwapResult_HashType = {}));
|
|
3231
|
+
// Retrieve enum metadata with: proto3.getEnumType(SwapResult_HashType)
|
|
3232
|
+
proto3.util.setEnumType(SwapResult_HashType, "trading.v1.SwapResult.HashType", [
|
|
3233
|
+
{ no: 0, name: "HASH_TYPE_UNSPECIFIED" },
|
|
3234
|
+
{ no: 1, name: "TX" },
|
|
3235
|
+
{ no: 2, name: "USER_OP" },
|
|
3236
|
+
]);
|
|
2939
3237
|
/**
|
|
2940
3238
|
* @generated from message trading.v1.Customer
|
|
2941
3239
|
*/
|
|
@@ -6552,3 +6850,58 @@ WalletInfo.fields = proto3.util.newFieldList(() => [
|
|
|
6552
6850
|
{ no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
6553
6851
|
{ no: 3, name: "rdns", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
6554
6852
|
]);
|
|
6853
|
+
/**
|
|
6854
|
+
* @generated from message trading.v1.SponsorSummary
|
|
6855
|
+
*/
|
|
6856
|
+
export class SponsorSummary extends Message {
|
|
6857
|
+
constructor(data) {
|
|
6858
|
+
super();
|
|
6859
|
+
proto3.util.initPartial(data, this);
|
|
6860
|
+
}
|
|
6861
|
+
static fromBinary(bytes, options) {
|
|
6862
|
+
return new SponsorSummary().fromBinary(bytes, options);
|
|
6863
|
+
}
|
|
6864
|
+
static fromJson(jsonValue, options) {
|
|
6865
|
+
return new SponsorSummary().fromJson(jsonValue, options);
|
|
6866
|
+
}
|
|
6867
|
+
static fromJsonString(jsonString, options) {
|
|
6868
|
+
return new SponsorSummary().fromJsonString(jsonString, options);
|
|
6869
|
+
}
|
|
6870
|
+
static equals(a, b) {
|
|
6871
|
+
return proto3.util.equals(SponsorSummary, a, b);
|
|
6872
|
+
}
|
|
6873
|
+
}
|
|
6874
|
+
SponsorSummary.runtime = proto3;
|
|
6875
|
+
SponsorSummary.typeName = "trading.v1.SponsorSummary";
|
|
6876
|
+
SponsorSummary.fields = proto3.util.newFieldList(() => [
|
|
6877
|
+
{ no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
6878
|
+
{ no: 2, name: "logo_url", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
6879
|
+
]);
|
|
6880
|
+
/**
|
|
6881
|
+
* @generated from message trading.v1.SponsorshipInfo
|
|
6882
|
+
*/
|
|
6883
|
+
export class SponsorshipInfo extends Message {
|
|
6884
|
+
constructor(data) {
|
|
6885
|
+
super();
|
|
6886
|
+
proto3.util.initPartial(data, this);
|
|
6887
|
+
}
|
|
6888
|
+
static fromBinary(bytes, options) {
|
|
6889
|
+
return new SponsorshipInfo().fromBinary(bytes, options);
|
|
6890
|
+
}
|
|
6891
|
+
static fromJson(jsonValue, options) {
|
|
6892
|
+
return new SponsorshipInfo().fromJson(jsonValue, options);
|
|
6893
|
+
}
|
|
6894
|
+
static fromJsonString(jsonString, options) {
|
|
6895
|
+
return new SponsorshipInfo().fromJsonString(jsonString, options);
|
|
6896
|
+
}
|
|
6897
|
+
static equals(a, b) {
|
|
6898
|
+
return proto3.util.equals(SponsorshipInfo, a, b);
|
|
6899
|
+
}
|
|
6900
|
+
}
|
|
6901
|
+
SponsorshipInfo.runtime = proto3;
|
|
6902
|
+
SponsorshipInfo.typeName = "trading.v1.SponsorshipInfo";
|
|
6903
|
+
SponsorshipInfo.fields = proto3.util.newFieldList(() => [
|
|
6904
|
+
{ no: 1, name: "sponsored", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
6905
|
+
{ no: 2, name: "rejection_reason", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
6906
|
+
{ no: 3, name: "sponsor", kind: "message", T: SponsorSummary, opt: true },
|
|
6907
|
+
]);
|