@uniswap/client-trading 0.5.16 → 0.5.18
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 +217 -1
- package/dist/trading/v1/api_pb.js +299 -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
|
*/
|
|
@@ -420,7 +466,17 @@ export declare enum PlanStepType {
|
|
|
420
466
|
/**
|
|
421
467
|
* @generated from enum value: PLAN_STEP_TYPE_VAULT_WITHDRAW = 15;
|
|
422
468
|
*/
|
|
423
|
-
VAULT_WITHDRAW = 15
|
|
469
|
+
VAULT_WITHDRAW = 15,
|
|
470
|
+
/**
|
|
471
|
+
* One MarginRouter execute([...actions]) transaction. Every margin action key
|
|
472
|
+
* compiles to this one step type: what the action does mechanically lives in the
|
|
473
|
+
* ordered operations inside marginExecutionMetadata, and which action the user
|
|
474
|
+
* chose lives on the echoed quote. Keeping the action grid out of this enum is
|
|
475
|
+
* what lets a new action key ship without a partner-visible wire change.
|
|
476
|
+
*
|
|
477
|
+
* @generated from enum value: PLAN_STEP_TYPE_MARGIN_EXECUTE = 16;
|
|
478
|
+
*/
|
|
479
|
+
MARGIN_EXECUTE = 16
|
|
424
480
|
}
|
|
425
481
|
/**
|
|
426
482
|
* Set when the output is a fee taken from the swap; unset for the swapper's
|
|
@@ -1450,6 +1506,166 @@ export declare class PermitBatch extends Message<PermitBatch> {
|
|
|
1450
1506
|
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): PermitBatch;
|
|
1451
1507
|
static equals(a: PermitBatch | PlainMessage<PermitBatch> | undefined, b: PermitBatch | PlainMessage<PermitBatch> | undefined): boolean;
|
|
1452
1508
|
}
|
|
1509
|
+
/**
|
|
1510
|
+
* @generated from message trading.v1.GetTokensRequest
|
|
1511
|
+
*/
|
|
1512
|
+
export declare class GetTokensRequest extends Message<GetTokensRequest> {
|
|
1513
|
+
/**
|
|
1514
|
+
* @generated from field: trading.v1.TokenListSort sort = 1;
|
|
1515
|
+
*/
|
|
1516
|
+
sort: TokenListSort;
|
|
1517
|
+
/**
|
|
1518
|
+
* @generated from field: optional uint32 limit = 2;
|
|
1519
|
+
*/
|
|
1520
|
+
limit?: number;
|
|
1521
|
+
/**
|
|
1522
|
+
* @generated from field: optional trading.v1.ChainId chain_id = 3;
|
|
1523
|
+
*/
|
|
1524
|
+
chainId?: ChainId;
|
|
1525
|
+
constructor(data?: PartialMessage<GetTokensRequest>);
|
|
1526
|
+
static readonly runtime: typeof proto3;
|
|
1527
|
+
static readonly typeName = "trading.v1.GetTokensRequest";
|
|
1528
|
+
static readonly fields: FieldList;
|
|
1529
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetTokensRequest;
|
|
1530
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetTokensRequest;
|
|
1531
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetTokensRequest;
|
|
1532
|
+
static equals(a: GetTokensRequest | PlainMessage<GetTokensRequest> | undefined, b: GetTokensRequest | PlainMessage<GetTokensRequest> | undefined): boolean;
|
|
1533
|
+
}
|
|
1534
|
+
/**
|
|
1535
|
+
* @generated from message trading.v1.TokenListBridgeInfo
|
|
1536
|
+
*/
|
|
1537
|
+
export declare class TokenListBridgeInfo extends Message<TokenListBridgeInfo> {
|
|
1538
|
+
/**
|
|
1539
|
+
* @generated from field: string token_address = 1;
|
|
1540
|
+
*/
|
|
1541
|
+
tokenAddress: string;
|
|
1542
|
+
constructor(data?: PartialMessage<TokenListBridgeInfo>);
|
|
1543
|
+
static readonly runtime: typeof proto3;
|
|
1544
|
+
static readonly typeName = "trading.v1.TokenListBridgeInfo";
|
|
1545
|
+
static readonly fields: FieldList;
|
|
1546
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TokenListBridgeInfo;
|
|
1547
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TokenListBridgeInfo;
|
|
1548
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TokenListBridgeInfo;
|
|
1549
|
+
static equals(a: TokenListBridgeInfo | PlainMessage<TokenListBridgeInfo> | undefined, b: TokenListBridgeInfo | PlainMessage<TokenListBridgeInfo> | undefined): boolean;
|
|
1550
|
+
}
|
|
1551
|
+
/**
|
|
1552
|
+
* @generated from message trading.v1.TokenListSafetyInfo
|
|
1553
|
+
*/
|
|
1554
|
+
export declare class TokenListSafetyInfo extends Message<TokenListSafetyInfo> {
|
|
1555
|
+
/**
|
|
1556
|
+
* @generated from field: trading.v1.TokenListSafetyLevel safety_level = 1;
|
|
1557
|
+
*/
|
|
1558
|
+
safetyLevel: TokenListSafetyLevel;
|
|
1559
|
+
/**
|
|
1560
|
+
* @generated from field: optional string safety_description = 2;
|
|
1561
|
+
*/
|
|
1562
|
+
safetyDescription?: string;
|
|
1563
|
+
/**
|
|
1564
|
+
* @generated from field: double buy_fee = 3;
|
|
1565
|
+
*/
|
|
1566
|
+
buyFee: number;
|
|
1567
|
+
/**
|
|
1568
|
+
* @generated from field: double sell_fee = 4;
|
|
1569
|
+
*/
|
|
1570
|
+
sellFee: number;
|
|
1571
|
+
constructor(data?: PartialMessage<TokenListSafetyInfo>);
|
|
1572
|
+
static readonly runtime: typeof proto3;
|
|
1573
|
+
static readonly typeName = "trading.v1.TokenListSafetyInfo";
|
|
1574
|
+
static readonly fields: FieldList;
|
|
1575
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TokenListSafetyInfo;
|
|
1576
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TokenListSafetyInfo;
|
|
1577
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TokenListSafetyInfo;
|
|
1578
|
+
static equals(a: TokenListSafetyInfo | PlainMessage<TokenListSafetyInfo> | undefined, b: TokenListSafetyInfo | PlainMessage<TokenListSafetyInfo> | undefined): boolean;
|
|
1579
|
+
}
|
|
1580
|
+
/**
|
|
1581
|
+
* @generated from message trading.v1.TokenListExtensions
|
|
1582
|
+
*/
|
|
1583
|
+
export declare class TokenListExtensions extends Message<TokenListExtensions> {
|
|
1584
|
+
/**
|
|
1585
|
+
* chainId -> token address
|
|
1586
|
+
*
|
|
1587
|
+
* @generated from field: map<string, trading.v1.TokenListBridgeInfo> bridge_info = 1;
|
|
1588
|
+
*/
|
|
1589
|
+
bridgeInfo: {
|
|
1590
|
+
[key: string]: TokenListBridgeInfo;
|
|
1591
|
+
};
|
|
1592
|
+
/**
|
|
1593
|
+
* @generated from field: trading.v1.TokenListSafetyInfo safety_info = 2;
|
|
1594
|
+
*/
|
|
1595
|
+
safetyInfo?: TokenListSafetyInfo;
|
|
1596
|
+
constructor(data?: PartialMessage<TokenListExtensions>);
|
|
1597
|
+
static readonly runtime: typeof proto3;
|
|
1598
|
+
static readonly typeName = "trading.v1.TokenListExtensions";
|
|
1599
|
+
static readonly fields: FieldList;
|
|
1600
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TokenListExtensions;
|
|
1601
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TokenListExtensions;
|
|
1602
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TokenListExtensions;
|
|
1603
|
+
static equals(a: TokenListExtensions | PlainMessage<TokenListExtensions> | undefined, b: TokenListExtensions | PlainMessage<TokenListExtensions> | undefined): boolean;
|
|
1604
|
+
}
|
|
1605
|
+
/**
|
|
1606
|
+
* @generated from message trading.v1.TokenListEntry
|
|
1607
|
+
*/
|
|
1608
|
+
export declare class TokenListEntry extends Message<TokenListEntry> {
|
|
1609
|
+
/**
|
|
1610
|
+
* @generated from field: string name = 1;
|
|
1611
|
+
*/
|
|
1612
|
+
name: string;
|
|
1613
|
+
/**
|
|
1614
|
+
* @generated from field: string address = 2;
|
|
1615
|
+
*/
|
|
1616
|
+
address: string;
|
|
1617
|
+
/**
|
|
1618
|
+
* Raw chain id to support solana entries
|
|
1619
|
+
*
|
|
1620
|
+
* @generated from field: uint32 chain_id = 3;
|
|
1621
|
+
*/
|
|
1622
|
+
chainId: number;
|
|
1623
|
+
/**
|
|
1624
|
+
* @generated from field: string symbol = 4;
|
|
1625
|
+
*/
|
|
1626
|
+
symbol: string;
|
|
1627
|
+
/**
|
|
1628
|
+
* @generated from field: int32 decimals = 5;
|
|
1629
|
+
*/
|
|
1630
|
+
decimals: number;
|
|
1631
|
+
/**
|
|
1632
|
+
* @generated from field: optional string logo_uri = 6;
|
|
1633
|
+
*/
|
|
1634
|
+
logoUri?: string;
|
|
1635
|
+
/**
|
|
1636
|
+
* @generated from field: trading.v1.TokenListExtensions extensions = 7;
|
|
1637
|
+
*/
|
|
1638
|
+
extensions?: TokenListExtensions;
|
|
1639
|
+
constructor(data?: PartialMessage<TokenListEntry>);
|
|
1640
|
+
static readonly runtime: typeof proto3;
|
|
1641
|
+
static readonly typeName = "trading.v1.TokenListEntry";
|
|
1642
|
+
static readonly fields: FieldList;
|
|
1643
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TokenListEntry;
|
|
1644
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TokenListEntry;
|
|
1645
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TokenListEntry;
|
|
1646
|
+
static equals(a: TokenListEntry | PlainMessage<TokenListEntry> | undefined, b: TokenListEntry | PlainMessage<TokenListEntry> | undefined): boolean;
|
|
1647
|
+
}
|
|
1648
|
+
/**
|
|
1649
|
+
* @generated from message trading.v1.GetTokensResponse
|
|
1650
|
+
*/
|
|
1651
|
+
export declare class GetTokensResponse extends Message<GetTokensResponse> {
|
|
1652
|
+
/**
|
|
1653
|
+
* @generated from field: string request_id = 1;
|
|
1654
|
+
*/
|
|
1655
|
+
requestId: string;
|
|
1656
|
+
/**
|
|
1657
|
+
* @generated from field: repeated trading.v1.TokenListEntry tokens = 2;
|
|
1658
|
+
*/
|
|
1659
|
+
tokens: TokenListEntry[];
|
|
1660
|
+
constructor(data?: PartialMessage<GetTokensResponse>);
|
|
1661
|
+
static readonly runtime: typeof proto3;
|
|
1662
|
+
static readonly typeName = "trading.v1.GetTokensResponse";
|
|
1663
|
+
static readonly fields: FieldList;
|
|
1664
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): GetTokensResponse;
|
|
1665
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): GetTokensResponse;
|
|
1666
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): GetTokensResponse;
|
|
1667
|
+
static equals(a: GetTokensResponse | PlainMessage<GetTokensResponse> | undefined, b: GetTokensResponse | PlainMessage<GetTokensResponse> | undefined): boolean;
|
|
1668
|
+
}
|
|
1453
1669
|
/**
|
|
1454
1670
|
* @generated from message trading.v1.SwappableTokensRequest
|
|
1455
1671
|
*/
|
|
@@ -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
|
*/
|
|
@@ -549,6 +612,16 @@ export var PlanStepType;
|
|
|
549
612
|
* @generated from enum value: PLAN_STEP_TYPE_VAULT_WITHDRAW = 15;
|
|
550
613
|
*/
|
|
551
614
|
PlanStepType[PlanStepType["VAULT_WITHDRAW"] = 15] = "VAULT_WITHDRAW";
|
|
615
|
+
/**
|
|
616
|
+
* One MarginRouter execute([...actions]) transaction. Every margin action key
|
|
617
|
+
* compiles to this one step type: what the action does mechanically lives in the
|
|
618
|
+
* ordered operations inside marginExecutionMetadata, and which action the user
|
|
619
|
+
* chose lives on the echoed quote. Keeping the action grid out of this enum is
|
|
620
|
+
* what lets a new action key ship without a partner-visible wire change.
|
|
621
|
+
*
|
|
622
|
+
* @generated from enum value: PLAN_STEP_TYPE_MARGIN_EXECUTE = 16;
|
|
623
|
+
*/
|
|
624
|
+
PlanStepType[PlanStepType["MARGIN_EXECUTE"] = 16] = "MARGIN_EXECUTE";
|
|
552
625
|
})(PlanStepType || (PlanStepType = {}));
|
|
553
626
|
// Retrieve enum metadata with: proto3.getEnumType(PlanStepType)
|
|
554
627
|
proto3.util.setEnumType(PlanStepType, "trading.v1.PlanStepType", [
|
|
@@ -568,6 +641,7 @@ proto3.util.setEnumType(PlanStepType, "trading.v1.PlanStepType", [
|
|
|
568
641
|
{ no: 13, name: "PLAN_STEP_TYPE_RESET_APPROVAL_TXN" },
|
|
569
642
|
{ no: 14, name: "PLAN_STEP_TYPE_VAULT_DEPOSIT" },
|
|
570
643
|
{ no: 15, name: "PLAN_STEP_TYPE_VAULT_WITHDRAW" },
|
|
644
|
+
{ no: 16, name: "PLAN_STEP_TYPE_MARGIN_EXECUTE" },
|
|
571
645
|
]);
|
|
572
646
|
/**
|
|
573
647
|
* Set when the output is a fee taken from the swap; unset for the swapper's
|
|
@@ -1789,6 +1863,231 @@ PermitBatch.fields = proto3.util.newFieldList(() => [
|
|
|
1789
1863
|
{ no: 2, name: "spender", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1790
1864
|
{ no: 3, name: "sig_deadline", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1791
1865
|
]);
|
|
1866
|
+
/**
|
|
1867
|
+
* @generated from message trading.v1.GetTokensRequest
|
|
1868
|
+
*/
|
|
1869
|
+
export class GetTokensRequest extends Message {
|
|
1870
|
+
constructor(data) {
|
|
1871
|
+
super();
|
|
1872
|
+
/**
|
|
1873
|
+
* @generated from field: trading.v1.TokenListSort sort = 1;
|
|
1874
|
+
*/
|
|
1875
|
+
this.sort = TokenListSort.UNSPECIFIED;
|
|
1876
|
+
proto3.util.initPartial(data, this);
|
|
1877
|
+
}
|
|
1878
|
+
static fromBinary(bytes, options) {
|
|
1879
|
+
return new GetTokensRequest().fromBinary(bytes, options);
|
|
1880
|
+
}
|
|
1881
|
+
static fromJson(jsonValue, options) {
|
|
1882
|
+
return new GetTokensRequest().fromJson(jsonValue, options);
|
|
1883
|
+
}
|
|
1884
|
+
static fromJsonString(jsonString, options) {
|
|
1885
|
+
return new GetTokensRequest().fromJsonString(jsonString, options);
|
|
1886
|
+
}
|
|
1887
|
+
static equals(a, b) {
|
|
1888
|
+
return proto3.util.equals(GetTokensRequest, a, b);
|
|
1889
|
+
}
|
|
1890
|
+
}
|
|
1891
|
+
GetTokensRequest.runtime = proto3;
|
|
1892
|
+
GetTokensRequest.typeName = "trading.v1.GetTokensRequest";
|
|
1893
|
+
GetTokensRequest.fields = proto3.util.newFieldList(() => [
|
|
1894
|
+
{ no: 1, name: "sort", kind: "enum", T: proto3.getEnumType(TokenListSort) },
|
|
1895
|
+
{ no: 2, name: "limit", kind: "scalar", T: 13 /* ScalarType.UINT32 */, opt: true },
|
|
1896
|
+
{ no: 3, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId), opt: true },
|
|
1897
|
+
]);
|
|
1898
|
+
/**
|
|
1899
|
+
* @generated from message trading.v1.TokenListBridgeInfo
|
|
1900
|
+
*/
|
|
1901
|
+
export class TokenListBridgeInfo extends Message {
|
|
1902
|
+
constructor(data) {
|
|
1903
|
+
super();
|
|
1904
|
+
/**
|
|
1905
|
+
* @generated from field: string token_address = 1;
|
|
1906
|
+
*/
|
|
1907
|
+
this.tokenAddress = "";
|
|
1908
|
+
proto3.util.initPartial(data, this);
|
|
1909
|
+
}
|
|
1910
|
+
static fromBinary(bytes, options) {
|
|
1911
|
+
return new TokenListBridgeInfo().fromBinary(bytes, options);
|
|
1912
|
+
}
|
|
1913
|
+
static fromJson(jsonValue, options) {
|
|
1914
|
+
return new TokenListBridgeInfo().fromJson(jsonValue, options);
|
|
1915
|
+
}
|
|
1916
|
+
static fromJsonString(jsonString, options) {
|
|
1917
|
+
return new TokenListBridgeInfo().fromJsonString(jsonString, options);
|
|
1918
|
+
}
|
|
1919
|
+
static equals(a, b) {
|
|
1920
|
+
return proto3.util.equals(TokenListBridgeInfo, a, b);
|
|
1921
|
+
}
|
|
1922
|
+
}
|
|
1923
|
+
TokenListBridgeInfo.runtime = proto3;
|
|
1924
|
+
TokenListBridgeInfo.typeName = "trading.v1.TokenListBridgeInfo";
|
|
1925
|
+
TokenListBridgeInfo.fields = proto3.util.newFieldList(() => [
|
|
1926
|
+
{ no: 1, name: "token_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
1927
|
+
]);
|
|
1928
|
+
/**
|
|
1929
|
+
* @generated from message trading.v1.TokenListSafetyInfo
|
|
1930
|
+
*/
|
|
1931
|
+
export class TokenListSafetyInfo extends Message {
|
|
1932
|
+
constructor(data) {
|
|
1933
|
+
super();
|
|
1934
|
+
/**
|
|
1935
|
+
* @generated from field: trading.v1.TokenListSafetyLevel safety_level = 1;
|
|
1936
|
+
*/
|
|
1937
|
+
this.safetyLevel = TokenListSafetyLevel.UNSPECIFIED;
|
|
1938
|
+
/**
|
|
1939
|
+
* @generated from field: double buy_fee = 3;
|
|
1940
|
+
*/
|
|
1941
|
+
this.buyFee = 0;
|
|
1942
|
+
/**
|
|
1943
|
+
* @generated from field: double sell_fee = 4;
|
|
1944
|
+
*/
|
|
1945
|
+
this.sellFee = 0;
|
|
1946
|
+
proto3.util.initPartial(data, this);
|
|
1947
|
+
}
|
|
1948
|
+
static fromBinary(bytes, options) {
|
|
1949
|
+
return new TokenListSafetyInfo().fromBinary(bytes, options);
|
|
1950
|
+
}
|
|
1951
|
+
static fromJson(jsonValue, options) {
|
|
1952
|
+
return new TokenListSafetyInfo().fromJson(jsonValue, options);
|
|
1953
|
+
}
|
|
1954
|
+
static fromJsonString(jsonString, options) {
|
|
1955
|
+
return new TokenListSafetyInfo().fromJsonString(jsonString, options);
|
|
1956
|
+
}
|
|
1957
|
+
static equals(a, b) {
|
|
1958
|
+
return proto3.util.equals(TokenListSafetyInfo, a, b);
|
|
1959
|
+
}
|
|
1960
|
+
}
|
|
1961
|
+
TokenListSafetyInfo.runtime = proto3;
|
|
1962
|
+
TokenListSafetyInfo.typeName = "trading.v1.TokenListSafetyInfo";
|
|
1963
|
+
TokenListSafetyInfo.fields = proto3.util.newFieldList(() => [
|
|
1964
|
+
{ no: 1, name: "safety_level", kind: "enum", T: proto3.getEnumType(TokenListSafetyLevel) },
|
|
1965
|
+
{ no: 2, name: "safety_description", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
1966
|
+
{ no: 3, name: "buy_fee", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
1967
|
+
{ no: 4, name: "sell_fee", kind: "scalar", T: 1 /* ScalarType.DOUBLE */ },
|
|
1968
|
+
]);
|
|
1969
|
+
/**
|
|
1970
|
+
* @generated from message trading.v1.TokenListExtensions
|
|
1971
|
+
*/
|
|
1972
|
+
export class TokenListExtensions extends Message {
|
|
1973
|
+
constructor(data) {
|
|
1974
|
+
super();
|
|
1975
|
+
/**
|
|
1976
|
+
* chainId -> token address
|
|
1977
|
+
*
|
|
1978
|
+
* @generated from field: map<string, trading.v1.TokenListBridgeInfo> bridge_info = 1;
|
|
1979
|
+
*/
|
|
1980
|
+
this.bridgeInfo = {};
|
|
1981
|
+
proto3.util.initPartial(data, this);
|
|
1982
|
+
}
|
|
1983
|
+
static fromBinary(bytes, options) {
|
|
1984
|
+
return new TokenListExtensions().fromBinary(bytes, options);
|
|
1985
|
+
}
|
|
1986
|
+
static fromJson(jsonValue, options) {
|
|
1987
|
+
return new TokenListExtensions().fromJson(jsonValue, options);
|
|
1988
|
+
}
|
|
1989
|
+
static fromJsonString(jsonString, options) {
|
|
1990
|
+
return new TokenListExtensions().fromJsonString(jsonString, options);
|
|
1991
|
+
}
|
|
1992
|
+
static equals(a, b) {
|
|
1993
|
+
return proto3.util.equals(TokenListExtensions, a, b);
|
|
1994
|
+
}
|
|
1995
|
+
}
|
|
1996
|
+
TokenListExtensions.runtime = proto3;
|
|
1997
|
+
TokenListExtensions.typeName = "trading.v1.TokenListExtensions";
|
|
1998
|
+
TokenListExtensions.fields = proto3.util.newFieldList(() => [
|
|
1999
|
+
{ no: 1, name: "bridge_info", kind: "map", K: 9 /* ScalarType.STRING */, V: { kind: "message", T: TokenListBridgeInfo } },
|
|
2000
|
+
{ no: 2, name: "safety_info", kind: "message", T: TokenListSafetyInfo },
|
|
2001
|
+
]);
|
|
2002
|
+
/**
|
|
2003
|
+
* @generated from message trading.v1.TokenListEntry
|
|
2004
|
+
*/
|
|
2005
|
+
export class TokenListEntry extends Message {
|
|
2006
|
+
constructor(data) {
|
|
2007
|
+
super();
|
|
2008
|
+
/**
|
|
2009
|
+
* @generated from field: string name = 1;
|
|
2010
|
+
*/
|
|
2011
|
+
this.name = "";
|
|
2012
|
+
/**
|
|
2013
|
+
* @generated from field: string address = 2;
|
|
2014
|
+
*/
|
|
2015
|
+
this.address = "";
|
|
2016
|
+
/**
|
|
2017
|
+
* Raw chain id to support solana entries
|
|
2018
|
+
*
|
|
2019
|
+
* @generated from field: uint32 chain_id = 3;
|
|
2020
|
+
*/
|
|
2021
|
+
this.chainId = 0;
|
|
2022
|
+
/**
|
|
2023
|
+
* @generated from field: string symbol = 4;
|
|
2024
|
+
*/
|
|
2025
|
+
this.symbol = "";
|
|
2026
|
+
/**
|
|
2027
|
+
* @generated from field: int32 decimals = 5;
|
|
2028
|
+
*/
|
|
2029
|
+
this.decimals = 0;
|
|
2030
|
+
proto3.util.initPartial(data, this);
|
|
2031
|
+
}
|
|
2032
|
+
static fromBinary(bytes, options) {
|
|
2033
|
+
return new TokenListEntry().fromBinary(bytes, options);
|
|
2034
|
+
}
|
|
2035
|
+
static fromJson(jsonValue, options) {
|
|
2036
|
+
return new TokenListEntry().fromJson(jsonValue, options);
|
|
2037
|
+
}
|
|
2038
|
+
static fromJsonString(jsonString, options) {
|
|
2039
|
+
return new TokenListEntry().fromJsonString(jsonString, options);
|
|
2040
|
+
}
|
|
2041
|
+
static equals(a, b) {
|
|
2042
|
+
return proto3.util.equals(TokenListEntry, a, b);
|
|
2043
|
+
}
|
|
2044
|
+
}
|
|
2045
|
+
TokenListEntry.runtime = proto3;
|
|
2046
|
+
TokenListEntry.typeName = "trading.v1.TokenListEntry";
|
|
2047
|
+
TokenListEntry.fields = proto3.util.newFieldList(() => [
|
|
2048
|
+
{ no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2049
|
+
{ no: 2, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2050
|
+
{ no: 3, name: "chain_id", kind: "scalar", T: 13 /* ScalarType.UINT32 */ },
|
|
2051
|
+
{ no: 4, name: "symbol", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2052
|
+
{ no: 5, name: "decimals", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
2053
|
+
{ no: 6, name: "logo_uri", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
2054
|
+
{ no: 7, name: "extensions", kind: "message", T: TokenListExtensions },
|
|
2055
|
+
]);
|
|
2056
|
+
/**
|
|
2057
|
+
* @generated from message trading.v1.GetTokensResponse
|
|
2058
|
+
*/
|
|
2059
|
+
export class GetTokensResponse extends Message {
|
|
2060
|
+
constructor(data) {
|
|
2061
|
+
super();
|
|
2062
|
+
/**
|
|
2063
|
+
* @generated from field: string request_id = 1;
|
|
2064
|
+
*/
|
|
2065
|
+
this.requestId = "";
|
|
2066
|
+
/**
|
|
2067
|
+
* @generated from field: repeated trading.v1.TokenListEntry tokens = 2;
|
|
2068
|
+
*/
|
|
2069
|
+
this.tokens = [];
|
|
2070
|
+
proto3.util.initPartial(data, this);
|
|
2071
|
+
}
|
|
2072
|
+
static fromBinary(bytes, options) {
|
|
2073
|
+
return new GetTokensResponse().fromBinary(bytes, options);
|
|
2074
|
+
}
|
|
2075
|
+
static fromJson(jsonValue, options) {
|
|
2076
|
+
return new GetTokensResponse().fromJson(jsonValue, options);
|
|
2077
|
+
}
|
|
2078
|
+
static fromJsonString(jsonString, options) {
|
|
2079
|
+
return new GetTokensResponse().fromJsonString(jsonString, options);
|
|
2080
|
+
}
|
|
2081
|
+
static equals(a, b) {
|
|
2082
|
+
return proto3.util.equals(GetTokensResponse, a, b);
|
|
2083
|
+
}
|
|
2084
|
+
}
|
|
2085
|
+
GetTokensResponse.runtime = proto3;
|
|
2086
|
+
GetTokensResponse.typeName = "trading.v1.GetTokensResponse";
|
|
2087
|
+
GetTokensResponse.fields = proto3.util.newFieldList(() => [
|
|
2088
|
+
{ no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2089
|
+
{ no: 2, name: "tokens", kind: "message", T: TokenListEntry, repeated: true },
|
|
2090
|
+
]);
|
|
1792
2091
|
/**
|
|
1793
2092
|
* @generated from message trading.v1.SwappableTokensRequest
|
|
1794
2093
|
*/
|