@uniswap/client-trading 0.5.12 → 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 +134 -0
- package/dist/trading/v1/api_pb.js +207 -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
|
*/
|
|
@@ -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
|
*/
|