@uniswap/client-trading 0.0.0 → 0.1.0
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 +48 -18
- package/dist/trading/v1/api_pb.js +72 -21
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MethodIdempotency, MethodKind } from "@bufbuild/protobuf";
|
|
2
|
-
import { CheckApprovalLPRequest, CheckApprovalLPResponse, CheckApprovalRequest, CheckApprovalResponse, CheckWalletDelegationRequest, CheckWalletDelegationResponse, ClaimLPFeesRequest, ClaimLPFeesResponse, ClaimLPRewardsRequest, ClaimLPRewardsResponse, CreateLPPositionRequest, CreateLPPositionResponse, DecreaseLPPositionRequest, DecreaseLPPositionResponse, GetLPPriceDiscrepancyRequest, GetLPPriceDiscrepancyResponse, GetOrdersRequest, GetOrdersResponse, GetSwapsRequest, GetSwapsResponse, IncreaseLPPositionRequest, IncreaseLPPositionResponse, MigrateLpPositionRequest, MigrateLpPositionResponse, OrderRequest, OrderResponse, PoolInfoRequest, PoolInfoResponse, QuoteRequest, QuoteResponse, SendRequest, SendResponse, Swap5792Request, Swap5792Response, SwappableTokensRequest, SwappableTokensResponse, SwapRequest, SwapResponse } from "./api_pb.js";
|
|
2
|
+
import { CheckApprovalLPRequest, CheckApprovalLPResponse, CheckApprovalRequest, CheckApprovalResponse, CheckWalletDelegationRequest, CheckWalletDelegationResponse, ClaimLPFeesRequest, ClaimLPFeesResponse, ClaimLPRewardsRequest, ClaimLPRewardsResponse, CreateLPPositionRequest, CreateLPPositionResponse, DecreaseLPPositionRequest, DecreaseLPPositionResponse, Encode7702Request, Encode7702Response, GetLPPriceDiscrepancyRequest, GetLPPriceDiscrepancyResponse, GetOrdersRequest, GetOrdersResponse, GetSwapsRequest, GetSwapsResponse, IncreaseLPPositionRequest, IncreaseLPPositionResponse, MigrateLpPositionRequest, MigrateLpPositionResponse, OrderRequest, OrderResponse, PoolInfoRequest, PoolInfoResponse, QuoteRequest, QuoteResponse, SendRequest, SendResponse, Swap5792Request, Swap5792Response, SwappableTokensRequest, SwappableTokensResponse, SwapRequest, SwapResponse } from "./api_pb.js";
|
|
3
3
|
/**
|
|
4
4
|
* @generated from rpc trading.v1.tradingService.Quote
|
|
5
5
|
*/
|
|
@@ -266,3 +266,17 @@ export declare const getLPPriceDiscrepancy: {
|
|
|
266
266
|
readonly typeName: "trading.v1.tradingService";
|
|
267
267
|
};
|
|
268
268
|
};
|
|
269
|
+
/**
|
|
270
|
+
* @generated from rpc trading.v1.tradingService.Encode7702
|
|
271
|
+
*/
|
|
272
|
+
export declare const encode7702: {
|
|
273
|
+
readonly localName: "encode7702";
|
|
274
|
+
readonly name: "Encode7702";
|
|
275
|
+
readonly kind: MethodKind.Unary;
|
|
276
|
+
readonly I: typeof Encode7702Request;
|
|
277
|
+
readonly O: typeof Encode7702Response;
|
|
278
|
+
readonly idempotency: MethodIdempotency.NoSideEffects;
|
|
279
|
+
readonly service: {
|
|
280
|
+
readonly typeName: "trading.v1.tradingService";
|
|
281
|
+
};
|
|
282
|
+
};
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
import { MethodIdempotency, MethodKind } from "@bufbuild/protobuf";
|
|
6
|
-
import { CheckApprovalLPRequest, CheckApprovalLPResponse, CheckApprovalRequest, CheckApprovalResponse, CheckWalletDelegationRequest, CheckWalletDelegationResponse, ClaimLPFeesRequest, ClaimLPFeesResponse, ClaimLPRewardsRequest, ClaimLPRewardsResponse, CreateLPPositionRequest, CreateLPPositionResponse, DecreaseLPPositionRequest, DecreaseLPPositionResponse, GetLPPriceDiscrepancyRequest, GetLPPriceDiscrepancyResponse, GetOrdersRequest, GetOrdersResponse, GetSwapsRequest, GetSwapsResponse, IncreaseLPPositionRequest, IncreaseLPPositionResponse, MigrateLpPositionRequest, MigrateLpPositionResponse, OrderRequest, OrderResponse, PoolInfoRequest, PoolInfoResponse, QuoteRequest, QuoteResponse, SendRequest, SendResponse, Swap5792Request, Swap5792Response, SwappableTokensRequest, SwappableTokensResponse, SwapRequest, SwapResponse } from "./api_pb.js";
|
|
6
|
+
import { CheckApprovalLPRequest, CheckApprovalLPResponse, CheckApprovalRequest, CheckApprovalResponse, CheckWalletDelegationRequest, CheckWalletDelegationResponse, ClaimLPFeesRequest, ClaimLPFeesResponse, ClaimLPRewardsRequest, ClaimLPRewardsResponse, CreateLPPositionRequest, CreateLPPositionResponse, DecreaseLPPositionRequest, DecreaseLPPositionResponse, Encode7702Request, Encode7702Response, GetLPPriceDiscrepancyRequest, GetLPPriceDiscrepancyResponse, GetOrdersRequest, GetOrdersResponse, GetSwapsRequest, GetSwapsResponse, IncreaseLPPositionRequest, IncreaseLPPositionResponse, MigrateLpPositionRequest, MigrateLpPositionResponse, OrderRequest, OrderResponse, PoolInfoRequest, PoolInfoResponse, QuoteRequest, QuoteResponse, SendRequest, SendResponse, Swap5792Request, Swap5792Response, SwappableTokensRequest, SwappableTokensResponse, SwapRequest, SwapResponse } from "./api_pb.js";
|
|
7
7
|
/**
|
|
8
8
|
* @generated from rpc trading.v1.tradingService.Quote
|
|
9
9
|
*/
|
|
@@ -270,3 +270,17 @@ export const getLPPriceDiscrepancy = {
|
|
|
270
270
|
typeName: "trading.v1.tradingService"
|
|
271
271
|
}
|
|
272
272
|
};
|
|
273
|
+
/**
|
|
274
|
+
* @generated from rpc trading.v1.tradingService.Encode7702
|
|
275
|
+
*/
|
|
276
|
+
export const encode7702 = {
|
|
277
|
+
localName: "encode7702",
|
|
278
|
+
name: "Encode7702",
|
|
279
|
+
kind: MethodKind.Unary,
|
|
280
|
+
I: Encode7702Request,
|
|
281
|
+
O: Encode7702Response,
|
|
282
|
+
idempotency: MethodIdempotency.NoSideEffects,
|
|
283
|
+
service: {
|
|
284
|
+
typeName: "trading.v1.tradingService"
|
|
285
|
+
}
|
|
286
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CheckApprovalLPRequest, CheckApprovalLPResponse, CheckApprovalRequest, CheckApprovalResponse, CheckWalletDelegationRequest, CheckWalletDelegationResponse, ClaimLPFeesRequest, ClaimLPFeesResponse, ClaimLPRewardsRequest, ClaimLPRewardsResponse, CreateLPPositionRequest, CreateLPPositionResponse, DecreaseLPPositionRequest, DecreaseLPPositionResponse, GetLPPriceDiscrepancyRequest, GetLPPriceDiscrepancyResponse, GetOrdersRequest, GetOrdersResponse, GetSwapsRequest, GetSwapsResponse, IncreaseLPPositionRequest, IncreaseLPPositionResponse, MigrateLpPositionRequest, MigrateLpPositionResponse, OrderRequest, OrderResponse, PoolInfoRequest, PoolInfoResponse, QuoteRequest, QuoteResponse, SendRequest, SendResponse, Swap5792Request, Swap5792Response, SwappableTokensRequest, SwappableTokensResponse, SwapRequest, SwapResponse } from "./api_pb.js";
|
|
1
|
+
import { CheckApprovalLPRequest, CheckApprovalLPResponse, CheckApprovalRequest, CheckApprovalResponse, CheckWalletDelegationRequest, CheckWalletDelegationResponse, ClaimLPFeesRequest, ClaimLPFeesResponse, ClaimLPRewardsRequest, ClaimLPRewardsResponse, CreateLPPositionRequest, CreateLPPositionResponse, DecreaseLPPositionRequest, DecreaseLPPositionResponse, Encode7702Request, Encode7702Response, GetLPPriceDiscrepancyRequest, GetLPPriceDiscrepancyResponse, GetOrdersRequest, GetOrdersResponse, GetSwapsRequest, GetSwapsResponse, IncreaseLPPositionRequest, IncreaseLPPositionResponse, MigrateLpPositionRequest, MigrateLpPositionResponse, OrderRequest, OrderResponse, PoolInfoRequest, PoolInfoResponse, QuoteRequest, QuoteResponse, SendRequest, SendResponse, Swap5792Request, Swap5792Response, SwappableTokensRequest, SwappableTokensResponse, SwapRequest, SwapResponse } from "./api_pb.js";
|
|
2
2
|
import { MethodIdempotency, MethodKind } from "@bufbuild/protobuf";
|
|
3
3
|
/**
|
|
4
4
|
* @generated from service trading.v1.tradingService
|
|
@@ -196,5 +196,15 @@ export declare const tradingService: {
|
|
|
196
196
|
readonly kind: MethodKind.Unary;
|
|
197
197
|
readonly idempotency: MethodIdempotency.NoSideEffects;
|
|
198
198
|
};
|
|
199
|
+
/**
|
|
200
|
+
* @generated from rpc trading.v1.tradingService.Encode7702
|
|
201
|
+
*/
|
|
202
|
+
readonly encode7702: {
|
|
203
|
+
readonly name: "Encode7702";
|
|
204
|
+
readonly I: typeof Encode7702Request;
|
|
205
|
+
readonly O: typeof Encode7702Response;
|
|
206
|
+
readonly kind: MethodKind.Unary;
|
|
207
|
+
readonly idempotency: MethodIdempotency.NoSideEffects;
|
|
208
|
+
};
|
|
199
209
|
};
|
|
200
210
|
};
|
|
@@ -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 { CheckApprovalLPRequest, CheckApprovalLPResponse, CheckApprovalRequest, CheckApprovalResponse, CheckWalletDelegationRequest, CheckWalletDelegationResponse, ClaimLPFeesRequest, ClaimLPFeesResponse, ClaimLPRewardsRequest, ClaimLPRewardsResponse, CreateLPPositionRequest, CreateLPPositionResponse, DecreaseLPPositionRequest, DecreaseLPPositionResponse, GetLPPriceDiscrepancyRequest, GetLPPriceDiscrepancyResponse, GetOrdersRequest, GetOrdersResponse, GetSwapsRequest, GetSwapsResponse, IncreaseLPPositionRequest, IncreaseLPPositionResponse, MigrateLpPositionRequest, MigrateLpPositionResponse, OrderRequest, OrderResponse, PoolInfoRequest, PoolInfoResponse, QuoteRequest, QuoteResponse, SendRequest, SendResponse, Swap5792Request, Swap5792Response, SwappableTokensRequest, SwappableTokensResponse, SwapRequest, SwapResponse } from "./api_pb.js";
|
|
5
|
+
import { CheckApprovalLPRequest, CheckApprovalLPResponse, CheckApprovalRequest, CheckApprovalResponse, CheckWalletDelegationRequest, CheckWalletDelegationResponse, ClaimLPFeesRequest, ClaimLPFeesResponse, ClaimLPRewardsRequest, ClaimLPRewardsResponse, CreateLPPositionRequest, CreateLPPositionResponse, DecreaseLPPositionRequest, DecreaseLPPositionResponse, Encode7702Request, Encode7702Response, GetLPPriceDiscrepancyRequest, GetLPPriceDiscrepancyResponse, GetOrdersRequest, GetOrdersResponse, GetSwapsRequest, GetSwapsResponse, IncreaseLPPositionRequest, IncreaseLPPositionResponse, MigrateLpPositionRequest, MigrateLpPositionResponse, OrderRequest, OrderResponse, PoolInfoRequest, PoolInfoResponse, QuoteRequest, QuoteResponse, SendRequest, SendResponse, Swap5792Request, Swap5792Response, SwappableTokensRequest, SwappableTokensResponse, SwapRequest, SwapResponse } from "./api_pb.js";
|
|
6
6
|
import { MethodIdempotency, MethodKind } from "@bufbuild/protobuf";
|
|
7
7
|
/**
|
|
8
8
|
* @generated from service trading.v1.tradingService
|
|
@@ -200,5 +200,15 @@ export const tradingService = {
|
|
|
200
200
|
kind: MethodKind.Unary,
|
|
201
201
|
idempotency: MethodIdempotency.NoSideEffects,
|
|
202
202
|
},
|
|
203
|
+
/**
|
|
204
|
+
* @generated from rpc trading.v1.tradingService.Encode7702
|
|
205
|
+
*/
|
|
206
|
+
encode7702: {
|
|
207
|
+
name: "Encode7702",
|
|
208
|
+
I: Encode7702Request,
|
|
209
|
+
O: Encode7702Response,
|
|
210
|
+
kind: MethodKind.Unary,
|
|
211
|
+
idempotency: MethodIdempotency.NoSideEffects,
|
|
212
|
+
},
|
|
203
213
|
}
|
|
204
214
|
};
|
|
@@ -174,10 +174,6 @@ export declare enum Protocols {
|
|
|
174
174
|
* @generated from enum value: V4 = 2;
|
|
175
175
|
*/
|
|
176
176
|
V4 = 2,
|
|
177
|
-
/**
|
|
178
|
-
* @generated from enum value: UNISWAPX = 3;
|
|
179
|
-
*/
|
|
180
|
-
UNISWAPX = 3,
|
|
181
177
|
/**
|
|
182
178
|
* @generated from enum value: UNISWAPX_V2 = 4;
|
|
183
179
|
*/
|
|
@@ -203,10 +199,6 @@ export declare enum RoutingPreference {
|
|
|
203
199
|
* @generated from enum value: ROUTING_CLASSIC = 2;
|
|
204
200
|
*/
|
|
205
201
|
ROUTING_CLASSIC = 2,
|
|
206
|
-
/**
|
|
207
|
-
* @generated from enum value: ROUTING_UNISWAPX = 3;
|
|
208
|
-
*/
|
|
209
|
-
ROUTING_UNISWAPX = 3,
|
|
210
202
|
/**
|
|
211
203
|
* @generated from enum value: ROUTING_UNISWAPX_V2 = 4;
|
|
212
204
|
*/
|
|
@@ -460,18 +452,10 @@ export declare enum OrderTypeQueryParam {
|
|
|
460
452
|
* @generated from enum value: ORDER_TYPE_QUERY_PARAM_UNSPECIFIED = 0;
|
|
461
453
|
*/
|
|
462
454
|
ORDER_TYPE_QUERY_PARAM_UNSPECIFIED = 0,
|
|
463
|
-
/**
|
|
464
|
-
* @generated from enum value: OrderTypeQueryParam_DUTCH = 1;
|
|
465
|
-
*/
|
|
466
|
-
OrderTypeQueryParam_DUTCH = 1,
|
|
467
455
|
/**
|
|
468
456
|
* @generated from enum value: OrderTypeQueryParam_DUTCH_V2 = 2;
|
|
469
457
|
*/
|
|
470
458
|
OrderTypeQueryParam_DUTCH_V2 = 2,
|
|
471
|
-
/**
|
|
472
|
-
* @generated from enum value: OrderTypeQueryParam_DUTCH_V1_V2 = 3;
|
|
473
|
-
*/
|
|
474
|
-
OrderTypeQueryParam_DUTCH_V1_V2 = 3,
|
|
475
459
|
/**
|
|
476
460
|
* @generated from enum value: OrderTypeQueryParam_LIMIT = 4;
|
|
477
461
|
*/
|
|
@@ -602,6 +586,52 @@ export declare class GetLPPriceDiscrepancyResponse extends Message<GetLPPriceDis
|
|
|
602
586
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetLPPriceDiscrepancyResponse;
|
|
603
587
|
static equals(a: GetLPPriceDiscrepancyResponse | PlainMessage<GetLPPriceDiscrepancyResponse> | undefined, b: GetLPPriceDiscrepancyResponse | PlainMessage<GetLPPriceDiscrepancyResponse> | undefined): boolean;
|
|
604
588
|
}
|
|
589
|
+
/**
|
|
590
|
+
* @generated from message trading.v1.Encode7702Request
|
|
591
|
+
*/
|
|
592
|
+
export declare class Encode7702Request extends Message<Encode7702Request> {
|
|
593
|
+
/**
|
|
594
|
+
* @generated from field: repeated trading.v1.TransactionRequest calls = 1;
|
|
595
|
+
*/
|
|
596
|
+
calls: TransactionRequest[];
|
|
597
|
+
/**
|
|
598
|
+
* @generated from field: string wallet_address = 2;
|
|
599
|
+
*/
|
|
600
|
+
walletAddress: string;
|
|
601
|
+
/**
|
|
602
|
+
* @generated from field: string smart_contract_delegation_address = 3;
|
|
603
|
+
*/
|
|
604
|
+
smartContractDelegationAddress: string;
|
|
605
|
+
constructor(data?: PartialMessage<Encode7702Request>);
|
|
606
|
+
static readonly runtime: typeof proto3;
|
|
607
|
+
static readonly typeName = "trading.v1.Encode7702Request";
|
|
608
|
+
static readonly fields: FieldList;
|
|
609
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Encode7702Request;
|
|
610
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Encode7702Request;
|
|
611
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Encode7702Request;
|
|
612
|
+
static equals(a: Encode7702Request | PlainMessage<Encode7702Request> | undefined, b: Encode7702Request | PlainMessage<Encode7702Request> | undefined): boolean;
|
|
613
|
+
}
|
|
614
|
+
/**
|
|
615
|
+
* @generated from message trading.v1.Encode7702Response
|
|
616
|
+
*/
|
|
617
|
+
export declare class Encode7702Response extends Message<Encode7702Response> {
|
|
618
|
+
/**
|
|
619
|
+
* @generated from field: string request_id = 1;
|
|
620
|
+
*/
|
|
621
|
+
requestId: string;
|
|
622
|
+
/**
|
|
623
|
+
* @generated from field: trading.v1.TransactionRequest encoded_transaction = 2;
|
|
624
|
+
*/
|
|
625
|
+
encodedTransaction?: TransactionRequest;
|
|
626
|
+
constructor(data?: PartialMessage<Encode7702Response>);
|
|
627
|
+
static readonly runtime: typeof proto3;
|
|
628
|
+
static readonly typeName = "trading.v1.Encode7702Response";
|
|
629
|
+
static readonly fields: FieldList;
|
|
630
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): Encode7702Response;
|
|
631
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): Encode7702Response;
|
|
632
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): Encode7702Response;
|
|
633
|
+
static equals(a: Encode7702Response | PlainMessage<Encode7702Response> | undefined, b: Encode7702Response | PlainMessage<Encode7702Response> | undefined): boolean;
|
|
634
|
+
}
|
|
605
635
|
/**
|
|
606
636
|
* @generated from message trading.v1.Swap5792Request
|
|
607
637
|
*/
|
|
@@ -702,9 +732,9 @@ export declare class PoolInfoRequest extends Message<PoolInfoRequest> {
|
|
|
702
732
|
*/
|
|
703
733
|
poolReferences: PoolReferenceByProtocol[];
|
|
704
734
|
/**
|
|
705
|
-
* @generated from field: optional trading.v1.PoolParameters
|
|
735
|
+
* @generated from field: optional trading.v1.PoolParameters pool_parameters = 3;
|
|
706
736
|
*/
|
|
707
|
-
|
|
737
|
+
poolParameters?: PoolParameters;
|
|
708
738
|
/**
|
|
709
739
|
* @generated from field: optional trading.v1.ChainId chain_id = 4;
|
|
710
740
|
*/
|
|
@@ -234,10 +234,6 @@ export var Protocols;
|
|
|
234
234
|
* @generated from enum value: V4 = 2;
|
|
235
235
|
*/
|
|
236
236
|
Protocols[Protocols["V4"] = 2] = "V4";
|
|
237
|
-
/**
|
|
238
|
-
* @generated from enum value: UNISWAPX = 3;
|
|
239
|
-
*/
|
|
240
|
-
Protocols[Protocols["UNISWAPX"] = 3] = "UNISWAPX";
|
|
241
237
|
/**
|
|
242
238
|
* @generated from enum value: UNISWAPX_V2 = 4;
|
|
243
239
|
*/
|
|
@@ -252,7 +248,6 @@ proto3.util.setEnumType(Protocols, "trading.v1.Protocols", [
|
|
|
252
248
|
{ no: 0, name: "V2" },
|
|
253
249
|
{ no: 1, name: "V3" },
|
|
254
250
|
{ no: 2, name: "V4" },
|
|
255
|
-
{ no: 3, name: "UNISWAPX" },
|
|
256
251
|
{ no: 4, name: "UNISWAPX_V2" },
|
|
257
252
|
{ no: 5, name: "UNISWAPX_V3" },
|
|
258
253
|
]);
|
|
@@ -273,10 +268,6 @@ export var RoutingPreference;
|
|
|
273
268
|
* @generated from enum value: ROUTING_CLASSIC = 2;
|
|
274
269
|
*/
|
|
275
270
|
RoutingPreference[RoutingPreference["ROUTING_CLASSIC"] = 2] = "ROUTING_CLASSIC";
|
|
276
|
-
/**
|
|
277
|
-
* @generated from enum value: ROUTING_UNISWAPX = 3;
|
|
278
|
-
*/
|
|
279
|
-
RoutingPreference[RoutingPreference["ROUTING_UNISWAPX"] = 3] = "ROUTING_UNISWAPX";
|
|
280
271
|
/**
|
|
281
272
|
* @generated from enum value: ROUTING_UNISWAPX_V2 = 4;
|
|
282
273
|
*/
|
|
@@ -299,7 +290,6 @@ proto3.util.setEnumType(RoutingPreference, "trading.v1.RoutingPreference", [
|
|
|
299
290
|
{ no: 0, name: "BEST_PRICE" },
|
|
300
291
|
{ no: 1, name: "FASTEST" },
|
|
301
292
|
{ no: 2, name: "ROUTING_CLASSIC" },
|
|
302
|
-
{ no: 3, name: "ROUTING_UNISWAPX" },
|
|
303
293
|
{ no: 4, name: "ROUTING_UNISWAPX_V2" },
|
|
304
294
|
{ no: 5, name: "V3_ONLY" },
|
|
305
295
|
{ no: 6, name: "V2_ONLY" },
|
|
@@ -632,18 +622,10 @@ export var OrderTypeQueryParam;
|
|
|
632
622
|
* @generated from enum value: ORDER_TYPE_QUERY_PARAM_UNSPECIFIED = 0;
|
|
633
623
|
*/
|
|
634
624
|
OrderTypeQueryParam[OrderTypeQueryParam["ORDER_TYPE_QUERY_PARAM_UNSPECIFIED"] = 0] = "ORDER_TYPE_QUERY_PARAM_UNSPECIFIED";
|
|
635
|
-
/**
|
|
636
|
-
* @generated from enum value: OrderTypeQueryParam_DUTCH = 1;
|
|
637
|
-
*/
|
|
638
|
-
OrderTypeQueryParam[OrderTypeQueryParam["OrderTypeQueryParam_DUTCH"] = 1] = "OrderTypeQueryParam_DUTCH";
|
|
639
625
|
/**
|
|
640
626
|
* @generated from enum value: OrderTypeQueryParam_DUTCH_V2 = 2;
|
|
641
627
|
*/
|
|
642
628
|
OrderTypeQueryParam[OrderTypeQueryParam["OrderTypeQueryParam_DUTCH_V2"] = 2] = "OrderTypeQueryParam_DUTCH_V2";
|
|
643
|
-
/**
|
|
644
|
-
* @generated from enum value: OrderTypeQueryParam_DUTCH_V1_V2 = 3;
|
|
645
|
-
*/
|
|
646
|
-
OrderTypeQueryParam[OrderTypeQueryParam["OrderTypeQueryParam_DUTCH_V1_V2"] = 3] = "OrderTypeQueryParam_DUTCH_V1_V2";
|
|
647
629
|
/**
|
|
648
630
|
* @generated from enum value: OrderTypeQueryParam_LIMIT = 4;
|
|
649
631
|
*/
|
|
@@ -660,9 +642,7 @@ export var OrderTypeQueryParam;
|
|
|
660
642
|
// Retrieve enum metadata with: proto3.getEnumType(OrderTypeQueryParam)
|
|
661
643
|
proto3.util.setEnumType(OrderTypeQueryParam, "trading.v1.OrderTypeQueryParam", [
|
|
662
644
|
{ no: 0, name: "ORDER_TYPE_QUERY_PARAM_UNSPECIFIED" },
|
|
663
|
-
{ no: 1, name: "OrderTypeQueryParam_DUTCH" },
|
|
664
645
|
{ no: 2, name: "OrderTypeQueryParam_DUTCH_V2" },
|
|
665
|
-
{ no: 3, name: "OrderTypeQueryParam_DUTCH_V1_V2" },
|
|
666
646
|
{ no: 4, name: "OrderTypeQueryParam_LIMIT" },
|
|
667
647
|
{ no: 5, name: "OrderTypeQueryParam_PRIORITY" },
|
|
668
648
|
{ no: 6, name: "OrderTypeQueryParam_DUTCH_V3" },
|
|
@@ -821,6 +801,77 @@ GetLPPriceDiscrepancyResponse.fields = proto3.util.newFieldList(() => [
|
|
|
821
801
|
{ no: 6, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
|
|
822
802
|
{ no: 7, name: "protocol", kind: "enum", T: proto3.getEnumType(Protocols) },
|
|
823
803
|
]);
|
|
804
|
+
/**
|
|
805
|
+
* @generated from message trading.v1.Encode7702Request
|
|
806
|
+
*/
|
|
807
|
+
export class Encode7702Request extends Message {
|
|
808
|
+
constructor(data) {
|
|
809
|
+
super();
|
|
810
|
+
/**
|
|
811
|
+
* @generated from field: repeated trading.v1.TransactionRequest calls = 1;
|
|
812
|
+
*/
|
|
813
|
+
this.calls = [];
|
|
814
|
+
/**
|
|
815
|
+
* @generated from field: string wallet_address = 2;
|
|
816
|
+
*/
|
|
817
|
+
this.walletAddress = "";
|
|
818
|
+
/**
|
|
819
|
+
* @generated from field: string smart_contract_delegation_address = 3;
|
|
820
|
+
*/
|
|
821
|
+
this.smartContractDelegationAddress = "";
|
|
822
|
+
proto3.util.initPartial(data, this);
|
|
823
|
+
}
|
|
824
|
+
static fromBinary(bytes, options) {
|
|
825
|
+
return new Encode7702Request().fromBinary(bytes, options);
|
|
826
|
+
}
|
|
827
|
+
static fromJson(jsonValue, options) {
|
|
828
|
+
return new Encode7702Request().fromJson(jsonValue, options);
|
|
829
|
+
}
|
|
830
|
+
static fromJsonString(jsonString, options) {
|
|
831
|
+
return new Encode7702Request().fromJsonString(jsonString, options);
|
|
832
|
+
}
|
|
833
|
+
static equals(a, b) {
|
|
834
|
+
return proto3.util.equals(Encode7702Request, a, b);
|
|
835
|
+
}
|
|
836
|
+
}
|
|
837
|
+
Encode7702Request.runtime = proto3;
|
|
838
|
+
Encode7702Request.typeName = "trading.v1.Encode7702Request";
|
|
839
|
+
Encode7702Request.fields = proto3.util.newFieldList(() => [
|
|
840
|
+
{ no: 1, name: "calls", kind: "message", T: TransactionRequest, repeated: true },
|
|
841
|
+
{ no: 2, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
842
|
+
{ no: 3, name: "smart_contract_delegation_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
843
|
+
]);
|
|
844
|
+
/**
|
|
845
|
+
* @generated from message trading.v1.Encode7702Response
|
|
846
|
+
*/
|
|
847
|
+
export class Encode7702Response extends Message {
|
|
848
|
+
constructor(data) {
|
|
849
|
+
super();
|
|
850
|
+
/**
|
|
851
|
+
* @generated from field: string request_id = 1;
|
|
852
|
+
*/
|
|
853
|
+
this.requestId = "";
|
|
854
|
+
proto3.util.initPartial(data, this);
|
|
855
|
+
}
|
|
856
|
+
static fromBinary(bytes, options) {
|
|
857
|
+
return new Encode7702Response().fromBinary(bytes, options);
|
|
858
|
+
}
|
|
859
|
+
static fromJson(jsonValue, options) {
|
|
860
|
+
return new Encode7702Response().fromJson(jsonValue, options);
|
|
861
|
+
}
|
|
862
|
+
static fromJsonString(jsonString, options) {
|
|
863
|
+
return new Encode7702Response().fromJsonString(jsonString, options);
|
|
864
|
+
}
|
|
865
|
+
static equals(a, b) {
|
|
866
|
+
return proto3.util.equals(Encode7702Response, a, b);
|
|
867
|
+
}
|
|
868
|
+
}
|
|
869
|
+
Encode7702Response.runtime = proto3;
|
|
870
|
+
Encode7702Response.typeName = "trading.v1.Encode7702Response";
|
|
871
|
+
Encode7702Response.fields = proto3.util.newFieldList(() => [
|
|
872
|
+
{ no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
873
|
+
{ no: 2, name: "encoded_transaction", kind: "message", T: TransactionRequest },
|
|
874
|
+
]);
|
|
824
875
|
/**
|
|
825
876
|
* @generated from message trading.v1.Swap5792Request
|
|
826
877
|
*/
|
|
@@ -945,7 +996,7 @@ PoolInfoRequest.typeName = "trading.v1.PoolInfoRequest";
|
|
|
945
996
|
PoolInfoRequest.fields = proto3.util.newFieldList(() => [
|
|
946
997
|
{ no: 1, name: "protocol", kind: "enum", T: proto3.getEnumType(Protocols) },
|
|
947
998
|
{ no: 2, name: "pool_references", kind: "message", T: PoolReferenceByProtocol, repeated: true },
|
|
948
|
-
{ no: 3, name: "
|
|
999
|
+
{ no: 3, name: "pool_parameters", kind: "message", T: PoolParameters, opt: true },
|
|
949
1000
|
{ no: 4, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId), opt: true },
|
|
950
1001
|
{ no: 5, name: "page_size", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
951
1002
|
{ no: 6, name: "current_page", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|