@uniswap/client-trading 0.1.2 → 0.1.4

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 { CheckApprovalLPRequest, CheckApprovalLPResponse, CheckApprovalRequest, CheckApprovalResponse, CheckWalletDelegationRequest, CheckWalletDelegationResponse, ClaimLPFeesRequest, ClaimLPFeesResponse, ClaimLPRewardsRequest, ClaimLPRewardsResponse, CreateLPPositionRequest, CreateLPPositionResponse, CreatePlanRequest, CreatePlanResponse, DecreaseLPPositionRequest, DecreaseLPPositionResponse, DocsRequest, DocsResponse, Encode7702Request, Encode7702Response, GetLPPriceDiscrepancyRequest, GetLPPriceDiscrepancyResponse, GetOrdersRequest, GetOrdersResponse, GetSwapsRequest, GetSwapsResponse, IncreaseLPPositionRequest, IncreaseLPPositionResponse, MigrateLpPositionRequest, MigrateLpPositionResponse, MigrateV2ToV3LPPositionRequest, MigrateV2ToV3LPPositionResponse, OrderRequest, OrderResponse, PoolInfoRequest, PoolInfoResponse, QuoteRequest, QuoteResponse, SendRequest, SendResponse, Swap5792Request, Swap5792Response, Swap7702Request, Swap7702Response, SwappableTokensRequest, SwappableTokensResponse, SwapRequest, SwapResponse } from "./api_pb.js";
2
+ import { CheckApprovalRequest, CheckApprovalResponse, CheckWalletDelegationRequest, CheckWalletDelegationResponse, CreatePlanRequest, DocsRequest, DocsResponse, Encode7702Request, Encode7702Response, GetOrdersRequest, GetOrdersResponse, GetPlanRequest, GetPlansRequest, GetPlansResponse, GetSwapsRequest, GetSwapsResponse, OrderRequest, OrderResponse, PlanResponse, 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
  */
@@ -112,104 +112,6 @@ export declare const order: {
112
112
  readonly typeName: "trading.v1.tradingService";
113
113
  };
114
114
  };
115
- /**
116
- * @generated from rpc trading.v1.tradingService.CreateLPPosition
117
- */
118
- export declare const createLPPosition: {
119
- readonly localName: "createLPPosition";
120
- readonly name: "CreateLPPosition";
121
- readonly kind: MethodKind.Unary;
122
- readonly I: typeof CreateLPPositionRequest;
123
- readonly O: typeof CreateLPPositionResponse;
124
- readonly idempotency: MethodIdempotency.NoSideEffects;
125
- readonly service: {
126
- readonly typeName: "trading.v1.tradingService";
127
- };
128
- };
129
- /**
130
- * @generated from rpc trading.v1.tradingService.IncreaseLPPosition
131
- */
132
- export declare const increaseLPPosition: {
133
- readonly localName: "increaseLPPosition";
134
- readonly name: "IncreaseLPPosition";
135
- readonly kind: MethodKind.Unary;
136
- readonly I: typeof IncreaseLPPositionRequest;
137
- readonly O: typeof IncreaseLPPositionResponse;
138
- readonly idempotency: MethodIdempotency.NoSideEffects;
139
- readonly service: {
140
- readonly typeName: "trading.v1.tradingService";
141
- };
142
- };
143
- /**
144
- * @generated from rpc trading.v1.tradingService.DecreaseLPPosition
145
- */
146
- export declare const decreaseLPPosition: {
147
- readonly localName: "decreaseLPPosition";
148
- readonly name: "DecreaseLPPosition";
149
- readonly kind: MethodKind.Unary;
150
- readonly I: typeof DecreaseLPPositionRequest;
151
- readonly O: typeof DecreaseLPPositionResponse;
152
- readonly idempotency: MethodIdempotency.NoSideEffects;
153
- readonly service: {
154
- readonly typeName: "trading.v1.tradingService";
155
- };
156
- };
157
- /**
158
- * @generated from rpc trading.v1.tradingService.ClaimLPFees
159
- */
160
- export declare const claimLPFees: {
161
- readonly localName: "claimLPFees";
162
- readonly name: "ClaimLPFees";
163
- readonly kind: MethodKind.Unary;
164
- readonly I: typeof ClaimLPFeesRequest;
165
- readonly O: typeof ClaimLPFeesResponse;
166
- readonly idempotency: MethodIdempotency.NoSideEffects;
167
- readonly service: {
168
- readonly typeName: "trading.v1.tradingService";
169
- };
170
- };
171
- /**
172
- * @generated from rpc trading.v1.tradingService.MigrateLpPosition
173
- */
174
- export declare const migrateLpPosition: {
175
- readonly localName: "migrateLpPosition";
176
- readonly name: "MigrateLpPosition";
177
- readonly kind: MethodKind.Unary;
178
- readonly I: typeof MigrateLpPositionRequest;
179
- readonly O: typeof MigrateLpPositionResponse;
180
- readonly idempotency: MethodIdempotency.NoSideEffects;
181
- readonly service: {
182
- readonly typeName: "trading.v1.tradingService";
183
- };
184
- };
185
- /**
186
- * @generated from rpc trading.v1.tradingService.CheckLPApproval
187
- */
188
- export declare const checkLPApproval: {
189
- readonly localName: "checkLPApproval";
190
- readonly name: "CheckLPApproval";
191
- readonly kind: MethodKind.Unary;
192
- readonly I: typeof CheckApprovalLPRequest;
193
- readonly O: typeof CheckApprovalLPResponse;
194
- readonly idempotency: MethodIdempotency.NoSideEffects;
195
- readonly service: {
196
- readonly typeName: "trading.v1.tradingService";
197
- };
198
- };
199
- /**
200
- * @generated from rpc trading.v1.tradingService.ClaimLPRewards
201
- */
202
- export declare const claimLPRewards: {
203
- readonly localName: "claimLPRewards";
204
- readonly name: "ClaimLPRewards";
205
- readonly kind: MethodKind.Unary;
206
- readonly I: typeof ClaimLPRewardsRequest;
207
- readonly O: typeof ClaimLPRewardsResponse;
208
- readonly idempotency: MethodIdempotency.NoSideEffects;
209
- readonly service: {
210
- readonly typeName: "trading.v1.tradingService";
211
- };
212
- };
213
115
  /**
214
116
  * @generated from rpc trading.v1.tradingService.Send
215
117
  */
@@ -238,20 +140,6 @@ export declare const checkWalletDelegation: {
238
140
  readonly typeName: "trading.v1.tradingService";
239
141
  };
240
142
  };
241
- /**
242
- * @generated from rpc trading.v1.tradingService.PoolInfo
243
- */
244
- export declare const poolInfo: {
245
- readonly localName: "poolInfo";
246
- readonly name: "PoolInfo";
247
- readonly kind: MethodKind.Unary;
248
- readonly I: typeof PoolInfoRequest;
249
- readonly O: typeof PoolInfoResponse;
250
- readonly idempotency: MethodIdempotency.NoSideEffects;
251
- readonly service: {
252
- readonly typeName: "trading.v1.tradingService";
253
- };
254
- };
255
143
  /**
256
144
  * @generated from rpc trading.v1.tradingService.Swap5792
257
145
  */
@@ -267,57 +155,57 @@ export declare const swap5792: {
267
155
  };
268
156
  };
269
157
  /**
270
- * @generated from rpc trading.v1.tradingService.GetLPPriceDiscrepancy
158
+ * @generated from rpc trading.v1.tradingService.Encode7702
271
159
  */
272
- export declare const getLPPriceDiscrepancy: {
273
- readonly localName: "getLPPriceDiscrepancy";
274
- readonly name: "GetLPPriceDiscrepancy";
160
+ export declare const encode7702: {
161
+ readonly localName: "encode7702";
162
+ readonly name: "Encode7702";
275
163
  readonly kind: MethodKind.Unary;
276
- readonly I: typeof GetLPPriceDiscrepancyRequest;
277
- readonly O: typeof GetLPPriceDiscrepancyResponse;
164
+ readonly I: typeof Encode7702Request;
165
+ readonly O: typeof Encode7702Response;
278
166
  readonly idempotency: MethodIdempotency.NoSideEffects;
279
167
  readonly service: {
280
168
  readonly typeName: "trading.v1.tradingService";
281
169
  };
282
170
  };
283
171
  /**
284
- * @generated from rpc trading.v1.tradingService.Encode7702
172
+ * @generated from rpc trading.v1.tradingService.CreatePlan
285
173
  */
286
- export declare const encode7702: {
287
- readonly localName: "encode7702";
288
- readonly name: "Encode7702";
174
+ export declare const createPlan: {
175
+ readonly localName: "createPlan";
176
+ readonly name: "CreatePlan";
289
177
  readonly kind: MethodKind.Unary;
290
- readonly I: typeof Encode7702Request;
291
- readonly O: typeof Encode7702Response;
178
+ readonly I: typeof CreatePlanRequest;
179
+ readonly O: typeof PlanResponse;
292
180
  readonly idempotency: MethodIdempotency.NoSideEffects;
293
181
  readonly service: {
294
182
  readonly typeName: "trading.v1.tradingService";
295
183
  };
296
184
  };
297
185
  /**
298
- * @generated from rpc trading.v1.tradingService.MigrateV2ToV3LPPosition
186
+ * @generated from rpc trading.v1.tradingService.GetPlan
299
187
  */
300
- export declare const migrateV2ToV3LPPosition: {
301
- readonly localName: "migrateV2ToV3LPPosition";
302
- readonly name: "MigrateV2ToV3LPPosition";
188
+ export declare const getPlan: {
189
+ readonly localName: "getPlan";
190
+ readonly name: "GetPlan";
303
191
  readonly kind: MethodKind.Unary;
304
- readonly I: typeof MigrateV2ToV3LPPositionRequest;
305
- readonly O: typeof MigrateV2ToV3LPPositionResponse;
192
+ readonly I: typeof GetPlanRequest;
193
+ readonly O: typeof PlanResponse;
306
194
  readonly idempotency: MethodIdempotency.NoSideEffects;
307
195
  readonly service: {
308
196
  readonly typeName: "trading.v1.tradingService";
309
197
  };
310
198
  };
311
199
  /**
312
- * @generated from rpc trading.v1.tradingService.CreatePlan
200
+ * @generated from rpc trading.v1.tradingService.UpdatePlan
313
201
  */
314
- export declare const createPlan: {
315
- readonly localName: "createPlan";
316
- readonly name: "CreatePlan";
202
+ export declare const updatePlan: {
203
+ readonly localName: "updatePlan";
204
+ readonly name: "UpdatePlan";
317
205
  readonly kind: MethodKind.Unary;
318
- readonly I: typeof CreatePlanRequest;
319
- readonly O: typeof CreatePlanResponse;
320
- readonly idempotency: MethodIdempotency.NoSideEffects;
206
+ readonly I: typeof UpdatePlanRequest;
207
+ readonly O: typeof PlanResponse;
208
+ readonly idempotency: MethodIdempotency.Idempotent;
321
209
  readonly service: {
322
210
  readonly typeName: "trading.v1.tradingService";
323
211
  };
@@ -336,3 +224,17 @@ export declare const getDocs: {
336
224
  readonly typeName: "trading.v1.tradingService";
337
225
  };
338
226
  };
227
+ /**
228
+ * @generated from rpc trading.v1.tradingService.GetPlans
229
+ */
230
+ export declare const getPlans: {
231
+ readonly localName: "getPlans";
232
+ readonly name: "GetPlans";
233
+ readonly kind: MethodKind.Unary;
234
+ readonly I: typeof GetPlansRequest;
235
+ readonly O: typeof GetPlansResponse;
236
+ readonly idempotency: MethodIdempotency.NoSideEffects;
237
+ readonly service: {
238
+ readonly typeName: "trading.v1.tradingService";
239
+ };
240
+ };
@@ -1,9 +1,9 @@
1
- // @generated by protoc-gen-connect-query v1.4.1 with parameter "target=ts"
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, ClaimLPRewardsRequest, ClaimLPRewardsResponse, CreateLPPositionRequest, CreateLPPositionResponse, CreatePlanRequest, CreatePlanResponse, DecreaseLPPositionRequest, DecreaseLPPositionResponse, DocsRequest, DocsResponse, Encode7702Request, Encode7702Response, GetLPPriceDiscrepancyRequest, GetLPPriceDiscrepancyResponse, GetOrdersRequest, GetOrdersResponse, GetSwapsRequest, GetSwapsResponse, IncreaseLPPositionRequest, IncreaseLPPositionResponse, MigrateLpPositionRequest, MigrateLpPositionResponse, MigrateV2ToV3LPPositionRequest, MigrateV2ToV3LPPositionResponse, OrderRequest, OrderResponse, PoolInfoRequest, PoolInfoResponse, QuoteRequest, QuoteResponse, SendRequest, SendResponse, Swap5792Request, Swap5792Response, Swap7702Request, Swap7702Response, SwappableTokensRequest, SwappableTokensResponse, SwapRequest, SwapResponse } from "./api_pb.js";
6
+ import { CheckApprovalRequest, CheckApprovalResponse, CheckWalletDelegationRequest, CheckWalletDelegationResponse, CreatePlanRequest, DocsRequest, DocsResponse, Encode7702Request, Encode7702Response, GetOrdersRequest, GetOrdersResponse, GetPlanRequest, GetPlansRequest, GetPlansResponse, GetSwapsRequest, GetSwapsResponse, OrderRequest, OrderResponse, PlanResponse, 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
  */
@@ -116,104 +116,6 @@ export const order = {
116
116
  typeName: "trading.v1.tradingService"
117
117
  }
118
118
  };
119
- /**
120
- * @generated from rpc trading.v1.tradingService.CreateLPPosition
121
- */
122
- export const createLPPosition = {
123
- localName: "createLPPosition",
124
- name: "CreateLPPosition",
125
- kind: MethodKind.Unary,
126
- I: CreateLPPositionRequest,
127
- O: CreateLPPositionResponse,
128
- idempotency: MethodIdempotency.NoSideEffects,
129
- service: {
130
- typeName: "trading.v1.tradingService"
131
- }
132
- };
133
- /**
134
- * @generated from rpc trading.v1.tradingService.IncreaseLPPosition
135
- */
136
- export const increaseLPPosition = {
137
- localName: "increaseLPPosition",
138
- name: "IncreaseLPPosition",
139
- kind: MethodKind.Unary,
140
- I: IncreaseLPPositionRequest,
141
- O: IncreaseLPPositionResponse,
142
- idempotency: MethodIdempotency.NoSideEffects,
143
- service: {
144
- typeName: "trading.v1.tradingService"
145
- }
146
- };
147
- /**
148
- * @generated from rpc trading.v1.tradingService.DecreaseLPPosition
149
- */
150
- export const decreaseLPPosition = {
151
- localName: "decreaseLPPosition",
152
- name: "DecreaseLPPosition",
153
- kind: MethodKind.Unary,
154
- I: DecreaseLPPositionRequest,
155
- O: DecreaseLPPositionResponse,
156
- idempotency: MethodIdempotency.NoSideEffects,
157
- service: {
158
- typeName: "trading.v1.tradingService"
159
- }
160
- };
161
- /**
162
- * @generated from rpc trading.v1.tradingService.ClaimLPFees
163
- */
164
- export const claimLPFees = {
165
- localName: "claimLPFees",
166
- name: "ClaimLPFees",
167
- kind: MethodKind.Unary,
168
- I: ClaimLPFeesRequest,
169
- O: ClaimLPFeesResponse,
170
- idempotency: MethodIdempotency.NoSideEffects,
171
- service: {
172
- typeName: "trading.v1.tradingService"
173
- }
174
- };
175
- /**
176
- * @generated from rpc trading.v1.tradingService.MigrateLpPosition
177
- */
178
- export const migrateLpPosition = {
179
- localName: "migrateLpPosition",
180
- name: "MigrateLpPosition",
181
- kind: MethodKind.Unary,
182
- I: MigrateLpPositionRequest,
183
- O: MigrateLpPositionResponse,
184
- idempotency: MethodIdempotency.NoSideEffects,
185
- service: {
186
- typeName: "trading.v1.tradingService"
187
- }
188
- };
189
- /**
190
- * @generated from rpc trading.v1.tradingService.CheckLPApproval
191
- */
192
- export const checkLPApproval = {
193
- localName: "checkLPApproval",
194
- name: "CheckLPApproval",
195
- kind: MethodKind.Unary,
196
- I: CheckApprovalLPRequest,
197
- O: CheckApprovalLPResponse,
198
- idempotency: MethodIdempotency.NoSideEffects,
199
- service: {
200
- typeName: "trading.v1.tradingService"
201
- }
202
- };
203
- /**
204
- * @generated from rpc trading.v1.tradingService.ClaimLPRewards
205
- */
206
- export const claimLPRewards = {
207
- localName: "claimLPRewards",
208
- name: "ClaimLPRewards",
209
- kind: MethodKind.Unary,
210
- I: ClaimLPRewardsRequest,
211
- O: ClaimLPRewardsResponse,
212
- idempotency: MethodIdempotency.NoSideEffects,
213
- service: {
214
- typeName: "trading.v1.tradingService"
215
- }
216
- };
217
119
  /**
218
120
  * @generated from rpc trading.v1.tradingService.Send
219
121
  */
@@ -242,20 +144,6 @@ export const checkWalletDelegation = {
242
144
  typeName: "trading.v1.tradingService"
243
145
  }
244
146
  };
245
- /**
246
- * @generated from rpc trading.v1.tradingService.PoolInfo
247
- */
248
- export const poolInfo = {
249
- localName: "poolInfo",
250
- name: "PoolInfo",
251
- kind: MethodKind.Unary,
252
- I: PoolInfoRequest,
253
- O: PoolInfoResponse,
254
- idempotency: MethodIdempotency.NoSideEffects,
255
- service: {
256
- typeName: "trading.v1.tradingService"
257
- }
258
- };
259
147
  /**
260
148
  * @generated from rpc trading.v1.tradingService.Swap5792
261
149
  */
@@ -271,57 +159,57 @@ export const swap5792 = {
271
159
  }
272
160
  };
273
161
  /**
274
- * @generated from rpc trading.v1.tradingService.GetLPPriceDiscrepancy
162
+ * @generated from rpc trading.v1.tradingService.Encode7702
275
163
  */
276
- export const getLPPriceDiscrepancy = {
277
- localName: "getLPPriceDiscrepancy",
278
- name: "GetLPPriceDiscrepancy",
164
+ export const encode7702 = {
165
+ localName: "encode7702",
166
+ name: "Encode7702",
279
167
  kind: MethodKind.Unary,
280
- I: GetLPPriceDiscrepancyRequest,
281
- O: GetLPPriceDiscrepancyResponse,
168
+ I: Encode7702Request,
169
+ O: Encode7702Response,
282
170
  idempotency: MethodIdempotency.NoSideEffects,
283
171
  service: {
284
172
  typeName: "trading.v1.tradingService"
285
173
  }
286
174
  };
287
175
  /**
288
- * @generated from rpc trading.v1.tradingService.Encode7702
176
+ * @generated from rpc trading.v1.tradingService.CreatePlan
289
177
  */
290
- export const encode7702 = {
291
- localName: "encode7702",
292
- name: "Encode7702",
178
+ export const createPlan = {
179
+ localName: "createPlan",
180
+ name: "CreatePlan",
293
181
  kind: MethodKind.Unary,
294
- I: Encode7702Request,
295
- O: Encode7702Response,
182
+ I: CreatePlanRequest,
183
+ O: PlanResponse,
296
184
  idempotency: MethodIdempotency.NoSideEffects,
297
185
  service: {
298
186
  typeName: "trading.v1.tradingService"
299
187
  }
300
188
  };
301
189
  /**
302
- * @generated from rpc trading.v1.tradingService.MigrateV2ToV3LPPosition
190
+ * @generated from rpc trading.v1.tradingService.GetPlan
303
191
  */
304
- export const migrateV2ToV3LPPosition = {
305
- localName: "migrateV2ToV3LPPosition",
306
- name: "MigrateV2ToV3LPPosition",
192
+ export const getPlan = {
193
+ localName: "getPlan",
194
+ name: "GetPlan",
307
195
  kind: MethodKind.Unary,
308
- I: MigrateV2ToV3LPPositionRequest,
309
- O: MigrateV2ToV3LPPositionResponse,
196
+ I: GetPlanRequest,
197
+ O: PlanResponse,
310
198
  idempotency: MethodIdempotency.NoSideEffects,
311
199
  service: {
312
200
  typeName: "trading.v1.tradingService"
313
201
  }
314
202
  };
315
203
  /**
316
- * @generated from rpc trading.v1.tradingService.CreatePlan
204
+ * @generated from rpc trading.v1.tradingService.UpdatePlan
317
205
  */
318
- export const createPlan = {
319
- localName: "createPlan",
320
- name: "CreatePlan",
206
+ export const updatePlan = {
207
+ localName: "updatePlan",
208
+ name: "UpdatePlan",
321
209
  kind: MethodKind.Unary,
322
- I: CreatePlanRequest,
323
- O: CreatePlanResponse,
324
- idempotency: MethodIdempotency.NoSideEffects,
210
+ I: UpdatePlanRequest,
211
+ O: PlanResponse,
212
+ idempotency: MethodIdempotency.Idempotent,
325
213
  service: {
326
214
  typeName: "trading.v1.tradingService"
327
215
  }
@@ -340,3 +228,17 @@ export const getDocs = {
340
228
  typeName: "trading.v1.tradingService"
341
229
  }
342
230
  };
231
+ /**
232
+ * @generated from rpc trading.v1.tradingService.GetPlans
233
+ */
234
+ export const getPlans = {
235
+ localName: "getPlans",
236
+ name: "GetPlans",
237
+ kind: MethodKind.Unary,
238
+ I: GetPlansRequest,
239
+ O: GetPlansResponse,
240
+ idempotency: MethodIdempotency.NoSideEffects,
241
+ service: {
242
+ typeName: "trading.v1.tradingService"
243
+ }
244
+ };
@@ -1,4 +1,4 @@
1
- import { CheckApprovalLPRequest, CheckApprovalLPResponse, CheckApprovalRequest, CheckApprovalResponse, CheckWalletDelegationRequest, CheckWalletDelegationResponse, ClaimLPFeesRequest, ClaimLPFeesResponse, ClaimLPRewardsRequest, ClaimLPRewardsResponse, CreateLPPositionRequest, CreateLPPositionResponse, CreatePlanRequest, CreatePlanResponse, DecreaseLPPositionRequest, DecreaseLPPositionResponse, DocsRequest, DocsResponse, Encode7702Request, Encode7702Response, GetLPPriceDiscrepancyRequest, GetLPPriceDiscrepancyResponse, GetOrdersRequest, GetOrdersResponse, GetSwapsRequest, GetSwapsResponse, IncreaseLPPositionRequest, IncreaseLPPositionResponse, MigrateLpPositionRequest, MigrateLpPositionResponse, MigrateV2ToV3LPPositionRequest, MigrateV2ToV3LPPositionResponse, OrderRequest, OrderResponse, PoolInfoRequest, PoolInfoResponse, QuoteRequest, QuoteResponse, SendRequest, SendResponse, Swap5792Request, Swap5792Response, Swap7702Request, Swap7702Response, SwappableTokensRequest, SwappableTokensResponse, SwapRequest, SwapResponse } from "./api_pb.js";
1
+ import { CheckApprovalRequest, CheckApprovalResponse, CheckWalletDelegationRequest, CheckWalletDelegationResponse, CreatePlanRequest, DocsRequest, DocsResponse, Encode7702Request, Encode7702Response, GetOrdersRequest, GetOrdersResponse, GetPlanRequest, GetPlansRequest, GetPlansResponse, GetSwapsRequest, GetSwapsResponse, OrderRequest, OrderResponse, PlanResponse, 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
@@ -86,76 +86,6 @@ export declare const tradingService: {
86
86
  readonly kind: MethodKind.Unary;
87
87
  readonly idempotency: MethodIdempotency.NoSideEffects;
88
88
  };
89
- /**
90
- * @generated from rpc trading.v1.tradingService.CreateLPPosition
91
- */
92
- readonly createLPPosition: {
93
- readonly name: "CreateLPPosition";
94
- readonly I: typeof CreateLPPositionRequest;
95
- readonly O: typeof CreateLPPositionResponse;
96
- readonly kind: MethodKind.Unary;
97
- readonly idempotency: MethodIdempotency.NoSideEffects;
98
- };
99
- /**
100
- * @generated from rpc trading.v1.tradingService.IncreaseLPPosition
101
- */
102
- readonly increaseLPPosition: {
103
- readonly name: "IncreaseLPPosition";
104
- readonly I: typeof IncreaseLPPositionRequest;
105
- readonly O: typeof IncreaseLPPositionResponse;
106
- readonly kind: MethodKind.Unary;
107
- readonly idempotency: MethodIdempotency.NoSideEffects;
108
- };
109
- /**
110
- * @generated from rpc trading.v1.tradingService.DecreaseLPPosition
111
- */
112
- readonly decreaseLPPosition: {
113
- readonly name: "DecreaseLPPosition";
114
- readonly I: typeof DecreaseLPPositionRequest;
115
- readonly O: typeof DecreaseLPPositionResponse;
116
- readonly kind: MethodKind.Unary;
117
- readonly idempotency: MethodIdempotency.NoSideEffects;
118
- };
119
- /**
120
- * @generated from rpc trading.v1.tradingService.ClaimLPFees
121
- */
122
- readonly claimLPFees: {
123
- readonly name: "ClaimLPFees";
124
- readonly I: typeof ClaimLPFeesRequest;
125
- readonly O: typeof ClaimLPFeesResponse;
126
- readonly kind: MethodKind.Unary;
127
- readonly idempotency: MethodIdempotency.NoSideEffects;
128
- };
129
- /**
130
- * @generated from rpc trading.v1.tradingService.MigrateLpPosition
131
- */
132
- readonly migrateLpPosition: {
133
- readonly name: "MigrateLpPosition";
134
- readonly I: typeof MigrateLpPositionRequest;
135
- readonly O: typeof MigrateLpPositionResponse;
136
- readonly kind: MethodKind.Unary;
137
- readonly idempotency: MethodIdempotency.NoSideEffects;
138
- };
139
- /**
140
- * @generated from rpc trading.v1.tradingService.CheckLPApproval
141
- */
142
- readonly checkLPApproval: {
143
- readonly name: "CheckLPApproval";
144
- readonly I: typeof CheckApprovalLPRequest;
145
- readonly O: typeof CheckApprovalLPResponse;
146
- readonly kind: MethodKind.Unary;
147
- readonly idempotency: MethodIdempotency.NoSideEffects;
148
- };
149
- /**
150
- * @generated from rpc trading.v1.tradingService.ClaimLPRewards
151
- */
152
- readonly claimLPRewards: {
153
- readonly name: "ClaimLPRewards";
154
- readonly I: typeof ClaimLPRewardsRequest;
155
- readonly O: typeof ClaimLPRewardsResponse;
156
- readonly kind: MethodKind.Unary;
157
- readonly idempotency: MethodIdempotency.NoSideEffects;
158
- };
159
89
  /**
160
90
  * @generated from rpc trading.v1.tradingService.Send
161
91
  */
@@ -176,16 +106,6 @@ export declare const tradingService: {
176
106
  readonly kind: MethodKind.Unary;
177
107
  readonly idempotency: MethodIdempotency.NoSideEffects;
178
108
  };
179
- /**
180
- * @generated from rpc trading.v1.tradingService.PoolInfo
181
- */
182
- readonly poolInfo: {
183
- readonly name: "PoolInfo";
184
- readonly I: typeof PoolInfoRequest;
185
- readonly O: typeof PoolInfoResponse;
186
- readonly kind: MethodKind.Unary;
187
- readonly idempotency: MethodIdempotency.NoSideEffects;
188
- };
189
109
  /**
190
110
  * @generated from rpc trading.v1.tradingService.Swap5792
191
111
  */
@@ -196,16 +116,6 @@ export declare const tradingService: {
196
116
  readonly kind: MethodKind.Unary;
197
117
  readonly idempotency: MethodIdempotency.NoSideEffects;
198
118
  };
199
- /**
200
- * @generated from rpc trading.v1.tradingService.GetLPPriceDiscrepancy
201
- */
202
- readonly getLPPriceDiscrepancy: {
203
- readonly name: "GetLPPriceDiscrepancy";
204
- readonly I: typeof GetLPPriceDiscrepancyRequest;
205
- readonly O: typeof GetLPPriceDiscrepancyResponse;
206
- readonly kind: MethodKind.Unary;
207
- readonly idempotency: MethodIdempotency.NoSideEffects;
208
- };
209
119
  /**
210
120
  * @generated from rpc trading.v1.tradingService.Encode7702
211
121
  */
@@ -217,25 +127,35 @@ export declare const tradingService: {
217
127
  readonly idempotency: MethodIdempotency.NoSideEffects;
218
128
  };
219
129
  /**
220
- * @generated from rpc trading.v1.tradingService.MigrateV2ToV3LPPosition
130
+ * @generated from rpc trading.v1.tradingService.CreatePlan
221
131
  */
222
- readonly migrateV2ToV3LPPosition: {
223
- readonly name: "MigrateV2ToV3LPPosition";
224
- readonly I: typeof MigrateV2ToV3LPPositionRequest;
225
- readonly O: typeof MigrateV2ToV3LPPositionResponse;
132
+ readonly createPlan: {
133
+ readonly name: "CreatePlan";
134
+ readonly I: typeof CreatePlanRequest;
135
+ readonly O: typeof PlanResponse;
226
136
  readonly kind: MethodKind.Unary;
227
137
  readonly idempotency: MethodIdempotency.NoSideEffects;
228
138
  };
229
139
  /**
230
- * @generated from rpc trading.v1.tradingService.CreatePlan
140
+ * @generated from rpc trading.v1.tradingService.GetPlan
231
141
  */
232
- readonly createPlan: {
233
- readonly name: "CreatePlan";
234
- readonly I: typeof CreatePlanRequest;
235
- readonly O: typeof CreatePlanResponse;
142
+ readonly getPlan: {
143
+ readonly name: "GetPlan";
144
+ readonly I: typeof GetPlanRequest;
145
+ readonly O: typeof PlanResponse;
236
146
  readonly kind: MethodKind.Unary;
237
147
  readonly idempotency: MethodIdempotency.NoSideEffects;
238
148
  };
149
+ /**
150
+ * @generated from rpc trading.v1.tradingService.UpdatePlan
151
+ */
152
+ readonly updatePlan: {
153
+ readonly name: "UpdatePlan";
154
+ readonly I: typeof UpdatePlanRequest;
155
+ readonly O: typeof PlanResponse;
156
+ readonly kind: MethodKind.Unary;
157
+ readonly idempotency: MethodIdempotency.Idempotent;
158
+ };
239
159
  /**
240
160
  * @generated from rpc trading.v1.tradingService.GetDocs
241
161
  */
@@ -246,5 +166,15 @@ export declare const tradingService: {
246
166
  readonly kind: MethodKind.Unary;
247
167
  readonly idempotency: MethodIdempotency.NoSideEffects;
248
168
  };
169
+ /**
170
+ * @generated from rpc trading.v1.tradingService.GetPlans
171
+ */
172
+ readonly getPlans: {
173
+ readonly name: "GetPlans";
174
+ readonly I: typeof GetPlansRequest;
175
+ readonly O: typeof GetPlansResponse;
176
+ readonly kind: MethodKind.Unary;
177
+ readonly idempotency: MethodIdempotency.NoSideEffects;
178
+ };
249
179
  };
250
180
  };