@uniswap/client-trading 0.0.0

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.
@@ -0,0 +1,268 @@
1
+ import { MethodIdempotency, MethodKind } from "@bufbuild/protobuf";
2
+ import { CheckApprovalLPRequest, CheckApprovalLPResponse, CheckApprovalRequest, CheckApprovalResponse, CheckWalletDelegationRequest, CheckWalletDelegationResponse, ClaimLPFeesRequest, ClaimLPFeesResponse, ClaimLPRewardsRequest, ClaimLPRewardsResponse, CreateLPPositionRequest, CreateLPPositionResponse, DecreaseLPPositionRequest, DecreaseLPPositionResponse, GetLPPriceDiscrepancyRequest, GetLPPriceDiscrepancyResponse, GetOrdersRequest, GetOrdersResponse, GetSwapsRequest, GetSwapsResponse, IncreaseLPPositionRequest, IncreaseLPPositionResponse, MigrateLpPositionRequest, MigrateLpPositionResponse, OrderRequest, OrderResponse, PoolInfoRequest, PoolInfoResponse, QuoteRequest, QuoteResponse, SendRequest, SendResponse, Swap5792Request, Swap5792Response, SwappableTokensRequest, SwappableTokensResponse, SwapRequest, SwapResponse } from "./api_pb.js";
3
+ /**
4
+ * @generated from rpc trading.v1.tradingService.Quote
5
+ */
6
+ export declare const quote: {
7
+ readonly localName: "quote";
8
+ readonly name: "Quote";
9
+ readonly kind: MethodKind.Unary;
10
+ readonly I: typeof QuoteRequest;
11
+ readonly O: typeof QuoteResponse;
12
+ readonly idempotency: MethodIdempotency.NoSideEffects;
13
+ readonly service: {
14
+ readonly typeName: "trading.v1.tradingService";
15
+ };
16
+ };
17
+ /**
18
+ * @generated from rpc trading.v1.tradingService.Swap
19
+ */
20
+ export declare const swap: {
21
+ readonly localName: "swap";
22
+ readonly name: "Swap";
23
+ readonly kind: MethodKind.Unary;
24
+ readonly I: typeof SwapRequest;
25
+ readonly O: typeof SwapResponse;
26
+ readonly idempotency: MethodIdempotency.NoSideEffects;
27
+ readonly service: {
28
+ readonly typeName: "trading.v1.tradingService";
29
+ };
30
+ };
31
+ /**
32
+ * @generated from rpc trading.v1.tradingService.CheckApproval
33
+ */
34
+ export declare const checkApproval: {
35
+ readonly localName: "checkApproval";
36
+ readonly name: "CheckApproval";
37
+ readonly kind: MethodKind.Unary;
38
+ readonly I: typeof CheckApprovalRequest;
39
+ readonly O: typeof CheckApprovalResponse;
40
+ readonly idempotency: MethodIdempotency.NoSideEffects;
41
+ readonly service: {
42
+ readonly typeName: "trading.v1.tradingService";
43
+ };
44
+ };
45
+ /**
46
+ * @generated from rpc trading.v1.tradingService.GetSwaps
47
+ */
48
+ export declare const getSwaps: {
49
+ readonly localName: "getSwaps";
50
+ readonly name: "GetSwaps";
51
+ readonly kind: MethodKind.Unary;
52
+ readonly I: typeof GetSwapsRequest;
53
+ readonly O: typeof GetSwapsResponse;
54
+ readonly idempotency: MethodIdempotency.NoSideEffects;
55
+ readonly service: {
56
+ readonly typeName: "trading.v1.tradingService";
57
+ };
58
+ };
59
+ /**
60
+ * @generated from rpc trading.v1.tradingService.SwappableTokens
61
+ */
62
+ export declare const swappableTokens: {
63
+ readonly localName: "swappableTokens";
64
+ readonly name: "SwappableTokens";
65
+ readonly kind: MethodKind.Unary;
66
+ readonly I: typeof SwappableTokensRequest;
67
+ readonly O: typeof SwappableTokensResponse;
68
+ readonly idempotency: MethodIdempotency.NoSideEffects;
69
+ readonly service: {
70
+ readonly typeName: "trading.v1.tradingService";
71
+ };
72
+ };
73
+ /**
74
+ * @generated from rpc trading.v1.tradingService.GetOrders
75
+ */
76
+ export declare const getOrders: {
77
+ readonly localName: "getOrders";
78
+ readonly name: "GetOrders";
79
+ readonly kind: MethodKind.Unary;
80
+ readonly I: typeof GetOrdersRequest;
81
+ readonly O: typeof GetOrdersResponse;
82
+ readonly idempotency: MethodIdempotency.NoSideEffects;
83
+ readonly service: {
84
+ readonly typeName: "trading.v1.tradingService";
85
+ };
86
+ };
87
+ /**
88
+ * @generated from rpc trading.v1.tradingService.Order
89
+ */
90
+ export declare const order: {
91
+ readonly localName: "order";
92
+ readonly name: "Order";
93
+ readonly kind: MethodKind.Unary;
94
+ readonly I: typeof OrderRequest;
95
+ readonly O: typeof OrderResponse;
96
+ readonly idempotency: MethodIdempotency.NoSideEffects;
97
+ readonly service: {
98
+ readonly typeName: "trading.v1.tradingService";
99
+ };
100
+ };
101
+ /**
102
+ * @generated from rpc trading.v1.tradingService.CreateLPPosition
103
+ */
104
+ export declare const createLPPosition: {
105
+ readonly localName: "createLPPosition";
106
+ readonly name: "CreateLPPosition";
107
+ readonly kind: MethodKind.Unary;
108
+ readonly I: typeof CreateLPPositionRequest;
109
+ readonly O: typeof CreateLPPositionResponse;
110
+ readonly idempotency: MethodIdempotency.NoSideEffects;
111
+ readonly service: {
112
+ readonly typeName: "trading.v1.tradingService";
113
+ };
114
+ };
115
+ /**
116
+ * @generated from rpc trading.v1.tradingService.IncreaseLPPosition
117
+ */
118
+ export declare const increaseLPPosition: {
119
+ readonly localName: "increaseLPPosition";
120
+ readonly name: "IncreaseLPPosition";
121
+ readonly kind: MethodKind.Unary;
122
+ readonly I: typeof IncreaseLPPositionRequest;
123
+ readonly O: typeof IncreaseLPPositionResponse;
124
+ readonly idempotency: MethodIdempotency.NoSideEffects;
125
+ readonly service: {
126
+ readonly typeName: "trading.v1.tradingService";
127
+ };
128
+ };
129
+ /**
130
+ * @generated from rpc trading.v1.tradingService.DecreaseLPPosition
131
+ */
132
+ export declare const decreaseLPPosition: {
133
+ readonly localName: "decreaseLPPosition";
134
+ readonly name: "DecreaseLPPosition";
135
+ readonly kind: MethodKind.Unary;
136
+ readonly I: typeof DecreaseLPPositionRequest;
137
+ readonly O: typeof DecreaseLPPositionResponse;
138
+ readonly idempotency: MethodIdempotency.NoSideEffects;
139
+ readonly service: {
140
+ readonly typeName: "trading.v1.tradingService";
141
+ };
142
+ };
143
+ /**
144
+ * @generated from rpc trading.v1.tradingService.ClaimLPFees
145
+ */
146
+ export declare const claimLPFees: {
147
+ readonly localName: "claimLPFees";
148
+ readonly name: "ClaimLPFees";
149
+ readonly kind: MethodKind.Unary;
150
+ readonly I: typeof ClaimLPFeesRequest;
151
+ readonly O: typeof ClaimLPFeesResponse;
152
+ readonly idempotency: MethodIdempotency.NoSideEffects;
153
+ readonly service: {
154
+ readonly typeName: "trading.v1.tradingService";
155
+ };
156
+ };
157
+ /**
158
+ * @generated from rpc trading.v1.tradingService.MigrateLpPosition
159
+ */
160
+ export declare const migrateLpPosition: {
161
+ readonly localName: "migrateLpPosition";
162
+ readonly name: "MigrateLpPosition";
163
+ readonly kind: MethodKind.Unary;
164
+ readonly I: typeof MigrateLpPositionRequest;
165
+ readonly O: typeof MigrateLpPositionResponse;
166
+ readonly idempotency: MethodIdempotency.NoSideEffects;
167
+ readonly service: {
168
+ readonly typeName: "trading.v1.tradingService";
169
+ };
170
+ };
171
+ /**
172
+ * @generated from rpc trading.v1.tradingService.CheckLPApproval
173
+ */
174
+ export declare const checkLPApproval: {
175
+ readonly localName: "checkLPApproval";
176
+ readonly name: "CheckLPApproval";
177
+ readonly kind: MethodKind.Unary;
178
+ readonly I: typeof CheckApprovalLPRequest;
179
+ readonly O: typeof CheckApprovalLPResponse;
180
+ readonly idempotency: MethodIdempotency.NoSideEffects;
181
+ readonly service: {
182
+ readonly typeName: "trading.v1.tradingService";
183
+ };
184
+ };
185
+ /**
186
+ * @generated from rpc trading.v1.tradingService.ClaimLPRewards
187
+ */
188
+ export declare const claimLPRewards: {
189
+ readonly localName: "claimLPRewards";
190
+ readonly name: "ClaimLPRewards";
191
+ readonly kind: MethodKind.Unary;
192
+ readonly I: typeof ClaimLPRewardsRequest;
193
+ readonly O: typeof ClaimLPRewardsResponse;
194
+ readonly idempotency: MethodIdempotency.NoSideEffects;
195
+ readonly service: {
196
+ readonly typeName: "trading.v1.tradingService";
197
+ };
198
+ };
199
+ /**
200
+ * @generated from rpc trading.v1.tradingService.Send
201
+ */
202
+ export declare const send: {
203
+ readonly localName: "send";
204
+ readonly name: "Send";
205
+ readonly kind: MethodKind.Unary;
206
+ readonly I: typeof SendRequest;
207
+ readonly O: typeof SendResponse;
208
+ readonly idempotency: MethodIdempotency.NoSideEffects;
209
+ readonly service: {
210
+ readonly typeName: "trading.v1.tradingService";
211
+ };
212
+ };
213
+ /**
214
+ * @generated from rpc trading.v1.tradingService.CheckWalletDelegation
215
+ */
216
+ export declare const checkWalletDelegation: {
217
+ readonly localName: "checkWalletDelegation";
218
+ readonly name: "CheckWalletDelegation";
219
+ readonly kind: MethodKind.Unary;
220
+ readonly I: typeof CheckWalletDelegationRequest;
221
+ readonly O: typeof CheckWalletDelegationResponse;
222
+ readonly idempotency: MethodIdempotency.NoSideEffects;
223
+ readonly service: {
224
+ readonly typeName: "trading.v1.tradingService";
225
+ };
226
+ };
227
+ /**
228
+ * @generated from rpc trading.v1.tradingService.PoolInfo
229
+ */
230
+ export declare const poolInfo: {
231
+ readonly localName: "poolInfo";
232
+ readonly name: "PoolInfo";
233
+ readonly kind: MethodKind.Unary;
234
+ readonly I: typeof PoolInfoRequest;
235
+ readonly O: typeof PoolInfoResponse;
236
+ readonly idempotency: MethodIdempotency.NoSideEffects;
237
+ readonly service: {
238
+ readonly typeName: "trading.v1.tradingService";
239
+ };
240
+ };
241
+ /**
242
+ * @generated from rpc trading.v1.tradingService.Swap5792
243
+ */
244
+ export declare const swap5792: {
245
+ readonly localName: "swap5792";
246
+ readonly name: "Swap5792";
247
+ readonly kind: MethodKind.Unary;
248
+ readonly I: typeof Swap5792Request;
249
+ readonly O: typeof Swap5792Response;
250
+ readonly idempotency: MethodIdempotency.NoSideEffects;
251
+ readonly service: {
252
+ readonly typeName: "trading.v1.tradingService";
253
+ };
254
+ };
255
+ /**
256
+ * @generated from rpc trading.v1.tradingService.GetLPPriceDiscrepancy
257
+ */
258
+ export declare const getLPPriceDiscrepancy: {
259
+ readonly localName: "getLPPriceDiscrepancy";
260
+ readonly name: "GetLPPriceDiscrepancy";
261
+ readonly kind: MethodKind.Unary;
262
+ readonly I: typeof GetLPPriceDiscrepancyRequest;
263
+ readonly O: typeof GetLPPriceDiscrepancyResponse;
264
+ readonly idempotency: MethodIdempotency.NoSideEffects;
265
+ readonly service: {
266
+ readonly typeName: "trading.v1.tradingService";
267
+ };
268
+ };
@@ -0,0 +1,272 @@
1
+ // @generated by protoc-gen-connect-query v1.4.1 with parameter "target=ts"
2
+ // @generated from file trading/v1/api.proto (package trading.v1, syntax proto3)
3
+ /* eslint-disable */
4
+ // @ts-nocheck
5
+ import { MethodIdempotency, MethodKind } from "@bufbuild/protobuf";
6
+ import { CheckApprovalLPRequest, CheckApprovalLPResponse, CheckApprovalRequest, CheckApprovalResponse, CheckWalletDelegationRequest, CheckWalletDelegationResponse, ClaimLPFeesRequest, ClaimLPFeesResponse, ClaimLPRewardsRequest, ClaimLPRewardsResponse, CreateLPPositionRequest, CreateLPPositionResponse, DecreaseLPPositionRequest, DecreaseLPPositionResponse, GetLPPriceDiscrepancyRequest, GetLPPriceDiscrepancyResponse, GetOrdersRequest, GetOrdersResponse, GetSwapsRequest, GetSwapsResponse, IncreaseLPPositionRequest, IncreaseLPPositionResponse, MigrateLpPositionRequest, MigrateLpPositionResponse, OrderRequest, OrderResponse, PoolInfoRequest, PoolInfoResponse, QuoteRequest, QuoteResponse, SendRequest, SendResponse, Swap5792Request, Swap5792Response, SwappableTokensRequest, SwappableTokensResponse, SwapRequest, SwapResponse } from "./api_pb.js";
7
+ /**
8
+ * @generated from rpc trading.v1.tradingService.Quote
9
+ */
10
+ export const quote = {
11
+ localName: "quote",
12
+ name: "Quote",
13
+ kind: MethodKind.Unary,
14
+ I: QuoteRequest,
15
+ O: QuoteResponse,
16
+ idempotency: MethodIdempotency.NoSideEffects,
17
+ service: {
18
+ typeName: "trading.v1.tradingService"
19
+ }
20
+ };
21
+ /**
22
+ * @generated from rpc trading.v1.tradingService.Swap
23
+ */
24
+ export const swap = {
25
+ localName: "swap",
26
+ name: "Swap",
27
+ kind: MethodKind.Unary,
28
+ I: SwapRequest,
29
+ O: SwapResponse,
30
+ idempotency: MethodIdempotency.NoSideEffects,
31
+ service: {
32
+ typeName: "trading.v1.tradingService"
33
+ }
34
+ };
35
+ /**
36
+ * @generated from rpc trading.v1.tradingService.CheckApproval
37
+ */
38
+ export const checkApproval = {
39
+ localName: "checkApproval",
40
+ name: "CheckApproval",
41
+ kind: MethodKind.Unary,
42
+ I: CheckApprovalRequest,
43
+ O: CheckApprovalResponse,
44
+ idempotency: MethodIdempotency.NoSideEffects,
45
+ service: {
46
+ typeName: "trading.v1.tradingService"
47
+ }
48
+ };
49
+ /**
50
+ * @generated from rpc trading.v1.tradingService.GetSwaps
51
+ */
52
+ export const getSwaps = {
53
+ localName: "getSwaps",
54
+ name: "GetSwaps",
55
+ kind: MethodKind.Unary,
56
+ I: GetSwapsRequest,
57
+ O: GetSwapsResponse,
58
+ idempotency: MethodIdempotency.NoSideEffects,
59
+ service: {
60
+ typeName: "trading.v1.tradingService"
61
+ }
62
+ };
63
+ /**
64
+ * @generated from rpc trading.v1.tradingService.SwappableTokens
65
+ */
66
+ export const swappableTokens = {
67
+ localName: "swappableTokens",
68
+ name: "SwappableTokens",
69
+ kind: MethodKind.Unary,
70
+ I: SwappableTokensRequest,
71
+ O: SwappableTokensResponse,
72
+ idempotency: MethodIdempotency.NoSideEffects,
73
+ service: {
74
+ typeName: "trading.v1.tradingService"
75
+ }
76
+ };
77
+ /**
78
+ * @generated from rpc trading.v1.tradingService.GetOrders
79
+ */
80
+ export const getOrders = {
81
+ localName: "getOrders",
82
+ name: "GetOrders",
83
+ kind: MethodKind.Unary,
84
+ I: GetOrdersRequest,
85
+ O: GetOrdersResponse,
86
+ idempotency: MethodIdempotency.NoSideEffects,
87
+ service: {
88
+ typeName: "trading.v1.tradingService"
89
+ }
90
+ };
91
+ /**
92
+ * @generated from rpc trading.v1.tradingService.Order
93
+ */
94
+ export const order = {
95
+ localName: "order",
96
+ name: "Order",
97
+ kind: MethodKind.Unary,
98
+ I: OrderRequest,
99
+ O: OrderResponse,
100
+ idempotency: MethodIdempotency.NoSideEffects,
101
+ service: {
102
+ typeName: "trading.v1.tradingService"
103
+ }
104
+ };
105
+ /**
106
+ * @generated from rpc trading.v1.tradingService.CreateLPPosition
107
+ */
108
+ export const createLPPosition = {
109
+ localName: "createLPPosition",
110
+ name: "CreateLPPosition",
111
+ kind: MethodKind.Unary,
112
+ I: CreateLPPositionRequest,
113
+ O: CreateLPPositionResponse,
114
+ idempotency: MethodIdempotency.NoSideEffects,
115
+ service: {
116
+ typeName: "trading.v1.tradingService"
117
+ }
118
+ };
119
+ /**
120
+ * @generated from rpc trading.v1.tradingService.IncreaseLPPosition
121
+ */
122
+ export const increaseLPPosition = {
123
+ localName: "increaseLPPosition",
124
+ name: "IncreaseLPPosition",
125
+ kind: MethodKind.Unary,
126
+ I: IncreaseLPPositionRequest,
127
+ O: IncreaseLPPositionResponse,
128
+ idempotency: MethodIdempotency.NoSideEffects,
129
+ service: {
130
+ typeName: "trading.v1.tradingService"
131
+ }
132
+ };
133
+ /**
134
+ * @generated from rpc trading.v1.tradingService.DecreaseLPPosition
135
+ */
136
+ export const decreaseLPPosition = {
137
+ localName: "decreaseLPPosition",
138
+ name: "DecreaseLPPosition",
139
+ kind: MethodKind.Unary,
140
+ I: DecreaseLPPositionRequest,
141
+ O: DecreaseLPPositionResponse,
142
+ idempotency: MethodIdempotency.NoSideEffects,
143
+ service: {
144
+ typeName: "trading.v1.tradingService"
145
+ }
146
+ };
147
+ /**
148
+ * @generated from rpc trading.v1.tradingService.ClaimLPFees
149
+ */
150
+ export const claimLPFees = {
151
+ localName: "claimLPFees",
152
+ name: "ClaimLPFees",
153
+ kind: MethodKind.Unary,
154
+ I: ClaimLPFeesRequest,
155
+ O: ClaimLPFeesResponse,
156
+ idempotency: MethodIdempotency.NoSideEffects,
157
+ service: {
158
+ typeName: "trading.v1.tradingService"
159
+ }
160
+ };
161
+ /**
162
+ * @generated from rpc trading.v1.tradingService.MigrateLpPosition
163
+ */
164
+ export const migrateLpPosition = {
165
+ localName: "migrateLpPosition",
166
+ name: "MigrateLpPosition",
167
+ kind: MethodKind.Unary,
168
+ I: MigrateLpPositionRequest,
169
+ O: MigrateLpPositionResponse,
170
+ idempotency: MethodIdempotency.NoSideEffects,
171
+ service: {
172
+ typeName: "trading.v1.tradingService"
173
+ }
174
+ };
175
+ /**
176
+ * @generated from rpc trading.v1.tradingService.CheckLPApproval
177
+ */
178
+ export const checkLPApproval = {
179
+ localName: "checkLPApproval",
180
+ name: "CheckLPApproval",
181
+ kind: MethodKind.Unary,
182
+ I: CheckApprovalLPRequest,
183
+ O: CheckApprovalLPResponse,
184
+ idempotency: MethodIdempotency.NoSideEffects,
185
+ service: {
186
+ typeName: "trading.v1.tradingService"
187
+ }
188
+ };
189
+ /**
190
+ * @generated from rpc trading.v1.tradingService.ClaimLPRewards
191
+ */
192
+ export const claimLPRewards = {
193
+ localName: "claimLPRewards",
194
+ name: "ClaimLPRewards",
195
+ kind: MethodKind.Unary,
196
+ I: ClaimLPRewardsRequest,
197
+ O: ClaimLPRewardsResponse,
198
+ idempotency: MethodIdempotency.NoSideEffects,
199
+ service: {
200
+ typeName: "trading.v1.tradingService"
201
+ }
202
+ };
203
+ /**
204
+ * @generated from rpc trading.v1.tradingService.Send
205
+ */
206
+ export const send = {
207
+ localName: "send",
208
+ name: "Send",
209
+ kind: MethodKind.Unary,
210
+ I: SendRequest,
211
+ O: SendResponse,
212
+ idempotency: MethodIdempotency.NoSideEffects,
213
+ service: {
214
+ typeName: "trading.v1.tradingService"
215
+ }
216
+ };
217
+ /**
218
+ * @generated from rpc trading.v1.tradingService.CheckWalletDelegation
219
+ */
220
+ export const checkWalletDelegation = {
221
+ localName: "checkWalletDelegation",
222
+ name: "CheckWalletDelegation",
223
+ kind: MethodKind.Unary,
224
+ I: CheckWalletDelegationRequest,
225
+ O: CheckWalletDelegationResponse,
226
+ idempotency: MethodIdempotency.NoSideEffects,
227
+ service: {
228
+ typeName: "trading.v1.tradingService"
229
+ }
230
+ };
231
+ /**
232
+ * @generated from rpc trading.v1.tradingService.PoolInfo
233
+ */
234
+ export const poolInfo = {
235
+ localName: "poolInfo",
236
+ name: "PoolInfo",
237
+ kind: MethodKind.Unary,
238
+ I: PoolInfoRequest,
239
+ O: PoolInfoResponse,
240
+ idempotency: MethodIdempotency.NoSideEffects,
241
+ service: {
242
+ typeName: "trading.v1.tradingService"
243
+ }
244
+ };
245
+ /**
246
+ * @generated from rpc trading.v1.tradingService.Swap5792
247
+ */
248
+ export const swap5792 = {
249
+ localName: "swap5792",
250
+ name: "Swap5792",
251
+ kind: MethodKind.Unary,
252
+ I: Swap5792Request,
253
+ O: Swap5792Response,
254
+ idempotency: MethodIdempotency.NoSideEffects,
255
+ service: {
256
+ typeName: "trading.v1.tradingService"
257
+ }
258
+ };
259
+ /**
260
+ * @generated from rpc trading.v1.tradingService.GetLPPriceDiscrepancy
261
+ */
262
+ export const getLPPriceDiscrepancy = {
263
+ localName: "getLPPriceDiscrepancy",
264
+ name: "GetLPPriceDiscrepancy",
265
+ kind: MethodKind.Unary,
266
+ I: GetLPPriceDiscrepancyRequest,
267
+ O: GetLPPriceDiscrepancyResponse,
268
+ idempotency: MethodIdempotency.NoSideEffects,
269
+ service: {
270
+ typeName: "trading.v1.tradingService"
271
+ }
272
+ };