@uniswap/client-trading 0.5.12 → 0.5.14

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.
@@ -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,101 @@ 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
+ * Set only where it distinguishes deployments: release lines
1530
+ * (UniversalRouter, CaliburEntry) and same-named contracts (Quoter V3/V4).
1531
+ *
1532
+ * @generated from field: optional string version = 2;
1533
+ */
1534
+ version?: string;
1535
+ /**
1536
+ * @generated from field: string address = 3;
1537
+ */
1538
+ address: string;
1539
+ constructor(data?: PartialMessage<ChainContractAddress>);
1540
+ static readonly runtime: typeof proto3;
1541
+ static readonly typeName = "trading.v1.ChainContractAddress";
1542
+ static readonly fields: FieldList;
1543
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): ChainContractAddress;
1544
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): ChainContractAddress;
1545
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): ChainContractAddress;
1546
+ static equals(a: ChainContractAddress | PlainMessage<ChainContractAddress> | undefined, b: ChainContractAddress | PlainMessage<ChainContractAddress> | undefined): boolean;
1547
+ }
1548
+ /**
1549
+ * @generated from message trading.v1.SupportedChain
1550
+ */
1551
+ export declare class SupportedChain extends Message<SupportedChain> {
1552
+ /**
1553
+ * @generated from field: trading.v1.ChainId chain_id = 1;
1554
+ */
1555
+ chainId: ChainId;
1556
+ /**
1557
+ * @generated from field: string chain_name = 2;
1558
+ */
1559
+ chainName: string;
1560
+ /**
1561
+ * @generated from field: repeated trading.v1.ChainContractAddress contract_addresses = 3;
1562
+ */
1563
+ contractAddresses: ChainContractAddress[];
1564
+ /**
1565
+ * @generated from field: repeated trading.v1.SupportedProtocol protocols = 4;
1566
+ */
1567
+ protocols: SupportedProtocol[];
1568
+ /**
1569
+ * @generated from field: repeated trading.v1.SupportedAction actions = 5;
1570
+ */
1571
+ actions: SupportedAction[];
1572
+ constructor(data?: PartialMessage<SupportedChain>);
1573
+ static readonly runtime: typeof proto3;
1574
+ static readonly typeName = "trading.v1.SupportedChain";
1575
+ static readonly fields: FieldList;
1576
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SupportedChain;
1577
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SupportedChain;
1578
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SupportedChain;
1579
+ static equals(a: SupportedChain | PlainMessage<SupportedChain> | undefined, b: SupportedChain | PlainMessage<SupportedChain> | undefined): boolean;
1580
+ }
1581
+ /**
1582
+ * @generated from message trading.v1.SupportedChainsResponse
1583
+ */
1584
+ export declare class SupportedChainsResponse extends Message<SupportedChainsResponse> {
1585
+ /**
1586
+ * @generated from field: string request_id = 1;
1587
+ */
1588
+ requestId: string;
1589
+ /**
1590
+ * @generated from field: repeated trading.v1.SupportedChain chains = 2;
1591
+ */
1592
+ chains: SupportedChain[];
1593
+ constructor(data?: PartialMessage<SupportedChainsResponse>);
1594
+ static readonly runtime: typeof proto3;
1595
+ static readonly typeName = "trading.v1.SupportedChainsResponse";
1596
+ static readonly fields: FieldList;
1597
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SupportedChainsResponse;
1598
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SupportedChainsResponse;
1599
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SupportedChainsResponse;
1600
+ static equals(a: SupportedChainsResponse | PlainMessage<SupportedChainsResponse> | undefined, b: SupportedChainsResponse | PlainMessage<SupportedChainsResponse> | undefined): boolean;
1601
+ }
1465
1602
  /**
1466
1603
  * @generated from message trading.v1.TokenProjectLogo
1467
1604
  */
@@ -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,151 @@ 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 address = 3;
1905
+ */
1906
+ this.address = "";
1907
+ proto3.util.initPartial(data, this);
1908
+ }
1909
+ static fromBinary(bytes, options) {
1910
+ return new ChainContractAddress().fromBinary(bytes, options);
1911
+ }
1912
+ static fromJson(jsonValue, options) {
1913
+ return new ChainContractAddress().fromJson(jsonValue, options);
1914
+ }
1915
+ static fromJsonString(jsonString, options) {
1916
+ return new ChainContractAddress().fromJsonString(jsonString, options);
1917
+ }
1918
+ static equals(a, b) {
1919
+ return proto3.util.equals(ChainContractAddress, a, b);
1920
+ }
1921
+ }
1922
+ ChainContractAddress.runtime = proto3;
1923
+ ChainContractAddress.typeName = "trading.v1.ChainContractAddress";
1924
+ ChainContractAddress.fields = proto3.util.newFieldList(() => [
1925
+ { no: 1, name: "name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1926
+ { no: 2, name: "version", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
1927
+ { no: 3, name: "address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1928
+ ]);
1929
+ /**
1930
+ * @generated from message trading.v1.SupportedChain
1931
+ */
1932
+ export class SupportedChain extends Message {
1933
+ constructor(data) {
1934
+ super();
1935
+ /**
1936
+ * @generated from field: trading.v1.ChainId chain_id = 1;
1937
+ */
1938
+ this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
1939
+ /**
1940
+ * @generated from field: string chain_name = 2;
1941
+ */
1942
+ this.chainName = "";
1943
+ /**
1944
+ * @generated from field: repeated trading.v1.ChainContractAddress contract_addresses = 3;
1945
+ */
1946
+ this.contractAddresses = [];
1947
+ /**
1948
+ * @generated from field: repeated trading.v1.SupportedProtocol protocols = 4;
1949
+ */
1950
+ this.protocols = [];
1951
+ /**
1952
+ * @generated from field: repeated trading.v1.SupportedAction actions = 5;
1953
+ */
1954
+ this.actions = [];
1955
+ proto3.util.initPartial(data, this);
1956
+ }
1957
+ static fromBinary(bytes, options) {
1958
+ return new SupportedChain().fromBinary(bytes, options);
1959
+ }
1960
+ static fromJson(jsonValue, options) {
1961
+ return new SupportedChain().fromJson(jsonValue, options);
1962
+ }
1963
+ static fromJsonString(jsonString, options) {
1964
+ return new SupportedChain().fromJsonString(jsonString, options);
1965
+ }
1966
+ static equals(a, b) {
1967
+ return proto3.util.equals(SupportedChain, a, b);
1968
+ }
1969
+ }
1970
+ SupportedChain.runtime = proto3;
1971
+ SupportedChain.typeName = "trading.v1.SupportedChain";
1972
+ SupportedChain.fields = proto3.util.newFieldList(() => [
1973
+ { no: 1, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
1974
+ { no: 2, name: "chain_name", kind: "scalar", T: 9 /* ScalarType.STRING */ },
1975
+ { no: 3, name: "contract_addresses", kind: "message", T: ChainContractAddress, repeated: true },
1976
+ { no: 4, name: "protocols", kind: "enum", T: proto3.getEnumType(SupportedProtocol), repeated: true },
1977
+ { no: 5, name: "actions", kind: "enum", T: proto3.getEnumType(SupportedAction), repeated: true },
1978
+ ]);
1979
+ /**
1980
+ * @generated from message trading.v1.SupportedChainsResponse
1981
+ */
1982
+ export class SupportedChainsResponse extends Message {
1983
+ constructor(data) {
1984
+ super();
1985
+ /**
1986
+ * @generated from field: string request_id = 1;
1987
+ */
1988
+ this.requestId = "";
1989
+ /**
1990
+ * @generated from field: repeated trading.v1.SupportedChain chains = 2;
1991
+ */
1992
+ this.chains = [];
1993
+ proto3.util.initPartial(data, this);
1994
+ }
1995
+ static fromBinary(bytes, options) {
1996
+ return new SupportedChainsResponse().fromBinary(bytes, options);
1997
+ }
1998
+ static fromJson(jsonValue, options) {
1999
+ return new SupportedChainsResponse().fromJson(jsonValue, options);
2000
+ }
2001
+ static fromJsonString(jsonString, options) {
2002
+ return new SupportedChainsResponse().fromJsonString(jsonString, options);
2003
+ }
2004
+ static equals(a, b) {
2005
+ return proto3.util.equals(SupportedChainsResponse, a, b);
2006
+ }
2007
+ }
2008
+ SupportedChainsResponse.runtime = proto3;
2009
+ SupportedChainsResponse.typeName = "trading.v1.SupportedChainsResponse";
2010
+ SupportedChainsResponse.fields = proto3.util.newFieldList(() => [
2011
+ { no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
2012
+ { no: 2, name: "chains", kind: "message", T: SupportedChain, repeated: true },
2013
+ ]);
1811
2014
  /**
1812
2015
  * @generated from message trading.v1.TokenProjectLogo
1813
2016
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniswap/client-trading",
3
- "version": "0.5.12",
3
+ "version": "0.5.14",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },