@uniswap/client-trading 0.1.4 → 0.1.6
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 +339 -30
- package/dist/trading/v1/api_pb.js +426 -27
- 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
|
|
@@ -163,27 +171,7 @@ export declare enum RoutingPreference {
|
|
|
163
171
|
/**
|
|
164
172
|
* @generated from enum value: FASTEST = 1;
|
|
165
173
|
*/
|
|
166
|
-
FASTEST = 1
|
|
167
|
-
/**
|
|
168
|
-
* @generated from enum value: ROUTING_CLASSIC = 2;
|
|
169
|
-
*/
|
|
170
|
-
ROUTING_CLASSIC = 2,
|
|
171
|
-
/**
|
|
172
|
-
* @generated from enum value: ROUTING_UNISWAPX_V2 = 4;
|
|
173
|
-
*/
|
|
174
|
-
ROUTING_UNISWAPX_V2 = 4,
|
|
175
|
-
/**
|
|
176
|
-
* @generated from enum value: V3_ONLY = 5;
|
|
177
|
-
*/
|
|
178
|
-
V3_ONLY = 5,
|
|
179
|
-
/**
|
|
180
|
-
* @generated from enum value: V2_ONLY = 6;
|
|
181
|
-
*/
|
|
182
|
-
V2_ONLY = 6,
|
|
183
|
-
/**
|
|
184
|
-
* @generated from enum value: BEST_PRICE_V2 = 7;
|
|
185
|
-
*/
|
|
186
|
-
BEST_PRICE_V2 = 7
|
|
174
|
+
FASTEST = 1
|
|
187
175
|
}
|
|
188
176
|
/**
|
|
189
177
|
* @generated from enum trading.v1.SpreadOptimization
|
|
@@ -572,6 +560,215 @@ export declare class Encode7702Response extends Message<Encode7702Response> {
|
|
|
572
560
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Encode7702Response;
|
|
573
561
|
static equals(a: Encode7702Response | PlainMessage<Encode7702Response> | undefined, b: Encode7702Response | PlainMessage<Encode7702Response> | undefined): boolean;
|
|
574
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 v = 6;
|
|
589
|
+
*/
|
|
590
|
+
v: string;
|
|
591
|
+
/**
|
|
592
|
+
* @generated from field: string y_parity = 7;
|
|
593
|
+
*/
|
|
594
|
+
yParity: string;
|
|
595
|
+
constructor(data?: PartialMessage<Eip7702Authorization>);
|
|
596
|
+
static readonly runtime: typeof proto3;
|
|
597
|
+
static readonly typeName = "trading.v1.Eip7702Authorization";
|
|
598
|
+
static readonly fields: FieldList;
|
|
599
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Eip7702Authorization;
|
|
600
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Eip7702Authorization;
|
|
601
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Eip7702Authorization;
|
|
602
|
+
static equals(a: Eip7702Authorization | PlainMessage<Eip7702Authorization> | undefined, b: Eip7702Authorization | PlainMessage<Eip7702Authorization> | undefined): boolean;
|
|
603
|
+
}
|
|
604
|
+
/**
|
|
605
|
+
* @generated from message trading.v1.Encode4337Request
|
|
606
|
+
*/
|
|
607
|
+
export declare class Encode4337Request extends Message<Encode4337Request> {
|
|
608
|
+
/**
|
|
609
|
+
* @generated from field: repeated trading.v1.TransactionRequest calls = 1;
|
|
610
|
+
*/
|
|
611
|
+
calls: TransactionRequest[];
|
|
612
|
+
/**
|
|
613
|
+
* @generated from field: string sender = 2;
|
|
614
|
+
*/
|
|
615
|
+
sender: string;
|
|
616
|
+
/**
|
|
617
|
+
* @generated from field: trading.v1.ChainId chain_id = 3;
|
|
618
|
+
*/
|
|
619
|
+
chainId: ChainId;
|
|
620
|
+
/**
|
|
621
|
+
* @generated from field: string paymaster_url = 4;
|
|
622
|
+
*/
|
|
623
|
+
paymasterUrl: string;
|
|
624
|
+
/**
|
|
625
|
+
* @generated from field: google.protobuf.Struct paymaster_service_context = 5;
|
|
626
|
+
*/
|
|
627
|
+
paymasterServiceContext?: Struct;
|
|
628
|
+
/**
|
|
629
|
+
* @generated from field: optional trading.v1.Eip7702Authorization eip7702_auth = 6;
|
|
630
|
+
*/
|
|
631
|
+
eip7702Auth?: Eip7702Authorization;
|
|
632
|
+
constructor(data?: PartialMessage<Encode4337Request>);
|
|
633
|
+
static readonly runtime: typeof proto3;
|
|
634
|
+
static readonly typeName = "trading.v1.Encode4337Request";
|
|
635
|
+
static readonly fields: FieldList;
|
|
636
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Encode4337Request;
|
|
637
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Encode4337Request;
|
|
638
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Encode4337Request;
|
|
639
|
+
static equals(a: Encode4337Request | PlainMessage<Encode4337Request> | undefined, b: Encode4337Request | PlainMessage<Encode4337Request> | undefined): boolean;
|
|
640
|
+
}
|
|
641
|
+
/**
|
|
642
|
+
* @generated from message trading.v1.UserOperation
|
|
643
|
+
*/
|
|
644
|
+
export declare class UserOperation extends Message<UserOperation> {
|
|
645
|
+
/**
|
|
646
|
+
* @generated from field: string sender = 1;
|
|
647
|
+
*/
|
|
648
|
+
sender: string;
|
|
649
|
+
/**
|
|
650
|
+
* @generated from field: string nonce = 2;
|
|
651
|
+
*/
|
|
652
|
+
nonce: string;
|
|
653
|
+
/**
|
|
654
|
+
* @generated from field: string call_data = 3;
|
|
655
|
+
*/
|
|
656
|
+
callData: string;
|
|
657
|
+
/**
|
|
658
|
+
* @generated from field: string call_gas_limit = 4;
|
|
659
|
+
*/
|
|
660
|
+
callGasLimit: string;
|
|
661
|
+
/**
|
|
662
|
+
* @generated from field: string verification_gas_limit = 5;
|
|
663
|
+
*/
|
|
664
|
+
verificationGasLimit: string;
|
|
665
|
+
/**
|
|
666
|
+
* @generated from field: string pre_verification_gas = 6;
|
|
667
|
+
*/
|
|
668
|
+
preVerificationGas: string;
|
|
669
|
+
/**
|
|
670
|
+
* @generated from field: string max_fee_per_gas = 7;
|
|
671
|
+
*/
|
|
672
|
+
maxFeePerGas: string;
|
|
673
|
+
/**
|
|
674
|
+
* @generated from field: string max_priority_fee_per_gas = 8;
|
|
675
|
+
*/
|
|
676
|
+
maxPriorityFeePerGas: string;
|
|
677
|
+
/**
|
|
678
|
+
* @generated from field: string paymaster = 9;
|
|
679
|
+
*/
|
|
680
|
+
paymaster: string;
|
|
681
|
+
/**
|
|
682
|
+
* @generated from field: string paymaster_verification_gas_limit = 10;
|
|
683
|
+
*/
|
|
684
|
+
paymasterVerificationGasLimit: string;
|
|
685
|
+
/**
|
|
686
|
+
* @generated from field: string paymaster_post_op_gas_limit = 11;
|
|
687
|
+
*/
|
|
688
|
+
paymasterPostOpGasLimit: string;
|
|
689
|
+
/**
|
|
690
|
+
* @generated from field: string paymaster_data = 12;
|
|
691
|
+
*/
|
|
692
|
+
paymasterData: string;
|
|
693
|
+
/**
|
|
694
|
+
* @generated from field: string signature = 13;
|
|
695
|
+
*/
|
|
696
|
+
signature: string;
|
|
697
|
+
/**
|
|
698
|
+
* @generated from field: optional trading.v1.Eip7702Authorization eip7702_auth = 14;
|
|
699
|
+
*/
|
|
700
|
+
eip7702Auth?: Eip7702Authorization;
|
|
701
|
+
/**
|
|
702
|
+
* @generated from field: optional string factory = 15;
|
|
703
|
+
*/
|
|
704
|
+
factory?: string;
|
|
705
|
+
/**
|
|
706
|
+
* @generated from field: optional string factory_data = 16;
|
|
707
|
+
*/
|
|
708
|
+
factoryData?: string;
|
|
709
|
+
constructor(data?: PartialMessage<UserOperation>);
|
|
710
|
+
static readonly runtime: typeof proto3;
|
|
711
|
+
static readonly typeName = "trading.v1.UserOperation";
|
|
712
|
+
static readonly fields: FieldList;
|
|
713
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): UserOperation;
|
|
714
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): UserOperation;
|
|
715
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): UserOperation;
|
|
716
|
+
static equals(a: UserOperation | PlainMessage<UserOperation> | undefined, b: UserOperation | PlainMessage<UserOperation> | undefined): boolean;
|
|
717
|
+
}
|
|
718
|
+
/**
|
|
719
|
+
* @generated from message trading.v1.SponsorMetadata
|
|
720
|
+
*/
|
|
721
|
+
export declare class SponsorMetadata extends Message<SponsorMetadata> {
|
|
722
|
+
/**
|
|
723
|
+
* @generated from field: string name = 1;
|
|
724
|
+
*/
|
|
725
|
+
name: string;
|
|
726
|
+
/**
|
|
727
|
+
* @generated from field: string icon = 2;
|
|
728
|
+
*/
|
|
729
|
+
icon: string;
|
|
730
|
+
constructor(data?: PartialMessage<SponsorMetadata>);
|
|
731
|
+
static readonly runtime: typeof proto3;
|
|
732
|
+
static readonly typeName = "trading.v1.SponsorMetadata";
|
|
733
|
+
static readonly fields: FieldList;
|
|
734
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SponsorMetadata;
|
|
735
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SponsorMetadata;
|
|
736
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SponsorMetadata;
|
|
737
|
+
static equals(a: SponsorMetadata | PlainMessage<SponsorMetadata> | undefined, b: SponsorMetadata | PlainMessage<SponsorMetadata> | undefined): boolean;
|
|
738
|
+
}
|
|
739
|
+
/**
|
|
740
|
+
* @generated from message trading.v1.Encode4337Response
|
|
741
|
+
*/
|
|
742
|
+
export declare class Encode4337Response extends Message<Encode4337Response> {
|
|
743
|
+
/**
|
|
744
|
+
* @generated from field: string request_id = 1;
|
|
745
|
+
*/
|
|
746
|
+
requestId: string;
|
|
747
|
+
/**
|
|
748
|
+
* @generated from field: trading.v1.UserOperation user_operation = 2;
|
|
749
|
+
*/
|
|
750
|
+
userOperation?: UserOperation;
|
|
751
|
+
/**
|
|
752
|
+
* @generated from field: trading.v1.SponsorMetadata sponsor_metadata = 3;
|
|
753
|
+
*/
|
|
754
|
+
sponsorMetadata?: SponsorMetadata;
|
|
755
|
+
/**
|
|
756
|
+
* @generated from field: bool gas_sponsored = 4;
|
|
757
|
+
*/
|
|
758
|
+
gasSponsored: boolean;
|
|
759
|
+
/**
|
|
760
|
+
* @generated from field: string fallback_reason = 5;
|
|
761
|
+
*/
|
|
762
|
+
fallbackReason: string;
|
|
763
|
+
constructor(data?: PartialMessage<Encode4337Response>);
|
|
764
|
+
static readonly runtime: typeof proto3;
|
|
765
|
+
static readonly typeName = "trading.v1.Encode4337Response";
|
|
766
|
+
static readonly fields: FieldList;
|
|
767
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Encode4337Response;
|
|
768
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Encode4337Response;
|
|
769
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Encode4337Response;
|
|
770
|
+
static equals(a: Encode4337Response | PlainMessage<Encode4337Response> | undefined, b: Encode4337Response | PlainMessage<Encode4337Response> | undefined): boolean;
|
|
771
|
+
}
|
|
575
772
|
/**
|
|
576
773
|
* @generated from message trading.v1.Swap5792Request
|
|
577
774
|
*/
|
|
@@ -1226,14 +1423,6 @@ export declare class QuoteRequest extends Message<QuoteRequest> {
|
|
|
1226
1423
|
* @generated from field: optional trading.v1.PermitAmount permit_amount = 15;
|
|
1227
1424
|
*/
|
|
1228
1425
|
permitAmount?: PermitAmount;
|
|
1229
|
-
/**
|
|
1230
|
-
* @generated from field: optional int32 portion_bips = 16;
|
|
1231
|
-
*/
|
|
1232
|
-
portionBips?: number;
|
|
1233
|
-
/**
|
|
1234
|
-
* @generated from field: optional string portion_recipient = 17;
|
|
1235
|
-
*/
|
|
1236
|
-
portionRecipient?: string;
|
|
1237
1426
|
/**
|
|
1238
1427
|
* @generated from field: bool generate_permit_as_transaction = 18;
|
|
1239
1428
|
*/
|
|
@@ -1242,6 +1431,14 @@ export declare class QuoteRequest extends Message<QuoteRequest> {
|
|
|
1242
1431
|
* @generated from field: optional trading.v1.HooksOptions hooks_options = 19;
|
|
1243
1432
|
*/
|
|
1244
1433
|
hooksOptions?: HooksOptions;
|
|
1434
|
+
/**
|
|
1435
|
+
* @generated from field: repeated trading.v1.IntegratorFee integrator_fees = 20;
|
|
1436
|
+
*/
|
|
1437
|
+
integratorFees: IntegratorFee[];
|
|
1438
|
+
/**
|
|
1439
|
+
* @generated from field: optional trading.v1.WalletExecutionContext wallet_execution_context = 21;
|
|
1440
|
+
*/
|
|
1441
|
+
walletExecutionContext?: WalletExecutionContext;
|
|
1245
1442
|
constructor(data?: PartialMessage<QuoteRequest>);
|
|
1246
1443
|
static readonly runtime: typeof proto3;
|
|
1247
1444
|
static readonly typeName = "trading.v1.QuoteRequest";
|
|
@@ -1251,6 +1448,27 @@ export declare class QuoteRequest extends Message<QuoteRequest> {
|
|
|
1251
1448
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): QuoteRequest;
|
|
1252
1449
|
static equals(a: QuoteRequest | PlainMessage<QuoteRequest> | undefined, b: QuoteRequest | PlainMessage<QuoteRequest> | undefined): boolean;
|
|
1253
1450
|
}
|
|
1451
|
+
/**
|
|
1452
|
+
* @generated from message trading.v1.IntegratorFee
|
|
1453
|
+
*/
|
|
1454
|
+
export declare class IntegratorFee extends Message<IntegratorFee> {
|
|
1455
|
+
/**
|
|
1456
|
+
* @generated from field: int32 bips_x100 = 1;
|
|
1457
|
+
*/
|
|
1458
|
+
bipsX100: number;
|
|
1459
|
+
/**
|
|
1460
|
+
* @generated from field: string recipient = 2;
|
|
1461
|
+
*/
|
|
1462
|
+
recipient: string;
|
|
1463
|
+
constructor(data?: PartialMessage<IntegratorFee>);
|
|
1464
|
+
static readonly runtime: typeof proto3;
|
|
1465
|
+
static readonly typeName = "trading.v1.IntegratorFee";
|
|
1466
|
+
static readonly fields: FieldList;
|
|
1467
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): IntegratorFee;
|
|
1468
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): IntegratorFee;
|
|
1469
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): IntegratorFee;
|
|
1470
|
+
static equals(a: IntegratorFee | PlainMessage<IntegratorFee> | undefined, b: IntegratorFee | PlainMessage<IntegratorFee> | undefined): boolean;
|
|
1471
|
+
}
|
|
1254
1472
|
/**
|
|
1255
1473
|
* @generated from message trading.v1.QuoteResponse
|
|
1256
1474
|
*/
|
|
@@ -1369,6 +1587,10 @@ export declare class QuoteResponse extends Message<QuoteResponse> {
|
|
|
1369
1587
|
* @generated from field: optional string permit_gas_fee = 20;
|
|
1370
1588
|
*/
|
|
1371
1589
|
permitGasFee?: string;
|
|
1590
|
+
/**
|
|
1591
|
+
* @generated from field: optional trading.v1.SponsorshipInfo sponsorship_info = 21;
|
|
1592
|
+
*/
|
|
1593
|
+
sponsorshipInfo?: SponsorshipInfo;
|
|
1372
1594
|
constructor(data?: PartialMessage<QuoteResponse>);
|
|
1373
1595
|
static readonly runtime: typeof proto3;
|
|
1374
1596
|
static readonly typeName = "trading.v1.QuoteResponse";
|
|
@@ -1498,6 +1720,10 @@ export declare class V2PoolInRoute extends Message<V2PoolInRoute> {
|
|
|
1498
1720
|
* @generated from field: optional string amount_out = 8;
|
|
1499
1721
|
*/
|
|
1500
1722
|
amountOut?: string;
|
|
1723
|
+
/**
|
|
1724
|
+
* @generated from field: optional string max_hop_slippage = 9;
|
|
1725
|
+
*/
|
|
1726
|
+
maxHopSlippage?: string;
|
|
1501
1727
|
constructor(data?: PartialMessage<V2PoolInRoute>);
|
|
1502
1728
|
static readonly runtime: typeof proto3;
|
|
1503
1729
|
static readonly typeName = "trading.v1.V2PoolInRoute";
|
|
@@ -1551,6 +1777,10 @@ export declare class V3PoolInRoute extends Message<V3PoolInRoute> {
|
|
|
1551
1777
|
* @generated from field: optional string amount_out = 10;
|
|
1552
1778
|
*/
|
|
1553
1779
|
amountOut?: string;
|
|
1780
|
+
/**
|
|
1781
|
+
* @generated from field: optional string max_hop_slippage = 11;
|
|
1782
|
+
*/
|
|
1783
|
+
maxHopSlippage?: string;
|
|
1554
1784
|
constructor(data?: PartialMessage<V3PoolInRoute>);
|
|
1555
1785
|
static readonly runtime: typeof proto3;
|
|
1556
1786
|
static readonly typeName = "trading.v1.V3PoolInRoute";
|
|
@@ -1612,6 +1842,10 @@ export declare class V4PoolInRoute extends Message<V4PoolInRoute> {
|
|
|
1612
1842
|
* @generated from field: optional string amount_out = 12;
|
|
1613
1843
|
*/
|
|
1614
1844
|
amountOut?: string;
|
|
1845
|
+
/**
|
|
1846
|
+
* @generated from field: optional string max_hop_slippage = 13;
|
|
1847
|
+
*/
|
|
1848
|
+
maxHopSlippage?: string;
|
|
1615
1849
|
constructor(data?: PartialMessage<V4PoolInRoute>);
|
|
1616
1850
|
static readonly runtime: typeof proto3;
|
|
1617
1851
|
static readonly typeName = "trading.v1.V4PoolInRoute";
|
|
@@ -2390,6 +2624,10 @@ export declare class GetSwapsRequest extends Message<GetSwapsRequest> {
|
|
|
2390
2624
|
* @generated from field: trading.v1.ChainId chain_id = 2;
|
|
2391
2625
|
*/
|
|
2392
2626
|
chainId: ChainId;
|
|
2627
|
+
/**
|
|
2628
|
+
* @generated from field: repeated string user_op_hashes = 3;
|
|
2629
|
+
*/
|
|
2630
|
+
userOpHashes: string[];
|
|
2393
2631
|
constructor(data?: PartialMessage<GetSwapsRequest>);
|
|
2394
2632
|
static readonly runtime: typeof proto3;
|
|
2395
2633
|
static readonly typeName = "trading.v1.GetSwapsRequest";
|
|
@@ -2440,6 +2678,14 @@ export declare class SwapResult extends Message<SwapResult> {
|
|
|
2440
2678
|
* @generated from field: optional string swap_id = 4;
|
|
2441
2679
|
*/
|
|
2442
2680
|
swapId?: string;
|
|
2681
|
+
/**
|
|
2682
|
+
* @generated from field: optional string user_op_hash = 5;
|
|
2683
|
+
*/
|
|
2684
|
+
userOpHash?: string;
|
|
2685
|
+
/**
|
|
2686
|
+
* @generated from field: trading.v1.SwapResult.HashType hash_type = 6;
|
|
2687
|
+
*/
|
|
2688
|
+
hashType: SwapResult_HashType;
|
|
2443
2689
|
constructor(data?: PartialMessage<SwapResult>);
|
|
2444
2690
|
static readonly runtime: typeof proto3;
|
|
2445
2691
|
static readonly typeName = "trading.v1.SwapResult";
|
|
@@ -2478,6 +2724,23 @@ export declare enum SwapResult_SwapStatus {
|
|
|
2478
2724
|
*/
|
|
2479
2725
|
EXPIRED = 5
|
|
2480
2726
|
}
|
|
2727
|
+
/**
|
|
2728
|
+
* @generated from enum trading.v1.SwapResult.HashType
|
|
2729
|
+
*/
|
|
2730
|
+
export declare enum SwapResult_HashType {
|
|
2731
|
+
/**
|
|
2732
|
+
* @generated from enum value: HASH_TYPE_UNSPECIFIED = 0;
|
|
2733
|
+
*/
|
|
2734
|
+
HASH_TYPE_UNSPECIFIED = 0,
|
|
2735
|
+
/**
|
|
2736
|
+
* @generated from enum value: TX = 1;
|
|
2737
|
+
*/
|
|
2738
|
+
TX = 1,
|
|
2739
|
+
/**
|
|
2740
|
+
* @generated from enum value: USER_OP = 2;
|
|
2741
|
+
*/
|
|
2742
|
+
USER_OP = 2
|
|
2743
|
+
}
|
|
2481
2744
|
/**
|
|
2482
2745
|
* @generated from message trading.v1.Customer
|
|
2483
2746
|
*/
|
|
@@ -5548,3 +5811,49 @@ export declare class WalletInfo extends Message<WalletInfo> {
|
|
|
5548
5811
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): WalletInfo;
|
|
5549
5812
|
static equals(a: WalletInfo | PlainMessage<WalletInfo> | undefined, b: WalletInfo | PlainMessage<WalletInfo> | undefined): boolean;
|
|
5550
5813
|
}
|
|
5814
|
+
/**
|
|
5815
|
+
* @generated from message trading.v1.SponsorSummary
|
|
5816
|
+
*/
|
|
5817
|
+
export declare class SponsorSummary extends Message<SponsorSummary> {
|
|
5818
|
+
/**
|
|
5819
|
+
* @generated from field: optional string name = 1;
|
|
5820
|
+
*/
|
|
5821
|
+
name?: string;
|
|
5822
|
+
/**
|
|
5823
|
+
* @generated from field: optional string logo_url = 2;
|
|
5824
|
+
*/
|
|
5825
|
+
logoUrl?: string;
|
|
5826
|
+
constructor(data?: PartialMessage<SponsorSummary>);
|
|
5827
|
+
static readonly runtime: typeof proto3;
|
|
5828
|
+
static readonly typeName = "trading.v1.SponsorSummary";
|
|
5829
|
+
static readonly fields: FieldList;
|
|
5830
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SponsorSummary;
|
|
5831
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SponsorSummary;
|
|
5832
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SponsorSummary;
|
|
5833
|
+
static equals(a: SponsorSummary | PlainMessage<SponsorSummary> | undefined, b: SponsorSummary | PlainMessage<SponsorSummary> | undefined): boolean;
|
|
5834
|
+
}
|
|
5835
|
+
/**
|
|
5836
|
+
* @generated from message trading.v1.SponsorshipInfo
|
|
5837
|
+
*/
|
|
5838
|
+
export declare class SponsorshipInfo extends Message<SponsorshipInfo> {
|
|
5839
|
+
/**
|
|
5840
|
+
* @generated from field: bool sponsored = 1;
|
|
5841
|
+
*/
|
|
5842
|
+
sponsored: boolean;
|
|
5843
|
+
/**
|
|
5844
|
+
* @generated from field: optional string rejection_reason = 2;
|
|
5845
|
+
*/
|
|
5846
|
+
rejectionReason?: string;
|
|
5847
|
+
/**
|
|
5848
|
+
* @generated from field: optional trading.v1.SponsorSummary sponsor = 3;
|
|
5849
|
+
*/
|
|
5850
|
+
sponsor?: SponsorSummary;
|
|
5851
|
+
constructor(data?: PartialMessage<SponsorshipInfo>);
|
|
5852
|
+
static readonly runtime: typeof proto3;
|
|
5853
|
+
static readonly typeName = "trading.v1.SponsorshipInfo";
|
|
5854
|
+
static readonly fields: FieldList;
|
|
5855
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SponsorshipInfo;
|
|
5856
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SponsorshipInfo;
|
|
5857
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SponsorshipInfo;
|
|
5858
|
+
static equals(a: SponsorshipInfo | PlainMessage<SponsorshipInfo> | undefined, b: SponsorshipInfo | PlainMessage<SponsorshipInfo> | undefined): boolean;
|
|
5859
|
+
}
|
|
@@ -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
|
|
@@ -217,36 +227,11 @@ export var RoutingPreference;
|
|
|
217
227
|
* @generated from enum value: FASTEST = 1;
|
|
218
228
|
*/
|
|
219
229
|
RoutingPreference[RoutingPreference["FASTEST"] = 1] = "FASTEST";
|
|
220
|
-
/**
|
|
221
|
-
* @generated from enum value: ROUTING_CLASSIC = 2;
|
|
222
|
-
*/
|
|
223
|
-
RoutingPreference[RoutingPreference["ROUTING_CLASSIC"] = 2] = "ROUTING_CLASSIC";
|
|
224
|
-
/**
|
|
225
|
-
* @generated from enum value: ROUTING_UNISWAPX_V2 = 4;
|
|
226
|
-
*/
|
|
227
|
-
RoutingPreference[RoutingPreference["ROUTING_UNISWAPX_V2"] = 4] = "ROUTING_UNISWAPX_V2";
|
|
228
|
-
/**
|
|
229
|
-
* @generated from enum value: V3_ONLY = 5;
|
|
230
|
-
*/
|
|
231
|
-
RoutingPreference[RoutingPreference["V3_ONLY"] = 5] = "V3_ONLY";
|
|
232
|
-
/**
|
|
233
|
-
* @generated from enum value: V2_ONLY = 6;
|
|
234
|
-
*/
|
|
235
|
-
RoutingPreference[RoutingPreference["V2_ONLY"] = 6] = "V2_ONLY";
|
|
236
|
-
/**
|
|
237
|
-
* @generated from enum value: BEST_PRICE_V2 = 7;
|
|
238
|
-
*/
|
|
239
|
-
RoutingPreference[RoutingPreference["BEST_PRICE_V2"] = 7] = "BEST_PRICE_V2";
|
|
240
230
|
})(RoutingPreference || (RoutingPreference = {}));
|
|
241
231
|
// Retrieve enum metadata with: proto3.getEnumType(RoutingPreference)
|
|
242
232
|
proto3.util.setEnumType(RoutingPreference, "trading.v1.RoutingPreference", [
|
|
243
233
|
{ no: 0, name: "BEST_PRICE" },
|
|
244
234
|
{ no: 1, name: "FASTEST" },
|
|
245
|
-
{ no: 2, name: "ROUTING_CLASSIC" },
|
|
246
|
-
{ no: 4, name: "ROUTING_UNISWAPX_V2" },
|
|
247
|
-
{ no: 5, name: "V3_ONLY" },
|
|
248
|
-
{ no: 6, name: "V2_ONLY" },
|
|
249
|
-
{ no: 7, name: "BEST_PRICE_V2" },
|
|
250
235
|
]);
|
|
251
236
|
/**
|
|
252
237
|
* @generated from enum trading.v1.SpreadOptimization
|
|
@@ -786,6 +771,283 @@ Encode7702Response.fields = proto3.util.newFieldList(() => [
|
|
|
786
771
|
{ no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
787
772
|
{ no: 2, name: "encoded_transaction", kind: "message", T: TransactionRequest },
|
|
788
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 v = 6;
|
|
802
|
+
*/
|
|
803
|
+
this.v = "";
|
|
804
|
+
/**
|
|
805
|
+
* @generated from field: string y_parity = 7;
|
|
806
|
+
*/
|
|
807
|
+
this.yParity = "";
|
|
808
|
+
proto3.util.initPartial(data, this);
|
|
809
|
+
}
|
|
810
|
+
static fromBinary(bytes, options) {
|
|
811
|
+
return new Eip7702Authorization().fromBinary(bytes, options);
|
|
812
|
+
}
|
|
813
|
+
static fromJson(jsonValue, options) {
|
|
814
|
+
return new Eip7702Authorization().fromJson(jsonValue, options);
|
|
815
|
+
}
|
|
816
|
+
static fromJsonString(jsonString, options) {
|
|
817
|
+
return new Eip7702Authorization().fromJsonString(jsonString, options);
|
|
818
|
+
}
|
|
819
|
+
static equals(a, b) {
|
|
820
|
+
return proto3.util.equals(Eip7702Authorization, a, b);
|
|
821
|
+
}
|
|
822
|
+
}
|
|
823
|
+
Eip7702Authorization.runtime = proto3;
|
|
824
|
+
Eip7702Authorization.typeName = "trading.v1.Eip7702Authorization";
|
|
825
|
+
Eip7702Authorization.fields = proto3.util.newFieldList(() => [
|
|
826
|
+
{ no: 1, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
827
|
+
{ no: 2, name: "chain_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
828
|
+
{ no: 3, name: "nonce", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
829
|
+
{ no: 4, name: "r", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
830
|
+
{ no: 5, name: "s", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
831
|
+
{ no: 6, name: "v", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
832
|
+
{ no: 7, name: "y_parity", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
833
|
+
]);
|
|
834
|
+
/**
|
|
835
|
+
* @generated from message trading.v1.Encode4337Request
|
|
836
|
+
*/
|
|
837
|
+
export class Encode4337Request extends Message {
|
|
838
|
+
constructor(data) {
|
|
839
|
+
super();
|
|
840
|
+
/**
|
|
841
|
+
* @generated from field: repeated trading.v1.TransactionRequest calls = 1;
|
|
842
|
+
*/
|
|
843
|
+
this.calls = [];
|
|
844
|
+
/**
|
|
845
|
+
* @generated from field: string sender = 2;
|
|
846
|
+
*/
|
|
847
|
+
this.sender = "";
|
|
848
|
+
/**
|
|
849
|
+
* @generated from field: trading.v1.ChainId chain_id = 3;
|
|
850
|
+
*/
|
|
851
|
+
this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
|
|
852
|
+
/**
|
|
853
|
+
* @generated from field: string paymaster_url = 4;
|
|
854
|
+
*/
|
|
855
|
+
this.paymasterUrl = "";
|
|
856
|
+
proto3.util.initPartial(data, this);
|
|
857
|
+
}
|
|
858
|
+
static fromBinary(bytes, options) {
|
|
859
|
+
return new Encode4337Request().fromBinary(bytes, options);
|
|
860
|
+
}
|
|
861
|
+
static fromJson(jsonValue, options) {
|
|
862
|
+
return new Encode4337Request().fromJson(jsonValue, options);
|
|
863
|
+
}
|
|
864
|
+
static fromJsonString(jsonString, options) {
|
|
865
|
+
return new Encode4337Request().fromJsonString(jsonString, options);
|
|
866
|
+
}
|
|
867
|
+
static equals(a, b) {
|
|
868
|
+
return proto3.util.equals(Encode4337Request, a, b);
|
|
869
|
+
}
|
|
870
|
+
}
|
|
871
|
+
Encode4337Request.runtime = proto3;
|
|
872
|
+
Encode4337Request.typeName = "trading.v1.Encode4337Request";
|
|
873
|
+
Encode4337Request.fields = proto3.util.newFieldList(() => [
|
|
874
|
+
{ no: 1, name: "calls", kind: "message", T: TransactionRequest, repeated: true },
|
|
875
|
+
{ no: 2, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
876
|
+
{ no: 3, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
|
|
877
|
+
{ no: 4, name: "paymaster_url", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
878
|
+
{ no: 5, name: "paymaster_service_context", kind: "message", T: Struct },
|
|
879
|
+
{ no: 6, name: "eip7702_auth", kind: "message", T: Eip7702Authorization, opt: true },
|
|
880
|
+
]);
|
|
881
|
+
/**
|
|
882
|
+
* @generated from message trading.v1.UserOperation
|
|
883
|
+
*/
|
|
884
|
+
export class UserOperation extends Message {
|
|
885
|
+
constructor(data) {
|
|
886
|
+
super();
|
|
887
|
+
/**
|
|
888
|
+
* @generated from field: string sender = 1;
|
|
889
|
+
*/
|
|
890
|
+
this.sender = "";
|
|
891
|
+
/**
|
|
892
|
+
* @generated from field: string nonce = 2;
|
|
893
|
+
*/
|
|
894
|
+
this.nonce = "";
|
|
895
|
+
/**
|
|
896
|
+
* @generated from field: string call_data = 3;
|
|
897
|
+
*/
|
|
898
|
+
this.callData = "";
|
|
899
|
+
/**
|
|
900
|
+
* @generated from field: string call_gas_limit = 4;
|
|
901
|
+
*/
|
|
902
|
+
this.callGasLimit = "";
|
|
903
|
+
/**
|
|
904
|
+
* @generated from field: string verification_gas_limit = 5;
|
|
905
|
+
*/
|
|
906
|
+
this.verificationGasLimit = "";
|
|
907
|
+
/**
|
|
908
|
+
* @generated from field: string pre_verification_gas = 6;
|
|
909
|
+
*/
|
|
910
|
+
this.preVerificationGas = "";
|
|
911
|
+
/**
|
|
912
|
+
* @generated from field: string max_fee_per_gas = 7;
|
|
913
|
+
*/
|
|
914
|
+
this.maxFeePerGas = "";
|
|
915
|
+
/**
|
|
916
|
+
* @generated from field: string max_priority_fee_per_gas = 8;
|
|
917
|
+
*/
|
|
918
|
+
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
|
+
/**
|
|
936
|
+
* @generated from field: string signature = 13;
|
|
937
|
+
*/
|
|
938
|
+
this.signature = "";
|
|
939
|
+
proto3.util.initPartial(data, this);
|
|
940
|
+
}
|
|
941
|
+
static fromBinary(bytes, options) {
|
|
942
|
+
return new UserOperation().fromBinary(bytes, options);
|
|
943
|
+
}
|
|
944
|
+
static fromJson(jsonValue, options) {
|
|
945
|
+
return new UserOperation().fromJson(jsonValue, options);
|
|
946
|
+
}
|
|
947
|
+
static fromJsonString(jsonString, options) {
|
|
948
|
+
return new UserOperation().fromJsonString(jsonString, options);
|
|
949
|
+
}
|
|
950
|
+
static equals(a, b) {
|
|
951
|
+
return proto3.util.equals(UserOperation, a, b);
|
|
952
|
+
}
|
|
953
|
+
}
|
|
954
|
+
UserOperation.runtime = proto3;
|
|
955
|
+
UserOperation.typeName = "trading.v1.UserOperation";
|
|
956
|
+
UserOperation.fields = proto3.util.newFieldList(() => [
|
|
957
|
+
{ no: 1, name: "sender", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
958
|
+
{ no: 2, name: "nonce", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
959
|
+
{ no: 3, name: "call_data", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
960
|
+
{ no: 4, name: "call_gas_limit", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
961
|
+
{ no: 5, name: "verification_gas_limit", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
962
|
+
{ no: 6, name: "pre_verification_gas", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
963
|
+
{ no: 7, name: "max_fee_per_gas", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
964
|
+
{ 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 */ },
|
|
969
|
+
{ no: 13, name: "signature", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
970
|
+
{ no: 14, name: "eip7702_auth", kind: "message", T: Eip7702Authorization, opt: true },
|
|
971
|
+
{ no: 15, name: "factory", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
972
|
+
{ no: 16, name: "factory_data", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
973
|
+
]);
|
|
974
|
+
/**
|
|
975
|
+
* @generated from message trading.v1.SponsorMetadata
|
|
976
|
+
*/
|
|
977
|
+
export class SponsorMetadata extends Message {
|
|
978
|
+
constructor(data) {
|
|
979
|
+
super();
|
|
980
|
+
/**
|
|
981
|
+
* @generated from field: string name = 1;
|
|
982
|
+
*/
|
|
983
|
+
this.name = "";
|
|
984
|
+
/**
|
|
985
|
+
* @generated from field: string icon = 2;
|
|
986
|
+
*/
|
|
987
|
+
this.icon = "";
|
|
988
|
+
proto3.util.initPartial(data, this);
|
|
989
|
+
}
|
|
990
|
+
static fromBinary(bytes, options) {
|
|
991
|
+
return new SponsorMetadata().fromBinary(bytes, options);
|
|
992
|
+
}
|
|
993
|
+
static fromJson(jsonValue, options) {
|
|
994
|
+
return new SponsorMetadata().fromJson(jsonValue, options);
|
|
995
|
+
}
|
|
996
|
+
static fromJsonString(jsonString, options) {
|
|
997
|
+
return new SponsorMetadata().fromJsonString(jsonString, options);
|
|
998
|
+
}
|
|
999
|
+
static equals(a, b) {
|
|
1000
|
+
return proto3.util.equals(SponsorMetadata, a, b);
|
|
1001
|
+
}
|
|
1002
|
+
}
|
|
1003
|
+
SponsorMetadata.runtime = proto3;
|
|
1004
|
+
SponsorMetadata.typeName = "trading.v1.SponsorMetadata";
|
|
1005
|
+
SponsorMetadata.fields = proto3.util.newFieldList(() => [
|
|
1006
|
+
{ no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1007
|
+
{ no: 2, name: "icon", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1008
|
+
]);
|
|
1009
|
+
/**
|
|
1010
|
+
* @generated from message trading.v1.Encode4337Response
|
|
1011
|
+
*/
|
|
1012
|
+
export class Encode4337Response extends Message {
|
|
1013
|
+
constructor(data) {
|
|
1014
|
+
super();
|
|
1015
|
+
/**
|
|
1016
|
+
* @generated from field: string request_id = 1;
|
|
1017
|
+
*/
|
|
1018
|
+
this.requestId = "";
|
|
1019
|
+
/**
|
|
1020
|
+
* @generated from field: bool gas_sponsored = 4;
|
|
1021
|
+
*/
|
|
1022
|
+
this.gasSponsored = false;
|
|
1023
|
+
/**
|
|
1024
|
+
* @generated from field: string fallback_reason = 5;
|
|
1025
|
+
*/
|
|
1026
|
+
this.fallbackReason = "";
|
|
1027
|
+
proto3.util.initPartial(data, this);
|
|
1028
|
+
}
|
|
1029
|
+
static fromBinary(bytes, options) {
|
|
1030
|
+
return new Encode4337Response().fromBinary(bytes, options);
|
|
1031
|
+
}
|
|
1032
|
+
static fromJson(jsonValue, options) {
|
|
1033
|
+
return new Encode4337Response().fromJson(jsonValue, options);
|
|
1034
|
+
}
|
|
1035
|
+
static fromJsonString(jsonString, options) {
|
|
1036
|
+
return new Encode4337Response().fromJsonString(jsonString, options);
|
|
1037
|
+
}
|
|
1038
|
+
static equals(a, b) {
|
|
1039
|
+
return proto3.util.equals(Encode4337Response, a, b);
|
|
1040
|
+
}
|
|
1041
|
+
}
|
|
1042
|
+
Encode4337Response.runtime = proto3;
|
|
1043
|
+
Encode4337Response.typeName = "trading.v1.Encode4337Response";
|
|
1044
|
+
Encode4337Response.fields = proto3.util.newFieldList(() => [
|
|
1045
|
+
{ no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1046
|
+
{ no: 2, name: "user_operation", kind: "message", T: UserOperation },
|
|
1047
|
+
{ no: 3, name: "sponsor_metadata", kind: "message", T: SponsorMetadata },
|
|
1048
|
+
{ no: 4, name: "gas_sponsored", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
1049
|
+
{ no: 5, name: "fallback_reason", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1050
|
+
]);
|
|
789
1051
|
/**
|
|
790
1052
|
* @generated from message trading.v1.Swap5792Request
|
|
791
1053
|
*/
|
|
@@ -1589,6 +1851,10 @@ export class QuoteRequest extends Message {
|
|
|
1589
1851
|
* @generated from field: bool generate_permit_as_transaction = 18;
|
|
1590
1852
|
*/
|
|
1591
1853
|
this.generatePermitAsTransaction = false;
|
|
1854
|
+
/**
|
|
1855
|
+
* @generated from field: repeated trading.v1.IntegratorFee integrator_fees = 20;
|
|
1856
|
+
*/
|
|
1857
|
+
this.integratorFees = [];
|
|
1592
1858
|
proto3.util.initPartial(data, this);
|
|
1593
1859
|
}
|
|
1594
1860
|
static fromBinary(bytes, options) {
|
|
@@ -1622,10 +1888,45 @@ QuoteRequest.fields = proto3.util.newFieldList(() => [
|
|
|
1622
1888
|
{ no: 13, name: "urgency", kind: "enum", T: proto3.getEnumType(Urgency), opt: true },
|
|
1623
1889
|
{ no: 14, name: "gas_strategies", kind: "message", T: GasStrategy, repeated: true },
|
|
1624
1890
|
{ no: 15, name: "permit_amount", kind: "enum", T: proto3.getEnumType(PermitAmount), opt: true },
|
|
1625
|
-
{ no: 16, name: "portion_bips", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
1626
|
-
{ no: 17, name: "portion_recipient", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1627
1891
|
{ no: 18, name: "generate_permit_as_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
1628
1892
|
{ no: 19, name: "hooks_options", kind: "enum", T: proto3.getEnumType(HooksOptions), opt: true },
|
|
1893
|
+
{ no: 20, name: "integrator_fees", kind: "message", T: IntegratorFee, repeated: true },
|
|
1894
|
+
{ no: 21, name: "wallet_execution_context", kind: "message", T: WalletExecutionContext, opt: true },
|
|
1895
|
+
]);
|
|
1896
|
+
/**
|
|
1897
|
+
* @generated from message trading.v1.IntegratorFee
|
|
1898
|
+
*/
|
|
1899
|
+
export class IntegratorFee extends Message {
|
|
1900
|
+
constructor(data) {
|
|
1901
|
+
super();
|
|
1902
|
+
/**
|
|
1903
|
+
* @generated from field: int32 bips_x100 = 1;
|
|
1904
|
+
*/
|
|
1905
|
+
this.bipsX100 = 0;
|
|
1906
|
+
/**
|
|
1907
|
+
* @generated from field: string recipient = 2;
|
|
1908
|
+
*/
|
|
1909
|
+
this.recipient = "";
|
|
1910
|
+
proto3.util.initPartial(data, this);
|
|
1911
|
+
}
|
|
1912
|
+
static fromBinary(bytes, options) {
|
|
1913
|
+
return new IntegratorFee().fromBinary(bytes, options);
|
|
1914
|
+
}
|
|
1915
|
+
static fromJson(jsonValue, options) {
|
|
1916
|
+
return new IntegratorFee().fromJson(jsonValue, options);
|
|
1917
|
+
}
|
|
1918
|
+
static fromJsonString(jsonString, options) {
|
|
1919
|
+
return new IntegratorFee().fromJsonString(jsonString, options);
|
|
1920
|
+
}
|
|
1921
|
+
static equals(a, b) {
|
|
1922
|
+
return proto3.util.equals(IntegratorFee, a, b);
|
|
1923
|
+
}
|
|
1924
|
+
}
|
|
1925
|
+
IntegratorFee.runtime = proto3;
|
|
1926
|
+
IntegratorFee.typeName = "trading.v1.IntegratorFee";
|
|
1927
|
+
IntegratorFee.fields = proto3.util.newFieldList(() => [
|
|
1928
|
+
{ no: 1, name: "bips_x100", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
1929
|
+
{ no: 2, name: "recipient", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1629
1930
|
]);
|
|
1630
1931
|
/**
|
|
1631
1932
|
* @generated from message trading.v1.QuoteResponse
|
|
@@ -1685,6 +1986,7 @@ QuoteResponse.fields = proto3.util.newFieldList(() => [
|
|
|
1685
1986
|
{ no: 18, name: "priority_permit_data", kind: "message", T: PriorityPermitData, oneof: "permit_data" },
|
|
1686
1987
|
{ no: 19, name: "permit_transaction", kind: "message", T: TransactionRequest, opt: true },
|
|
1687
1988
|
{ no: 20, name: "permit_gas_fee", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1989
|
+
{ no: 21, name: "sponsorship_info", kind: "message", T: SponsorshipInfo, opt: true },
|
|
1688
1990
|
]);
|
|
1689
1991
|
/**
|
|
1690
1992
|
* @generated from message trading.v1.ClassicInput
|
|
@@ -1833,6 +2135,7 @@ V2PoolInRoute.fields = proto3.util.newFieldList(() => [
|
|
|
1833
2135
|
{ no: 6, name: "reserve1", kind: "message", T: V2Reserve },
|
|
1834
2136
|
{ no: 7, name: "amount_in", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1835
2137
|
{ no: 8, name: "amount_out", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2138
|
+
{ no: 9, name: "max_hop_slippage", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1836
2139
|
]);
|
|
1837
2140
|
/**
|
|
1838
2141
|
* @generated from message trading.v1.V3PoolInRoute
|
|
@@ -1892,6 +2195,7 @@ V3PoolInRoute.fields = proto3.util.newFieldList(() => [
|
|
|
1892
2195
|
{ no: 8, name: "fee", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1893
2196
|
{ no: 9, name: "amount_in", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1894
2197
|
{ no: 10, name: "amount_out", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2198
|
+
{ no: 11, name: "max_hop_slippage", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1895
2199
|
]);
|
|
1896
2200
|
/**
|
|
1897
2201
|
* @generated from message trading.v1.V4PoolInRoute
|
|
@@ -1961,6 +2265,7 @@ V4PoolInRoute.fields = proto3.util.newFieldList(() => [
|
|
|
1961
2265
|
{ no: 10, name: "hooks", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1962
2266
|
{ no: 11, name: "amount_in", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1963
2267
|
{ no: 12, name: "amount_out", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2268
|
+
{ no: 13, name: "max_hop_slippage", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1964
2269
|
]);
|
|
1965
2270
|
/**
|
|
1966
2271
|
* @generated from message trading.v1.TokenInRoute
|
|
@@ -2787,6 +3092,10 @@ export class GetSwapsRequest extends Message {
|
|
|
2787
3092
|
* @generated from field: trading.v1.ChainId chain_id = 2;
|
|
2788
3093
|
*/
|
|
2789
3094
|
this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
|
|
3095
|
+
/**
|
|
3096
|
+
* @generated from field: repeated string user_op_hashes = 3;
|
|
3097
|
+
*/
|
|
3098
|
+
this.userOpHashes = [];
|
|
2790
3099
|
proto3.util.initPartial(data, this);
|
|
2791
3100
|
}
|
|
2792
3101
|
static fromBinary(bytes, options) {
|
|
@@ -2807,6 +3116,7 @@ GetSwapsRequest.typeName = "trading.v1.GetSwapsRequest";
|
|
|
2807
3116
|
GetSwapsRequest.fields = proto3.util.newFieldList(() => [
|
|
2808
3117
|
{ no: 1, name: "tx_hashes", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
2809
3118
|
{ no: 2, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
|
|
3119
|
+
{ no: 3, name: "user_op_hashes", kind: "scalar", T: 9 /* ScalarType.STRING */, repeated: true },
|
|
2810
3120
|
]);
|
|
2811
3121
|
/**
|
|
2812
3122
|
* @generated from message trading.v1.GetSwapsResponse
|
|
@@ -2861,6 +3171,10 @@ export class SwapResult extends Message {
|
|
|
2861
3171
|
* @generated from field: string tx_hash = 3;
|
|
2862
3172
|
*/
|
|
2863
3173
|
this.txHash = "";
|
|
3174
|
+
/**
|
|
3175
|
+
* @generated from field: trading.v1.SwapResult.HashType hash_type = 6;
|
|
3176
|
+
*/
|
|
3177
|
+
this.hashType = SwapResult_HashType.HASH_TYPE_UNSPECIFIED;
|
|
2864
3178
|
proto3.util.initPartial(data, this);
|
|
2865
3179
|
}
|
|
2866
3180
|
static fromBinary(bytes, options) {
|
|
@@ -2883,6 +3197,8 @@ SwapResult.fields = proto3.util.newFieldList(() => [
|
|
|
2883
3197
|
{ no: 2, name: "swap_type", kind: "enum", T: proto3.getEnumType(SwapType) },
|
|
2884
3198
|
{ no: 3, name: "tx_hash", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2885
3199
|
{ no: 4, name: "swap_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
3200
|
+
{ no: 5, name: "user_op_hash", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
3201
|
+
{ no: 6, name: "hash_type", kind: "enum", T: proto3.getEnumType(SwapResult_HashType) },
|
|
2886
3202
|
]);
|
|
2887
3203
|
/**
|
|
2888
3204
|
* @generated from enum trading.v1.SwapResult.SwapStatus
|
|
@@ -2923,6 +3239,30 @@ proto3.util.setEnumType(SwapResult_SwapStatus, "trading.v1.SwapResult.SwapStatus
|
|
|
2923
3239
|
{ no: 4, name: "FAILED" },
|
|
2924
3240
|
{ no: 5, name: "EXPIRED" },
|
|
2925
3241
|
]);
|
|
3242
|
+
/**
|
|
3243
|
+
* @generated from enum trading.v1.SwapResult.HashType
|
|
3244
|
+
*/
|
|
3245
|
+
export var SwapResult_HashType;
|
|
3246
|
+
(function (SwapResult_HashType) {
|
|
3247
|
+
/**
|
|
3248
|
+
* @generated from enum value: HASH_TYPE_UNSPECIFIED = 0;
|
|
3249
|
+
*/
|
|
3250
|
+
SwapResult_HashType[SwapResult_HashType["HASH_TYPE_UNSPECIFIED"] = 0] = "HASH_TYPE_UNSPECIFIED";
|
|
3251
|
+
/**
|
|
3252
|
+
* @generated from enum value: TX = 1;
|
|
3253
|
+
*/
|
|
3254
|
+
SwapResult_HashType[SwapResult_HashType["TX"] = 1] = "TX";
|
|
3255
|
+
/**
|
|
3256
|
+
* @generated from enum value: USER_OP = 2;
|
|
3257
|
+
*/
|
|
3258
|
+
SwapResult_HashType[SwapResult_HashType["USER_OP"] = 2] = "USER_OP";
|
|
3259
|
+
})(SwapResult_HashType || (SwapResult_HashType = {}));
|
|
3260
|
+
// Retrieve enum metadata with: proto3.getEnumType(SwapResult_HashType)
|
|
3261
|
+
proto3.util.setEnumType(SwapResult_HashType, "trading.v1.SwapResult.HashType", [
|
|
3262
|
+
{ no: 0, name: "HASH_TYPE_UNSPECIFIED" },
|
|
3263
|
+
{ no: 1, name: "TX" },
|
|
3264
|
+
{ no: 2, name: "USER_OP" },
|
|
3265
|
+
]);
|
|
2926
3266
|
/**
|
|
2927
3267
|
* @generated from message trading.v1.Customer
|
|
2928
3268
|
*/
|
|
@@ -6539,3 +6879,62 @@ WalletInfo.fields = proto3.util.newFieldList(() => [
|
|
|
6539
6879
|
{ no: 2, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
6540
6880
|
{ no: 3, name: "rdns", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
6541
6881
|
]);
|
|
6882
|
+
/**
|
|
6883
|
+
* @generated from message trading.v1.SponsorSummary
|
|
6884
|
+
*/
|
|
6885
|
+
export class SponsorSummary extends Message {
|
|
6886
|
+
constructor(data) {
|
|
6887
|
+
super();
|
|
6888
|
+
proto3.util.initPartial(data, this);
|
|
6889
|
+
}
|
|
6890
|
+
static fromBinary(bytes, options) {
|
|
6891
|
+
return new SponsorSummary().fromBinary(bytes, options);
|
|
6892
|
+
}
|
|
6893
|
+
static fromJson(jsonValue, options) {
|
|
6894
|
+
return new SponsorSummary().fromJson(jsonValue, options);
|
|
6895
|
+
}
|
|
6896
|
+
static fromJsonString(jsonString, options) {
|
|
6897
|
+
return new SponsorSummary().fromJsonString(jsonString, options);
|
|
6898
|
+
}
|
|
6899
|
+
static equals(a, b) {
|
|
6900
|
+
return proto3.util.equals(SponsorSummary, a, b);
|
|
6901
|
+
}
|
|
6902
|
+
}
|
|
6903
|
+
SponsorSummary.runtime = proto3;
|
|
6904
|
+
SponsorSummary.typeName = "trading.v1.SponsorSummary";
|
|
6905
|
+
SponsorSummary.fields = proto3.util.newFieldList(() => [
|
|
6906
|
+
{ no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
6907
|
+
{ no: 2, name: "logo_url", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
6908
|
+
]);
|
|
6909
|
+
/**
|
|
6910
|
+
* @generated from message trading.v1.SponsorshipInfo
|
|
6911
|
+
*/
|
|
6912
|
+
export class SponsorshipInfo extends Message {
|
|
6913
|
+
constructor(data) {
|
|
6914
|
+
super();
|
|
6915
|
+
/**
|
|
6916
|
+
* @generated from field: bool sponsored = 1;
|
|
6917
|
+
*/
|
|
6918
|
+
this.sponsored = false;
|
|
6919
|
+
proto3.util.initPartial(data, this);
|
|
6920
|
+
}
|
|
6921
|
+
static fromBinary(bytes, options) {
|
|
6922
|
+
return new SponsorshipInfo().fromBinary(bytes, options);
|
|
6923
|
+
}
|
|
6924
|
+
static fromJson(jsonValue, options) {
|
|
6925
|
+
return new SponsorshipInfo().fromJson(jsonValue, options);
|
|
6926
|
+
}
|
|
6927
|
+
static fromJsonString(jsonString, options) {
|
|
6928
|
+
return new SponsorshipInfo().fromJsonString(jsonString, options);
|
|
6929
|
+
}
|
|
6930
|
+
static equals(a, b) {
|
|
6931
|
+
return proto3.util.equals(SponsorshipInfo, a, b);
|
|
6932
|
+
}
|
|
6933
|
+
}
|
|
6934
|
+
SponsorshipInfo.runtime = proto3;
|
|
6935
|
+
SponsorshipInfo.typeName = "trading.v1.SponsorshipInfo";
|
|
6936
|
+
SponsorshipInfo.fields = proto3.util.newFieldList(() => [
|
|
6937
|
+
{ no: 1, name: "sponsored", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
6938
|
+
{ no: 2, name: "rejection_reason", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
6939
|
+
{ no: 3, name: "sponsor", kind: "message", T: SponsorSummary, opt: true },
|
|
6940
|
+
]);
|