@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,200 @@
1
+ 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";
2
+ import { MethodIdempotency, MethodKind } from "@bufbuild/protobuf";
3
+ /**
4
+ * @generated from service trading.v1.tradingService
5
+ */
6
+ export declare const tradingService: {
7
+ readonly typeName: "trading.v1.tradingService";
8
+ readonly methods: {
9
+ /**
10
+ * @generated from rpc trading.v1.tradingService.Quote
11
+ */
12
+ readonly quote: {
13
+ readonly name: "Quote";
14
+ readonly I: typeof QuoteRequest;
15
+ readonly O: typeof QuoteResponse;
16
+ readonly kind: MethodKind.Unary;
17
+ readonly idempotency: MethodIdempotency.NoSideEffects;
18
+ };
19
+ /**
20
+ * @generated from rpc trading.v1.tradingService.Swap
21
+ */
22
+ readonly swap: {
23
+ readonly name: "Swap";
24
+ readonly I: typeof SwapRequest;
25
+ readonly O: typeof SwapResponse;
26
+ readonly kind: MethodKind.Unary;
27
+ readonly idempotency: MethodIdempotency.NoSideEffects;
28
+ };
29
+ /**
30
+ * @generated from rpc trading.v1.tradingService.CheckApproval
31
+ */
32
+ readonly checkApproval: {
33
+ readonly name: "CheckApproval";
34
+ readonly I: typeof CheckApprovalRequest;
35
+ readonly O: typeof CheckApprovalResponse;
36
+ readonly kind: MethodKind.Unary;
37
+ readonly idempotency: MethodIdempotency.NoSideEffects;
38
+ };
39
+ /**
40
+ * @generated from rpc trading.v1.tradingService.GetSwaps
41
+ */
42
+ readonly getSwaps: {
43
+ readonly name: "GetSwaps";
44
+ readonly I: typeof GetSwapsRequest;
45
+ readonly O: typeof GetSwapsResponse;
46
+ readonly kind: MethodKind.Unary;
47
+ readonly idempotency: MethodIdempotency.NoSideEffects;
48
+ };
49
+ /**
50
+ * @generated from rpc trading.v1.tradingService.SwappableTokens
51
+ */
52
+ readonly swappableTokens: {
53
+ readonly name: "SwappableTokens";
54
+ readonly I: typeof SwappableTokensRequest;
55
+ readonly O: typeof SwappableTokensResponse;
56
+ readonly kind: MethodKind.Unary;
57
+ readonly idempotency: MethodIdempotency.NoSideEffects;
58
+ };
59
+ /**
60
+ * @generated from rpc trading.v1.tradingService.GetOrders
61
+ */
62
+ readonly getOrders: {
63
+ readonly name: "GetOrders";
64
+ readonly I: typeof GetOrdersRequest;
65
+ readonly O: typeof GetOrdersResponse;
66
+ readonly kind: MethodKind.Unary;
67
+ readonly idempotency: MethodIdempotency.NoSideEffects;
68
+ };
69
+ /**
70
+ * @generated from rpc trading.v1.tradingService.Order
71
+ */
72
+ readonly order: {
73
+ readonly name: "Order";
74
+ readonly I: typeof OrderRequest;
75
+ readonly O: typeof OrderResponse;
76
+ readonly kind: MethodKind.Unary;
77
+ readonly idempotency: MethodIdempotency.NoSideEffects;
78
+ };
79
+ /**
80
+ * @generated from rpc trading.v1.tradingService.CreateLPPosition
81
+ */
82
+ readonly createLPPosition: {
83
+ readonly name: "CreateLPPosition";
84
+ readonly I: typeof CreateLPPositionRequest;
85
+ readonly O: typeof CreateLPPositionResponse;
86
+ readonly kind: MethodKind.Unary;
87
+ readonly idempotency: MethodIdempotency.NoSideEffects;
88
+ };
89
+ /**
90
+ * @generated from rpc trading.v1.tradingService.IncreaseLPPosition
91
+ */
92
+ readonly increaseLPPosition: {
93
+ readonly name: "IncreaseLPPosition";
94
+ readonly I: typeof IncreaseLPPositionRequest;
95
+ readonly O: typeof IncreaseLPPositionResponse;
96
+ readonly kind: MethodKind.Unary;
97
+ readonly idempotency: MethodIdempotency.NoSideEffects;
98
+ };
99
+ /**
100
+ * @generated from rpc trading.v1.tradingService.DecreaseLPPosition
101
+ */
102
+ readonly decreaseLPPosition: {
103
+ readonly name: "DecreaseLPPosition";
104
+ readonly I: typeof DecreaseLPPositionRequest;
105
+ readonly O: typeof DecreaseLPPositionResponse;
106
+ readonly kind: MethodKind.Unary;
107
+ readonly idempotency: MethodIdempotency.NoSideEffects;
108
+ };
109
+ /**
110
+ * @generated from rpc trading.v1.tradingService.ClaimLPFees
111
+ */
112
+ readonly claimLPFees: {
113
+ readonly name: "ClaimLPFees";
114
+ readonly I: typeof ClaimLPFeesRequest;
115
+ readonly O: typeof ClaimLPFeesResponse;
116
+ readonly kind: MethodKind.Unary;
117
+ readonly idempotency: MethodIdempotency.NoSideEffects;
118
+ };
119
+ /**
120
+ * @generated from rpc trading.v1.tradingService.MigrateLpPosition
121
+ */
122
+ readonly migrateLpPosition: {
123
+ readonly name: "MigrateLpPosition";
124
+ readonly I: typeof MigrateLpPositionRequest;
125
+ readonly O: typeof MigrateLpPositionResponse;
126
+ readonly kind: MethodKind.Unary;
127
+ readonly idempotency: MethodIdempotency.NoSideEffects;
128
+ };
129
+ /**
130
+ * @generated from rpc trading.v1.tradingService.CheckLPApproval
131
+ */
132
+ readonly checkLPApproval: {
133
+ readonly name: "CheckLPApproval";
134
+ readonly I: typeof CheckApprovalLPRequest;
135
+ readonly O: typeof CheckApprovalLPResponse;
136
+ readonly kind: MethodKind.Unary;
137
+ readonly idempotency: MethodIdempotency.NoSideEffects;
138
+ };
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
+ /**
150
+ * @generated from rpc trading.v1.tradingService.Send
151
+ */
152
+ readonly send: {
153
+ readonly name: "Send";
154
+ readonly I: typeof SendRequest;
155
+ readonly O: typeof SendResponse;
156
+ readonly kind: MethodKind.Unary;
157
+ readonly idempotency: MethodIdempotency.NoSideEffects;
158
+ };
159
+ /**
160
+ * @generated from rpc trading.v1.tradingService.CheckWalletDelegation
161
+ */
162
+ readonly checkWalletDelegation: {
163
+ readonly name: "CheckWalletDelegation";
164
+ readonly I: typeof CheckWalletDelegationRequest;
165
+ readonly O: typeof CheckWalletDelegationResponse;
166
+ readonly kind: MethodKind.Unary;
167
+ readonly idempotency: MethodIdempotency.NoSideEffects;
168
+ };
169
+ /**
170
+ * @generated from rpc trading.v1.tradingService.PoolInfo
171
+ */
172
+ readonly poolInfo: {
173
+ readonly name: "PoolInfo";
174
+ readonly I: typeof PoolInfoRequest;
175
+ readonly O: typeof PoolInfoResponse;
176
+ readonly kind: MethodKind.Unary;
177
+ readonly idempotency: MethodIdempotency.NoSideEffects;
178
+ };
179
+ /**
180
+ * @generated from rpc trading.v1.tradingService.Swap5792
181
+ */
182
+ readonly swap5792: {
183
+ readonly name: "Swap5792";
184
+ readonly I: typeof Swap5792Request;
185
+ readonly O: typeof Swap5792Response;
186
+ readonly kind: MethodKind.Unary;
187
+ readonly idempotency: MethodIdempotency.NoSideEffects;
188
+ };
189
+ /**
190
+ * @generated from rpc trading.v1.tradingService.GetLPPriceDiscrepancy
191
+ */
192
+ readonly getLPPriceDiscrepancy: {
193
+ readonly name: "GetLPPriceDiscrepancy";
194
+ readonly I: typeof GetLPPriceDiscrepancyRequest;
195
+ readonly O: typeof GetLPPriceDiscrepancyResponse;
196
+ readonly kind: MethodKind.Unary;
197
+ readonly idempotency: MethodIdempotency.NoSideEffects;
198
+ };
199
+ };
200
+ };
@@ -0,0 +1,204 @@
1
+ // @generated by protoc-gen-connect-es v1.4.0 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 { 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";
6
+ import { MethodIdempotency, MethodKind } from "@bufbuild/protobuf";
7
+ /**
8
+ * @generated from service trading.v1.tradingService
9
+ */
10
+ export const tradingService = {
11
+ typeName: "trading.v1.tradingService",
12
+ methods: {
13
+ /**
14
+ * @generated from rpc trading.v1.tradingService.Quote
15
+ */
16
+ quote: {
17
+ name: "Quote",
18
+ I: QuoteRequest,
19
+ O: QuoteResponse,
20
+ kind: MethodKind.Unary,
21
+ idempotency: MethodIdempotency.NoSideEffects,
22
+ },
23
+ /**
24
+ * @generated from rpc trading.v1.tradingService.Swap
25
+ */
26
+ swap: {
27
+ name: "Swap",
28
+ I: SwapRequest,
29
+ O: SwapResponse,
30
+ kind: MethodKind.Unary,
31
+ idempotency: MethodIdempotency.NoSideEffects,
32
+ },
33
+ /**
34
+ * @generated from rpc trading.v1.tradingService.CheckApproval
35
+ */
36
+ checkApproval: {
37
+ name: "CheckApproval",
38
+ I: CheckApprovalRequest,
39
+ O: CheckApprovalResponse,
40
+ kind: MethodKind.Unary,
41
+ idempotency: MethodIdempotency.NoSideEffects,
42
+ },
43
+ /**
44
+ * @generated from rpc trading.v1.tradingService.GetSwaps
45
+ */
46
+ getSwaps: {
47
+ name: "GetSwaps",
48
+ I: GetSwapsRequest,
49
+ O: GetSwapsResponse,
50
+ kind: MethodKind.Unary,
51
+ idempotency: MethodIdempotency.NoSideEffects,
52
+ },
53
+ /**
54
+ * @generated from rpc trading.v1.tradingService.SwappableTokens
55
+ */
56
+ swappableTokens: {
57
+ name: "SwappableTokens",
58
+ I: SwappableTokensRequest,
59
+ O: SwappableTokensResponse,
60
+ kind: MethodKind.Unary,
61
+ idempotency: MethodIdempotency.NoSideEffects,
62
+ },
63
+ /**
64
+ * @generated from rpc trading.v1.tradingService.GetOrders
65
+ */
66
+ getOrders: {
67
+ name: "GetOrders",
68
+ I: GetOrdersRequest,
69
+ O: GetOrdersResponse,
70
+ kind: MethodKind.Unary,
71
+ idempotency: MethodIdempotency.NoSideEffects,
72
+ },
73
+ /**
74
+ * @generated from rpc trading.v1.tradingService.Order
75
+ */
76
+ order: {
77
+ name: "Order",
78
+ I: OrderRequest,
79
+ O: OrderResponse,
80
+ kind: MethodKind.Unary,
81
+ idempotency: MethodIdempotency.NoSideEffects,
82
+ },
83
+ /**
84
+ * @generated from rpc trading.v1.tradingService.CreateLPPosition
85
+ */
86
+ createLPPosition: {
87
+ name: "CreateLPPosition",
88
+ I: CreateLPPositionRequest,
89
+ O: CreateLPPositionResponse,
90
+ kind: MethodKind.Unary,
91
+ idempotency: MethodIdempotency.NoSideEffects,
92
+ },
93
+ /**
94
+ * @generated from rpc trading.v1.tradingService.IncreaseLPPosition
95
+ */
96
+ increaseLPPosition: {
97
+ name: "IncreaseLPPosition",
98
+ I: IncreaseLPPositionRequest,
99
+ O: IncreaseLPPositionResponse,
100
+ kind: MethodKind.Unary,
101
+ idempotency: MethodIdempotency.NoSideEffects,
102
+ },
103
+ /**
104
+ * @generated from rpc trading.v1.tradingService.DecreaseLPPosition
105
+ */
106
+ decreaseLPPosition: {
107
+ name: "DecreaseLPPosition",
108
+ I: DecreaseLPPositionRequest,
109
+ O: DecreaseLPPositionResponse,
110
+ kind: MethodKind.Unary,
111
+ idempotency: MethodIdempotency.NoSideEffects,
112
+ },
113
+ /**
114
+ * @generated from rpc trading.v1.tradingService.ClaimLPFees
115
+ */
116
+ claimLPFees: {
117
+ name: "ClaimLPFees",
118
+ I: ClaimLPFeesRequest,
119
+ O: ClaimLPFeesResponse,
120
+ kind: MethodKind.Unary,
121
+ idempotency: MethodIdempotency.NoSideEffects,
122
+ },
123
+ /**
124
+ * @generated from rpc trading.v1.tradingService.MigrateLpPosition
125
+ */
126
+ migrateLpPosition: {
127
+ name: "MigrateLpPosition",
128
+ I: MigrateLpPositionRequest,
129
+ O: MigrateLpPositionResponse,
130
+ kind: MethodKind.Unary,
131
+ idempotency: MethodIdempotency.NoSideEffects,
132
+ },
133
+ /**
134
+ * @generated from rpc trading.v1.tradingService.CheckLPApproval
135
+ */
136
+ checkLPApproval: {
137
+ name: "CheckLPApproval",
138
+ I: CheckApprovalLPRequest,
139
+ O: CheckApprovalLPResponse,
140
+ kind: MethodKind.Unary,
141
+ idempotency: MethodIdempotency.NoSideEffects,
142
+ },
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
+ /**
154
+ * @generated from rpc trading.v1.tradingService.Send
155
+ */
156
+ send: {
157
+ name: "Send",
158
+ I: SendRequest,
159
+ O: SendResponse,
160
+ kind: MethodKind.Unary,
161
+ idempotency: MethodIdempotency.NoSideEffects,
162
+ },
163
+ /**
164
+ * @generated from rpc trading.v1.tradingService.CheckWalletDelegation
165
+ */
166
+ checkWalletDelegation: {
167
+ name: "CheckWalletDelegation",
168
+ I: CheckWalletDelegationRequest,
169
+ O: CheckWalletDelegationResponse,
170
+ kind: MethodKind.Unary,
171
+ idempotency: MethodIdempotency.NoSideEffects,
172
+ },
173
+ /**
174
+ * @generated from rpc trading.v1.tradingService.PoolInfo
175
+ */
176
+ poolInfo: {
177
+ name: "PoolInfo",
178
+ I: PoolInfoRequest,
179
+ O: PoolInfoResponse,
180
+ kind: MethodKind.Unary,
181
+ idempotency: MethodIdempotency.NoSideEffects,
182
+ },
183
+ /**
184
+ * @generated from rpc trading.v1.tradingService.Swap5792
185
+ */
186
+ swap5792: {
187
+ name: "Swap5792",
188
+ I: Swap5792Request,
189
+ O: Swap5792Response,
190
+ kind: MethodKind.Unary,
191
+ idempotency: MethodIdempotency.NoSideEffects,
192
+ },
193
+ /**
194
+ * @generated from rpc trading.v1.tradingService.GetLPPriceDiscrepancy
195
+ */
196
+ getLPPriceDiscrepancy: {
197
+ name: "GetLPPriceDiscrepancy",
198
+ I: GetLPPriceDiscrepancyRequest,
199
+ O: GetLPPriceDiscrepancyResponse,
200
+ kind: MethodKind.Unary,
201
+ idempotency: MethodIdempotency.NoSideEffects,
202
+ },
203
+ }
204
+ };