@uniswap/client-trading 0.1.1 → 0.1.3
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 +77 -21
- package/dist/trading/v1/api-tradingService_connectquery.js +78 -22
- package/dist/trading/v1/api_connect.d.ts +56 -16
- package/dist/trading/v1/api_connect.js +57 -17
- package/dist/trading/v1/api_pb.d.ts +965 -182
- package/dist/trading/v1/api_pb.js +1062 -198
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MethodIdempotency, MethodKind } from "@bufbuild/protobuf";
|
|
2
|
-
import { CheckApprovalLPRequest, CheckApprovalLPResponse, CheckApprovalRequest, CheckApprovalResponse, CheckWalletDelegationRequest, CheckWalletDelegationResponse, ClaimLPFeesRequest, ClaimLPFeesResponse,
|
|
2
|
+
import { CheckApprovalLPRequest, CheckApprovalLPResponse, CheckApprovalRequest, CheckApprovalResponse, CheckWalletDelegationRequest, CheckWalletDelegationResponse, ClaimLPFeesRequest, ClaimLPFeesResponse, CreateLPPositionRequest, CreateLPPositionResponse, CreatePlanRequest, DecreaseLPPositionRequest, DecreaseLPPositionResponse, DocsRequest, DocsResponse, Encode7702Request, Encode7702Response, GetLPPriceDiscrepancyRequest, GetLPPriceDiscrepancyResponse, GetOrdersRequest, GetOrdersResponse, GetPlanRequest, GetPlansRequest, GetPlansResponse, GetSwapsRequest, GetSwapsResponse, IncreaseLPPositionRequest, IncreaseLPPositionResponse, MigrateLpPositionRequest, MigrateLpPositionResponse, OrderRequest, OrderResponse, PlanResponse, PoolInfoRequest, PoolInfoResponse, QuoteRequest, QuoteResponse, SendRequest, SendResponse, 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
|
*/
|
|
@@ -28,6 +28,20 @@ export declare const swap: {
|
|
|
28
28
|
readonly typeName: "trading.v1.tradingService";
|
|
29
29
|
};
|
|
30
30
|
};
|
|
31
|
+
/**
|
|
32
|
+
* @generated from rpc trading.v1.tradingService.Swap7702
|
|
33
|
+
*/
|
|
34
|
+
export declare const swap7702: {
|
|
35
|
+
readonly localName: "swap7702";
|
|
36
|
+
readonly name: "Swap7702";
|
|
37
|
+
readonly kind: MethodKind.Unary;
|
|
38
|
+
readonly I: typeof Swap7702Request;
|
|
39
|
+
readonly O: typeof Swap7702Response;
|
|
40
|
+
readonly idempotency: MethodIdempotency.NoSideEffects;
|
|
41
|
+
readonly service: {
|
|
42
|
+
readonly typeName: "trading.v1.tradingService";
|
|
43
|
+
};
|
|
44
|
+
};
|
|
31
45
|
/**
|
|
32
46
|
* @generated from rpc trading.v1.tradingService.CheckApproval
|
|
33
47
|
*/
|
|
@@ -182,20 +196,6 @@ export declare const checkLPApproval: {
|
|
|
182
196
|
readonly typeName: "trading.v1.tradingService";
|
|
183
197
|
};
|
|
184
198
|
};
|
|
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
199
|
/**
|
|
200
200
|
* @generated from rpc trading.v1.tradingService.Send
|
|
201
201
|
*/
|
|
@@ -281,14 +281,70 @@ export declare const encode7702: {
|
|
|
281
281
|
};
|
|
282
282
|
};
|
|
283
283
|
/**
|
|
284
|
-
* @generated from rpc trading.v1.tradingService.
|
|
284
|
+
* @generated from rpc trading.v1.tradingService.CreatePlan
|
|
285
|
+
*/
|
|
286
|
+
export declare const createPlan: {
|
|
287
|
+
readonly localName: "createPlan";
|
|
288
|
+
readonly name: "CreatePlan";
|
|
289
|
+
readonly kind: MethodKind.Unary;
|
|
290
|
+
readonly I: typeof CreatePlanRequest;
|
|
291
|
+
readonly O: typeof PlanResponse;
|
|
292
|
+
readonly idempotency: MethodIdempotency.NoSideEffects;
|
|
293
|
+
readonly service: {
|
|
294
|
+
readonly typeName: "trading.v1.tradingService";
|
|
295
|
+
};
|
|
296
|
+
};
|
|
297
|
+
/**
|
|
298
|
+
* @generated from rpc trading.v1.tradingService.GetPlan
|
|
299
|
+
*/
|
|
300
|
+
export declare const getPlan: {
|
|
301
|
+
readonly localName: "getPlan";
|
|
302
|
+
readonly name: "GetPlan";
|
|
303
|
+
readonly kind: MethodKind.Unary;
|
|
304
|
+
readonly I: typeof GetPlanRequest;
|
|
305
|
+
readonly O: typeof PlanResponse;
|
|
306
|
+
readonly idempotency: MethodIdempotency.NoSideEffects;
|
|
307
|
+
readonly service: {
|
|
308
|
+
readonly typeName: "trading.v1.tradingService";
|
|
309
|
+
};
|
|
310
|
+
};
|
|
311
|
+
/**
|
|
312
|
+
* @generated from rpc trading.v1.tradingService.UpdatePlan
|
|
313
|
+
*/
|
|
314
|
+
export declare const updatePlan: {
|
|
315
|
+
readonly localName: "updatePlan";
|
|
316
|
+
readonly name: "UpdatePlan";
|
|
317
|
+
readonly kind: MethodKind.Unary;
|
|
318
|
+
readonly I: typeof UpdatePlanRequest;
|
|
319
|
+
readonly O: typeof PlanResponse;
|
|
320
|
+
readonly idempotency: MethodIdempotency.Idempotent;
|
|
321
|
+
readonly service: {
|
|
322
|
+
readonly typeName: "trading.v1.tradingService";
|
|
323
|
+
};
|
|
324
|
+
};
|
|
325
|
+
/**
|
|
326
|
+
* @generated from rpc trading.v1.tradingService.GetDocs
|
|
327
|
+
*/
|
|
328
|
+
export declare const getDocs: {
|
|
329
|
+
readonly localName: "getDocs";
|
|
330
|
+
readonly name: "GetDocs";
|
|
331
|
+
readonly kind: MethodKind.Unary;
|
|
332
|
+
readonly I: typeof DocsRequest;
|
|
333
|
+
readonly O: typeof DocsResponse;
|
|
334
|
+
readonly idempotency: MethodIdempotency.NoSideEffects;
|
|
335
|
+
readonly service: {
|
|
336
|
+
readonly typeName: "trading.v1.tradingService";
|
|
337
|
+
};
|
|
338
|
+
};
|
|
339
|
+
/**
|
|
340
|
+
* @generated from rpc trading.v1.tradingService.GetPlans
|
|
285
341
|
*/
|
|
286
|
-
export declare const
|
|
287
|
-
readonly localName: "
|
|
288
|
-
readonly name: "
|
|
342
|
+
export declare const getPlans: {
|
|
343
|
+
readonly localName: "getPlans";
|
|
344
|
+
readonly name: "GetPlans";
|
|
289
345
|
readonly kind: MethodKind.Unary;
|
|
290
|
-
readonly I: typeof
|
|
291
|
-
readonly O: typeof
|
|
346
|
+
readonly I: typeof GetPlansRequest;
|
|
347
|
+
readonly O: typeof GetPlansResponse;
|
|
292
348
|
readonly idempotency: MethodIdempotency.NoSideEffects;
|
|
293
349
|
readonly service: {
|
|
294
350
|
readonly typeName: "trading.v1.tradingService";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
// @generated by protoc-gen-connect-query v1.4.
|
|
1
|
+
// @generated by protoc-gen-connect-query v1.4.2 with parameter "target=ts"
|
|
2
2
|
// @generated from file trading/v1/api.proto (package trading.v1, syntax proto3)
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
import { MethodIdempotency, MethodKind } from "@bufbuild/protobuf";
|
|
6
|
-
import { CheckApprovalLPRequest, CheckApprovalLPResponse, CheckApprovalRequest, CheckApprovalResponse, CheckWalletDelegationRequest, CheckWalletDelegationResponse, ClaimLPFeesRequest, ClaimLPFeesResponse,
|
|
6
|
+
import { CheckApprovalLPRequest, CheckApprovalLPResponse, CheckApprovalRequest, CheckApprovalResponse, CheckWalletDelegationRequest, CheckWalletDelegationResponse, ClaimLPFeesRequest, ClaimLPFeesResponse, CreateLPPositionRequest, CreateLPPositionResponse, CreatePlanRequest, DecreaseLPPositionRequest, DecreaseLPPositionResponse, DocsRequest, DocsResponse, Encode7702Request, Encode7702Response, GetLPPriceDiscrepancyRequest, GetLPPriceDiscrepancyResponse, GetOrdersRequest, GetOrdersResponse, GetPlanRequest, GetPlansRequest, GetPlansResponse, GetSwapsRequest, GetSwapsResponse, IncreaseLPPositionRequest, IncreaseLPPositionResponse, MigrateLpPositionRequest, MigrateLpPositionResponse, OrderRequest, OrderResponse, PlanResponse, PoolInfoRequest, PoolInfoResponse, QuoteRequest, QuoteResponse, SendRequest, SendResponse, 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
|
*/
|
|
@@ -32,6 +32,20 @@ export const swap = {
|
|
|
32
32
|
typeName: "trading.v1.tradingService"
|
|
33
33
|
}
|
|
34
34
|
};
|
|
35
|
+
/**
|
|
36
|
+
* @generated from rpc trading.v1.tradingService.Swap7702
|
|
37
|
+
*/
|
|
38
|
+
export const swap7702 = {
|
|
39
|
+
localName: "swap7702",
|
|
40
|
+
name: "Swap7702",
|
|
41
|
+
kind: MethodKind.Unary,
|
|
42
|
+
I: Swap7702Request,
|
|
43
|
+
O: Swap7702Response,
|
|
44
|
+
idempotency: MethodIdempotency.NoSideEffects,
|
|
45
|
+
service: {
|
|
46
|
+
typeName: "trading.v1.tradingService"
|
|
47
|
+
}
|
|
48
|
+
};
|
|
35
49
|
/**
|
|
36
50
|
* @generated from rpc trading.v1.tradingService.CheckApproval
|
|
37
51
|
*/
|
|
@@ -186,20 +200,6 @@ export const checkLPApproval = {
|
|
|
186
200
|
typeName: "trading.v1.tradingService"
|
|
187
201
|
}
|
|
188
202
|
};
|
|
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
203
|
/**
|
|
204
204
|
* @generated from rpc trading.v1.tradingService.Send
|
|
205
205
|
*/
|
|
@@ -285,14 +285,70 @@ export const encode7702 = {
|
|
|
285
285
|
}
|
|
286
286
|
};
|
|
287
287
|
/**
|
|
288
|
-
* @generated from rpc trading.v1.tradingService.
|
|
288
|
+
* @generated from rpc trading.v1.tradingService.CreatePlan
|
|
289
|
+
*/
|
|
290
|
+
export const createPlan = {
|
|
291
|
+
localName: "createPlan",
|
|
292
|
+
name: "CreatePlan",
|
|
293
|
+
kind: MethodKind.Unary,
|
|
294
|
+
I: CreatePlanRequest,
|
|
295
|
+
O: PlanResponse,
|
|
296
|
+
idempotency: MethodIdempotency.NoSideEffects,
|
|
297
|
+
service: {
|
|
298
|
+
typeName: "trading.v1.tradingService"
|
|
299
|
+
}
|
|
300
|
+
};
|
|
301
|
+
/**
|
|
302
|
+
* @generated from rpc trading.v1.tradingService.GetPlan
|
|
303
|
+
*/
|
|
304
|
+
export const getPlan = {
|
|
305
|
+
localName: "getPlan",
|
|
306
|
+
name: "GetPlan",
|
|
307
|
+
kind: MethodKind.Unary,
|
|
308
|
+
I: GetPlanRequest,
|
|
309
|
+
O: PlanResponse,
|
|
310
|
+
idempotency: MethodIdempotency.NoSideEffects,
|
|
311
|
+
service: {
|
|
312
|
+
typeName: "trading.v1.tradingService"
|
|
313
|
+
}
|
|
314
|
+
};
|
|
315
|
+
/**
|
|
316
|
+
* @generated from rpc trading.v1.tradingService.UpdatePlan
|
|
317
|
+
*/
|
|
318
|
+
export const updatePlan = {
|
|
319
|
+
localName: "updatePlan",
|
|
320
|
+
name: "UpdatePlan",
|
|
321
|
+
kind: MethodKind.Unary,
|
|
322
|
+
I: UpdatePlanRequest,
|
|
323
|
+
O: PlanResponse,
|
|
324
|
+
idempotency: MethodIdempotency.Idempotent,
|
|
325
|
+
service: {
|
|
326
|
+
typeName: "trading.v1.tradingService"
|
|
327
|
+
}
|
|
328
|
+
};
|
|
329
|
+
/**
|
|
330
|
+
* @generated from rpc trading.v1.tradingService.GetDocs
|
|
331
|
+
*/
|
|
332
|
+
export const getDocs = {
|
|
333
|
+
localName: "getDocs",
|
|
334
|
+
name: "GetDocs",
|
|
335
|
+
kind: MethodKind.Unary,
|
|
336
|
+
I: DocsRequest,
|
|
337
|
+
O: DocsResponse,
|
|
338
|
+
idempotency: MethodIdempotency.NoSideEffects,
|
|
339
|
+
service: {
|
|
340
|
+
typeName: "trading.v1.tradingService"
|
|
341
|
+
}
|
|
342
|
+
};
|
|
343
|
+
/**
|
|
344
|
+
* @generated from rpc trading.v1.tradingService.GetPlans
|
|
289
345
|
*/
|
|
290
|
-
export const
|
|
291
|
-
localName: "
|
|
292
|
-
name: "
|
|
346
|
+
export const getPlans = {
|
|
347
|
+
localName: "getPlans",
|
|
348
|
+
name: "GetPlans",
|
|
293
349
|
kind: MethodKind.Unary,
|
|
294
|
-
I:
|
|
295
|
-
O:
|
|
350
|
+
I: GetPlansRequest,
|
|
351
|
+
O: GetPlansResponse,
|
|
296
352
|
idempotency: MethodIdempotency.NoSideEffects,
|
|
297
353
|
service: {
|
|
298
354
|
typeName: "trading.v1.tradingService"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CheckApprovalLPRequest, CheckApprovalLPResponse, CheckApprovalRequest, CheckApprovalResponse, CheckWalletDelegationRequest, CheckWalletDelegationResponse, ClaimLPFeesRequest, ClaimLPFeesResponse,
|
|
1
|
+
import { CheckApprovalLPRequest, CheckApprovalLPResponse, CheckApprovalRequest, CheckApprovalResponse, CheckWalletDelegationRequest, CheckWalletDelegationResponse, ClaimLPFeesRequest, ClaimLPFeesResponse, CreateLPPositionRequest, CreateLPPositionResponse, CreatePlanRequest, DecreaseLPPositionRequest, DecreaseLPPositionResponse, DocsRequest, DocsResponse, Encode7702Request, Encode7702Response, GetLPPriceDiscrepancyRequest, GetLPPriceDiscrepancyResponse, GetOrdersRequest, GetOrdersResponse, GetPlanRequest, GetPlansRequest, GetPlansResponse, GetSwapsRequest, GetSwapsResponse, IncreaseLPPositionRequest, IncreaseLPPositionResponse, MigrateLpPositionRequest, MigrateLpPositionResponse, OrderRequest, OrderResponse, PlanResponse, PoolInfoRequest, PoolInfoResponse, QuoteRequest, QuoteResponse, SendRequest, SendResponse, 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
|
|
@@ -26,6 +26,16 @@ export declare const tradingService: {
|
|
|
26
26
|
readonly kind: MethodKind.Unary;
|
|
27
27
|
readonly idempotency: MethodIdempotency.NoSideEffects;
|
|
28
28
|
};
|
|
29
|
+
/**
|
|
30
|
+
* @generated from rpc trading.v1.tradingService.Swap7702
|
|
31
|
+
*/
|
|
32
|
+
readonly swap7702: {
|
|
33
|
+
readonly name: "Swap7702";
|
|
34
|
+
readonly I: typeof Swap7702Request;
|
|
35
|
+
readonly O: typeof Swap7702Response;
|
|
36
|
+
readonly kind: MethodKind.Unary;
|
|
37
|
+
readonly idempotency: MethodIdempotency.NoSideEffects;
|
|
38
|
+
};
|
|
29
39
|
/**
|
|
30
40
|
* @generated from rpc trading.v1.tradingService.CheckApproval
|
|
31
41
|
*/
|
|
@@ -136,16 +146,6 @@ export declare const tradingService: {
|
|
|
136
146
|
readonly kind: MethodKind.Unary;
|
|
137
147
|
readonly idempotency: MethodIdempotency.NoSideEffects;
|
|
138
148
|
};
|
|
139
|
-
/**
|
|
140
|
-
* @generated from rpc trading.v1.tradingService.ClaimLPRewards
|
|
141
|
-
*/
|
|
142
|
-
readonly claimLPRewards: {
|
|
143
|
-
readonly name: "ClaimLPRewards";
|
|
144
|
-
readonly I: typeof ClaimLPRewardsRequest;
|
|
145
|
-
readonly O: typeof ClaimLPRewardsResponse;
|
|
146
|
-
readonly kind: MethodKind.Unary;
|
|
147
|
-
readonly idempotency: MethodIdempotency.NoSideEffects;
|
|
148
|
-
};
|
|
149
149
|
/**
|
|
150
150
|
* @generated from rpc trading.v1.tradingService.Send
|
|
151
151
|
*/
|
|
@@ -207,12 +207,52 @@ export declare const tradingService: {
|
|
|
207
207
|
readonly idempotency: MethodIdempotency.NoSideEffects;
|
|
208
208
|
};
|
|
209
209
|
/**
|
|
210
|
-
* @generated from rpc trading.v1.tradingService.
|
|
210
|
+
* @generated from rpc trading.v1.tradingService.CreatePlan
|
|
211
|
+
*/
|
|
212
|
+
readonly createPlan: {
|
|
213
|
+
readonly name: "CreatePlan";
|
|
214
|
+
readonly I: typeof CreatePlanRequest;
|
|
215
|
+
readonly O: typeof PlanResponse;
|
|
216
|
+
readonly kind: MethodKind.Unary;
|
|
217
|
+
readonly idempotency: MethodIdempotency.NoSideEffects;
|
|
218
|
+
};
|
|
219
|
+
/**
|
|
220
|
+
* @generated from rpc trading.v1.tradingService.GetPlan
|
|
221
|
+
*/
|
|
222
|
+
readonly getPlan: {
|
|
223
|
+
readonly name: "GetPlan";
|
|
224
|
+
readonly I: typeof GetPlanRequest;
|
|
225
|
+
readonly O: typeof PlanResponse;
|
|
226
|
+
readonly kind: MethodKind.Unary;
|
|
227
|
+
readonly idempotency: MethodIdempotency.NoSideEffects;
|
|
228
|
+
};
|
|
229
|
+
/**
|
|
230
|
+
* @generated from rpc trading.v1.tradingService.UpdatePlan
|
|
231
|
+
*/
|
|
232
|
+
readonly updatePlan: {
|
|
233
|
+
readonly name: "UpdatePlan";
|
|
234
|
+
readonly I: typeof UpdatePlanRequest;
|
|
235
|
+
readonly O: typeof PlanResponse;
|
|
236
|
+
readonly kind: MethodKind.Unary;
|
|
237
|
+
readonly idempotency: MethodIdempotency.Idempotent;
|
|
238
|
+
};
|
|
239
|
+
/**
|
|
240
|
+
* @generated from rpc trading.v1.tradingService.GetDocs
|
|
241
|
+
*/
|
|
242
|
+
readonly getDocs: {
|
|
243
|
+
readonly name: "GetDocs";
|
|
244
|
+
readonly I: typeof DocsRequest;
|
|
245
|
+
readonly O: typeof DocsResponse;
|
|
246
|
+
readonly kind: MethodKind.Unary;
|
|
247
|
+
readonly idempotency: MethodIdempotency.NoSideEffects;
|
|
248
|
+
};
|
|
249
|
+
/**
|
|
250
|
+
* @generated from rpc trading.v1.tradingService.GetPlans
|
|
211
251
|
*/
|
|
212
|
-
readonly
|
|
213
|
-
readonly name: "
|
|
214
|
-
readonly I: typeof
|
|
215
|
-
readonly O: typeof
|
|
252
|
+
readonly getPlans: {
|
|
253
|
+
readonly name: "GetPlans";
|
|
254
|
+
readonly I: typeof GetPlansRequest;
|
|
255
|
+
readonly O: typeof GetPlansResponse;
|
|
216
256
|
readonly kind: MethodKind.Unary;
|
|
217
257
|
readonly idempotency: MethodIdempotency.NoSideEffects;
|
|
218
258
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
// @generated by protoc-gen-connect-es v1.
|
|
1
|
+
// @generated by protoc-gen-connect-es v1.7.0 with parameter "target=ts"
|
|
2
2
|
// @generated from file trading/v1/api.proto (package trading.v1, syntax proto3)
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
|
-
import { CheckApprovalLPRequest, CheckApprovalLPResponse, CheckApprovalRequest, CheckApprovalResponse, CheckWalletDelegationRequest, CheckWalletDelegationResponse, ClaimLPFeesRequest, ClaimLPFeesResponse,
|
|
5
|
+
import { CheckApprovalLPRequest, CheckApprovalLPResponse, CheckApprovalRequest, CheckApprovalResponse, CheckWalletDelegationRequest, CheckWalletDelegationResponse, ClaimLPFeesRequest, ClaimLPFeesResponse, CreateLPPositionRequest, CreateLPPositionResponse, CreatePlanRequest, DecreaseLPPositionRequest, DecreaseLPPositionResponse, DocsRequest, DocsResponse, Encode7702Request, Encode7702Response, GetLPPriceDiscrepancyRequest, GetLPPriceDiscrepancyResponse, GetOrdersRequest, GetOrdersResponse, GetPlanRequest, GetPlansRequest, GetPlansResponse, GetSwapsRequest, GetSwapsResponse, IncreaseLPPositionRequest, IncreaseLPPositionResponse, MigrateLpPositionRequest, MigrateLpPositionResponse, OrderRequest, OrderResponse, PlanResponse, PoolInfoRequest, PoolInfoResponse, QuoteRequest, QuoteResponse, SendRequest, SendResponse, 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
|
|
@@ -30,6 +30,16 @@ export const tradingService = {
|
|
|
30
30
|
kind: MethodKind.Unary,
|
|
31
31
|
idempotency: MethodIdempotency.NoSideEffects,
|
|
32
32
|
},
|
|
33
|
+
/**
|
|
34
|
+
* @generated from rpc trading.v1.tradingService.Swap7702
|
|
35
|
+
*/
|
|
36
|
+
swap7702: {
|
|
37
|
+
name: "Swap7702",
|
|
38
|
+
I: Swap7702Request,
|
|
39
|
+
O: Swap7702Response,
|
|
40
|
+
kind: MethodKind.Unary,
|
|
41
|
+
idempotency: MethodIdempotency.NoSideEffects,
|
|
42
|
+
},
|
|
33
43
|
/**
|
|
34
44
|
* @generated from rpc trading.v1.tradingService.CheckApproval
|
|
35
45
|
*/
|
|
@@ -140,16 +150,6 @@ export const tradingService = {
|
|
|
140
150
|
kind: MethodKind.Unary,
|
|
141
151
|
idempotency: MethodIdempotency.NoSideEffects,
|
|
142
152
|
},
|
|
143
|
-
/**
|
|
144
|
-
* @generated from rpc trading.v1.tradingService.ClaimLPRewards
|
|
145
|
-
*/
|
|
146
|
-
claimLPRewards: {
|
|
147
|
-
name: "ClaimLPRewards",
|
|
148
|
-
I: ClaimLPRewardsRequest,
|
|
149
|
-
O: ClaimLPRewardsResponse,
|
|
150
|
-
kind: MethodKind.Unary,
|
|
151
|
-
idempotency: MethodIdempotency.NoSideEffects,
|
|
152
|
-
},
|
|
153
153
|
/**
|
|
154
154
|
* @generated from rpc trading.v1.tradingService.Send
|
|
155
155
|
*/
|
|
@@ -211,12 +211,52 @@ export const tradingService = {
|
|
|
211
211
|
idempotency: MethodIdempotency.NoSideEffects,
|
|
212
212
|
},
|
|
213
213
|
/**
|
|
214
|
-
* @generated from rpc trading.v1.tradingService.
|
|
214
|
+
* @generated from rpc trading.v1.tradingService.CreatePlan
|
|
215
|
+
*/
|
|
216
|
+
createPlan: {
|
|
217
|
+
name: "CreatePlan",
|
|
218
|
+
I: CreatePlanRequest,
|
|
219
|
+
O: PlanResponse,
|
|
220
|
+
kind: MethodKind.Unary,
|
|
221
|
+
idempotency: MethodIdempotency.NoSideEffects,
|
|
222
|
+
},
|
|
223
|
+
/**
|
|
224
|
+
* @generated from rpc trading.v1.tradingService.GetPlan
|
|
225
|
+
*/
|
|
226
|
+
getPlan: {
|
|
227
|
+
name: "GetPlan",
|
|
228
|
+
I: GetPlanRequest,
|
|
229
|
+
O: PlanResponse,
|
|
230
|
+
kind: MethodKind.Unary,
|
|
231
|
+
idempotency: MethodIdempotency.NoSideEffects,
|
|
232
|
+
},
|
|
233
|
+
/**
|
|
234
|
+
* @generated from rpc trading.v1.tradingService.UpdatePlan
|
|
235
|
+
*/
|
|
236
|
+
updatePlan: {
|
|
237
|
+
name: "UpdatePlan",
|
|
238
|
+
I: UpdatePlanRequest,
|
|
239
|
+
O: PlanResponse,
|
|
240
|
+
kind: MethodKind.Unary,
|
|
241
|
+
idempotency: MethodIdempotency.Idempotent,
|
|
242
|
+
},
|
|
243
|
+
/**
|
|
244
|
+
* @generated from rpc trading.v1.tradingService.GetDocs
|
|
245
|
+
*/
|
|
246
|
+
getDocs: {
|
|
247
|
+
name: "GetDocs",
|
|
248
|
+
I: DocsRequest,
|
|
249
|
+
O: DocsResponse,
|
|
250
|
+
kind: MethodKind.Unary,
|
|
251
|
+
idempotency: MethodIdempotency.NoSideEffects,
|
|
252
|
+
},
|
|
253
|
+
/**
|
|
254
|
+
* @generated from rpc trading.v1.tradingService.GetPlans
|
|
215
255
|
*/
|
|
216
|
-
|
|
217
|
-
name: "
|
|
218
|
-
I:
|
|
219
|
-
O:
|
|
256
|
+
getPlans: {
|
|
257
|
+
name: "GetPlans",
|
|
258
|
+
I: GetPlansRequest,
|
|
259
|
+
O: GetPlansResponse,
|
|
220
260
|
kind: MethodKind.Unary,
|
|
221
261
|
idempotency: MethodIdempotency.NoSideEffects,
|
|
222
262
|
},
|