@uniswap/client-liquidity 0.0.1 → 0.0.2

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,75 @@
1
+ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
2
+ import { Message, proto3 } from "@bufbuild/protobuf";
3
+ import { ChainId, TransactionRequest } from "./types_pb.js";
4
+ /**
5
+ * REQUESTS & RESPONSES
6
+ *
7
+ * @generated from message uniswap.liquidity.v1.SubmitBidRequest
8
+ */
9
+ export declare class SubmitBidRequest extends Message<SubmitBidRequest> {
10
+ /**
11
+ * @generated from field: string maxPrice = 1;
12
+ */
13
+ maxPrice: string;
14
+ /**
15
+ * @generated from field: optional bool exactIn = 2;
16
+ */
17
+ exactIn?: boolean;
18
+ /**
19
+ * @generated from field: string amount = 3;
20
+ */
21
+ amount: string;
22
+ /**
23
+ * @generated from field: string walletAddress = 4;
24
+ */
25
+ walletAddress: string;
26
+ /**
27
+ * @generated from field: string auctionContractAddress = 5;
28
+ */
29
+ auctionContractAddress: string;
30
+ /**
31
+ * @generated from field: optional string hookData = 6;
32
+ */
33
+ hookData?: string;
34
+ /**
35
+ * @generated from field: uniswap.liquidity.v1.ChainId chain_id = 7;
36
+ */
37
+ chainId: ChainId;
38
+ /**
39
+ * @generated from field: optional bool simulate_transaction = 8;
40
+ */
41
+ simulateTransaction?: boolean;
42
+ constructor(data?: PartialMessage<SubmitBidRequest>);
43
+ static readonly runtime: typeof proto3;
44
+ static readonly typeName = "uniswap.liquidity.v1.SubmitBidRequest";
45
+ static readonly fields: FieldList;
46
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SubmitBidRequest;
47
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SubmitBidRequest;
48
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SubmitBidRequest;
49
+ static equals(a: SubmitBidRequest | PlainMessage<SubmitBidRequest> | undefined, b: SubmitBidRequest | PlainMessage<SubmitBidRequest> | undefined): boolean;
50
+ }
51
+ /**
52
+ * @generated from message uniswap.liquidity.v1.SubmitBidResponse
53
+ */
54
+ export declare class SubmitBidResponse extends Message<SubmitBidResponse> {
55
+ /**
56
+ * @generated from field: string request_id = 1;
57
+ */
58
+ requestId: string;
59
+ /**
60
+ * @generated from field: uniswap.liquidity.v1.TransactionRequest bid = 2;
61
+ */
62
+ bid?: TransactionRequest;
63
+ /**
64
+ * @generated from field: optional string gasFee = 3;
65
+ */
66
+ gasFee?: string;
67
+ constructor(data?: PartialMessage<SubmitBidResponse>);
68
+ static readonly runtime: typeof proto3;
69
+ static readonly typeName = "uniswap.liquidity.v1.SubmitBidResponse";
70
+ static readonly fields: FieldList;
71
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SubmitBidResponse;
72
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SubmitBidResponse;
73
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SubmitBidResponse;
74
+ static equals(a: SubmitBidResponse | PlainMessage<SubmitBidResponse> | undefined, b: SubmitBidResponse | PlainMessage<SubmitBidResponse> | undefined): boolean;
75
+ }
@@ -0,0 +1,93 @@
1
+ // @generated by protoc-gen-es v1.10.0 with parameter "target=ts"
2
+ // @generated from file uniswap/liquidity/v1/auction.proto (package uniswap.liquidity.v1, syntax proto3)
3
+ /* eslint-disable */
4
+ // @ts-nocheck
5
+ import { Message, proto3 } from "@bufbuild/protobuf";
6
+ import { ChainId, TransactionRequest } from "./types_pb.js";
7
+ /**
8
+ * REQUESTS & RESPONSES
9
+ *
10
+ * @generated from message uniswap.liquidity.v1.SubmitBidRequest
11
+ */
12
+ export class SubmitBidRequest extends Message {
13
+ constructor(data) {
14
+ super();
15
+ /**
16
+ * @generated from field: string maxPrice = 1;
17
+ */
18
+ this.maxPrice = "";
19
+ /**
20
+ * @generated from field: string amount = 3;
21
+ */
22
+ this.amount = "";
23
+ /**
24
+ * @generated from field: string walletAddress = 4;
25
+ */
26
+ this.walletAddress = "";
27
+ /**
28
+ * @generated from field: string auctionContractAddress = 5;
29
+ */
30
+ this.auctionContractAddress = "";
31
+ /**
32
+ * @generated from field: uniswap.liquidity.v1.ChainId chain_id = 7;
33
+ */
34
+ this.chainId = ChainId.CHAIN_ID_UNSPECIFIED;
35
+ proto3.util.initPartial(data, this);
36
+ }
37
+ static fromBinary(bytes, options) {
38
+ return new SubmitBidRequest().fromBinary(bytes, options);
39
+ }
40
+ static fromJson(jsonValue, options) {
41
+ return new SubmitBidRequest().fromJson(jsonValue, options);
42
+ }
43
+ static fromJsonString(jsonString, options) {
44
+ return new SubmitBidRequest().fromJsonString(jsonString, options);
45
+ }
46
+ static equals(a, b) {
47
+ return proto3.util.equals(SubmitBidRequest, a, b);
48
+ }
49
+ }
50
+ SubmitBidRequest.runtime = proto3;
51
+ SubmitBidRequest.typeName = "uniswap.liquidity.v1.SubmitBidRequest";
52
+ SubmitBidRequest.fields = proto3.util.newFieldList(() => [
53
+ { no: 1, name: "maxPrice", kind: "scalar", T: 9 /* ScalarType.STRING */ },
54
+ { no: 2, name: "exactIn", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
55
+ { no: 3, name: "amount", kind: "scalar", T: 9 /* ScalarType.STRING */ },
56
+ { no: 4, name: "walletAddress", kind: "scalar", T: 9 /* ScalarType.STRING */ },
57
+ { no: 5, name: "auctionContractAddress", kind: "scalar", T: 9 /* ScalarType.STRING */ },
58
+ { no: 6, name: "hookData", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
59
+ { no: 7, name: "chain_id", kind: "enum", T: proto3.getEnumType(ChainId) },
60
+ { no: 8, name: "simulate_transaction", kind: "scalar", T: 8 /* ScalarType.BOOL */, opt: true },
61
+ ]);
62
+ /**
63
+ * @generated from message uniswap.liquidity.v1.SubmitBidResponse
64
+ */
65
+ export class SubmitBidResponse extends Message {
66
+ constructor(data) {
67
+ super();
68
+ /**
69
+ * @generated from field: string request_id = 1;
70
+ */
71
+ this.requestId = "";
72
+ proto3.util.initPartial(data, this);
73
+ }
74
+ static fromBinary(bytes, options) {
75
+ return new SubmitBidResponse().fromBinary(bytes, options);
76
+ }
77
+ static fromJson(jsonValue, options) {
78
+ return new SubmitBidResponse().fromJson(jsonValue, options);
79
+ }
80
+ static fromJsonString(jsonString, options) {
81
+ return new SubmitBidResponse().fromJsonString(jsonString, options);
82
+ }
83
+ static equals(a, b) {
84
+ return proto3.util.equals(SubmitBidResponse, a, b);
85
+ }
86
+ }
87
+ SubmitBidResponse.runtime = proto3;
88
+ SubmitBidResponse.typeName = "uniswap.liquidity.v1.SubmitBidResponse";
89
+ SubmitBidResponse.fields = proto3.util.newFieldList(() => [
90
+ { no: 1, name: "request_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
91
+ { no: 2, name: "bid", kind: "message", T: TransactionRequest },
92
+ { no: 3, name: "gasFee", kind: "scalar", T: 9 /* ScalarType.STRING */, opt: true },
93
+ ]);
@@ -0,0 +1,286 @@
1
+ import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
2
+ import { Message, proto3 } from "@bufbuild/protobuf";
3
+ /**
4
+ * ENUMS
5
+ *
6
+ * @generated from enum uniswap.liquidity.v1.ChainId
7
+ */
8
+ export declare enum ChainId {
9
+ /**
10
+ * @generated from enum value: CHAIN_ID_UNSPECIFIED = 0;
11
+ */
12
+ CHAIN_ID_UNSPECIFIED = 0,
13
+ /**
14
+ * @generated from enum value: MAINNET = 1;
15
+ */
16
+ MAINNET = 1,
17
+ /**
18
+ * @generated from enum value: OPTIMISM = 10;
19
+ */
20
+ OPTIMISM = 10,
21
+ /**
22
+ * @generated from enum value: POLYGON = 137;
23
+ */
24
+ POLYGON = 137,
25
+ /**
26
+ * @generated from enum value: ARBITRUM = 42161;
27
+ */
28
+ ARBITRUM = 42161,
29
+ /**
30
+ * @generated from enum value: BNB = 56;
31
+ */
32
+ BNB = 56,
33
+ /**
34
+ * @generated from enum value: BASE = 8453;
35
+ */
36
+ BASE = 8453,
37
+ /**
38
+ * @generated from enum value: BLAST = 81457;
39
+ */
40
+ BLAST = 81457,
41
+ /**
42
+ * @generated from enum value: AVAX = 43114;
43
+ */
44
+ AVAX = 43114,
45
+ /**
46
+ * @generated from enum value: CELO = 42220;
47
+ */
48
+ CELO = 42220,
49
+ /**
50
+ * @generated from enum value: ZORA = 7777777;
51
+ */
52
+ ZORA = 7777777,
53
+ /**
54
+ * @generated from enum value: ZKSYNC = 324;
55
+ */
56
+ ZKSYNC = 324,
57
+ /**
58
+ * @generated from enum value: SEPOLIA = 11155111;
59
+ */
60
+ SEPOLIA = 11155111,
61
+ /**
62
+ * @generated from enum value: UNICHAIN_SEPOLIA = 1301;
63
+ */
64
+ UNICHAIN_SEPOLIA = 1301,
65
+ /**
66
+ * @generated from enum value: WORLDCHAIN = 480;
67
+ */
68
+ WORLDCHAIN = 480,
69
+ /**
70
+ * @generated from enum value: MONAD_TESTNET = 10143;
71
+ */
72
+ MONAD_TESTNET = 10143,
73
+ /**
74
+ * @generated from enum value: BASE_SEPOLIA = 84532;
75
+ */
76
+ BASE_SEPOLIA = 84532,
77
+ /**
78
+ * @generated from enum value: UNICHAIN = 130;
79
+ */
80
+ UNICHAIN = 130,
81
+ /**
82
+ * @generated from enum value: SONEIUM = 1868;
83
+ */
84
+ SONEIUM = 1868
85
+ }
86
+ /**
87
+ * SUPPORTING OBJECTS
88
+ *
89
+ * @generated from message uniswap.liquidity.v1.TransactionRequest
90
+ */
91
+ export declare class TransactionRequest extends Message<TransactionRequest> {
92
+ /**
93
+ * @generated from field: string to = 1;
94
+ */
95
+ to: string;
96
+ /**
97
+ * @generated from field: string from = 2;
98
+ */
99
+ from: string;
100
+ /**
101
+ * @generated from field: string data = 3;
102
+ */
103
+ data: string;
104
+ /**
105
+ * @generated from field: string value = 4;
106
+ */
107
+ value: string;
108
+ /**
109
+ * @generated from field: uint32 chain_id = 5;
110
+ */
111
+ chainId: number;
112
+ /**
113
+ * @generated from field: optional string gas_limit = 6;
114
+ */
115
+ gasLimit?: string;
116
+ /**
117
+ * @generated from field: optional string max_fee_per_gas = 7;
118
+ */
119
+ maxFeePerGas?: string;
120
+ /**
121
+ * @generated from field: optional string max_priority_fee_per_gas = 8;
122
+ */
123
+ maxPriorityFeePerGas?: string;
124
+ /**
125
+ * @generated from field: optional string gas_price = 9;
126
+ */
127
+ gasPrice?: string;
128
+ constructor(data?: PartialMessage<TransactionRequest>);
129
+ static readonly runtime: typeof proto3;
130
+ static readonly typeName = "uniswap.liquidity.v1.TransactionRequest";
131
+ static readonly fields: FieldList;
132
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): TransactionRequest;
133
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): TransactionRequest;
134
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): TransactionRequest;
135
+ static equals(a: TransactionRequest | PlainMessage<TransactionRequest> | undefined, b: TransactionRequest | PlainMessage<TransactionRequest> | undefined): boolean;
136
+ }
137
+ /**
138
+ * @generated from message uniswap.liquidity.v1.V4Position
139
+ */
140
+ export declare class V4Position extends Message<V4Position> {
141
+ /**
142
+ * @generated from field: uniswap.liquidity.v1.V4Pool pool = 1;
143
+ */
144
+ pool?: V4Pool;
145
+ /**
146
+ * @generated from field: sint32 tick_lower = 2;
147
+ */
148
+ tickLower: number;
149
+ /**
150
+ * @generated from field: sint32 tick_upper = 3;
151
+ */
152
+ tickUpper: number;
153
+ constructor(data?: PartialMessage<V4Position>);
154
+ static readonly runtime: typeof proto3;
155
+ static readonly typeName = "uniswap.liquidity.v1.V4Position";
156
+ static readonly fields: FieldList;
157
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): V4Position;
158
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): V4Position;
159
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): V4Position;
160
+ static equals(a: V4Position | PlainMessage<V4Position> | undefined, b: V4Position | PlainMessage<V4Position> | undefined): boolean;
161
+ }
162
+ /**
163
+ * @generated from message uniswap.liquidity.v1.V3Position
164
+ */
165
+ export declare class V3Position extends Message<V3Position> {
166
+ /**
167
+ * @generated from field: uniswap.liquidity.v1.V3Pool pool = 1;
168
+ */
169
+ pool?: V3Pool;
170
+ /**
171
+ * @generated from field: sint32 tick_lower = 2;
172
+ */
173
+ tickLower: number;
174
+ /**
175
+ * @generated from field: sint32 tick_upper = 3;
176
+ */
177
+ tickUpper: number;
178
+ constructor(data?: PartialMessage<V3Position>);
179
+ static readonly runtime: typeof proto3;
180
+ static readonly typeName = "uniswap.liquidity.v1.V3Position";
181
+ static readonly fields: FieldList;
182
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): V3Position;
183
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): V3Position;
184
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): V3Position;
185
+ static equals(a: V3Position | PlainMessage<V3Position> | undefined, b: V3Position | PlainMessage<V3Position> | undefined): boolean;
186
+ }
187
+ /**
188
+ * @generated from message uniswap.liquidity.v1.V2Position
189
+ */
190
+ export declare class V2Position extends Message<V2Position> {
191
+ /**
192
+ * @generated from field: uniswap.liquidity.v1.V2Pool pool = 1;
193
+ */
194
+ pool?: V2Pool;
195
+ constructor(data?: PartialMessage<V2Position>);
196
+ static readonly runtime: typeof proto3;
197
+ static readonly typeName = "uniswap.liquidity.v1.V2Position";
198
+ static readonly fields: FieldList;
199
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): V2Position;
200
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): V2Position;
201
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): V2Position;
202
+ static equals(a: V2Position | PlainMessage<V2Position> | undefined, b: V2Position | PlainMessage<V2Position> | undefined): boolean;
203
+ }
204
+ /**
205
+ * @generated from message uniswap.liquidity.v1.V2Pool
206
+ */
207
+ export declare class V2Pool extends Message<V2Pool> {
208
+ /**
209
+ * @generated from field: string token0 = 1;
210
+ */
211
+ token0: string;
212
+ /**
213
+ * @generated from field: string token1 = 2;
214
+ */
215
+ token1: string;
216
+ constructor(data?: PartialMessage<V2Pool>);
217
+ static readonly runtime: typeof proto3;
218
+ static readonly typeName = "uniswap.liquidity.v1.V2Pool";
219
+ static readonly fields: FieldList;
220
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): V2Pool;
221
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): V2Pool;
222
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): V2Pool;
223
+ static equals(a: V2Pool | PlainMessage<V2Pool> | undefined, b: V2Pool | PlainMessage<V2Pool> | undefined): boolean;
224
+ }
225
+ /**
226
+ * @generated from message uniswap.liquidity.v1.V3Pool
227
+ */
228
+ export declare class V3Pool extends Message<V3Pool> {
229
+ /**
230
+ * @generated from field: string token0 = 1;
231
+ */
232
+ token0: string;
233
+ /**
234
+ * @generated from field: string token1 = 2;
235
+ */
236
+ token1: string;
237
+ /**
238
+ * @generated from field: int32 fee = 3;
239
+ */
240
+ fee: number;
241
+ /**
242
+ * @generated from field: int32 tick_spacing = 4;
243
+ */
244
+ tickSpacing: number;
245
+ constructor(data?: PartialMessage<V3Pool>);
246
+ static readonly runtime: typeof proto3;
247
+ static readonly typeName = "uniswap.liquidity.v1.V3Pool";
248
+ static readonly fields: FieldList;
249
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): V3Pool;
250
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): V3Pool;
251
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): V3Pool;
252
+ static equals(a: V3Pool | PlainMessage<V3Pool> | undefined, b: V3Pool | PlainMessage<V3Pool> | undefined): boolean;
253
+ }
254
+ /**
255
+ * @generated from message uniswap.liquidity.v1.V4Pool
256
+ */
257
+ export declare class V4Pool extends Message<V4Pool> {
258
+ /**
259
+ * @generated from field: string token0 = 1;
260
+ */
261
+ token0: string;
262
+ /**
263
+ * @generated from field: string token1 = 2;
264
+ */
265
+ token1: string;
266
+ /**
267
+ * @generated from field: int32 fee = 3;
268
+ */
269
+ fee: number;
270
+ /**
271
+ * @generated from field: int32 tick_spacing = 4;
272
+ */
273
+ tickSpacing: number;
274
+ /**
275
+ * @generated from field: optional string hooks = 5;
276
+ */
277
+ hooks?: string;
278
+ constructor(data?: PartialMessage<V4Pool>);
279
+ static readonly runtime: typeof proto3;
280
+ static readonly typeName = "uniswap.liquidity.v1.V4Pool";
281
+ static readonly fields: FieldList;
282
+ static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): V4Pool;
283
+ static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): V4Pool;
284
+ static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): V4Pool;
285
+ static equals(a: V4Pool | PlainMessage<V4Pool> | undefined, b: V4Pool | PlainMessage<V4Pool> | undefined): boolean;
286
+ }