@uniswap/client-trading 0.5.15 → 0.5.17
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 +239 -0
- package/dist/trading/v1/api_pb.js +297 -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, SupportedChainsRequest, SupportedChainsResponse, 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, GetTokensRequest, GetTokensResponse, 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
|
*/
|
|
@@ -112,6 +112,20 @@ export declare const supportedChains: {
|
|
|
112
112
|
readonly typeName: "trading.v1.tradingService";
|
|
113
113
|
};
|
|
114
114
|
};
|
|
115
|
+
/**
|
|
116
|
+
* @generated from rpc trading.v1.tradingService.GetTokens
|
|
117
|
+
*/
|
|
118
|
+
export declare const getTokens: {
|
|
119
|
+
readonly localName: "getTokens";
|
|
120
|
+
readonly name: "GetTokens";
|
|
121
|
+
readonly kind: MethodKind.Unary;
|
|
122
|
+
readonly I: typeof GetTokensRequest;
|
|
123
|
+
readonly O: typeof GetTokensResponse;
|
|
124
|
+
readonly idempotency: MethodIdempotency.NoSideEffects;
|
|
125
|
+
readonly service: {
|
|
126
|
+
readonly typeName: "trading.v1.tradingService";
|
|
127
|
+
};
|
|
128
|
+
};
|
|
115
129
|
/**
|
|
116
130
|
* @generated from rpc trading.v1.tradingService.GetOrders
|
|
117
131
|
*/
|
|
@@ -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, SupportedChainsRequest, SupportedChainsResponse, 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, GetTokensRequest, GetTokensResponse, 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
|
*/
|
|
@@ -116,6 +116,20 @@ export const supportedChains = {
|
|
|
116
116
|
typeName: "trading.v1.tradingService"
|
|
117
117
|
}
|
|
118
118
|
};
|
|
119
|
+
/**
|
|
120
|
+
* @generated from rpc trading.v1.tradingService.GetTokens
|
|
121
|
+
*/
|
|
122
|
+
export const getTokens = {
|
|
123
|
+
localName: "getTokens",
|
|
124
|
+
name: "GetTokens",
|
|
125
|
+
kind: MethodKind.Unary,
|
|
126
|
+
I: GetTokensRequest,
|
|
127
|
+
O: GetTokensResponse,
|
|
128
|
+
idempotency: MethodIdempotency.NoSideEffects,
|
|
129
|
+
service: {
|
|
130
|
+
typeName: "trading.v1.tradingService"
|
|
131
|
+
}
|
|
132
|
+
};
|
|
119
133
|
/**
|
|
120
134
|
* @generated from rpc trading.v1.tradingService.GetOrders
|
|
121
135
|
*/
|
|
@@ -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, SupportedChainsRequest, SupportedChainsResponse, 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, GetTokensRequest, GetTokensResponse, 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
|
|
@@ -86,6 +86,16 @@ export declare const tradingService: {
|
|
|
86
86
|
readonly kind: MethodKind.Unary;
|
|
87
87
|
readonly idempotency: MethodIdempotency.NoSideEffects;
|
|
88
88
|
};
|
|
89
|
+
/**
|
|
90
|
+
* @generated from rpc trading.v1.tradingService.GetTokens
|
|
91
|
+
*/
|
|
92
|
+
readonly getTokens: {
|
|
93
|
+
readonly name: "GetTokens";
|
|
94
|
+
readonly I: typeof GetTokensRequest;
|
|
95
|
+
readonly O: typeof GetTokensResponse;
|
|
96
|
+
readonly kind: MethodKind.Unary;
|
|
97
|
+
readonly idempotency: MethodIdempotency.NoSideEffects;
|
|
98
|
+
};
|
|
89
99
|
/**
|
|
90
100
|
* @generated from rpc trading.v1.tradingService.GetOrders
|
|
91
101
|
*/
|
|
@@ -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, SupportedChainsRequest, SupportedChainsResponse, 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, GetTokensRequest, GetTokensResponse, 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
|
|
@@ -90,6 +90,16 @@ export const tradingService = {
|
|
|
90
90
|
kind: MethodKind.Unary,
|
|
91
91
|
idempotency: MethodIdempotency.NoSideEffects,
|
|
92
92
|
},
|
|
93
|
+
/**
|
|
94
|
+
* @generated from rpc trading.v1.tradingService.GetTokens
|
|
95
|
+
*/
|
|
96
|
+
getTokens: {
|
|
97
|
+
name: "GetTokens",
|
|
98
|
+
I: GetTokensRequest,
|
|
99
|
+
O: GetTokensResponse,
|
|
100
|
+
kind: MethodKind.Unary,
|
|
101
|
+
idempotency: MethodIdempotency.NoSideEffects,
|
|
102
|
+
},
|
|
93
103
|
/**
|
|
94
104
|
* @generated from rpc trading.v1.tradingService.GetOrders
|
|
95
105
|
*/
|
|
@@ -1,5 +1,51 @@
|
|
|
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.TokenListSort
|
|
5
|
+
*/
|
|
6
|
+
export declare enum TokenListSort {
|
|
7
|
+
/**
|
|
8
|
+
* @generated from enum value: TOKEN_LIST_SORT_UNSPECIFIED = 0;
|
|
9
|
+
*/
|
|
10
|
+
UNSPECIFIED = 0,
|
|
11
|
+
/**
|
|
12
|
+
* @generated from enum value: TOKEN_LIST_SORT_DEFAULT = 1;
|
|
13
|
+
*/
|
|
14
|
+
DEFAULT = 1,
|
|
15
|
+
/**
|
|
16
|
+
* @generated from enum value: TOKEN_LIST_SORT_TVL = 2;
|
|
17
|
+
*/
|
|
18
|
+
TVL = 2,
|
|
19
|
+
/**
|
|
20
|
+
* @generated from enum value: TOKEN_LIST_SORT_VOLUME_24H = 3;
|
|
21
|
+
*/
|
|
22
|
+
VOLUME_24H = 3,
|
|
23
|
+
/**
|
|
24
|
+
* @generated from enum value: TOKEN_LIST_SORT_BRIDGEABLE = 4;
|
|
25
|
+
*/
|
|
26
|
+
BRIDGEABLE = 4
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* @generated from enum trading.v1.TokenListSafetyLevel
|
|
30
|
+
*/
|
|
31
|
+
export declare enum TokenListSafetyLevel {
|
|
32
|
+
/**
|
|
33
|
+
* @generated from enum value: TOKEN_LIST_SAFETY_LEVEL_UNSPECIFIED = 0;
|
|
34
|
+
*/
|
|
35
|
+
UNSPECIFIED = 0,
|
|
36
|
+
/**
|
|
37
|
+
* @generated from enum value: TOKEN_LIST_SAFETY_LEVEL_VERIFIED = 1;
|
|
38
|
+
*/
|
|
39
|
+
VERIFIED = 1,
|
|
40
|
+
/**
|
|
41
|
+
* @generated from enum value: TOKEN_LIST_SAFETY_LEVEL_INFO = 2;
|
|
42
|
+
*/
|
|
43
|
+
INFO = 2,
|
|
44
|
+
/**
|
|
45
|
+
* @generated from enum value: TOKEN_LIST_SAFETY_LEVEL_BLOCKED = 3;
|
|
46
|
+
*/
|
|
47
|
+
BLOCKED = 3
|
|
48
|
+
}
|
|
3
49
|
/**
|
|
4
50
|
* @generated from enum trading.v1.SupportedProtocol
|
|
5
51
|
*/
|
|
@@ -1450,6 +1496,167 @@ export declare class PermitBatch extends Message<PermitBatch> {
|
|
|
1450
1496
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PermitBatch;
|
|
1451
1497
|
static equals(a: PermitBatch | PlainMessage<PermitBatch> | undefined, b: PermitBatch | PlainMessage<PermitBatch> | undefined): boolean;
|
|
1452
1498
|
}
|
|
1499
|
+
/**
|
|
1500
|
+
* @generated from message trading.v1.GetTokensRequest
|
|
1501
|
+
*/
|
|
1502
|
+
export declare class GetTokensRequest extends Message<GetTokensRequest> {
|
|
1503
|
+
/**
|
|
1504
|
+
* @generated from field: trading.v1.TokenListSort sort = 1;
|
|
1505
|
+
*/
|
|
1506
|
+
sort: TokenListSort;
|
|
1507
|
+
/**
|
|
1508
|
+
* @generated from field: optional uint32 limit = 2;
|
|
1509
|
+
*/
|
|
1510
|
+
limit?: number;
|
|
1511
|
+
/**
|
|
1512
|
+
* @generated from field: optional trading.v1.ChainId chain_id = 3;
|
|
1513
|
+
*/
|
|
1514
|
+
chainId?: ChainId;
|
|
1515
|
+
constructor(data?: PartialMessage<GetTokensRequest>);
|
|
1516
|
+
static readonly runtime: typeof proto3;
|
|
1517
|
+
static readonly typeName = "trading.v1.GetTokensRequest";
|
|
1518
|
+
static readonly fields: FieldList;
|
|
1519
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetTokensRequest;
|
|
1520
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetTokensRequest;
|
|
1521
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetTokensRequest;
|
|
1522
|
+
static equals(a: GetTokensRequest | PlainMessage<GetTokensRequest> | undefined, b: GetTokensRequest | PlainMessage<GetTokensRequest> | undefined): boolean;
|
|
1523
|
+
}
|
|
1524
|
+
/**
|
|
1525
|
+
* @generated from message trading.v1.TokenListBridgeInfo
|
|
1526
|
+
*/
|
|
1527
|
+
export declare class TokenListBridgeInfo extends Message<TokenListBridgeInfo> {
|
|
1528
|
+
/**
|
|
1529
|
+
* @generated from field: string token_address = 1;
|
|
1530
|
+
*/
|
|
1531
|
+
tokenAddress: string;
|
|
1532
|
+
constructor(data?: PartialMessage<TokenListBridgeInfo>);
|
|
1533
|
+
static readonly runtime: typeof proto3;
|
|
1534
|
+
static readonly typeName = "trading.v1.TokenListBridgeInfo";
|
|
1535
|
+
static readonly fields: FieldList;
|
|
1536
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TokenListBridgeInfo;
|
|
1537
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TokenListBridgeInfo;
|
|
1538
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TokenListBridgeInfo;
|
|
1539
|
+
static equals(a: TokenListBridgeInfo | PlainMessage<TokenListBridgeInfo> | undefined, b: TokenListBridgeInfo | PlainMessage<TokenListBridgeInfo> | undefined): boolean;
|
|
1540
|
+
}
|
|
1541
|
+
/**
|
|
1542
|
+
* @generated from message trading.v1.TokenListSafetyInfo
|
|
1543
|
+
*/
|
|
1544
|
+
export declare class TokenListSafetyInfo extends Message<TokenListSafetyInfo> {
|
|
1545
|
+
/**
|
|
1546
|
+
* @generated from field: trading.v1.TokenListSafetyLevel safety_level = 1;
|
|
1547
|
+
*/
|
|
1548
|
+
safetyLevel: TokenListSafetyLevel;
|
|
1549
|
+
/**
|
|
1550
|
+
* @generated from field: optional string safety_description = 2;
|
|
1551
|
+
*/
|
|
1552
|
+
safetyDescription?: string;
|
|
1553
|
+
/**
|
|
1554
|
+
* @generated from field: double buy_fee = 3;
|
|
1555
|
+
*/
|
|
1556
|
+
buyFee: number;
|
|
1557
|
+
/**
|
|
1558
|
+
* @generated from field: double sell_fee = 4;
|
|
1559
|
+
*/
|
|
1560
|
+
sellFee: number;
|
|
1561
|
+
constructor(data?: PartialMessage<TokenListSafetyInfo>);
|
|
1562
|
+
static readonly runtime: typeof proto3;
|
|
1563
|
+
static readonly typeName = "trading.v1.TokenListSafetyInfo";
|
|
1564
|
+
static readonly fields: FieldList;
|
|
1565
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TokenListSafetyInfo;
|
|
1566
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TokenListSafetyInfo;
|
|
1567
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TokenListSafetyInfo;
|
|
1568
|
+
static equals(a: TokenListSafetyInfo | PlainMessage<TokenListSafetyInfo> | undefined, b: TokenListSafetyInfo | PlainMessage<TokenListSafetyInfo> | undefined): boolean;
|
|
1569
|
+
}
|
|
1570
|
+
/**
|
|
1571
|
+
* @generated from message trading.v1.TokenListExtensions
|
|
1572
|
+
*/
|
|
1573
|
+
export declare class TokenListExtensions extends Message<TokenListExtensions> {
|
|
1574
|
+
/**
|
|
1575
|
+
* chainId -> counterpart address on that chain
|
|
1576
|
+
*
|
|
1577
|
+
* @generated from field: map<string, trading.v1.TokenListBridgeInfo> bridge_info = 1;
|
|
1578
|
+
*/
|
|
1579
|
+
bridgeInfo: {
|
|
1580
|
+
[key: string]: TokenListBridgeInfo;
|
|
1581
|
+
};
|
|
1582
|
+
/**
|
|
1583
|
+
* @generated from field: trading.v1.TokenListSafetyInfo safety_info = 2;
|
|
1584
|
+
*/
|
|
1585
|
+
safetyInfo?: TokenListSafetyInfo;
|
|
1586
|
+
constructor(data?: PartialMessage<TokenListExtensions>);
|
|
1587
|
+
static readonly runtime: typeof proto3;
|
|
1588
|
+
static readonly typeName = "trading.v1.TokenListExtensions";
|
|
1589
|
+
static readonly fields: FieldList;
|
|
1590
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TokenListExtensions;
|
|
1591
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TokenListExtensions;
|
|
1592
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TokenListExtensions;
|
|
1593
|
+
static equals(a: TokenListExtensions | PlainMessage<TokenListExtensions> | undefined, b: TokenListExtensions | PlainMessage<TokenListExtensions> | undefined): boolean;
|
|
1594
|
+
}
|
|
1595
|
+
/**
|
|
1596
|
+
* @generated from message trading.v1.TokenListEntry
|
|
1597
|
+
*/
|
|
1598
|
+
export declare class TokenListEntry extends Message<TokenListEntry> {
|
|
1599
|
+
/**
|
|
1600
|
+
* @generated from field: string name = 1;
|
|
1601
|
+
*/
|
|
1602
|
+
name: string;
|
|
1603
|
+
/**
|
|
1604
|
+
* @generated from field: string address = 2;
|
|
1605
|
+
*/
|
|
1606
|
+
address: string;
|
|
1607
|
+
/**
|
|
1608
|
+
* Raw chain id, not the ChainId enum: token lists span chains the trading
|
|
1609
|
+
* service does not swap on (e.g. Solana entries in the hosted lists).
|
|
1610
|
+
*
|
|
1611
|
+
* @generated from field: uint32 chain_id = 3;
|
|
1612
|
+
*/
|
|
1613
|
+
chainId: number;
|
|
1614
|
+
/**
|
|
1615
|
+
* @generated from field: string symbol = 4;
|
|
1616
|
+
*/
|
|
1617
|
+
symbol: string;
|
|
1618
|
+
/**
|
|
1619
|
+
* @generated from field: int32 decimals = 5;
|
|
1620
|
+
*/
|
|
1621
|
+
decimals: number;
|
|
1622
|
+
/**
|
|
1623
|
+
* @generated from field: optional string logo_uri = 6;
|
|
1624
|
+
*/
|
|
1625
|
+
logoUri?: string;
|
|
1626
|
+
/**
|
|
1627
|
+
* @generated from field: trading.v1.TokenListExtensions extensions = 7;
|
|
1628
|
+
*/
|
|
1629
|
+
extensions?: TokenListExtensions;
|
|
1630
|
+
constructor(data?: PartialMessage<TokenListEntry>);
|
|
1631
|
+
static readonly runtime: typeof proto3;
|
|
1632
|
+
static readonly typeName = "trading.v1.TokenListEntry";
|
|
1633
|
+
static readonly fields: FieldList;
|
|
1634
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TokenListEntry;
|
|
1635
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TokenListEntry;
|
|
1636
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TokenListEntry;
|
|
1637
|
+
static equals(a: TokenListEntry | PlainMessage<TokenListEntry> | undefined, b: TokenListEntry | PlainMessage<TokenListEntry> | undefined): boolean;
|
|
1638
|
+
}
|
|
1639
|
+
/**
|
|
1640
|
+
* @generated from message trading.v1.GetTokensResponse
|
|
1641
|
+
*/
|
|
1642
|
+
export declare class GetTokensResponse extends Message<GetTokensResponse> {
|
|
1643
|
+
/**
|
|
1644
|
+
* @generated from field: string request_id = 1;
|
|
1645
|
+
*/
|
|
1646
|
+
requestId: string;
|
|
1647
|
+
/**
|
|
1648
|
+
* @generated from field: repeated trading.v1.TokenListEntry tokens = 2;
|
|
1649
|
+
*/
|
|
1650
|
+
tokens: TokenListEntry[];
|
|
1651
|
+
constructor(data?: PartialMessage<GetTokensResponse>);
|
|
1652
|
+
static readonly runtime: typeof proto3;
|
|
1653
|
+
static readonly typeName = "trading.v1.GetTokensResponse";
|
|
1654
|
+
static readonly fields: FieldList;
|
|
1655
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetTokensResponse;
|
|
1656
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetTokensResponse;
|
|
1657
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetTokensResponse;
|
|
1658
|
+
static equals(a: GetTokensResponse | PlainMessage<GetTokensResponse> | undefined, b: GetTokensResponse | PlainMessage<GetTokensResponse> | undefined): boolean;
|
|
1659
|
+
}
|
|
1453
1660
|
/**
|
|
1454
1661
|
* @generated from message trading.v1.SwappableTokensRequest
|
|
1455
1662
|
*/
|
|
@@ -2700,6 +2907,10 @@ export declare class ClassicQuote extends Message<ClassicQuote> {
|
|
|
2700
2907
|
* @generated from field: repeated trading.v1.RouteCandidate route_candidates = 27;
|
|
2701
2908
|
*/
|
|
2702
2909
|
routeCandidates: RouteCandidate[];
|
|
2910
|
+
/**
|
|
2911
|
+
* @generated from field: optional double price_difference = 28;
|
|
2912
|
+
*/
|
|
2913
|
+
priceDifference?: number;
|
|
2703
2914
|
constructor(data?: PartialMessage<ClassicQuote>);
|
|
2704
2915
|
static readonly runtime: typeof proto3;
|
|
2705
2916
|
static readonly typeName = "trading.v1.ClassicQuote";
|
|
@@ -3723,6 +3934,10 @@ export declare class WrapUnwrapQuote extends Message<WrapUnwrapQuote> {
|
|
|
3723
3934
|
* @generated from field: optional string max_priority_fee_per_gas = 13;
|
|
3724
3935
|
*/
|
|
3725
3936
|
maxPriorityFeePerGas?: string;
|
|
3937
|
+
/**
|
|
3938
|
+
* @generated from field: optional double price_difference = 15;
|
|
3939
|
+
*/
|
|
3940
|
+
priceDifference?: number;
|
|
3726
3941
|
constructor(data?: PartialMessage<WrapUnwrapQuote>);
|
|
3727
3942
|
static readonly runtime: typeof proto3;
|
|
3728
3943
|
static readonly typeName = "trading.v1.WrapUnwrapQuote";
|
|
@@ -5169,6 +5384,10 @@ export declare class BridgeQuote extends Message<BridgeQuote> {
|
|
|
5169
5384
|
* @generated from field: repeated trading.v1.GasEstimate gas_estimates = 19;
|
|
5170
5385
|
*/
|
|
5171
5386
|
gasEstimates: GasEstimate[];
|
|
5387
|
+
/**
|
|
5388
|
+
* @generated from field: optional double price_difference = 21;
|
|
5389
|
+
*/
|
|
5390
|
+
priceDifference?: number;
|
|
5172
5391
|
constructor(data?: PartialMessage<BridgeQuote>);
|
|
5173
5392
|
static readonly runtime: typeof proto3;
|
|
5174
5393
|
static readonly typeName = "trading.v1.BridgeQuote";
|
|
@@ -5413,6 +5632,10 @@ export declare class DutchLimitV2Quote extends Message<DutchLimitV2Quote> {
|
|
|
5413
5632
|
* @generated from field: trading.v1.QuoteOutput output = 13;
|
|
5414
5633
|
*/
|
|
5415
5634
|
output?: QuoteOutput;
|
|
5635
|
+
/**
|
|
5636
|
+
* @generated from field: optional double price_difference = 14;
|
|
5637
|
+
*/
|
|
5638
|
+
priceDifference?: number;
|
|
5416
5639
|
constructor(data?: PartialMessage<DutchLimitV2Quote>);
|
|
5417
5640
|
static readonly runtime: typeof proto3;
|
|
5418
5641
|
static readonly typeName = "trading.v1.DutchLimitV2Quote";
|
|
@@ -5543,6 +5766,10 @@ export declare class DutchLimitV3Quote extends Message<DutchLimitV3Quote> {
|
|
|
5543
5766
|
* @generated from field: trading.v1.QuoteOutput output = 15;
|
|
5544
5767
|
*/
|
|
5545
5768
|
output?: QuoteOutput;
|
|
5769
|
+
/**
|
|
5770
|
+
* @generated from field: optional double price_difference = 16;
|
|
5771
|
+
*/
|
|
5772
|
+
priceDifference?: number;
|
|
5546
5773
|
constructor(data?: PartialMessage<DutchLimitV3Quote>);
|
|
5547
5774
|
static readonly runtime: typeof proto3;
|
|
5548
5775
|
static readonly typeName = "trading.v1.DutchLimitV3Quote";
|
|
@@ -5846,6 +6073,10 @@ export declare class PriorityQuote extends Message<PriorityQuote> {
|
|
|
5846
6073
|
* @generated from field: trading.v1.QuoteOutput output = 15;
|
|
5847
6074
|
*/
|
|
5848
6075
|
output?: QuoteOutput;
|
|
6076
|
+
/**
|
|
6077
|
+
* @generated from field: optional double price_difference = 16;
|
|
6078
|
+
*/
|
|
6079
|
+
priceDifference?: number;
|
|
5849
6080
|
constructor(data?: PartialMessage<PriorityQuote>);
|
|
5850
6081
|
static readonly runtime: typeof proto3;
|
|
5851
6082
|
static readonly typeName = "trading.v1.PriorityQuote";
|
|
@@ -5883,6 +6114,10 @@ export declare class TruncatedPlanStep extends Message<TruncatedPlanStep> {
|
|
|
5883
6114
|
* @generated from field: optional double slippage = 6;
|
|
5884
6115
|
*/
|
|
5885
6116
|
slippage?: number;
|
|
6117
|
+
/**
|
|
6118
|
+
* @generated from field: optional double price_difference = 7;
|
|
6119
|
+
*/
|
|
6120
|
+
priceDifference?: number;
|
|
5886
6121
|
constructor(data?: PartialMessage<TruncatedPlanStep>);
|
|
5887
6122
|
static readonly runtime: typeof proto3;
|
|
5888
6123
|
static readonly typeName = "trading.v1.TruncatedPlanStep";
|
|
@@ -5980,6 +6215,10 @@ export declare class ChainedQuote extends Message<ChainedQuote> {
|
|
|
5980
6215
|
* @generated from field: optional trading.v1.EarnPreview earn_preview = 21;
|
|
5981
6216
|
*/
|
|
5982
6217
|
earnPreview?: EarnPreview;
|
|
6218
|
+
/**
|
|
6219
|
+
* @generated from field: optional double price_difference = 22;
|
|
6220
|
+
*/
|
|
6221
|
+
priceDifference?: number;
|
|
5983
6222
|
constructor(data?: PartialMessage<ChainedQuote>);
|
|
5984
6223
|
static readonly runtime: typeof proto3;
|
|
5985
6224
|
static readonly typeName = "trading.v1.ChainedQuote";
|
|
@@ -3,6 +3,69 @@
|
|
|
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.TokenListSort
|
|
8
|
+
*/
|
|
9
|
+
export var TokenListSort;
|
|
10
|
+
(function (TokenListSort) {
|
|
11
|
+
/**
|
|
12
|
+
* @generated from enum value: TOKEN_LIST_SORT_UNSPECIFIED = 0;
|
|
13
|
+
*/
|
|
14
|
+
TokenListSort[TokenListSort["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
15
|
+
/**
|
|
16
|
+
* @generated from enum value: TOKEN_LIST_SORT_DEFAULT = 1;
|
|
17
|
+
*/
|
|
18
|
+
TokenListSort[TokenListSort["DEFAULT"] = 1] = "DEFAULT";
|
|
19
|
+
/**
|
|
20
|
+
* @generated from enum value: TOKEN_LIST_SORT_TVL = 2;
|
|
21
|
+
*/
|
|
22
|
+
TokenListSort[TokenListSort["TVL"] = 2] = "TVL";
|
|
23
|
+
/**
|
|
24
|
+
* @generated from enum value: TOKEN_LIST_SORT_VOLUME_24H = 3;
|
|
25
|
+
*/
|
|
26
|
+
TokenListSort[TokenListSort["VOLUME_24H"] = 3] = "VOLUME_24H";
|
|
27
|
+
/**
|
|
28
|
+
* @generated from enum value: TOKEN_LIST_SORT_BRIDGEABLE = 4;
|
|
29
|
+
*/
|
|
30
|
+
TokenListSort[TokenListSort["BRIDGEABLE"] = 4] = "BRIDGEABLE";
|
|
31
|
+
})(TokenListSort || (TokenListSort = {}));
|
|
32
|
+
// Retrieve enum metadata with: proto3.getEnumType(TokenListSort)
|
|
33
|
+
proto3.util.setEnumType(TokenListSort, "trading.v1.TokenListSort", [
|
|
34
|
+
{ no: 0, name: "TOKEN_LIST_SORT_UNSPECIFIED" },
|
|
35
|
+
{ no: 1, name: "TOKEN_LIST_SORT_DEFAULT" },
|
|
36
|
+
{ no: 2, name: "TOKEN_LIST_SORT_TVL" },
|
|
37
|
+
{ no: 3, name: "TOKEN_LIST_SORT_VOLUME_24H" },
|
|
38
|
+
{ no: 4, name: "TOKEN_LIST_SORT_BRIDGEABLE" },
|
|
39
|
+
]);
|
|
40
|
+
/**
|
|
41
|
+
* @generated from enum trading.v1.TokenListSafetyLevel
|
|
42
|
+
*/
|
|
43
|
+
export var TokenListSafetyLevel;
|
|
44
|
+
(function (TokenListSafetyLevel) {
|
|
45
|
+
/**
|
|
46
|
+
* @generated from enum value: TOKEN_LIST_SAFETY_LEVEL_UNSPECIFIED = 0;
|
|
47
|
+
*/
|
|
48
|
+
TokenListSafetyLevel[TokenListSafetyLevel["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
49
|
+
/**
|
|
50
|
+
* @generated from enum value: TOKEN_LIST_SAFETY_LEVEL_VERIFIED = 1;
|
|
51
|
+
*/
|
|
52
|
+
TokenListSafetyLevel[TokenListSafetyLevel["VERIFIED"] = 1] = "VERIFIED";
|
|
53
|
+
/**
|
|
54
|
+
* @generated from enum value: TOKEN_LIST_SAFETY_LEVEL_INFO = 2;
|
|
55
|
+
*/
|
|
56
|
+
TokenListSafetyLevel[TokenListSafetyLevel["INFO"] = 2] = "INFO";
|
|
57
|
+
/**
|
|
58
|
+
* @generated from enum value: TOKEN_LIST_SAFETY_LEVEL_BLOCKED = 3;
|
|
59
|
+
*/
|
|
60
|
+
TokenListSafetyLevel[TokenListSafetyLevel["BLOCKED"] = 3] = "BLOCKED";
|
|
61
|
+
})(TokenListSafetyLevel || (TokenListSafetyLevel = {}));
|
|
62
|
+
// Retrieve enum metadata with: proto3.getEnumType(TokenListSafetyLevel)
|
|
63
|
+
proto3.util.setEnumType(TokenListSafetyLevel, "trading.v1.TokenListSafetyLevel", [
|
|
64
|
+
{ no: 0, name: "TOKEN_LIST_SAFETY_LEVEL_UNSPECIFIED" },
|
|
65
|
+
{ no: 1, name: "TOKEN_LIST_SAFETY_LEVEL_VERIFIED" },
|
|
66
|
+
{ no: 2, name: "TOKEN_LIST_SAFETY_LEVEL_INFO" },
|
|
67
|
+
{ no: 3, name: "TOKEN_LIST_SAFETY_LEVEL_BLOCKED" },
|
|
68
|
+
]);
|
|
6
69
|
/**
|
|
7
70
|
* @generated from enum trading.v1.SupportedProtocol
|
|
8
71
|
*/
|
|
@@ -1789,6 +1852,232 @@ PermitBatch.fields = proto3.util.newFieldList(() => [
|
|
|
1789
1852
|
{ no: 2, name: "spender", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1790
1853
|
{ no: 3, name: "sig_deadline", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1791
1854
|
]);
|
|
1855
|
+
/**
|
|
1856
|
+
* @generated from message trading.v1.GetTokensRequest
|
|
1857
|
+
*/
|
|
1858
|
+
export class GetTokensRequest extends Message {
|
|
1859
|
+
constructor(data) {
|
|
1860
|
+
super();
|
|
1861
|
+
/**
|
|
1862
|
+
* @generated from field: trading.v1.TokenListSort sort = 1;
|
|
1863
|
+
*/
|
|
1864
|
+
this.sort = TokenListSort.UNSPECIFIED;
|
|
1865
|
+
proto3.util.initPartial(data, this);
|
|
1866
|
+
}
|
|
1867
|
+
static fromBinary(bytes, options) {
|
|
1868
|
+
return new GetTokensRequest().fromBinary(bytes, options);
|
|
1869
|
+
}
|
|
1870
|
+
static fromJson(jsonValue, options) {
|
|
1871
|
+
return new GetTokensRequest().fromJson(jsonValue, options);
|
|
1872
|
+
}
|
|
1873
|
+
static fromJsonString(jsonString, options) {
|
|
1874
|
+
return new GetTokensRequest().fromJsonString(jsonString, options);
|
|
1875
|
+
}
|
|
1876
|
+
static equals(a, b) {
|
|
1877
|
+
return proto3.util.equals(GetTokensRequest, a, b);
|
|
1878
|
+
}
|
|
1879
|
+
}
|
|
1880
|
+
GetTokensRequest.runtime = proto3;
|
|
1881
|
+
GetTokensRequest.typeName = "trading.v1.GetTokensRequest";
|
|
1882
|
+
GetTokensRequest.fields = proto3.util.newFieldList(() => [
|
|
1883
|
+
{ no: 1, name: "sort", kind: "enum", T: proto3.getEnumType(TokenListSort) },
|
|
1884
|
+
{ no: 2, name: "limit", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
|
|
1885
|
+
{ no: 3, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId), opt: true },
|
|
1886
|
+
]);
|
|
1887
|
+
/**
|
|
1888
|
+
* @generated from message trading.v1.TokenListBridgeInfo
|
|
1889
|
+
*/
|
|
1890
|
+
export class TokenListBridgeInfo extends Message {
|
|
1891
|
+
constructor(data) {
|
|
1892
|
+
super();
|
|
1893
|
+
/**
|
|
1894
|
+
* @generated from field: string token_address = 1;
|
|
1895
|
+
*/
|
|
1896
|
+
this.tokenAddress = "";
|
|
1897
|
+
proto3.util.initPartial(data, this);
|
|
1898
|
+
}
|
|
1899
|
+
static fromBinary(bytes, options) {
|
|
1900
|
+
return new TokenListBridgeInfo().fromBinary(bytes, options);
|
|
1901
|
+
}
|
|
1902
|
+
static fromJson(jsonValue, options) {
|
|
1903
|
+
return new TokenListBridgeInfo().fromJson(jsonValue, options);
|
|
1904
|
+
}
|
|
1905
|
+
static fromJsonString(jsonString, options) {
|
|
1906
|
+
return new TokenListBridgeInfo().fromJsonString(jsonString, options);
|
|
1907
|
+
}
|
|
1908
|
+
static equals(a, b) {
|
|
1909
|
+
return proto3.util.equals(TokenListBridgeInfo, a, b);
|
|
1910
|
+
}
|
|
1911
|
+
}
|
|
1912
|
+
TokenListBridgeInfo.runtime = proto3;
|
|
1913
|
+
TokenListBridgeInfo.typeName = "trading.v1.TokenListBridgeInfo";
|
|
1914
|
+
TokenListBridgeInfo.fields = proto3.util.newFieldList(() => [
|
|
1915
|
+
{ no: 1, name: "token_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1916
|
+
]);
|
|
1917
|
+
/**
|
|
1918
|
+
* @generated from message trading.v1.TokenListSafetyInfo
|
|
1919
|
+
*/
|
|
1920
|
+
export class TokenListSafetyInfo extends Message {
|
|
1921
|
+
constructor(data) {
|
|
1922
|
+
super();
|
|
1923
|
+
/**
|
|
1924
|
+
* @generated from field: trading.v1.TokenListSafetyLevel safety_level = 1;
|
|
1925
|
+
*/
|
|
1926
|
+
this.safetyLevel = TokenListSafetyLevel.UNSPECIFIED;
|
|
1927
|
+
/**
|
|
1928
|
+
* @generated from field: double buy_fee = 3;
|
|
1929
|
+
*/
|
|
1930
|
+
this.buyFee = 0;
|
|
1931
|
+
/**
|
|
1932
|
+
* @generated from field: double sell_fee = 4;
|
|
1933
|
+
*/
|
|
1934
|
+
this.sellFee = 0;
|
|
1935
|
+
proto3.util.initPartial(data, this);
|
|
1936
|
+
}
|
|
1937
|
+
static fromBinary(bytes, options) {
|
|
1938
|
+
return new TokenListSafetyInfo().fromBinary(bytes, options);
|
|
1939
|
+
}
|
|
1940
|
+
static fromJson(jsonValue, options) {
|
|
1941
|
+
return new TokenListSafetyInfo().fromJson(jsonValue, options);
|
|
1942
|
+
}
|
|
1943
|
+
static fromJsonString(jsonString, options) {
|
|
1944
|
+
return new TokenListSafetyInfo().fromJsonString(jsonString, options);
|
|
1945
|
+
}
|
|
1946
|
+
static equals(a, b) {
|
|
1947
|
+
return proto3.util.equals(TokenListSafetyInfo, a, b);
|
|
1948
|
+
}
|
|
1949
|
+
}
|
|
1950
|
+
TokenListSafetyInfo.runtime = proto3;
|
|
1951
|
+
TokenListSafetyInfo.typeName = "trading.v1.TokenListSafetyInfo";
|
|
1952
|
+
TokenListSafetyInfo.fields = proto3.util.newFieldList(() => [
|
|
1953
|
+
{ no: 1, name: "safety_level", kind: "enum", T: proto3.getEnumType(TokenListSafetyLevel) },
|
|
1954
|
+
{ no: 2, name: "safety_description", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1955
|
+
{ no: 3, name: "buy_fee", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
1956
|
+
{ no: 4, name: "sell_fee", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
1957
|
+
]);
|
|
1958
|
+
/**
|
|
1959
|
+
* @generated from message trading.v1.TokenListExtensions
|
|
1960
|
+
*/
|
|
1961
|
+
export class TokenListExtensions extends Message {
|
|
1962
|
+
constructor(data) {
|
|
1963
|
+
super();
|
|
1964
|
+
/**
|
|
1965
|
+
* chainId -> counterpart address on that chain
|
|
1966
|
+
*
|
|
1967
|
+
* @generated from field: map<string, trading.v1.TokenListBridgeInfo> bridge_info = 1;
|
|
1968
|
+
*/
|
|
1969
|
+
this.bridgeInfo = {};
|
|
1970
|
+
proto3.util.initPartial(data, this);
|
|
1971
|
+
}
|
|
1972
|
+
static fromBinary(bytes, options) {
|
|
1973
|
+
return new TokenListExtensions().fromBinary(bytes, options);
|
|
1974
|
+
}
|
|
1975
|
+
static fromJson(jsonValue, options) {
|
|
1976
|
+
return new TokenListExtensions().fromJson(jsonValue, options);
|
|
1977
|
+
}
|
|
1978
|
+
static fromJsonString(jsonString, options) {
|
|
1979
|
+
return new TokenListExtensions().fromJsonString(jsonString, options);
|
|
1980
|
+
}
|
|
1981
|
+
static equals(a, b) {
|
|
1982
|
+
return proto3.util.equals(TokenListExtensions, a, b);
|
|
1983
|
+
}
|
|
1984
|
+
}
|
|
1985
|
+
TokenListExtensions.runtime = proto3;
|
|
1986
|
+
TokenListExtensions.typeName = "trading.v1.TokenListExtensions";
|
|
1987
|
+
TokenListExtensions.fields = proto3.util.newFieldList(() => [
|
|
1988
|
+
{ no: 1, name: "bridge_info", kind: "map", K: 9 /* ScalarType.STRING */, V: { kind: "message", T: TokenListBridgeInfo } },
|
|
1989
|
+
{ no: 2, name: "safety_info", kind: "message", T: TokenListSafetyInfo },
|
|
1990
|
+
]);
|
|
1991
|
+
/**
|
|
1992
|
+
* @generated from message trading.v1.TokenListEntry
|
|
1993
|
+
*/
|
|
1994
|
+
export class TokenListEntry extends Message {
|
|
1995
|
+
constructor(data) {
|
|
1996
|
+
super();
|
|
1997
|
+
/**
|
|
1998
|
+
* @generated from field: string name = 1;
|
|
1999
|
+
*/
|
|
2000
|
+
this.name = "";
|
|
2001
|
+
/**
|
|
2002
|
+
* @generated from field: string address = 2;
|
|
2003
|
+
*/
|
|
2004
|
+
this.address = "";
|
|
2005
|
+
/**
|
|
2006
|
+
* Raw chain id, not the ChainId enum: token lists span chains the trading
|
|
2007
|
+
* service does not swap on (e.g. Solana entries in the hosted lists).
|
|
2008
|
+
*
|
|
2009
|
+
* @generated from field: uint32 chain_id = 3;
|
|
2010
|
+
*/
|
|
2011
|
+
this.chainId = 0;
|
|
2012
|
+
/**
|
|
2013
|
+
* @generated from field: string symbol = 4;
|
|
2014
|
+
*/
|
|
2015
|
+
this.symbol = "";
|
|
2016
|
+
/**
|
|
2017
|
+
* @generated from field: int32 decimals = 5;
|
|
2018
|
+
*/
|
|
2019
|
+
this.decimals = 0;
|
|
2020
|
+
proto3.util.initPartial(data, this);
|
|
2021
|
+
}
|
|
2022
|
+
static fromBinary(bytes, options) {
|
|
2023
|
+
return new TokenListEntry().fromBinary(bytes, options);
|
|
2024
|
+
}
|
|
2025
|
+
static fromJson(jsonValue, options) {
|
|
2026
|
+
return new TokenListEntry().fromJson(jsonValue, options);
|
|
2027
|
+
}
|
|
2028
|
+
static fromJsonString(jsonString, options) {
|
|
2029
|
+
return new TokenListEntry().fromJsonString(jsonString, options);
|
|
2030
|
+
}
|
|
2031
|
+
static equals(a, b) {
|
|
2032
|
+
return proto3.util.equals(TokenListEntry, a, b);
|
|
2033
|
+
}
|
|
2034
|
+
}
|
|
2035
|
+
TokenListEntry.runtime = proto3;
|
|
2036
|
+
TokenListEntry.typeName = "trading.v1.TokenListEntry";
|
|
2037
|
+
TokenListEntry.fields = proto3.util.newFieldList(() => [
|
|
2038
|
+
{ no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2039
|
+
{ no: 2, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2040
|
+
{ no: 3, name: "chain_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
2041
|
+
{ no: 4, name: "symbol", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2042
|
+
{ no: 5, name: "decimals", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
2043
|
+
{ no: 6, name: "logo_uri", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2044
|
+
{ no: 7, name: "extensions", kind: "message", T: TokenListExtensions },
|
|
2045
|
+
]);
|
|
2046
|
+
/**
|
|
2047
|
+
* @generated from message trading.v1.GetTokensResponse
|
|
2048
|
+
*/
|
|
2049
|
+
export class GetTokensResponse extends Message {
|
|
2050
|
+
constructor(data) {
|
|
2051
|
+
super();
|
|
2052
|
+
/**
|
|
2053
|
+
* @generated from field: string request_id = 1;
|
|
2054
|
+
*/
|
|
2055
|
+
this.requestId = "";
|
|
2056
|
+
/**
|
|
2057
|
+
* @generated from field: repeated trading.v1.TokenListEntry tokens = 2;
|
|
2058
|
+
*/
|
|
2059
|
+
this.tokens = [];
|
|
2060
|
+
proto3.util.initPartial(data, this);
|
|
2061
|
+
}
|
|
2062
|
+
static fromBinary(bytes, options) {
|
|
2063
|
+
return new GetTokensResponse().fromBinary(bytes, options);
|
|
2064
|
+
}
|
|
2065
|
+
static fromJson(jsonValue, options) {
|
|
2066
|
+
return new GetTokensResponse().fromJson(jsonValue, options);
|
|
2067
|
+
}
|
|
2068
|
+
static fromJsonString(jsonString, options) {
|
|
2069
|
+
return new GetTokensResponse().fromJsonString(jsonString, options);
|
|
2070
|
+
}
|
|
2071
|
+
static equals(a, b) {
|
|
2072
|
+
return proto3.util.equals(GetTokensResponse, a, b);
|
|
2073
|
+
}
|
|
2074
|
+
}
|
|
2075
|
+
GetTokensResponse.runtime = proto3;
|
|
2076
|
+
GetTokensResponse.typeName = "trading.v1.GetTokensResponse";
|
|
2077
|
+
GetTokensResponse.fields = proto3.util.newFieldList(() => [
|
|
2078
|
+
{ no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2079
|
+
{ no: 2, name: "tokens", kind: "message", T: TokenListEntry, repeated: true },
|
|
2080
|
+
]);
|
|
1792
2081
|
/**
|
|
1793
2082
|
* @generated from message trading.v1.SwappableTokensRequest
|
|
1794
2083
|
*/
|
|
@@ -3153,6 +3442,7 @@ ClassicQuote.fields = proto3.util.newFieldList(() => [
|
|
|
3153
3442
|
{ no: 24, name: "portion_recipient", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
3154
3443
|
{ no: 26, name: "swap_steps", kind: "message", T: SwapStep, repeated: true },
|
|
3155
3444
|
{ no: 27, name: "route_candidates", kind: "message", T: RouteCandidate, repeated: true },
|
|
3445
|
+
{ no: 28, name: "price_difference", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
3156
3446
|
]);
|
|
3157
3447
|
/**
|
|
3158
3448
|
* A quoted route candidate with its whole-route (not per-hop) amounts.
|
|
@@ -4464,6 +4754,7 @@ WrapUnwrapQuote.fields = proto3.util.newFieldList(() => [
|
|
|
4464
4754
|
{ no: 11, name: "gas_price", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
4465
4755
|
{ no: 12, name: "max_fee_per_gas", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
4466
4756
|
{ no: 13, name: "max_priority_fee_per_gas", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
4757
|
+
{ no: 15, name: "price_difference", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
4467
4758
|
]);
|
|
4468
4759
|
/**
|
|
4469
4760
|
* @generated from message trading.v1.SwapRequest
|
|
@@ -6091,6 +6382,7 @@ BridgeQuote.fields = proto3.util.newFieldList(() => [
|
|
|
6091
6382
|
{ no: 17, name: "fill_deadline", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
6092
6383
|
{ no: 18, name: "gas_fee_usd", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
6093
6384
|
{ no: 19, name: "gas_estimates", kind: "message", T: GasEstimate, repeated: true },
|
|
6385
|
+
{ no: 21, name: "price_difference", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
6094
6386
|
]);
|
|
6095
6387
|
/**
|
|
6096
6388
|
* @generated from message trading.v1.DutchLimitOrderInfo
|
|
@@ -6355,6 +6647,7 @@ DutchLimitV2Quote.fields = proto3.util.newFieldList(() => [
|
|
|
6355
6647
|
{ no: 11, name: "portion_recipient", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
6356
6648
|
{ no: 12, name: "input", kind: "message", T: QuoteInput },
|
|
6357
6649
|
{ no: 13, name: "output", kind: "message", T: QuoteOutput },
|
|
6650
|
+
{ no: 14, name: "price_difference", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
6358
6651
|
]);
|
|
6359
6652
|
/**
|
|
6360
6653
|
* @generated from message trading.v1.DutchLimitV3OrderInfo
|
|
@@ -6491,6 +6784,7 @@ DutchLimitV3Quote.fields = proto3.util.newFieldList(() => [
|
|
|
6491
6784
|
{ no: 13, name: "portion_recipient", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
6492
6785
|
{ no: 14, name: "input", kind: "message", T: QuoteInput },
|
|
6493
6786
|
{ no: 15, name: "output", kind: "message", T: QuoteOutput },
|
|
6787
|
+
{ no: 16, name: "price_difference", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
6494
6788
|
]);
|
|
6495
6789
|
/**
|
|
6496
6790
|
* @generated from message trading.v1.CheckApprovalRequest
|
|
@@ -6835,6 +7129,7 @@ PriorityQuote.fields = proto3.util.newFieldList(() => [
|
|
|
6835
7129
|
{ no: 13, name: "portion_recipient", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
6836
7130
|
{ no: 14, name: "input", kind: "message", T: QuoteInput },
|
|
6837
7131
|
{ no: 15, name: "output", kind: "message", T: QuoteOutput },
|
|
7132
|
+
{ no: 16, name: "price_difference", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
6838
7133
|
]);
|
|
6839
7134
|
/**
|
|
6840
7135
|
* @generated from message trading.v1.TruncatedPlanStep
|
|
@@ -6870,6 +7165,7 @@ TruncatedPlanStep.fields = proto3.util.newFieldList(() => [
|
|
|
6870
7165
|
{ no: 4, name: "token_out", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
6871
7166
|
{ no: 5, name: "token_out_chain_id", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
6872
7167
|
{ no: 6, name: "slippage", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
7168
|
+
{ no: 7, name: "price_difference", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
6873
7169
|
]);
|
|
6874
7170
|
/**
|
|
6875
7171
|
* @generated from message trading.v1.ChainedQuote
|
|
@@ -6948,6 +7244,7 @@ ChainedQuote.fields = proto3.util.newFieldList(() => [
|
|
|
6948
7244
|
{ no: 19, name: "compound_slippage", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
6949
7245
|
{ no: 20, name: "earn_intent", kind: "message", T: EarnQuoteIntent, opt: true },
|
|
6950
7246
|
{ no: 21, name: "earn_preview", kind: "message", T: EarnPreview, opt: true },
|
|
7247
|
+
{ no: 22, name: "price_difference", kind: "scalar", T: 1 /* ScalarType.DOUBLE */, opt: true },
|
|
6951
7248
|
]);
|
|
6952
7249
|
/**
|
|
6953
7250
|
* @generated from message trading.v1.PermitTransferFromData
|