@centurion_project/client-liquidity 0.3.0-ctn.1
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/uniswap/liquidity/v1/api-LiquidityService_connectquery.d.ts +142 -0
- package/dist/uniswap/liquidity/v1/api-LiquidityService_connectquery.js +146 -0
- package/dist/uniswap/liquidity/v1/api_connect.d.ts +110 -0
- package/dist/uniswap/liquidity/v1/api_connect.js +114 -0
- package/dist/uniswap/liquidity/v1/api_pb.d.ts +833 -0
- package/dist/uniswap/liquidity/v1/api_pb.js +827 -0
- package/dist/uniswap/liquidity/v1/auction-AuctionService_connectquery.d.ts +86 -0
- package/dist/uniswap/liquidity/v1/auction-AuctionService_connectquery.js +90 -0
- package/dist/uniswap/liquidity/v1/auction_connect.d.ts +70 -0
- package/dist/uniswap/liquidity/v1/auction_connect.js +74 -0
- package/dist/uniswap/liquidity/v1/auction_pb.d.ts +337 -0
- package/dist/uniswap/liquidity/v1/auction_pb.js +468 -0
- package/dist/uniswap/liquidity/v1/types_pb.d.ts +1963 -0
- package/dist/uniswap/liquidity/v1/types_pb.js +2223 -0
- package/dist/uniswap/liquidity/v1/x_verification-XVerificationService_connectquery.d.ts +34 -0
- package/dist/uniswap/liquidity/v1/x_verification-XVerificationService_connectquery.js +38 -0
- package/dist/uniswap/liquidity/v1/x_verification_connect.d.ts +34 -0
- package/dist/uniswap/liquidity/v1/x_verification_connect.js +38 -0
- package/dist/uniswap/liquidity/v1/x_verification_pb.d.ts +96 -0
- package/dist/uniswap/liquidity/v1/x_verification_pb.js +154 -0
- package/dist/uniswap/liquidity/v2/api-LiquidityService_connectquery.d.ts +100 -0
- package/dist/uniswap/liquidity/v2/api-LiquidityService_connectquery.js +104 -0
- package/dist/uniswap/liquidity/v2/api_connect.d.ts +80 -0
- package/dist/uniswap/liquidity/v2/api_connect.js +84 -0
- package/dist/uniswap/liquidity/v2/api_pb.d.ts +660 -0
- package/dist/uniswap/liquidity/v2/api_pb.js +637 -0
- package/dist/uniswap/liquidity/v2/types_pb.d.ts +266 -0
- package/dist/uniswap/liquidity/v2/types_pb.js +407 -0
- package/package.json +11 -0
|
@@ -0,0 +1,637 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v1.10.1 with parameter "target=ts"
|
|
2
|
+
// @generated from file uniswap/liquidity/v2/api.proto (package uniswap.liquidity.v2, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
6
|
+
import { ChainId, NFTPermitData, PermitBatchData, Protocols, TransactionRequest, V3Position } from "../v1/types_pb.js";
|
|
7
|
+
import { ApprovalTransactionRequest, CreatePoolParameters, CreatePositionExistingPoolParameters, CreateToken, GasUrgency, LPAction, LPToken, PositionPriceBounds, PositionTickBounds, V2PoolParameters } from "./types_pb.js";
|
|
8
|
+
/**
|
|
9
|
+
* MigrateV2ToV3LPPosition
|
|
10
|
+
*
|
|
11
|
+
* @generated from message uniswap.liquidity.v2.MigrateV2ToV3LPPositionRequest
|
|
12
|
+
*/
|
|
13
|
+
export class MigrateV2ToV3LPPositionRequest extends Message {
|
|
14
|
+
constructor(data) {
|
|
15
|
+
super();
|
|
16
|
+
/**
|
|
17
|
+
* @generated from field: string wallet_address = 1;
|
|
18
|
+
*/
|
|
19
|
+
this.walletAddress = "";
|
|
20
|
+
/**
|
|
21
|
+
* @generated from field: uniswap.liquidity.v1.ChainId chain_id = 2;
|
|
22
|
+
*/
|
|
23
|
+
this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
|
|
24
|
+
proto3.util.initPartial(data, this);
|
|
25
|
+
}
|
|
26
|
+
static fromBinary(bytes, options) {
|
|
27
|
+
return new MigrateV2ToV3LPPositionRequest().fromBinary(bytes, options);
|
|
28
|
+
}
|
|
29
|
+
static fromJson(jsonValue, options) {
|
|
30
|
+
return new MigrateV2ToV3LPPositionRequest().fromJson(jsonValue, options);
|
|
31
|
+
}
|
|
32
|
+
static fromJsonString(jsonString, options) {
|
|
33
|
+
return new MigrateV2ToV3LPPositionRequest().fromJsonString(jsonString, options);
|
|
34
|
+
}
|
|
35
|
+
static equals(a, b) {
|
|
36
|
+
return proto3.util.equals(MigrateV2ToV3LPPositionRequest, a, b);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
MigrateV2ToV3LPPositionRequest.runtime = proto3;
|
|
40
|
+
MigrateV2ToV3LPPositionRequest.typeName = "uniswap.liquidity.v2.MigrateV2ToV3LPPositionRequest";
|
|
41
|
+
MigrateV2ToV3LPPositionRequest.fields = proto3.util.newFieldList(() => [
|
|
42
|
+
{ no: 1, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
43
|
+
{ no: 2, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
|
|
44
|
+
{ no: 3, name: "v3_params", kind: "message", T: V3Position },
|
|
45
|
+
{ no: 4, name: "slippage_bps", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
|
|
46
|
+
{ no: 5, name: "deadline", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
47
|
+
{ no: 6, name: "refund_as_eth", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
48
|
+
{ no: 7, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
49
|
+
]);
|
|
50
|
+
/**
|
|
51
|
+
* @generated from message uniswap.liquidity.v2.MigrateV2ToV3LPPositionResponse
|
|
52
|
+
*/
|
|
53
|
+
export class MigrateV2ToV3LPPositionResponse extends Message {
|
|
54
|
+
constructor(data) {
|
|
55
|
+
super();
|
|
56
|
+
/**
|
|
57
|
+
* @generated from field: string request_id = 1;
|
|
58
|
+
*/
|
|
59
|
+
this.requestId = "";
|
|
60
|
+
proto3.util.initPartial(data, this);
|
|
61
|
+
}
|
|
62
|
+
static fromBinary(bytes, options) {
|
|
63
|
+
return new MigrateV2ToV3LPPositionResponse().fromBinary(bytes, options);
|
|
64
|
+
}
|
|
65
|
+
static fromJson(jsonValue, options) {
|
|
66
|
+
return new MigrateV2ToV3LPPositionResponse().fromJson(jsonValue, options);
|
|
67
|
+
}
|
|
68
|
+
static fromJsonString(jsonString, options) {
|
|
69
|
+
return new MigrateV2ToV3LPPositionResponse().fromJsonString(jsonString, options);
|
|
70
|
+
}
|
|
71
|
+
static equals(a, b) {
|
|
72
|
+
return proto3.util.equals(MigrateV2ToV3LPPositionResponse, a, b);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
MigrateV2ToV3LPPositionResponse.runtime = proto3;
|
|
76
|
+
MigrateV2ToV3LPPositionResponse.typeName = "uniswap.liquidity.v2.MigrateV2ToV3LPPositionResponse";
|
|
77
|
+
MigrateV2ToV3LPPositionResponse.fields = proto3.util.newFieldList(() => [
|
|
78
|
+
{ no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
79
|
+
{ no: 2, name: "migrate", kind: "message", T: TransactionRequest },
|
|
80
|
+
{ no: 3, name: "gasFee", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
81
|
+
{ no: 4, name: "estimated_refund_token0", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
82
|
+
{ no: 5, name: "estimated_refund_token1", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
83
|
+
]);
|
|
84
|
+
/**
|
|
85
|
+
* CheckLPApproval
|
|
86
|
+
*
|
|
87
|
+
* @generated from message uniswap.liquidity.v2.LPApprovalRequest
|
|
88
|
+
*/
|
|
89
|
+
export class LPApprovalRequest extends Message {
|
|
90
|
+
constructor(data) {
|
|
91
|
+
super();
|
|
92
|
+
/**
|
|
93
|
+
* @generated from field: string wallet_address = 1;
|
|
94
|
+
*/
|
|
95
|
+
this.walletAddress = "";
|
|
96
|
+
/**
|
|
97
|
+
* @generated from field: uniswap.liquidity.v1.Protocols protocol = 2;
|
|
98
|
+
*/
|
|
99
|
+
this.protocol = Protocols.V2;
|
|
100
|
+
/**
|
|
101
|
+
* @generated from field: uniswap.liquidity.v1.ChainId chain_id = 3;
|
|
102
|
+
*/
|
|
103
|
+
this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
|
|
104
|
+
/**
|
|
105
|
+
* @generated from field: repeated uniswap.liquidity.v2.LPToken lp_tokens = 4;
|
|
106
|
+
*/
|
|
107
|
+
this.lpTokens = [];
|
|
108
|
+
/**
|
|
109
|
+
* @generated from field: uniswap.liquidity.v2.LPAction action = 5;
|
|
110
|
+
*/
|
|
111
|
+
this.action = LPAction.CREATE;
|
|
112
|
+
proto3.util.initPartial(data, this);
|
|
113
|
+
}
|
|
114
|
+
static fromBinary(bytes, options) {
|
|
115
|
+
return new LPApprovalRequest().fromBinary(bytes, options);
|
|
116
|
+
}
|
|
117
|
+
static fromJson(jsonValue, options) {
|
|
118
|
+
return new LPApprovalRequest().fromJson(jsonValue, options);
|
|
119
|
+
}
|
|
120
|
+
static fromJsonString(jsonString, options) {
|
|
121
|
+
return new LPApprovalRequest().fromJsonString(jsonString, options);
|
|
122
|
+
}
|
|
123
|
+
static equals(a, b) {
|
|
124
|
+
return proto3.util.equals(LPApprovalRequest, a, b);
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
LPApprovalRequest.runtime = proto3;
|
|
128
|
+
LPApprovalRequest.typeName = "uniswap.liquidity.v2.LPApprovalRequest";
|
|
129
|
+
LPApprovalRequest.fields = proto3.util.newFieldList(() => [
|
|
130
|
+
{ no: 1, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
131
|
+
{ no: 2, name: "protocol", kind: "enum", T: proto3.getEnumType(Protocols) },
|
|
132
|
+
{ no: 3, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
|
|
133
|
+
{ no: 4, name: "lp_tokens", kind: "message", T: LPToken, repeated: true },
|
|
134
|
+
{ no: 5, name: "action", kind: "enum", T: proto3.getEnumType(LPAction) },
|
|
135
|
+
{ no: 6, name: "include_gas_info", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
136
|
+
{ no: 7, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
137
|
+
{ no: 8, name: "generate_permit_as_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
138
|
+
{ no: 9, name: "urgency", kind: "enum", T: proto3.getEnumType(GasUrgency), opt: true },
|
|
139
|
+
{ no: 10, name: "v3_nft_token_id", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
140
|
+
]);
|
|
141
|
+
/**
|
|
142
|
+
* @generated from message uniswap.liquidity.v2.LPApprovalResponse
|
|
143
|
+
*/
|
|
144
|
+
export class LPApprovalResponse extends Message {
|
|
145
|
+
constructor(data) {
|
|
146
|
+
super();
|
|
147
|
+
/**
|
|
148
|
+
* @generated from field: string request_id = 1;
|
|
149
|
+
*/
|
|
150
|
+
this.requestId = "";
|
|
151
|
+
/**
|
|
152
|
+
* @generated from field: repeated uniswap.liquidity.v2.ApprovalTransactionRequest transactions = 2;
|
|
153
|
+
*/
|
|
154
|
+
this.transactions = [];
|
|
155
|
+
proto3.util.initPartial(data, this);
|
|
156
|
+
}
|
|
157
|
+
static fromBinary(bytes, options) {
|
|
158
|
+
return new LPApprovalResponse().fromBinary(bytes, options);
|
|
159
|
+
}
|
|
160
|
+
static fromJson(jsonValue, options) {
|
|
161
|
+
return new LPApprovalResponse().fromJson(jsonValue, options);
|
|
162
|
+
}
|
|
163
|
+
static fromJsonString(jsonString, options) {
|
|
164
|
+
return new LPApprovalResponse().fromJsonString(jsonString, options);
|
|
165
|
+
}
|
|
166
|
+
static equals(a, b) {
|
|
167
|
+
return proto3.util.equals(LPApprovalResponse, a, b);
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
LPApprovalResponse.runtime = proto3;
|
|
171
|
+
LPApprovalResponse.typeName = "uniswap.liquidity.v2.LPApprovalResponse";
|
|
172
|
+
LPApprovalResponse.fields = proto3.util.newFieldList(() => [
|
|
173
|
+
{ no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
174
|
+
{ no: 2, name: "transactions", kind: "message", T: ApprovalTransactionRequest, repeated: true },
|
|
175
|
+
{ no: 3, name: "v4_batch_permit_data", kind: "message", T: PermitBatchData, opt: true },
|
|
176
|
+
{ no: 4, name: "v3_nft_permit_data", kind: "message", T: NFTPermitData, opt: true },
|
|
177
|
+
]);
|
|
178
|
+
/**
|
|
179
|
+
* @generated from message uniswap.liquidity.v2.CreateClassicPositionRequest
|
|
180
|
+
*/
|
|
181
|
+
export class CreateClassicPositionRequest extends Message {
|
|
182
|
+
constructor(data) {
|
|
183
|
+
super();
|
|
184
|
+
/**
|
|
185
|
+
* @generated from field: string wallet_address = 1;
|
|
186
|
+
*/
|
|
187
|
+
this.walletAddress = "";
|
|
188
|
+
proto3.util.initPartial(data, this);
|
|
189
|
+
}
|
|
190
|
+
static fromBinary(bytes, options) {
|
|
191
|
+
return new CreateClassicPositionRequest().fromBinary(bytes, options);
|
|
192
|
+
}
|
|
193
|
+
static fromJson(jsonValue, options) {
|
|
194
|
+
return new CreateClassicPositionRequest().fromJson(jsonValue, options);
|
|
195
|
+
}
|
|
196
|
+
static fromJsonString(jsonString, options) {
|
|
197
|
+
return new CreateClassicPositionRequest().fromJsonString(jsonString, options);
|
|
198
|
+
}
|
|
199
|
+
static equals(a, b) {
|
|
200
|
+
return proto3.util.equals(CreateClassicPositionRequest, a, b);
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
CreateClassicPositionRequest.runtime = proto3;
|
|
204
|
+
CreateClassicPositionRequest.typeName = "uniswap.liquidity.v2.CreateClassicPositionRequest";
|
|
205
|
+
CreateClassicPositionRequest.fields = proto3.util.newFieldList(() => [
|
|
206
|
+
{ no: 1, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
207
|
+
{ no: 3, name: "pool_parameters", kind: "message", T: V2PoolParameters },
|
|
208
|
+
{ no: 4, name: "independent_token", kind: "message", T: LPToken },
|
|
209
|
+
{ no: 6, name: "dependent_token", kind: "message", T: LPToken, opt: true },
|
|
210
|
+
{ no: 7, name: "slippage_tolerance", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
|
|
211
|
+
{ no: 8, name: "deadline", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
212
|
+
{ no: 9, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
213
|
+
{ no: 10, name: "urgency", kind: "enum", T: proto3.getEnumType(GasUrgency), opt: true },
|
|
214
|
+
]);
|
|
215
|
+
/**
|
|
216
|
+
* @generated from message uniswap.liquidity.v2.CreateClassicPositionResponse
|
|
217
|
+
*/
|
|
218
|
+
export class CreateClassicPositionResponse extends Message {
|
|
219
|
+
constructor(data) {
|
|
220
|
+
super();
|
|
221
|
+
/**
|
|
222
|
+
* @generated from field: string request_id = 1;
|
|
223
|
+
*/
|
|
224
|
+
this.requestId = "";
|
|
225
|
+
proto3.util.initPartial(data, this);
|
|
226
|
+
}
|
|
227
|
+
static fromBinary(bytes, options) {
|
|
228
|
+
return new CreateClassicPositionResponse().fromBinary(bytes, options);
|
|
229
|
+
}
|
|
230
|
+
static fromJson(jsonValue, options) {
|
|
231
|
+
return new CreateClassicPositionResponse().fromJson(jsonValue, options);
|
|
232
|
+
}
|
|
233
|
+
static fromJsonString(jsonString, options) {
|
|
234
|
+
return new CreateClassicPositionResponse().fromJsonString(jsonString, options);
|
|
235
|
+
}
|
|
236
|
+
static equals(a, b) {
|
|
237
|
+
return proto3.util.equals(CreateClassicPositionResponse, a, b);
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
CreateClassicPositionResponse.runtime = proto3;
|
|
241
|
+
CreateClassicPositionResponse.typeName = "uniswap.liquidity.v2.CreateClassicPositionResponse";
|
|
242
|
+
CreateClassicPositionResponse.fields = proto3.util.newFieldList(() => [
|
|
243
|
+
{ no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
244
|
+
{ no: 2, name: "independent_token", kind: "message", T: LPToken },
|
|
245
|
+
{ no: 3, name: "dependent_token", kind: "message", T: LPToken },
|
|
246
|
+
{ no: 4, name: "create", kind: "message", T: TransactionRequest },
|
|
247
|
+
{ no: 5, name: "gas_fee", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
248
|
+
]);
|
|
249
|
+
/**
|
|
250
|
+
* DecreaseLPPosition
|
|
251
|
+
*
|
|
252
|
+
* @generated from message uniswap.liquidity.v2.DecreasePositionRequest
|
|
253
|
+
*/
|
|
254
|
+
export class DecreasePositionRequest extends Message {
|
|
255
|
+
constructor(data) {
|
|
256
|
+
super();
|
|
257
|
+
/**
|
|
258
|
+
* @generated from field: string wallet_address = 1;
|
|
259
|
+
*/
|
|
260
|
+
this.walletAddress = "";
|
|
261
|
+
/**
|
|
262
|
+
* @generated from field: uniswap.liquidity.v1.ChainId chain_id = 2;
|
|
263
|
+
*/
|
|
264
|
+
this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
|
|
265
|
+
/**
|
|
266
|
+
* @generated from field: uniswap.liquidity.v1.Protocols protocol = 3;
|
|
267
|
+
*/
|
|
268
|
+
this.protocol = Protocols.V2;
|
|
269
|
+
/**
|
|
270
|
+
* @generated from field: string token_0_address = 4;
|
|
271
|
+
*/
|
|
272
|
+
this.token0Address = "";
|
|
273
|
+
/**
|
|
274
|
+
* @generated from field: string token_1_address = 5;
|
|
275
|
+
*/
|
|
276
|
+
this.token1Address = "";
|
|
277
|
+
/**
|
|
278
|
+
* @generated from field: int32 liquidity_percentage_to_decrease = 7;
|
|
279
|
+
*/
|
|
280
|
+
this.liquidityPercentageToDecrease = 0;
|
|
281
|
+
proto3.util.initPartial(data, this);
|
|
282
|
+
}
|
|
283
|
+
static fromBinary(bytes, options) {
|
|
284
|
+
return new DecreasePositionRequest().fromBinary(bytes, options);
|
|
285
|
+
}
|
|
286
|
+
static fromJson(jsonValue, options) {
|
|
287
|
+
return new DecreasePositionRequest().fromJson(jsonValue, options);
|
|
288
|
+
}
|
|
289
|
+
static fromJsonString(jsonString, options) {
|
|
290
|
+
return new DecreasePositionRequest().fromJsonString(jsonString, options);
|
|
291
|
+
}
|
|
292
|
+
static equals(a, b) {
|
|
293
|
+
return proto3.util.equals(DecreasePositionRequest, a, b);
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
DecreasePositionRequest.runtime = proto3;
|
|
297
|
+
DecreasePositionRequest.typeName = "uniswap.liquidity.v2.DecreasePositionRequest";
|
|
298
|
+
DecreasePositionRequest.fields = proto3.util.newFieldList(() => [
|
|
299
|
+
{ no: 1, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
300
|
+
{ no: 2, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
|
|
301
|
+
{ no: 3, name: "protocol", kind: "enum", T: proto3.getEnumType(Protocols) },
|
|
302
|
+
{ no: 4, name: "token_0_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
303
|
+
{ no: 5, name: "token_1_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
304
|
+
{ no: 6, name: "nft_token_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
305
|
+
{ no: 7, name: "liquidity_percentage_to_decrease", kind: "scalar", T: 5 /* ScalarType.INT32 */ },
|
|
306
|
+
{ no: 8, name: "slippage_tolerance", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
|
|
307
|
+
{ no: 9, name: "deadline", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
308
|
+
{ no: 10, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
309
|
+
{ no: 11, name: "withdraw_as_weth", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
310
|
+
{ no: 12, name: "urgency", kind: "enum", T: proto3.getEnumType(GasUrgency), opt: true },
|
|
311
|
+
]);
|
|
312
|
+
/**
|
|
313
|
+
* @generated from message uniswap.liquidity.v2.DecreasePositionResponse
|
|
314
|
+
*/
|
|
315
|
+
export class DecreasePositionResponse extends Message {
|
|
316
|
+
constructor(data) {
|
|
317
|
+
super();
|
|
318
|
+
/**
|
|
319
|
+
* @generated from field: string request_id = 1;
|
|
320
|
+
*/
|
|
321
|
+
this.requestId = "";
|
|
322
|
+
proto3.util.initPartial(data, this);
|
|
323
|
+
}
|
|
324
|
+
static fromBinary(bytes, options) {
|
|
325
|
+
return new DecreasePositionResponse().fromBinary(bytes, options);
|
|
326
|
+
}
|
|
327
|
+
static fromJson(jsonValue, options) {
|
|
328
|
+
return new DecreasePositionResponse().fromJson(jsonValue, options);
|
|
329
|
+
}
|
|
330
|
+
static fromJsonString(jsonString, options) {
|
|
331
|
+
return new DecreasePositionResponse().fromJsonString(jsonString, options);
|
|
332
|
+
}
|
|
333
|
+
static equals(a, b) {
|
|
334
|
+
return proto3.util.equals(DecreasePositionResponse, a, b);
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
DecreasePositionResponse.runtime = proto3;
|
|
338
|
+
DecreasePositionResponse.typeName = "uniswap.liquidity.v2.DecreasePositionResponse";
|
|
339
|
+
DecreasePositionResponse.fields = proto3.util.newFieldList(() => [
|
|
340
|
+
{ no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
341
|
+
{ no: 2, name: "token_0", kind: "message", T: LPToken },
|
|
342
|
+
{ no: 3, name: "token_1", kind: "message", T: LPToken },
|
|
343
|
+
{ no: 4, name: "decrease", kind: "message", T: TransactionRequest },
|
|
344
|
+
{ no: 5, name: "gas_fee", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
345
|
+
]);
|
|
346
|
+
/**
|
|
347
|
+
* IncreaseLPPosition
|
|
348
|
+
*
|
|
349
|
+
* @generated from message uniswap.liquidity.v2.IncreasePositionRequest
|
|
350
|
+
*/
|
|
351
|
+
export class IncreasePositionRequest extends Message {
|
|
352
|
+
constructor(data) {
|
|
353
|
+
super();
|
|
354
|
+
/**
|
|
355
|
+
* @generated from field: string wallet_address = 1;
|
|
356
|
+
*/
|
|
357
|
+
this.walletAddress = "";
|
|
358
|
+
/**
|
|
359
|
+
* @generated from field: uniswap.liquidity.v1.ChainId chain_id = 2;
|
|
360
|
+
*/
|
|
361
|
+
this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
|
|
362
|
+
/**
|
|
363
|
+
* @generated from field: uniswap.liquidity.v1.Protocols protocol = 3;
|
|
364
|
+
*/
|
|
365
|
+
this.protocol = Protocols.V2;
|
|
366
|
+
/**
|
|
367
|
+
* @generated from field: string token_0_address = 4;
|
|
368
|
+
*/
|
|
369
|
+
this.token0Address = "";
|
|
370
|
+
/**
|
|
371
|
+
* @generated from field: string token_1_address = 5;
|
|
372
|
+
*/
|
|
373
|
+
this.token1Address = "";
|
|
374
|
+
proto3.util.initPartial(data, this);
|
|
375
|
+
}
|
|
376
|
+
static fromBinary(bytes, options) {
|
|
377
|
+
return new IncreasePositionRequest().fromBinary(bytes, options);
|
|
378
|
+
}
|
|
379
|
+
static fromJson(jsonValue, options) {
|
|
380
|
+
return new IncreasePositionRequest().fromJson(jsonValue, options);
|
|
381
|
+
}
|
|
382
|
+
static fromJsonString(jsonString, options) {
|
|
383
|
+
return new IncreasePositionRequest().fromJsonString(jsonString, options);
|
|
384
|
+
}
|
|
385
|
+
static equals(a, b) {
|
|
386
|
+
return proto3.util.equals(IncreasePositionRequest, a, b);
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
IncreasePositionRequest.runtime = proto3;
|
|
390
|
+
IncreasePositionRequest.typeName = "uniswap.liquidity.v2.IncreasePositionRequest";
|
|
391
|
+
IncreasePositionRequest.fields = proto3.util.newFieldList(() => [
|
|
392
|
+
{ no: 1, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
393
|
+
{ no: 2, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
|
|
394
|
+
{ no: 3, name: "protocol", kind: "enum", T: proto3.getEnumType(Protocols) },
|
|
395
|
+
{ no: 4, name: "token_0_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
396
|
+
{ no: 5, name: "token_1_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
397
|
+
{ no: 6, name: "nft_token_id", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
398
|
+
{ no: 7, name: "independent_token", kind: "message", T: LPToken },
|
|
399
|
+
{ no: 8, name: "slippage_tolerance", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
|
|
400
|
+
{ no: 9, name: "deadline", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
401
|
+
{ no: 10, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
402
|
+
{ no: 11, name: "v4_batch_permit_data", kind: "message", T: PermitBatchData, opt: true },
|
|
403
|
+
{ no: 12, name: "signature", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
404
|
+
{ no: 13, name: "urgency", kind: "enum", T: proto3.getEnumType(GasUrgency), opt: true },
|
|
405
|
+
]);
|
|
406
|
+
/**
|
|
407
|
+
* @generated from message uniswap.liquidity.v2.IncreasePositionResponse
|
|
408
|
+
*/
|
|
409
|
+
export class IncreasePositionResponse extends Message {
|
|
410
|
+
constructor(data) {
|
|
411
|
+
super();
|
|
412
|
+
/**
|
|
413
|
+
* @generated from field: string request_id = 1;
|
|
414
|
+
*/
|
|
415
|
+
this.requestId = "";
|
|
416
|
+
proto3.util.initPartial(data, this);
|
|
417
|
+
}
|
|
418
|
+
static fromBinary(bytes, options) {
|
|
419
|
+
return new IncreasePositionResponse().fromBinary(bytes, options);
|
|
420
|
+
}
|
|
421
|
+
static fromJson(jsonValue, options) {
|
|
422
|
+
return new IncreasePositionResponse().fromJson(jsonValue, options);
|
|
423
|
+
}
|
|
424
|
+
static fromJsonString(jsonString, options) {
|
|
425
|
+
return new IncreasePositionResponse().fromJsonString(jsonString, options);
|
|
426
|
+
}
|
|
427
|
+
static equals(a, b) {
|
|
428
|
+
return proto3.util.equals(IncreasePositionResponse, a, b);
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
IncreasePositionResponse.runtime = proto3;
|
|
432
|
+
IncreasePositionResponse.typeName = "uniswap.liquidity.v2.IncreasePositionResponse";
|
|
433
|
+
IncreasePositionResponse.fields = proto3.util.newFieldList(() => [
|
|
434
|
+
{ no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
435
|
+
{ no: 2, name: "token_0", kind: "message", T: LPToken },
|
|
436
|
+
{ no: 3, name: "token_1", kind: "message", T: LPToken },
|
|
437
|
+
{ no: 4, name: "increase", kind: "message", T: TransactionRequest },
|
|
438
|
+
{ no: 5, name: "gas_fee", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
439
|
+
]);
|
|
440
|
+
/**
|
|
441
|
+
* CreatePosition (V3/V4)
|
|
442
|
+
*
|
|
443
|
+
* @generated from message uniswap.liquidity.v2.CreatePositionRequest
|
|
444
|
+
*/
|
|
445
|
+
export class CreatePositionRequest extends Message {
|
|
446
|
+
constructor(data) {
|
|
447
|
+
super();
|
|
448
|
+
/**
|
|
449
|
+
* @generated from field: string wallet_address = 1;
|
|
450
|
+
*/
|
|
451
|
+
this.walletAddress = "";
|
|
452
|
+
/**
|
|
453
|
+
* @generated from oneof uniswap.liquidity.v2.CreatePositionRequest.pool
|
|
454
|
+
*/
|
|
455
|
+
this.pool = { case: undefined };
|
|
456
|
+
/**
|
|
457
|
+
* @generated from field: uniswap.liquidity.v1.ChainId chain_id = 4;
|
|
458
|
+
*/
|
|
459
|
+
this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
|
|
460
|
+
/**
|
|
461
|
+
* @generated from field: uniswap.liquidity.v1.Protocols protocol = 5;
|
|
462
|
+
*/
|
|
463
|
+
this.protocol = Protocols.V2;
|
|
464
|
+
/**
|
|
465
|
+
* @generated from oneof uniswap.liquidity.v2.CreatePositionRequest.tickPrice
|
|
466
|
+
*/
|
|
467
|
+
this.tickPrice = { case: undefined };
|
|
468
|
+
proto3.util.initPartial(data, this);
|
|
469
|
+
}
|
|
470
|
+
static fromBinary(bytes, options) {
|
|
471
|
+
return new CreatePositionRequest().fromBinary(bytes, options);
|
|
472
|
+
}
|
|
473
|
+
static fromJson(jsonValue, options) {
|
|
474
|
+
return new CreatePositionRequest().fromJson(jsonValue, options);
|
|
475
|
+
}
|
|
476
|
+
static fromJsonString(jsonString, options) {
|
|
477
|
+
return new CreatePositionRequest().fromJsonString(jsonString, options);
|
|
478
|
+
}
|
|
479
|
+
static equals(a, b) {
|
|
480
|
+
return proto3.util.equals(CreatePositionRequest, a, b);
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
CreatePositionRequest.runtime = proto3;
|
|
484
|
+
CreatePositionRequest.typeName = "uniswap.liquidity.v2.CreatePositionRequest";
|
|
485
|
+
CreatePositionRequest.fields = proto3.util.newFieldList(() => [
|
|
486
|
+
{ no: 1, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
487
|
+
{ no: 2, name: "existing_pool", kind: "message", T: CreatePositionExistingPoolParameters, oneof: "pool" },
|
|
488
|
+
{ no: 3, name: "new_pool", kind: "message", T: CreatePoolParameters, oneof: "pool" },
|
|
489
|
+
{ no: 4, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
|
|
490
|
+
{ no: 5, name: "protocol", kind: "enum", T: proto3.getEnumType(Protocols) },
|
|
491
|
+
{ no: 6, name: "independent_token", kind: "message", T: CreateToken },
|
|
492
|
+
{ no: 7, name: "dependent_token", kind: "message", T: CreateToken, opt: true },
|
|
493
|
+
{ no: 8, name: "price_bounds", kind: "message", T: PositionPriceBounds, oneof: "tickPrice" },
|
|
494
|
+
{ no: 9, name: "tick_bounds", kind: "message", T: PositionTickBounds, oneof: "tickPrice" },
|
|
495
|
+
{ no: 10, name: "slippage_tolerance", kind: "scalar", T: 2 /* ScalarType.FLOAT */, opt: true },
|
|
496
|
+
{ no: 11, name: "deadline", kind: "scalar", T: 5 /* ScalarType.INT32 */, opt: true },
|
|
497
|
+
{ no: 12, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
498
|
+
{ no: 13, name: "urgency", kind: "enum", T: proto3.getEnumType(GasUrgency), opt: true },
|
|
499
|
+
{ no: 14, name: "batch_permit_data", kind: "message", T: PermitBatchData, opt: true },
|
|
500
|
+
{ no: 15, name: "signature", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
501
|
+
{ no: 16, name: "native_token_balance", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
502
|
+
]);
|
|
503
|
+
/**
|
|
504
|
+
* @generated from message uniswap.liquidity.v2.CreatePositionResponse
|
|
505
|
+
*/
|
|
506
|
+
export class CreatePositionResponse extends Message {
|
|
507
|
+
constructor(data) {
|
|
508
|
+
super();
|
|
509
|
+
/**
|
|
510
|
+
* @generated from field: string request_id = 1;
|
|
511
|
+
*/
|
|
512
|
+
this.requestId = "";
|
|
513
|
+
/**
|
|
514
|
+
* @generated from field: string adjusted_min_price = 4;
|
|
515
|
+
*/
|
|
516
|
+
this.adjustedMinPrice = "";
|
|
517
|
+
/**
|
|
518
|
+
* @generated from field: string adjusted_max_price = 5;
|
|
519
|
+
*/
|
|
520
|
+
this.adjustedMaxPrice = "";
|
|
521
|
+
/**
|
|
522
|
+
* @generated from field: sint32 tick_lower = 6;
|
|
523
|
+
*/
|
|
524
|
+
this.tickLower = 0;
|
|
525
|
+
/**
|
|
526
|
+
* @generated from field: sint32 tick_upper = 7;
|
|
527
|
+
*/
|
|
528
|
+
this.tickUpper = 0;
|
|
529
|
+
proto3.util.initPartial(data, this);
|
|
530
|
+
}
|
|
531
|
+
static fromBinary(bytes, options) {
|
|
532
|
+
return new CreatePositionResponse().fromBinary(bytes, options);
|
|
533
|
+
}
|
|
534
|
+
static fromJson(jsonValue, options) {
|
|
535
|
+
return new CreatePositionResponse().fromJson(jsonValue, options);
|
|
536
|
+
}
|
|
537
|
+
static fromJsonString(jsonString, options) {
|
|
538
|
+
return new CreatePositionResponse().fromJsonString(jsonString, options);
|
|
539
|
+
}
|
|
540
|
+
static equals(a, b) {
|
|
541
|
+
return proto3.util.equals(CreatePositionResponse, a, b);
|
|
542
|
+
}
|
|
543
|
+
}
|
|
544
|
+
CreatePositionResponse.runtime = proto3;
|
|
545
|
+
CreatePositionResponse.typeName = "uniswap.liquidity.v2.CreatePositionResponse";
|
|
546
|
+
CreatePositionResponse.fields = proto3.util.newFieldList(() => [
|
|
547
|
+
{ no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
548
|
+
{ no: 2, name: "token_0", kind: "message", T: LPToken },
|
|
549
|
+
{ no: 3, name: "token_1", kind: "message", T: LPToken },
|
|
550
|
+
{ no: 4, name: "adjusted_min_price", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
551
|
+
{ no: 5, name: "adjusted_max_price", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
552
|
+
{ no: 6, name: "tick_lower", kind: "scalar", T: 17 /* ScalarType.SINT32 */ },
|
|
553
|
+
{ no: 7, name: "tick_upper", kind: "scalar", T: 17 /* ScalarType.SINT32 */ },
|
|
554
|
+
{ no: 8, name: "create", kind: "message", T: TransactionRequest },
|
|
555
|
+
{ no: 9, name: "gas_fee", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
556
|
+
]);
|
|
557
|
+
/**
|
|
558
|
+
* @generated from message uniswap.liquidity.v2.ClaimFeesRequest
|
|
559
|
+
*/
|
|
560
|
+
export class ClaimFeesRequest extends Message {
|
|
561
|
+
constructor(data) {
|
|
562
|
+
super();
|
|
563
|
+
/**
|
|
564
|
+
* @generated from field: uniswap.liquidity.v1.Protocols protocol = 1;
|
|
565
|
+
*/
|
|
566
|
+
this.protocol = Protocols.V2;
|
|
567
|
+
/**
|
|
568
|
+
* @generated from field: string wallet_address = 2;
|
|
569
|
+
*/
|
|
570
|
+
this.walletAddress = "";
|
|
571
|
+
/**
|
|
572
|
+
* @generated from field: uniswap.liquidity.v1.ChainId chain_id = 3;
|
|
573
|
+
*/
|
|
574
|
+
this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
|
|
575
|
+
/**
|
|
576
|
+
* @generated from field: string token_id = 4;
|
|
577
|
+
*/
|
|
578
|
+
this.tokenId = "";
|
|
579
|
+
proto3.util.initPartial(data, this);
|
|
580
|
+
}
|
|
581
|
+
static fromBinary(bytes, options) {
|
|
582
|
+
return new ClaimFeesRequest().fromBinary(bytes, options);
|
|
583
|
+
}
|
|
584
|
+
static fromJson(jsonValue, options) {
|
|
585
|
+
return new ClaimFeesRequest().fromJson(jsonValue, options);
|
|
586
|
+
}
|
|
587
|
+
static fromJsonString(jsonString, options) {
|
|
588
|
+
return new ClaimFeesRequest().fromJsonString(jsonString, options);
|
|
589
|
+
}
|
|
590
|
+
static equals(a, b) {
|
|
591
|
+
return proto3.util.equals(ClaimFeesRequest, a, b);
|
|
592
|
+
}
|
|
593
|
+
}
|
|
594
|
+
ClaimFeesRequest.runtime = proto3;
|
|
595
|
+
ClaimFeesRequest.typeName = "uniswap.liquidity.v2.ClaimFeesRequest";
|
|
596
|
+
ClaimFeesRequest.fields = proto3.util.newFieldList(() => [
|
|
597
|
+
{ no: 1, name: "protocol", kind: "enum", T: proto3.getEnumType(Protocols) },
|
|
598
|
+
{ no: 2, name: "wallet_address", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
599
|
+
{ no: 3, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
|
|
600
|
+
{ no: 4, name: "token_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
601
|
+
{ no: 5, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
602
|
+
{ no: 6, name: "collect_as_weth", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
|
|
603
|
+
]);
|
|
604
|
+
/**
|
|
605
|
+
* @generated from message uniswap.liquidity.v2.ClaimFeesResponse
|
|
606
|
+
*/
|
|
607
|
+
export class ClaimFeesResponse extends Message {
|
|
608
|
+
constructor(data) {
|
|
609
|
+
super();
|
|
610
|
+
/**
|
|
611
|
+
* @generated from field: string request_id = 1;
|
|
612
|
+
*/
|
|
613
|
+
this.requestId = "";
|
|
614
|
+
proto3.util.initPartial(data, this);
|
|
615
|
+
}
|
|
616
|
+
static fromBinary(bytes, options) {
|
|
617
|
+
return new ClaimFeesResponse().fromBinary(bytes, options);
|
|
618
|
+
}
|
|
619
|
+
static fromJson(jsonValue, options) {
|
|
620
|
+
return new ClaimFeesResponse().fromJson(jsonValue, options);
|
|
621
|
+
}
|
|
622
|
+
static fromJsonString(jsonString, options) {
|
|
623
|
+
return new ClaimFeesResponse().fromJsonString(jsonString, options);
|
|
624
|
+
}
|
|
625
|
+
static equals(a, b) {
|
|
626
|
+
return proto3.util.equals(ClaimFeesResponse, a, b);
|
|
627
|
+
}
|
|
628
|
+
}
|
|
629
|
+
ClaimFeesResponse.runtime = proto3;
|
|
630
|
+
ClaimFeesResponse.typeName = "uniswap.liquidity.v2.ClaimFeesResponse";
|
|
631
|
+
ClaimFeesResponse.fields = proto3.util.newFieldList(() => [
|
|
632
|
+
{ no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
633
|
+
{ no: 2, name: "token_0", kind: "message", T: LPToken },
|
|
634
|
+
{ no: 3, name: "token_1", kind: "message", T: LPToken },
|
|
635
|
+
{ no: 4, name: "claim", kind: "message", T: TransactionRequest },
|
|
636
|
+
{ no: 5, name: "gas_fee", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
|
|
637
|
+
]);
|