@uniswap/client-trading 0.5.11 → 0.5.13
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 +182 -0
- package/dist/trading/v1/api_pb.js +259 -0
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MethodIdempotency, MethodKind } from "@bufbuild/protobuf";
|
|
2
|
-
import { CheckApproval4337Request, CheckApproval4337Response, CheckApprovalRequest, CheckApprovalResponse, CheckWalletDelegationRequest, CheckWalletDelegationResponse, CreatePlanRequest, DocsRequest, DocsResponse, Encode4337Request, Encode4337Response, Encode7702Request, Encode7702Response, GetOrdersRequest, GetOrdersResponse, GetPlanRequest, GetPlansRequest, GetPlansResponse, GetSwapsRequest, GetSwapsResponse, OrderRequest, OrderResponse, PermissionsRequest, PermissionsResponse, PlanResponse, QuoteRequest, QuoteResponse, Swap4337Request, Swap4337Response, Swap5792Request, Swap5792Response, Swap7702Request, Swap7702Response, SwappableTokensRequest, SwappableTokensResponse, SwapRequest, SwapResponse, UpdatePlanRequest } from "./api_pb.js";
|
|
2
|
+
import { CheckApproval4337Request, CheckApproval4337Response, CheckApprovalRequest, CheckApprovalResponse, CheckWalletDelegationRequest, CheckWalletDelegationResponse, CreatePlanRequest, DocsRequest, DocsResponse, Encode4337Request, Encode4337Response, Encode7702Request, Encode7702Response, GetOrdersRequest, GetOrdersResponse, GetPlanRequest, GetPlansRequest, GetPlansResponse, GetSwapsRequest, GetSwapsResponse, OrderRequest, OrderResponse, PermissionsRequest, PermissionsResponse, PlanResponse, QuoteRequest, QuoteResponse, SupportedChainsRequest, SupportedChainsResponse, Swap4337Request, Swap4337Response, Swap5792Request, Swap5792Response, Swap7702Request, Swap7702Response, SwappableTokensRequest, SwappableTokensResponse, SwapRequest, SwapResponse, UpdatePlanRequest } from "./api_pb.js";
|
|
3
3
|
/**
|
|
4
4
|
* @generated from rpc trading.v1.tradingService.Quote
|
|
5
5
|
*/
|
|
@@ -98,6 +98,20 @@ export declare const swappableTokens: {
|
|
|
98
98
|
readonly typeName: "trading.v1.tradingService";
|
|
99
99
|
};
|
|
100
100
|
};
|
|
101
|
+
/**
|
|
102
|
+
* @generated from rpc trading.v1.tradingService.SupportedChains
|
|
103
|
+
*/
|
|
104
|
+
export declare const supportedChains: {
|
|
105
|
+
readonly localName: "supportedChains";
|
|
106
|
+
readonly name: "SupportedChains";
|
|
107
|
+
readonly kind: MethodKind.Unary;
|
|
108
|
+
readonly I: typeof SupportedChainsRequest;
|
|
109
|
+
readonly O: typeof SupportedChainsResponse;
|
|
110
|
+
readonly idempotency: MethodIdempotency.NoSideEffects;
|
|
111
|
+
readonly service: {
|
|
112
|
+
readonly typeName: "trading.v1.tradingService";
|
|
113
|
+
};
|
|
114
|
+
};
|
|
101
115
|
/**
|
|
102
116
|
* @generated from rpc trading.v1.tradingService.GetOrders
|
|
103
117
|
*/
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
import { MethodIdempotency, MethodKind } from "@bufbuild/protobuf";
|
|
6
|
-
import { CheckApproval4337Request, CheckApproval4337Response, CheckApprovalRequest, CheckApprovalResponse, CheckWalletDelegationRequest, CheckWalletDelegationResponse, CreatePlanRequest, DocsRequest, DocsResponse, Encode4337Request, Encode4337Response, Encode7702Request, Encode7702Response, GetOrdersRequest, GetOrdersResponse, GetPlanRequest, GetPlansRequest, GetPlansResponse, GetSwapsRequest, GetSwapsResponse, OrderRequest, OrderResponse, PermissionsRequest, PermissionsResponse, PlanResponse, QuoteRequest, QuoteResponse, Swap4337Request, Swap4337Response, Swap5792Request, Swap5792Response, Swap7702Request, Swap7702Response, SwappableTokensRequest, SwappableTokensResponse, SwapRequest, SwapResponse, UpdatePlanRequest } from "./api_pb.js";
|
|
6
|
+
import { CheckApproval4337Request, CheckApproval4337Response, CheckApprovalRequest, CheckApprovalResponse, CheckWalletDelegationRequest, CheckWalletDelegationResponse, CreatePlanRequest, DocsRequest, DocsResponse, Encode4337Request, Encode4337Response, Encode7702Request, Encode7702Response, GetOrdersRequest, GetOrdersResponse, GetPlanRequest, GetPlansRequest, GetPlansResponse, GetSwapsRequest, GetSwapsResponse, OrderRequest, OrderResponse, PermissionsRequest, PermissionsResponse, PlanResponse, QuoteRequest, QuoteResponse, SupportedChainsRequest, SupportedChainsResponse, Swap4337Request, Swap4337Response, Swap5792Request, Swap5792Response, Swap7702Request, Swap7702Response, SwappableTokensRequest, SwappableTokensResponse, SwapRequest, SwapResponse, UpdatePlanRequest } from "./api_pb.js";
|
|
7
7
|
/**
|
|
8
8
|
* @generated from rpc trading.v1.tradingService.Quote
|
|
9
9
|
*/
|
|
@@ -102,6 +102,20 @@ export const swappableTokens = {
|
|
|
102
102
|
typeName: "trading.v1.tradingService"
|
|
103
103
|
}
|
|
104
104
|
};
|
|
105
|
+
/**
|
|
106
|
+
* @generated from rpc trading.v1.tradingService.SupportedChains
|
|
107
|
+
*/
|
|
108
|
+
export const supportedChains = {
|
|
109
|
+
localName: "supportedChains",
|
|
110
|
+
name: "SupportedChains",
|
|
111
|
+
kind: MethodKind.Unary,
|
|
112
|
+
I: SupportedChainsRequest,
|
|
113
|
+
O: SupportedChainsResponse,
|
|
114
|
+
idempotency: MethodIdempotency.NoSideEffects,
|
|
115
|
+
service: {
|
|
116
|
+
typeName: "trading.v1.tradingService"
|
|
117
|
+
}
|
|
118
|
+
};
|
|
105
119
|
/**
|
|
106
120
|
* @generated from rpc trading.v1.tradingService.GetOrders
|
|
107
121
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CheckApproval4337Request, CheckApproval4337Response, CheckApprovalRequest, CheckApprovalResponse, CheckWalletDelegationRequest, CheckWalletDelegationResponse, CreatePlanRequest, DocsRequest, DocsResponse, Encode4337Request, Encode4337Response, Encode7702Request, Encode7702Response, GetOrdersRequest, GetOrdersResponse, GetPlanRequest, GetPlansRequest, GetPlansResponse, GetSwapsRequest, GetSwapsResponse, OrderRequest, OrderResponse, PermissionsRequest, PermissionsResponse, PlanResponse, QuoteRequest, QuoteResponse, Swap4337Request, Swap4337Response, Swap5792Request, Swap5792Response, Swap7702Request, Swap7702Response, SwappableTokensRequest, SwappableTokensResponse, SwapRequest, SwapResponse, UpdatePlanRequest } from "./api_pb.js";
|
|
1
|
+
import { CheckApproval4337Request, CheckApproval4337Response, CheckApprovalRequest, CheckApprovalResponse, CheckWalletDelegationRequest, CheckWalletDelegationResponse, CreatePlanRequest, DocsRequest, DocsResponse, Encode4337Request, Encode4337Response, Encode7702Request, Encode7702Response, GetOrdersRequest, GetOrdersResponse, GetPlanRequest, GetPlansRequest, GetPlansResponse, GetSwapsRequest, GetSwapsResponse, OrderRequest, OrderResponse, PermissionsRequest, PermissionsResponse, PlanResponse, QuoteRequest, QuoteResponse, SupportedChainsRequest, SupportedChainsResponse, Swap4337Request, Swap4337Response, Swap5792Request, Swap5792Response, Swap7702Request, Swap7702Response, SwappableTokensRequest, SwappableTokensResponse, SwapRequest, SwapResponse, UpdatePlanRequest } from "./api_pb.js";
|
|
2
2
|
import { MethodIdempotency, MethodKind } from "@bufbuild/protobuf";
|
|
3
3
|
/**
|
|
4
4
|
* @generated from service trading.v1.tradingService
|
|
@@ -76,6 +76,16 @@ export declare const tradingService: {
|
|
|
76
76
|
readonly kind: MethodKind.Unary;
|
|
77
77
|
readonly idempotency: MethodIdempotency.NoSideEffects;
|
|
78
78
|
};
|
|
79
|
+
/**
|
|
80
|
+
* @generated from rpc trading.v1.tradingService.SupportedChains
|
|
81
|
+
*/
|
|
82
|
+
readonly supportedChains: {
|
|
83
|
+
readonly name: "SupportedChains";
|
|
84
|
+
readonly I: typeof SupportedChainsRequest;
|
|
85
|
+
readonly O: typeof SupportedChainsResponse;
|
|
86
|
+
readonly kind: MethodKind.Unary;
|
|
87
|
+
readonly idempotency: MethodIdempotency.NoSideEffects;
|
|
88
|
+
};
|
|
79
89
|
/**
|
|
80
90
|
* @generated from rpc trading.v1.tradingService.GetOrders
|
|
81
91
|
*/
|
|
@@ -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 { CheckApproval4337Request, CheckApproval4337Response, CheckApprovalRequest, CheckApprovalResponse, CheckWalletDelegationRequest, CheckWalletDelegationResponse, CreatePlanRequest, DocsRequest, DocsResponse, Encode4337Request, Encode4337Response, Encode7702Request, Encode7702Response, GetOrdersRequest, GetOrdersResponse, GetPlanRequest, GetPlansRequest, GetPlansResponse, GetSwapsRequest, GetSwapsResponse, OrderRequest, OrderResponse, PermissionsRequest, PermissionsResponse, PlanResponse, QuoteRequest, QuoteResponse, Swap4337Request, Swap4337Response, Swap5792Request, Swap5792Response, Swap7702Request, Swap7702Response, SwappableTokensRequest, SwappableTokensResponse, SwapRequest, SwapResponse, UpdatePlanRequest } from "./api_pb.js";
|
|
5
|
+
import { CheckApproval4337Request, CheckApproval4337Response, CheckApprovalRequest, CheckApprovalResponse, CheckWalletDelegationRequest, CheckWalletDelegationResponse, CreatePlanRequest, DocsRequest, DocsResponse, Encode4337Request, Encode4337Response, Encode7702Request, Encode7702Response, GetOrdersRequest, GetOrdersResponse, GetPlanRequest, GetPlansRequest, GetPlansResponse, GetSwapsRequest, GetSwapsResponse, OrderRequest, OrderResponse, PermissionsRequest, PermissionsResponse, PlanResponse, QuoteRequest, QuoteResponse, SupportedChainsRequest, SupportedChainsResponse, Swap4337Request, Swap4337Response, Swap5792Request, Swap5792Response, Swap7702Request, Swap7702Response, SwappableTokensRequest, SwappableTokensResponse, SwapRequest, SwapResponse, UpdatePlanRequest } from "./api_pb.js";
|
|
6
6
|
import { MethodIdempotency, MethodKind } from "@bufbuild/protobuf";
|
|
7
7
|
/**
|
|
8
8
|
* @generated from service trading.v1.tradingService
|
|
@@ -80,6 +80,16 @@ export const tradingService = {
|
|
|
80
80
|
kind: MethodKind.Unary,
|
|
81
81
|
idempotency: MethodIdempotency.NoSideEffects,
|
|
82
82
|
},
|
|
83
|
+
/**
|
|
84
|
+
* @generated from rpc trading.v1.tradingService.SupportedChains
|
|
85
|
+
*/
|
|
86
|
+
supportedChains: {
|
|
87
|
+
name: "SupportedChains",
|
|
88
|
+
I: SupportedChainsRequest,
|
|
89
|
+
O: SupportedChainsResponse,
|
|
90
|
+
kind: MethodKind.Unary,
|
|
91
|
+
idempotency: MethodIdempotency.NoSideEffects,
|
|
92
|
+
},
|
|
83
93
|
/**
|
|
84
94
|
* @generated from rpc trading.v1.tradingService.GetOrders
|
|
85
95
|
*/
|
|
@@ -1,5 +1,47 @@
|
|
|
1
1
|
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
2
2
|
import { Message, proto3, Struct } from "@bufbuild/protobuf";
|
|
3
|
+
/**
|
|
4
|
+
* @generated from enum trading.v1.SupportedProtocol
|
|
5
|
+
*/
|
|
6
|
+
export declare enum SupportedProtocol {
|
|
7
|
+
/**
|
|
8
|
+
* @generated from enum value: SUPPORTED_PROTOCOL_UNSPECIFIED = 0;
|
|
9
|
+
*/
|
|
10
|
+
UNSPECIFIED = 0,
|
|
11
|
+
/**
|
|
12
|
+
* @generated from enum value: SUPPORTED_PROTOCOL_V2 = 1;
|
|
13
|
+
*/
|
|
14
|
+
V2 = 1,
|
|
15
|
+
/**
|
|
16
|
+
* @generated from enum value: SUPPORTED_PROTOCOL_V3 = 2;
|
|
17
|
+
*/
|
|
18
|
+
V3 = 2,
|
|
19
|
+
/**
|
|
20
|
+
* @generated from enum value: SUPPORTED_PROTOCOL_V4 = 3;
|
|
21
|
+
*/
|
|
22
|
+
V4 = 3,
|
|
23
|
+
/**
|
|
24
|
+
* @generated from enum value: SUPPORTED_PROTOCOL_UNISWAPX = 4;
|
|
25
|
+
*/
|
|
26
|
+
UNISWAPX = 4
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* @generated from enum trading.v1.SupportedAction
|
|
30
|
+
*/
|
|
31
|
+
export declare enum SupportedAction {
|
|
32
|
+
/**
|
|
33
|
+
* @generated from enum value: SUPPORTED_ACTION_UNSPECIFIED = 0;
|
|
34
|
+
*/
|
|
35
|
+
UNSPECIFIED = 0,
|
|
36
|
+
/**
|
|
37
|
+
* @generated from enum value: SUPPORTED_ACTION_SWAP = 1;
|
|
38
|
+
*/
|
|
39
|
+
SWAP = 1,
|
|
40
|
+
/**
|
|
41
|
+
* @generated from enum value: SUPPORTED_ACTION_LP = 2;
|
|
42
|
+
*/
|
|
43
|
+
LP = 2
|
|
44
|
+
}
|
|
3
45
|
/**
|
|
4
46
|
* @generated from enum trading.v1.SafetyLevel
|
|
5
47
|
*/
|
|
@@ -1462,6 +1504,98 @@ export declare class SwappableTokensResponse extends Message<SwappableTokensResp
|
|
|
1462
1504
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SwappableTokensResponse;
|
|
1463
1505
|
static equals(a: SwappableTokensResponse | PlainMessage<SwappableTokensResponse> | undefined, b: SwappableTokensResponse | PlainMessage<SwappableTokensResponse> | undefined): boolean;
|
|
1464
1506
|
}
|
|
1507
|
+
/**
|
|
1508
|
+
* @generated from message trading.v1.SupportedChainsRequest
|
|
1509
|
+
*/
|
|
1510
|
+
export declare class SupportedChainsRequest extends Message<SupportedChainsRequest> {
|
|
1511
|
+
constructor(data?: PartialMessage<SupportedChainsRequest>);
|
|
1512
|
+
static readonly runtime: typeof proto3;
|
|
1513
|
+
static readonly typeName = "trading.v1.SupportedChainsRequest";
|
|
1514
|
+
static readonly fields: FieldList;
|
|
1515
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SupportedChainsRequest;
|
|
1516
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SupportedChainsRequest;
|
|
1517
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SupportedChainsRequest;
|
|
1518
|
+
static equals(a: SupportedChainsRequest | PlainMessage<SupportedChainsRequest> | undefined, b: SupportedChainsRequest | PlainMessage<SupportedChainsRequest> | undefined): boolean;
|
|
1519
|
+
}
|
|
1520
|
+
/**
|
|
1521
|
+
* @generated from message trading.v1.ChainContractAddress
|
|
1522
|
+
*/
|
|
1523
|
+
export declare class ChainContractAddress extends Message<ChainContractAddress> {
|
|
1524
|
+
/**
|
|
1525
|
+
* @generated from field: string name = 1;
|
|
1526
|
+
*/
|
|
1527
|
+
name: string;
|
|
1528
|
+
/**
|
|
1529
|
+
* @generated from field: string version = 2;
|
|
1530
|
+
*/
|
|
1531
|
+
version: string;
|
|
1532
|
+
/**
|
|
1533
|
+
* @generated from field: string address = 3;
|
|
1534
|
+
*/
|
|
1535
|
+
address: string;
|
|
1536
|
+
constructor(data?: PartialMessage<ChainContractAddress>);
|
|
1537
|
+
static readonly runtime: typeof proto3;
|
|
1538
|
+
static readonly typeName = "trading.v1.ChainContractAddress";
|
|
1539
|
+
static readonly fields: FieldList;
|
|
1540
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ChainContractAddress;
|
|
1541
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ChainContractAddress;
|
|
1542
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ChainContractAddress;
|
|
1543
|
+
static equals(a: ChainContractAddress | PlainMessage<ChainContractAddress> | undefined, b: ChainContractAddress | PlainMessage<ChainContractAddress> | undefined): boolean;
|
|
1544
|
+
}
|
|
1545
|
+
/**
|
|
1546
|
+
* @generated from message trading.v1.SupportedChain
|
|
1547
|
+
*/
|
|
1548
|
+
export declare class SupportedChain extends Message<SupportedChain> {
|
|
1549
|
+
/**
|
|
1550
|
+
* @generated from field: trading.v1.ChainId chain_id = 1;
|
|
1551
|
+
*/
|
|
1552
|
+
chainId: ChainId;
|
|
1553
|
+
/**
|
|
1554
|
+
* @generated from field: string chain_name = 2;
|
|
1555
|
+
*/
|
|
1556
|
+
chainName: string;
|
|
1557
|
+
/**
|
|
1558
|
+
* @generated from field: repeated trading.v1.ChainContractAddress contract_addresses = 3;
|
|
1559
|
+
*/
|
|
1560
|
+
contractAddresses: ChainContractAddress[];
|
|
1561
|
+
/**
|
|
1562
|
+
* @generated from field: repeated trading.v1.SupportedProtocol protocols = 4;
|
|
1563
|
+
*/
|
|
1564
|
+
protocols: SupportedProtocol[];
|
|
1565
|
+
/**
|
|
1566
|
+
* @generated from field: repeated trading.v1.SupportedAction actions = 5;
|
|
1567
|
+
*/
|
|
1568
|
+
actions: SupportedAction[];
|
|
1569
|
+
constructor(data?: PartialMessage<SupportedChain>);
|
|
1570
|
+
static readonly runtime: typeof proto3;
|
|
1571
|
+
static readonly typeName = "trading.v1.SupportedChain";
|
|
1572
|
+
static readonly fields: FieldList;
|
|
1573
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SupportedChain;
|
|
1574
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SupportedChain;
|
|
1575
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SupportedChain;
|
|
1576
|
+
static equals(a: SupportedChain | PlainMessage<SupportedChain> | undefined, b: SupportedChain | PlainMessage<SupportedChain> | undefined): boolean;
|
|
1577
|
+
}
|
|
1578
|
+
/**
|
|
1579
|
+
* @generated from message trading.v1.SupportedChainsResponse
|
|
1580
|
+
*/
|
|
1581
|
+
export declare class SupportedChainsResponse extends Message<SupportedChainsResponse> {
|
|
1582
|
+
/**
|
|
1583
|
+
* @generated from field: string request_id = 1;
|
|
1584
|
+
*/
|
|
1585
|
+
requestId: string;
|
|
1586
|
+
/**
|
|
1587
|
+
* @generated from field: repeated trading.v1.SupportedChain chains = 2;
|
|
1588
|
+
*/
|
|
1589
|
+
chains: SupportedChain[];
|
|
1590
|
+
constructor(data?: PartialMessage<SupportedChainsResponse>);
|
|
1591
|
+
static readonly runtime: typeof proto3;
|
|
1592
|
+
static readonly typeName = "trading.v1.SupportedChainsResponse";
|
|
1593
|
+
static readonly fields: FieldList;
|
|
1594
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SupportedChainsResponse;
|
|
1595
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SupportedChainsResponse;
|
|
1596
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SupportedChainsResponse;
|
|
1597
|
+
static equals(a: SupportedChainsResponse | PlainMessage<SupportedChainsResponse> | undefined, b: SupportedChainsResponse | PlainMessage<SupportedChainsResponse> | undefined): boolean;
|
|
1598
|
+
}
|
|
1465
1599
|
/**
|
|
1466
1600
|
* @generated from message trading.v1.TokenProjectLogo
|
|
1467
1601
|
*/
|
|
@@ -1753,6 +1887,13 @@ export declare class QuoteRequest extends Message<QuoteRequest> {
|
|
|
1753
1887
|
* @generated from field: optional trading.v1.EarnIntent earn_intent = 24;
|
|
1754
1888
|
*/
|
|
1755
1889
|
earnIntent?: EarnIntent;
|
|
1890
|
+
/**
|
|
1891
|
+
* When true, uniroute-backed classic quotes include routeCandidates —
|
|
1892
|
+
* the top alternative routes with whole-route amounts.
|
|
1893
|
+
*
|
|
1894
|
+
* @generated from field: optional bool include_route_candidates = 25;
|
|
1895
|
+
*/
|
|
1896
|
+
includeRouteCandidates?: boolean;
|
|
1756
1897
|
constructor(data?: PartialMessage<QuoteRequest>);
|
|
1757
1898
|
static readonly runtime: typeof proto3;
|
|
1758
1899
|
static readonly typeName = "trading.v1.QuoteRequest";
|
|
@@ -2547,6 +2688,15 @@ export declare class ClassicQuote extends Message<ClassicQuote> {
|
|
|
2547
2688
|
* @generated from field: repeated trading.v1.SwapStep swap_steps = 26;
|
|
2548
2689
|
*/
|
|
2549
2690
|
swapSteps: SwapStep[];
|
|
2691
|
+
/**
|
|
2692
|
+
* Top quoted route candidates the router considered but did NOT serve
|
|
2693
|
+
* (the served route and candidates proven unviable — simulation or
|
|
2694
|
+
* trade-build failures — are excluded), best-first. Populated only for
|
|
2695
|
+
* uniroute-backed quotes when QuoteRequest.include_route_candidates is set.
|
|
2696
|
+
*
|
|
2697
|
+
* @generated from field: repeated trading.v1.RouteCandidate route_candidates = 27;
|
|
2698
|
+
*/
|
|
2699
|
+
routeCandidates: RouteCandidate[];
|
|
2550
2700
|
constructor(data?: PartialMessage<ClassicQuote>);
|
|
2551
2701
|
static readonly runtime: typeof proto3;
|
|
2552
2702
|
static readonly typeName = "trading.v1.ClassicQuote";
|
|
@@ -2556,6 +2706,38 @@ export declare class ClassicQuote extends Message<ClassicQuote> {
|
|
|
2556
2706
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ClassicQuote;
|
|
2557
2707
|
static equals(a: ClassicQuote | PlainMessage<ClassicQuote> | undefined, b: ClassicQuote | PlainMessage<ClassicQuote> | undefined): boolean;
|
|
2558
2708
|
}
|
|
2709
|
+
/**
|
|
2710
|
+
* A quoted route candidate with its whole-route (not per-hop) amounts.
|
|
2711
|
+
* quote_amount is the output amount for EXACT_INPUT and the required input
|
|
2712
|
+
* amount for EXACT_OUTPUT. Amounts are quoter estimates and do not carry
|
|
2713
|
+
* the simulation/portion corrections applied to the served quote.
|
|
2714
|
+
*
|
|
2715
|
+
* @generated from message trading.v1.RouteCandidate
|
|
2716
|
+
*/
|
|
2717
|
+
export declare class RouteCandidate extends Message<RouteCandidate> {
|
|
2718
|
+
/**
|
|
2719
|
+
* @generated from field: string route_string = 1;
|
|
2720
|
+
*/
|
|
2721
|
+
routeString: string;
|
|
2722
|
+
/**
|
|
2723
|
+
* @generated from field: string quote_amount = 2;
|
|
2724
|
+
*/
|
|
2725
|
+
quoteAmount: string;
|
|
2726
|
+
/**
|
|
2727
|
+
* Gas-adjusted whole-route amount; omitted when gas details are unavailable.
|
|
2728
|
+
*
|
|
2729
|
+
* @generated from field: optional string quote_gas_adjusted = 3;
|
|
2730
|
+
*/
|
|
2731
|
+
quoteGasAdjusted?: string;
|
|
2732
|
+
constructor(data?: PartialMessage<RouteCandidate>);
|
|
2733
|
+
static readonly runtime: typeof proto3;
|
|
2734
|
+
static readonly typeName = "trading.v1.RouteCandidate";
|
|
2735
|
+
static readonly fields: FieldList;
|
|
2736
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RouteCandidate;
|
|
2737
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RouteCandidate;
|
|
2738
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RouteCandidate;
|
|
2739
|
+
static equals(a: RouteCandidate | PlainMessage<RouteCandidate> | undefined, b: RouteCandidate | PlainMessage<RouteCandidate> | undefined): boolean;
|
|
2740
|
+
}
|
|
2559
2741
|
/**
|
|
2560
2742
|
* Universal Router SwapStep representation (mirrors the SDK shape used by
|
|
2561
2743
|
* SwapRouter.encodeSwaps). Only used in the swapsteps quote/encoding flow.
|
|
@@ -3,6 +3,64 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
import { Message, proto3, protoInt64, Struct } from "@bufbuild/protobuf";
|
|
6
|
+
/**
|
|
7
|
+
* @generated from enum trading.v1.SupportedProtocol
|
|
8
|
+
*/
|
|
9
|
+
export var SupportedProtocol;
|
|
10
|
+
(function (SupportedProtocol) {
|
|
11
|
+
/**
|
|
12
|
+
* @generated from enum value: SUPPORTED_PROTOCOL_UNSPECIFIED = 0;
|
|
13
|
+
*/
|
|
14
|
+
SupportedProtocol[SupportedProtocol["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
15
|
+
/**
|
|
16
|
+
* @generated from enum value: SUPPORTED_PROTOCOL_V2 = 1;
|
|
17
|
+
*/
|
|
18
|
+
SupportedProtocol[SupportedProtocol["V2"] = 1] = "V2";
|
|
19
|
+
/**
|
|
20
|
+
* @generated from enum value: SUPPORTED_PROTOCOL_V3 = 2;
|
|
21
|
+
*/
|
|
22
|
+
SupportedProtocol[SupportedProtocol["V3"] = 2] = "V3";
|
|
23
|
+
/**
|
|
24
|
+
* @generated from enum value: SUPPORTED_PROTOCOL_V4 = 3;
|
|
25
|
+
*/
|
|
26
|
+
SupportedProtocol[SupportedProtocol["V4"] = 3] = "V4";
|
|
27
|
+
/**
|
|
28
|
+
* @generated from enum value: SUPPORTED_PROTOCOL_UNISWAPX = 4;
|
|
29
|
+
*/
|
|
30
|
+
SupportedProtocol[SupportedProtocol["UNISWAPX"] = 4] = "UNISWAPX";
|
|
31
|
+
})(SupportedProtocol || (SupportedProtocol = {}));
|
|
32
|
+
// Retrieve enum metadata with: proto3.getEnumType(SupportedProtocol)
|
|
33
|
+
proto3.util.setEnumType(SupportedProtocol, "trading.v1.SupportedProtocol", [
|
|
34
|
+
{ no: 0, name: "SUPPORTED_PROTOCOL_UNSPECIFIED" },
|
|
35
|
+
{ no: 1, name: "SUPPORTED_PROTOCOL_V2" },
|
|
36
|
+
{ no: 2, name: "SUPPORTED_PROTOCOL_V3" },
|
|
37
|
+
{ no: 3, name: "SUPPORTED_PROTOCOL_V4" },
|
|
38
|
+
{ no: 4, name: "SUPPORTED_PROTOCOL_UNISWAPX" },
|
|
39
|
+
]);
|
|
40
|
+
/**
|
|
41
|
+
* @generated from enum trading.v1.SupportedAction
|
|
42
|
+
*/
|
|
43
|
+
export var SupportedAction;
|
|
44
|
+
(function (SupportedAction) {
|
|
45
|
+
/**
|
|
46
|
+
* @generated from enum value: SUPPORTED_ACTION_UNSPECIFIED = 0;
|
|
47
|
+
*/
|
|
48
|
+
SupportedAction[SupportedAction["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
49
|
+
/**
|
|
50
|
+
* @generated from enum value: SUPPORTED_ACTION_SWAP = 1;
|
|
51
|
+
*/
|
|
52
|
+
SupportedAction[SupportedAction["SWAP"] = 1] = "SWAP";
|
|
53
|
+
/**
|
|
54
|
+
* @generated from enum value: SUPPORTED_ACTION_LP = 2;
|
|
55
|
+
*/
|
|
56
|
+
SupportedAction[SupportedAction["LP"] = 2] = "LP";
|
|
57
|
+
})(SupportedAction || (SupportedAction = {}));
|
|
58
|
+
// Retrieve enum metadata with: proto3.getEnumType(SupportedAction)
|
|
59
|
+
proto3.util.setEnumType(SupportedAction, "trading.v1.SupportedAction", [
|
|
60
|
+
{ no: 0, name: "SUPPORTED_ACTION_UNSPECIFIED" },
|
|
61
|
+
{ no: 1, name: "SUPPORTED_ACTION_SWAP" },
|
|
62
|
+
{ no: 2, name: "SUPPORTED_ACTION_LP" },
|
|
63
|
+
]);
|
|
6
64
|
/**
|
|
7
65
|
* @generated from enum trading.v1.SafetyLevel
|
|
8
66
|
*/
|
|
@@ -1808,6 +1866,155 @@ SwappableTokensResponse.fields = proto3.util.newFieldList(() => [
|
|
|
1808
1866
|
{ no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1809
1867
|
{ no: 2, name: "tokens", kind: "message", T: Token, repeated: true },
|
|
1810
1868
|
]);
|
|
1869
|
+
/**
|
|
1870
|
+
* @generated from message trading.v1.SupportedChainsRequest
|
|
1871
|
+
*/
|
|
1872
|
+
export class SupportedChainsRequest extends Message {
|
|
1873
|
+
constructor(data) {
|
|
1874
|
+
super();
|
|
1875
|
+
proto3.util.initPartial(data, this);
|
|
1876
|
+
}
|
|
1877
|
+
static fromBinary(bytes, options) {
|
|
1878
|
+
return new SupportedChainsRequest().fromBinary(bytes, options);
|
|
1879
|
+
}
|
|
1880
|
+
static fromJson(jsonValue, options) {
|
|
1881
|
+
return new SupportedChainsRequest().fromJson(jsonValue, options);
|
|
1882
|
+
}
|
|
1883
|
+
static fromJsonString(jsonString, options) {
|
|
1884
|
+
return new SupportedChainsRequest().fromJsonString(jsonString, options);
|
|
1885
|
+
}
|
|
1886
|
+
static equals(a, b) {
|
|
1887
|
+
return proto3.util.equals(SupportedChainsRequest, a, b);
|
|
1888
|
+
}
|
|
1889
|
+
}
|
|
1890
|
+
SupportedChainsRequest.runtime = proto3;
|
|
1891
|
+
SupportedChainsRequest.typeName = "trading.v1.SupportedChainsRequest";
|
|
1892
|
+
SupportedChainsRequest.fields = proto3.util.newFieldList(() => []);
|
|
1893
|
+
/**
|
|
1894
|
+
* @generated from message trading.v1.ChainContractAddress
|
|
1895
|
+
*/
|
|
1896
|
+
export class ChainContractAddress extends Message {
|
|
1897
|
+
constructor(data) {
|
|
1898
|
+
super();
|
|
1899
|
+
/**
|
|
1900
|
+
* @generated from field: string name = 1;
|
|
1901
|
+
*/
|
|
1902
|
+
this.name = "";
|
|
1903
|
+
/**
|
|
1904
|
+
* @generated from field: string version = 2;
|
|
1905
|
+
*/
|
|
1906
|
+
this.version = "";
|
|
1907
|
+
/**
|
|
1908
|
+
* @generated from field: string address = 3;
|
|
1909
|
+
*/
|
|
1910
|
+
this.address = "";
|
|
1911
|
+
proto3.util.initPartial(data, this);
|
|
1912
|
+
}
|
|
1913
|
+
static fromBinary(bytes, options) {
|
|
1914
|
+
return new ChainContractAddress().fromBinary(bytes, options);
|
|
1915
|
+
}
|
|
1916
|
+
static fromJson(jsonValue, options) {
|
|
1917
|
+
return new ChainContractAddress().fromJson(jsonValue, options);
|
|
1918
|
+
}
|
|
1919
|
+
static fromJsonString(jsonString, options) {
|
|
1920
|
+
return new ChainContractAddress().fromJsonString(jsonString, options);
|
|
1921
|
+
}
|
|
1922
|
+
static equals(a, b) {
|
|
1923
|
+
return proto3.util.equals(ChainContractAddress, a, b);
|
|
1924
|
+
}
|
|
1925
|
+
}
|
|
1926
|
+
ChainContractAddress.runtime = proto3;
|
|
1927
|
+
ChainContractAddress.typeName = "trading.v1.ChainContractAddress";
|
|
1928
|
+
ChainContractAddress.fields = proto3.util.newFieldList(() => [
|
|
1929
|
+
{ no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1930
|
+
{ no: 2, name: "version", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1931
|
+
{ no: 3, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1932
|
+
]);
|
|
1933
|
+
/**
|
|
1934
|
+
* @generated from message trading.v1.SupportedChain
|
|
1935
|
+
*/
|
|
1936
|
+
export class SupportedChain extends Message {
|
|
1937
|
+
constructor(data) {
|
|
1938
|
+
super();
|
|
1939
|
+
/**
|
|
1940
|
+
* @generated from field: trading.v1.ChainId chain_id = 1;
|
|
1941
|
+
*/
|
|
1942
|
+
this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
|
|
1943
|
+
/**
|
|
1944
|
+
* @generated from field: string chain_name = 2;
|
|
1945
|
+
*/
|
|
1946
|
+
this.chainName = "";
|
|
1947
|
+
/**
|
|
1948
|
+
* @generated from field: repeated trading.v1.ChainContractAddress contract_addresses = 3;
|
|
1949
|
+
*/
|
|
1950
|
+
this.contractAddresses = [];
|
|
1951
|
+
/**
|
|
1952
|
+
* @generated from field: repeated trading.v1.SupportedProtocol protocols = 4;
|
|
1953
|
+
*/
|
|
1954
|
+
this.protocols = [];
|
|
1955
|
+
/**
|
|
1956
|
+
* @generated from field: repeated trading.v1.SupportedAction actions = 5;
|
|
1957
|
+
*/
|
|
1958
|
+
this.actions = [];
|
|
1959
|
+
proto3.util.initPartial(data, this);
|
|
1960
|
+
}
|
|
1961
|
+
static fromBinary(bytes, options) {
|
|
1962
|
+
return new SupportedChain().fromBinary(bytes, options);
|
|
1963
|
+
}
|
|
1964
|
+
static fromJson(jsonValue, options) {
|
|
1965
|
+
return new SupportedChain().fromJson(jsonValue, options);
|
|
1966
|
+
}
|
|
1967
|
+
static fromJsonString(jsonString, options) {
|
|
1968
|
+
return new SupportedChain().fromJsonString(jsonString, options);
|
|
1969
|
+
}
|
|
1970
|
+
static equals(a, b) {
|
|
1971
|
+
return proto3.util.equals(SupportedChain, a, b);
|
|
1972
|
+
}
|
|
1973
|
+
}
|
|
1974
|
+
SupportedChain.runtime = proto3;
|
|
1975
|
+
SupportedChain.typeName = "trading.v1.SupportedChain";
|
|
1976
|
+
SupportedChain.fields = proto3.util.newFieldList(() => [
|
|
1977
|
+
{ no: 1, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
|
|
1978
|
+
{ no: 2, name: "chain_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1979
|
+
{ no: 3, name: "contract_addresses", kind: "message", T: ChainContractAddress, repeated: true },
|
|
1980
|
+
{ no: 4, name: "protocols", kind: "enum", T: proto3.getEnumType(SupportedProtocol), repeated: true },
|
|
1981
|
+
{ no: 5, name: "actions", kind: "enum", T: proto3.getEnumType(SupportedAction), repeated: true },
|
|
1982
|
+
]);
|
|
1983
|
+
/**
|
|
1984
|
+
* @generated from message trading.v1.SupportedChainsResponse
|
|
1985
|
+
*/
|
|
1986
|
+
export class SupportedChainsResponse extends Message {
|
|
1987
|
+
constructor(data) {
|
|
1988
|
+
super();
|
|
1989
|
+
/**
|
|
1990
|
+
* @generated from field: string request_id = 1;
|
|
1991
|
+
*/
|
|
1992
|
+
this.requestId = "";
|
|
1993
|
+
/**
|
|
1994
|
+
* @generated from field: repeated trading.v1.SupportedChain chains = 2;
|
|
1995
|
+
*/
|
|
1996
|
+
this.chains = [];
|
|
1997
|
+
proto3.util.initPartial(data, this);
|
|
1998
|
+
}
|
|
1999
|
+
static fromBinary(bytes, options) {
|
|
2000
|
+
return new SupportedChainsResponse().fromBinary(bytes, options);
|
|
2001
|
+
}
|
|
2002
|
+
static fromJson(jsonValue, options) {
|
|
2003
|
+
return new SupportedChainsResponse().fromJson(jsonValue, options);
|
|
2004
|
+
}
|
|
2005
|
+
static fromJsonString(jsonString, options) {
|
|
2006
|
+
return new SupportedChainsResponse().fromJsonString(jsonString, options);
|
|
2007
|
+
}
|
|
2008
|
+
static equals(a, b) {
|
|
2009
|
+
return proto3.util.equals(SupportedChainsResponse, a, b);
|
|
2010
|
+
}
|
|
2011
|
+
}
|
|
2012
|
+
SupportedChainsResponse.runtime = proto3;
|
|
2013
|
+
SupportedChainsResponse.typeName = "trading.v1.SupportedChainsResponse";
|
|
2014
|
+
SupportedChainsResponse.fields = proto3.util.newFieldList(() => [
|
|
2015
|
+
{ no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2016
|
+
{ no: 2, name: "chains", kind: "message", T: SupportedChain, repeated: true },
|
|
2017
|
+
]);
|
|
1811
2018
|
/**
|
|
1812
2019
|
* @generated from message trading.v1.TokenProjectLogo
|
|
1813
2020
|
*/
|
|
@@ -2142,6 +2349,7 @@ QuoteRequest.fields = proto3.util.newFieldList(() => [
|
|
|
2142
2349
|
{ no: 22, name: "recipient", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2143
2350
|
{ no: 23, name: "urgency_overrides", kind: "message", T: UrgencyWithOverrides, opt: true },
|
|
2144
2351
|
{ no: 24, name: "earn_intent", kind: "message", T: EarnIntent, opt: true },
|
|
2352
|
+
{ no: 25, name: "include_route_candidates", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
2145
2353
|
]);
|
|
2146
2354
|
/**
|
|
2147
2355
|
* @generated from message trading.v1.EarnIntent
|
|
@@ -2896,6 +3104,15 @@ export class ClassicQuote extends Message {
|
|
|
2896
3104
|
* @generated from field: repeated trading.v1.SwapStep swap_steps = 26;
|
|
2897
3105
|
*/
|
|
2898
3106
|
this.swapSteps = [];
|
|
3107
|
+
/**
|
|
3108
|
+
* Top quoted route candidates the router considered but did NOT serve
|
|
3109
|
+
* (the served route and candidates proven unviable — simulation or
|
|
3110
|
+
* trade-build failures — are excluded), best-first. Populated only for
|
|
3111
|
+
* uniroute-backed quotes when QuoteRequest.include_route_candidates is set.
|
|
3112
|
+
*
|
|
3113
|
+
* @generated from field: repeated trading.v1.RouteCandidate route_candidates = 27;
|
|
3114
|
+
*/
|
|
3115
|
+
this.routeCandidates = [];
|
|
2899
3116
|
proto3.util.initPartial(data, this);
|
|
2900
3117
|
}
|
|
2901
3118
|
static fromBinary(bytes, options) {
|
|
@@ -2939,6 +3156,48 @@ ClassicQuote.fields = proto3.util.newFieldList(() => [
|
|
|
2939
3156
|
{ no: 23, name: "portion_amount", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2940
3157
|
{ no: 24, name: "portion_recipient", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2941
3158
|
{ no: 26, name: "swap_steps", kind: "message", T: SwapStep, repeated: true },
|
|
3159
|
+
{ no: 27, name: "route_candidates", kind: "message", T: RouteCandidate, repeated: true },
|
|
3160
|
+
]);
|
|
3161
|
+
/**
|
|
3162
|
+
* A quoted route candidate with its whole-route (not per-hop) amounts.
|
|
3163
|
+
* quote_amount is the output amount for EXACT_INPUT and the required input
|
|
3164
|
+
* amount for EXACT_OUTPUT. Amounts are quoter estimates and do not carry
|
|
3165
|
+
* the simulation/portion corrections applied to the served quote.
|
|
3166
|
+
*
|
|
3167
|
+
* @generated from message trading.v1.RouteCandidate
|
|
3168
|
+
*/
|
|
3169
|
+
export class RouteCandidate extends Message {
|
|
3170
|
+
constructor(data) {
|
|
3171
|
+
super();
|
|
3172
|
+
/**
|
|
3173
|
+
* @generated from field: string route_string = 1;
|
|
3174
|
+
*/
|
|
3175
|
+
this.routeString = "";
|
|
3176
|
+
/**
|
|
3177
|
+
* @generated from field: string quote_amount = 2;
|
|
3178
|
+
*/
|
|
3179
|
+
this.quoteAmount = "";
|
|
3180
|
+
proto3.util.initPartial(data, this);
|
|
3181
|
+
}
|
|
3182
|
+
static fromBinary(bytes, options) {
|
|
3183
|
+
return new RouteCandidate().fromBinary(bytes, options);
|
|
3184
|
+
}
|
|
3185
|
+
static fromJson(jsonValue, options) {
|
|
3186
|
+
return new RouteCandidate().fromJson(jsonValue, options);
|
|
3187
|
+
}
|
|
3188
|
+
static fromJsonString(jsonString, options) {
|
|
3189
|
+
return new RouteCandidate().fromJsonString(jsonString, options);
|
|
3190
|
+
}
|
|
3191
|
+
static equals(a, b) {
|
|
3192
|
+
return proto3.util.equals(RouteCandidate, a, b);
|
|
3193
|
+
}
|
|
3194
|
+
}
|
|
3195
|
+
RouteCandidate.runtime = proto3;
|
|
3196
|
+
RouteCandidate.typeName = "trading.v1.RouteCandidate";
|
|
3197
|
+
RouteCandidate.fields = proto3.util.newFieldList(() => [
|
|
3198
|
+
{ no: 1, name: "route_string", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
3199
|
+
{ no: 2, name: "quote_amount", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
3200
|
+
{ no: 3, name: "quote_gas_adjusted", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2942
3201
|
]);
|
|
2943
3202
|
/**
|
|
2944
3203
|
* Universal Router SwapStep representation (mirrors the SDK shape used by
|