@uniswap/client-trading 0.12.1 → 0.12.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,380 +1,216 @@
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, GetTokensRequest, GetTokensResponse, MarginAssetsRequest, MarginAssetsResponse, MarginMarketsRequest, MarginMarketsResponse, MarginPositionActivityRequest, MarginPositionActivityResponse, MarginPositionsRequest, MarginPositionsResponse, MarginQuoteRequest, MarginQuoteResponse, 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
1
  /**
4
2
  * @generated from rpc trading.v1.tradingService.Quote
5
3
  */
6
4
  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
- };
5
+ methodKind: "unary";
6
+ input: typeof import("./api_pb").QuoteRequestSchema;
7
+ output: typeof import("./api_pb").QuoteResponseSchema;
8
+ } & import("@bufbuild/protobuf").DescMethod;
17
9
  /**
18
10
  * @generated from rpc trading.v1.tradingService.Swap
19
11
  */
20
12
  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
- };
13
+ methodKind: "unary";
14
+ input: typeof import("./api_pb").SwapRequestSchema;
15
+ output: typeof import("./api_pb").SwapResponseSchema;
16
+ } & import("@bufbuild/protobuf").DescMethod;
31
17
  /**
32
18
  * @generated from rpc trading.v1.tradingService.Swap7702
33
19
  */
34
20
  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
- };
21
+ methodKind: "unary";
22
+ input: typeof import("./api_pb").Swap7702RequestSchema;
23
+ output: typeof import("./api_pb").Swap7702ResponseSchema;
24
+ } & import("@bufbuild/protobuf").DescMethod;
45
25
  /**
46
26
  * @generated from rpc trading.v1.tradingService.CheckApproval
47
27
  */
48
28
  export declare const checkApproval: {
49
- readonly localName: "checkApproval";
50
- readonly name: "CheckApproval";
51
- readonly kind: MethodKind.Unary;
52
- readonly I: typeof CheckApprovalRequest;
53
- readonly O: typeof CheckApprovalResponse;
54
- readonly idempotency: MethodIdempotency.NoSideEffects;
55
- readonly service: {
56
- readonly typeName: "trading.v1.tradingService";
57
- };
58
- };
29
+ methodKind: "unary";
30
+ input: typeof import("./api_pb").CheckApprovalRequestSchema;
31
+ output: typeof import("./api_pb").CheckApprovalResponseSchema;
32
+ } & import("@bufbuild/protobuf").DescMethod;
59
33
  /**
60
34
  * @generated from rpc trading.v1.tradingService.Permissions
61
35
  */
62
36
  export declare const permissions: {
63
- readonly localName: "permissions";
64
- readonly name: "Permissions";
65
- readonly kind: MethodKind.Unary;
66
- readonly I: typeof PermissionsRequest;
67
- readonly O: typeof PermissionsResponse;
68
- readonly idempotency: MethodIdempotency.NoSideEffects;
69
- readonly service: {
70
- readonly typeName: "trading.v1.tradingService";
71
- };
72
- };
37
+ methodKind: "unary";
38
+ input: typeof import("./api_pb").PermissionsRequestSchema;
39
+ output: typeof import("./api_pb").PermissionsResponseSchema;
40
+ } & import("@bufbuild/protobuf").DescMethod;
73
41
  /**
74
42
  * @generated from rpc trading.v1.tradingService.GetSwaps
75
43
  */
76
44
  export declare const getSwaps: {
77
- readonly localName: "getSwaps";
78
- readonly name: "GetSwaps";
79
- readonly kind: MethodKind.Unary;
80
- readonly I: typeof GetSwapsRequest;
81
- readonly O: typeof GetSwapsResponse;
82
- readonly idempotency: MethodIdempotency.NoSideEffects;
83
- readonly service: {
84
- readonly typeName: "trading.v1.tradingService";
85
- };
86
- };
45
+ methodKind: "unary";
46
+ input: typeof import("./api_pb").GetSwapsRequestSchema;
47
+ output: typeof import("./api_pb").GetSwapsResponseSchema;
48
+ } & import("@bufbuild/protobuf").DescMethod;
87
49
  /**
88
50
  * @generated from rpc trading.v1.tradingService.SwappableTokens
89
51
  */
90
52
  export declare const swappableTokens: {
91
- readonly localName: "swappableTokens";
92
- readonly name: "SwappableTokens";
93
- readonly kind: MethodKind.Unary;
94
- readonly I: typeof SwappableTokensRequest;
95
- readonly O: typeof SwappableTokensResponse;
96
- readonly idempotency: MethodIdempotency.NoSideEffects;
97
- readonly service: {
98
- readonly typeName: "trading.v1.tradingService";
99
- };
100
- };
53
+ methodKind: "unary";
54
+ input: typeof import("./api_pb").SwappableTokensRequestSchema;
55
+ output: typeof import("./api_pb").SwappableTokensResponseSchema;
56
+ } & import("@bufbuild/protobuf").DescMethod;
101
57
  /**
102
58
  * @generated from rpc trading.v1.tradingService.SupportedChains
103
59
  */
104
60
  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
- };
61
+ methodKind: "unary";
62
+ input: typeof import("./api_pb").SupportedChainsRequestSchema;
63
+ output: typeof import("./api_pb").SupportedChainsResponseSchema;
64
+ } & import("@bufbuild/protobuf").DescMethod;
115
65
  /**
116
66
  * @generated from rpc trading.v1.tradingService.GetTokens
117
67
  */
118
68
  export declare const getTokens: {
119
- readonly localName: "getTokens";
120
- readonly name: "GetTokens";
121
- readonly kind: MethodKind.Unary;
122
- readonly I: typeof GetTokensRequest;
123
- readonly O: typeof GetTokensResponse;
124
- readonly idempotency: MethodIdempotency.NoSideEffects;
125
- readonly service: {
126
- readonly typeName: "trading.v1.tradingService";
127
- };
128
- };
69
+ methodKind: "unary";
70
+ input: typeof import("./api_pb").GetTokensRequestSchema;
71
+ output: typeof import("./api_pb").GetTokensResponseSchema;
72
+ } & import("@bufbuild/protobuf").DescMethod;
129
73
  /**
130
74
  * @generated from rpc trading.v1.tradingService.GetOrders
131
75
  */
132
76
  export declare const getOrders: {
133
- readonly localName: "getOrders";
134
- readonly name: "GetOrders";
135
- readonly kind: MethodKind.Unary;
136
- readonly I: typeof GetOrdersRequest;
137
- readonly O: typeof GetOrdersResponse;
138
- readonly idempotency: MethodIdempotency.NoSideEffects;
139
- readonly service: {
140
- readonly typeName: "trading.v1.tradingService";
141
- };
142
- };
77
+ methodKind: "unary";
78
+ input: typeof import("./api_pb").GetOrdersRequestSchema;
79
+ output: typeof import("./api_pb").GetOrdersResponseSchema;
80
+ } & import("@bufbuild/protobuf").DescMethod;
143
81
  /**
144
82
  * @generated from rpc trading.v1.tradingService.Order
145
83
  */
146
84
  export declare const order: {
147
- readonly localName: "order";
148
- readonly name: "Order";
149
- readonly kind: MethodKind.Unary;
150
- readonly I: typeof OrderRequest;
151
- readonly O: typeof OrderResponse;
152
- readonly idempotency: MethodIdempotency.NoSideEffects;
153
- readonly service: {
154
- readonly typeName: "trading.v1.tradingService";
155
- };
156
- };
85
+ methodKind: "unary";
86
+ input: typeof import("./api_pb").OrderRequestSchema;
87
+ output: typeof import("./api_pb").OrderResponseSchema;
88
+ } & import("@bufbuild/protobuf").DescMethod;
157
89
  /**
158
90
  * @generated from rpc trading.v1.tradingService.CheckWalletDelegation
159
91
  */
160
92
  export declare const checkWalletDelegation: {
161
- readonly localName: "checkWalletDelegation";
162
- readonly name: "CheckWalletDelegation";
163
- readonly kind: MethodKind.Unary;
164
- readonly I: typeof CheckWalletDelegationRequest;
165
- readonly O: typeof CheckWalletDelegationResponse;
166
- readonly idempotency: MethodIdempotency.NoSideEffects;
167
- readonly service: {
168
- readonly typeName: "trading.v1.tradingService";
169
- };
170
- };
93
+ methodKind: "unary";
94
+ input: typeof import("./api_pb").CheckWalletDelegationRequestSchema;
95
+ output: typeof import("./api_pb").CheckWalletDelegationResponseSchema;
96
+ } & import("@bufbuild/protobuf").DescMethod;
171
97
  /**
172
98
  * @generated from rpc trading.v1.tradingService.Swap5792
173
99
  */
174
100
  export declare const swap5792: {
175
- readonly localName: "swap5792";
176
- readonly name: "Swap5792";
177
- readonly kind: MethodKind.Unary;
178
- readonly I: typeof Swap5792Request;
179
- readonly O: typeof Swap5792Response;
180
- readonly idempotency: MethodIdempotency.NoSideEffects;
181
- readonly service: {
182
- readonly typeName: "trading.v1.tradingService";
183
- };
184
- };
101
+ methodKind: "unary";
102
+ input: typeof import("./api_pb").Swap5792RequestSchema;
103
+ output: typeof import("./api_pb").Swap5792ResponseSchema;
104
+ } & import("@bufbuild/protobuf").DescMethod;
185
105
  /**
186
106
  * @generated from rpc trading.v1.tradingService.Encode7702
187
107
  */
188
108
  export declare const encode7702: {
189
- readonly localName: "encode7702";
190
- readonly name: "Encode7702";
191
- readonly kind: MethodKind.Unary;
192
- readonly I: typeof Encode7702Request;
193
- readonly O: typeof Encode7702Response;
194
- readonly idempotency: MethodIdempotency.NoSideEffects;
195
- readonly service: {
196
- readonly typeName: "trading.v1.tradingService";
197
- };
198
- };
109
+ methodKind: "unary";
110
+ input: typeof import("./api_pb").Encode7702RequestSchema;
111
+ output: typeof import("./api_pb").Encode7702ResponseSchema;
112
+ } & import("@bufbuild/protobuf").DescMethod;
199
113
  /**
200
114
  * @generated from rpc trading.v1.tradingService.Encode4337
201
115
  */
202
116
  export declare const encode4337: {
203
- readonly localName: "encode4337";
204
- readonly name: "Encode4337";
205
- readonly kind: MethodKind.Unary;
206
- readonly I: typeof Encode4337Request;
207
- readonly O: typeof Encode4337Response;
208
- readonly idempotency: MethodIdempotency.NoSideEffects;
209
- readonly service: {
210
- readonly typeName: "trading.v1.tradingService";
211
- };
212
- };
117
+ methodKind: "unary";
118
+ input: typeof import("./api_pb").Encode4337RequestSchema;
119
+ output: typeof import("./api_pb").Encode4337ResponseSchema;
120
+ } & import("@bufbuild/protobuf").DescMethod;
213
121
  /**
214
122
  * @generated from rpc trading.v1.tradingService.Swap4337
215
123
  */
216
124
  export declare const swap4337: {
217
- readonly localName: "swap4337";
218
- readonly name: "Swap4337";
219
- readonly kind: MethodKind.Unary;
220
- readonly I: typeof Swap4337Request;
221
- readonly O: typeof Swap4337Response;
222
- readonly idempotency: MethodIdempotency.NoSideEffects;
223
- readonly service: {
224
- readonly typeName: "trading.v1.tradingService";
225
- };
226
- };
125
+ methodKind: "unary";
126
+ input: typeof import("./api_pb").Swap4337RequestSchema;
127
+ output: typeof import("./api_pb").Swap4337ResponseSchema;
128
+ } & import("@bufbuild/protobuf").DescMethod;
227
129
  /**
228
130
  * @generated from rpc trading.v1.tradingService.CheckApproval4337
229
131
  */
230
132
  export declare const checkApproval4337: {
231
- readonly localName: "checkApproval4337";
232
- readonly name: "CheckApproval4337";
233
- readonly kind: MethodKind.Unary;
234
- readonly I: typeof CheckApproval4337Request;
235
- readonly O: typeof CheckApproval4337Response;
236
- readonly idempotency: MethodIdempotency.NoSideEffects;
237
- readonly service: {
238
- readonly typeName: "trading.v1.tradingService";
239
- };
240
- };
133
+ methodKind: "unary";
134
+ input: typeof import("./api_pb").CheckApproval4337RequestSchema;
135
+ output: typeof import("./api_pb").CheckApproval4337ResponseSchema;
136
+ } & import("@bufbuild/protobuf").DescMethod;
241
137
  /**
242
138
  * @generated from rpc trading.v1.tradingService.CreatePlan
243
139
  */
244
140
  export declare const createPlan: {
245
- readonly localName: "createPlan";
246
- readonly name: "CreatePlan";
247
- readonly kind: MethodKind.Unary;
248
- readonly I: typeof CreatePlanRequest;
249
- readonly O: typeof PlanResponse;
250
- readonly idempotency: MethodIdempotency.NoSideEffects;
251
- readonly service: {
252
- readonly typeName: "trading.v1.tradingService";
253
- };
254
- };
141
+ methodKind: "unary";
142
+ input: typeof import("./api_pb").CreatePlanRequestSchema;
143
+ output: typeof import("./api_pb").PlanResponseSchema;
144
+ } & import("@bufbuild/protobuf").DescMethod;
255
145
  /**
256
146
  * @generated from rpc trading.v1.tradingService.GetPlan
257
147
  */
258
148
  export declare const getPlan: {
259
- readonly localName: "getPlan";
260
- readonly name: "GetPlan";
261
- readonly kind: MethodKind.Unary;
262
- readonly I: typeof GetPlanRequest;
263
- readonly O: typeof PlanResponse;
264
- readonly idempotency: MethodIdempotency.NoSideEffects;
265
- readonly service: {
266
- readonly typeName: "trading.v1.tradingService";
267
- };
268
- };
149
+ methodKind: "unary";
150
+ input: typeof import("./api_pb").GetPlanRequestSchema;
151
+ output: typeof import("./api_pb").PlanResponseSchema;
152
+ } & import("@bufbuild/protobuf").DescMethod;
269
153
  /**
270
154
  * @generated from rpc trading.v1.tradingService.UpdatePlan
271
155
  */
272
156
  export declare const updatePlan: {
273
- readonly localName: "updatePlan";
274
- readonly name: "UpdatePlan";
275
- readonly kind: MethodKind.Unary;
276
- readonly I: typeof UpdatePlanRequest;
277
- readonly O: typeof PlanResponse;
278
- readonly idempotency: MethodIdempotency.Idempotent;
279
- readonly service: {
280
- readonly typeName: "trading.v1.tradingService";
281
- };
282
- };
157
+ methodKind: "unary";
158
+ input: typeof import("./api_pb").UpdatePlanRequestSchema;
159
+ output: typeof import("./api_pb").PlanResponseSchema;
160
+ } & import("@bufbuild/protobuf").DescMethod;
283
161
  /**
284
162
  * @generated from rpc trading.v1.tradingService.GetDocs
285
163
  */
286
164
  export declare const getDocs: {
287
- readonly localName: "getDocs";
288
- readonly name: "GetDocs";
289
- readonly kind: MethodKind.Unary;
290
- readonly I: typeof DocsRequest;
291
- readonly O: typeof DocsResponse;
292
- readonly idempotency: MethodIdempotency.NoSideEffects;
293
- readonly service: {
294
- readonly typeName: "trading.v1.tradingService";
295
- };
296
- };
165
+ methodKind: "unary";
166
+ input: typeof import("./api_pb").DocsRequestSchema;
167
+ output: typeof import("./api_pb").DocsResponseSchema;
168
+ } & import("@bufbuild/protobuf").DescMethod;
297
169
  /**
298
170
  * @generated from rpc trading.v1.tradingService.GetPlans
299
171
  */
300
172
  export declare const getPlans: {
301
- readonly localName: "getPlans";
302
- readonly name: "GetPlans";
303
- readonly kind: MethodKind.Unary;
304
- readonly I: typeof GetPlansRequest;
305
- readonly O: typeof GetPlansResponse;
306
- readonly idempotency: MethodIdempotency.NoSideEffects;
307
- readonly service: {
308
- readonly typeName: "trading.v1.tradingService";
309
- };
310
- };
173
+ methodKind: "unary";
174
+ input: typeof import("./api_pb").GetPlansRequestSchema;
175
+ output: typeof import("./api_pb").GetPlansResponseSchema;
176
+ } & import("@bufbuild/protobuf").DescMethod;
311
177
  /**
312
178
  * @generated from rpc trading.v1.tradingService.MarginQuote
313
179
  */
314
180
  export declare const marginQuote: {
315
- readonly localName: "marginQuote";
316
- readonly name: "MarginQuote";
317
- readonly kind: MethodKind.Unary;
318
- readonly I: typeof MarginQuoteRequest;
319
- readonly O: typeof MarginQuoteResponse;
320
- readonly idempotency: MethodIdempotency.NoSideEffects;
321
- readonly service: {
322
- readonly typeName: "trading.v1.tradingService";
323
- };
324
- };
181
+ methodKind: "unary";
182
+ input: typeof import("./api_pb").MarginQuoteRequestSchema;
183
+ output: typeof import("./api_pb").MarginQuoteResponseSchema;
184
+ } & import("@bufbuild/protobuf").DescMethod;
325
185
  /**
326
186
  * @generated from rpc trading.v1.tradingService.MarginMarkets
327
187
  */
328
188
  export declare const marginMarkets: {
329
- readonly localName: "marginMarkets";
330
- readonly name: "MarginMarkets";
331
- readonly kind: MethodKind.Unary;
332
- readonly I: typeof MarginMarketsRequest;
333
- readonly O: typeof MarginMarketsResponse;
334
- readonly idempotency: MethodIdempotency.NoSideEffects;
335
- readonly service: {
336
- readonly typeName: "trading.v1.tradingService";
337
- };
338
- };
189
+ methodKind: "unary";
190
+ input: typeof import("./api_pb").MarginMarketsRequestSchema;
191
+ output: typeof import("./api_pb").MarginMarketsResponseSchema;
192
+ } & import("@bufbuild/protobuf").DescMethod;
339
193
  /**
340
194
  * @generated from rpc trading.v1.tradingService.MarginAssets
341
195
  */
342
196
  export declare const marginAssets: {
343
- readonly localName: "marginAssets";
344
- readonly name: "MarginAssets";
345
- readonly kind: MethodKind.Unary;
346
- readonly I: typeof MarginAssetsRequest;
347
- readonly O: typeof MarginAssetsResponse;
348
- readonly idempotency: MethodIdempotency.NoSideEffects;
349
- readonly service: {
350
- readonly typeName: "trading.v1.tradingService";
351
- };
352
- };
197
+ methodKind: "unary";
198
+ input: typeof import("./api_pb").MarginAssetsRequestSchema;
199
+ output: typeof import("./api_pb").MarginAssetsResponseSchema;
200
+ } & import("@bufbuild/protobuf").DescMethod;
353
201
  /**
354
202
  * @generated from rpc trading.v1.tradingService.MarginPositions
355
203
  */
356
204
  export declare const marginPositions: {
357
- readonly localName: "marginPositions";
358
- readonly name: "MarginPositions";
359
- readonly kind: MethodKind.Unary;
360
- readonly I: typeof MarginPositionsRequest;
361
- readonly O: typeof MarginPositionsResponse;
362
- readonly idempotency: MethodIdempotency.NoSideEffects;
363
- readonly service: {
364
- readonly typeName: "trading.v1.tradingService";
365
- };
366
- };
205
+ methodKind: "unary";
206
+ input: typeof import("./api_pb").MarginPositionsRequestSchema;
207
+ output: typeof import("./api_pb").MarginPositionsResponseSchema;
208
+ } & import("@bufbuild/protobuf").DescMethod;
367
209
  /**
368
210
  * @generated from rpc trading.v1.tradingService.MarginPositionActivity
369
211
  */
370
212
  export declare const marginPositionActivity: {
371
- readonly localName: "marginPositionActivity";
372
- readonly name: "MarginPositionActivity";
373
- readonly kind: MethodKind.Unary;
374
- readonly I: typeof MarginPositionActivityRequest;
375
- readonly O: typeof MarginPositionActivityResponse;
376
- readonly idempotency: MethodIdempotency.NoSideEffects;
377
- readonly service: {
378
- readonly typeName: "trading.v1.tradingService";
379
- };
380
- };
213
+ methodKind: "unary";
214
+ input: typeof import("./api_pb").MarginPositionActivityRequestSchema;
215
+ output: typeof import("./api_pb").MarginPositionActivityResponseSchema;
216
+ } & import("@bufbuild/protobuf").DescMethod;