├── LICENSE
├── README.md
├── SRC
├── AirDropHunder.sln
├── App.config
└── UniswapV3PoolService.cs
└── images
├── 290005259-6f31934f-9501-4a79-9b2d-b5e66b2f1de1.png
├── git2.png
└── image1.png
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2023 msdart
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # FULL FREE SOFTWARE
2 | # layerzero-airdrop (zksync,scroll,zora,linea tools)
3 |
4 | This software is created to simplify the process of taking part in LayerZero airdrop, streamlining the receipt of airdropped tokens on different platforms. It can assist users in discovering and engaging in airdrops, handling multiple wallet addresses, and efficiently monitoring their rewards from these airdrops.
5 | (working with zksync,scroll,zora,linea)
6 | # Check telegram group to get updates https://t.me/+PNoHqrZ5O0FlZmZi
7 |
8 |
9 |
10 | ### Dependencies
11 | - .Net Framework 4.5
12 |
13 | updated for any chains
14 | ### Setup
15 | - Add private keys
16 | - Set `Rpcs`
17 | - Set `transaction options`
18 | - transactions - random transactions between random accounts in Arb and Op networks
19 | - bridges
20 | - luquidity
21 | - doublebridges
22 | - shuffleOrder
23 | - randomGas
24 |
--------------------------------------------------------------------------------
/SRC/AirDropHunder.sln:
--------------------------------------------------------------------------------
1 |
2 | Microsoft Visual Studio Solution File, Format Version 12.00
3 | # Visual Studio Version 17
4 | VisualStudioVersion = 17.5.33502.453
5 | MinimumVisualStudioVersion = 10.0.40219.1
6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AirdropHunter", "AirdropHunter.csproj", "{88C231E8-FC03-41AB-8A82-E4DCB4E1986B}"
7 | EndProject
8 | Global
9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution
10 | Debug|Any CPU = Debug|Any CPU
11 | Release|Any CPU = Release|Any CPU
12 | EndGlobalSection
13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution
14 | {88C231E8-FC03-41AB-8A82-E4DCB4E1986B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
15 | {88C231E8-FC03-41AB-8A82-E4DCB4E1986B}.Debug|Any CPU.Build.0 = Debug|Any CPU
16 | {88C231E8-FC03-41AB-8A82-E4DCB4E1986B}.Release|Any CPU.ActiveCfg = Release|Any CPU
17 | {88C231E8-FC03-41AB-8A82-E4DCB4E1986B}.Release|Any CPU.Build.0 = Release|Any CPU
18 | EndGlobalSection
19 | GlobalSection(SolutionProperties) = preSolution
20 | HideSolutionNode = FALSE
21 | EndGlobalSection
22 | GlobalSection(ExtensibilityGlobals) = postSolution
23 | SolutionGuid = {3A933CF6-B165-43A3-8643-EDDA7C5C7EA7}
24 | EndGlobalSection
25 | EndGlobal
26 |
--------------------------------------------------------------------------------
/SRC/App.config:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
--------------------------------------------------------------------------------
/SRC/UniswapV3PoolService.cs:
--------------------------------------------------------------------------------
1 | using System;
2 | using System.Threading.Tasks;
3 | using System.Collections.Generic;
4 | using System.Numerics;
5 | using Nethereum.Hex.HexTypes;
6 | using Nethereum.ABI.FunctionEncoding.Attributes;
7 | using Nethereum.Web3;
8 | using Nethereum.RPC.Eth.DTOs;
9 | using Nethereum.Contracts.CQS;
10 | using Nethereum.Contracts.ContractHandlers;
11 | using Nethereum.Contracts;
12 | using System.Threading;
13 | using Nethereum.Uniswap.Contracts.UniswapV3Pool.ContractDefinition;
14 |
15 | namespace Nethereum.Uniswap.Contracts.UniswapV3Pool
16 | {
17 | public partial class UniswapV3PoolService
18 | {
19 | public static Task DeployContractAndWaitForReceiptAsync(Nethereum.Web3.Web3 web3, UniswapV3PoolDeployment uniswapV3PoolDeployment, CancellationTokenSource cancellationTokenSource = null)
20 | {
21 | return web3.Eth.GetContractDeploymentHandler().SendRequestAndWaitForReceiptAsync(uniswapV3PoolDeployment, cancellationTokenSource);
22 | }
23 |
24 | public static Task DeployContractAsync(Nethereum.Web3.Web3 web3, UniswapV3PoolDeployment uniswapV3PoolDeployment)
25 | {
26 | return web3.Eth.GetContractDeploymentHandler().SendRequestAsync(uniswapV3PoolDeployment);
27 | }
28 |
29 | public static async Task DeployContractAndGetServiceAsync(Nethereum.Web3.Web3 web3, UniswapV3PoolDeployment uniswapV3PoolDeployment, CancellationTokenSource cancellationTokenSource = null)
30 | {
31 | var receipt = await DeployContractAndWaitForReceiptAsync(web3, uniswapV3PoolDeployment, cancellationTokenSource);
32 | return new UniswapV3PoolService(web3, receipt.ContractAddress);
33 | }
34 |
35 | protected Nethereum.Web3.Web3 Web3{ get; }
36 |
37 | public ContractHandler ContractHandler { get; }
38 |
39 | public UniswapV3PoolService(Nethereum.Web3.Web3 web3, string contractAddress)
40 | {
41 | Web3 = web3;
42 | ContractHandler = web3.Eth.GetContractHandler(contractAddress);
43 | }
44 |
45 | public Task BurnRequestAsync(BurnFunction burnFunction)
46 | {
47 | return ContractHandler.SendRequestAsync(burnFunction);
48 | }
49 |
50 | public Task BurnRequestAndWaitForReceiptAsync(BurnFunction burnFunction, CancellationTokenSource cancellationToken = null)
51 | {
52 | return ContractHandler.SendRequestAndWaitForReceiptAsync(burnFunction, cancellationToken);
53 | }
54 |
55 | public Task BurnRequestAsync(int tickLower, int tickUpper, BigInteger amount)
56 | {
57 | var burnFunction = new BurnFunction();
58 | burnFunction.TickLower = tickLower;
59 | burnFunction.TickUpper = tickUpper;
60 | burnFunction.Amount = amount;
61 |
62 | return ContractHandler.SendRequestAsync(burnFunction);
63 | }
64 |
65 | public Task BurnRequestAndWaitForReceiptAsync(int tickLower, int tickUpper, BigInteger amount, CancellationTokenSource cancellationToken = null)
66 | {
67 | var burnFunction = new BurnFunction();
68 | burnFunction.TickLower = tickLower;
69 | burnFunction.TickUpper = tickUpper;
70 | burnFunction.Amount = amount;
71 |
72 | return ContractHandler.SendRequestAndWaitForReceiptAsync(burnFunction, cancellationToken);
73 | }
74 |
75 | public Task CollectRequestAsync(CollectFunction collectFunction)
76 | {
77 | return ContractHandler.SendRequestAsync(collectFunction);
78 | }
79 |
80 | public Task CollectRequestAndWaitForReceiptAsync(CollectFunction collectFunction, CancellationTokenSource cancellationToken = null)
81 | {
82 | return ContractHandler.SendRequestAndWaitForReceiptAsync(collectFunction, cancellationToken);
83 | }
84 |
85 | public Task CollectRequestAsync(string recipient, int tickLower, int tickUpper, BigInteger amount0Requested, BigInteger amount1Requested)
86 | {
87 | var collectFunction = new CollectFunction();
88 | collectFunction.Recipient = recipient;
89 | collectFunction.TickLower = tickLower;
90 | collectFunction.TickUpper = tickUpper;
91 | collectFunction.Amount0Requested = amount0Requested;
92 | collectFunction.Amount1Requested = amount1Requested;
93 |
94 | return ContractHandler.SendRequestAsync(collectFunction);
95 | }
96 |
97 | public Task CollectRequestAndWaitForReceiptAsync(string recipient, int tickLower, int tickUpper, BigInteger amount0Requested, BigInteger amount1Requested, CancellationTokenSource cancellationToken = null)
98 | {
99 | var collectFunction = new CollectFunction();
100 | collectFunction.Recipient = recipient;
101 | collectFunction.TickLower = tickLower;
102 | collectFunction.TickUpper = tickUpper;
103 | collectFunction.Amount0Requested = amount0Requested;
104 | collectFunction.Amount1Requested = amount1Requested;
105 |
106 | return ContractHandler.SendRequestAndWaitForReceiptAsync(collectFunction, cancellationToken);
107 | }
108 |
109 | public Task CollectProtocolRequestAsync(CollectProtocolFunction collectProtocolFunction)
110 | {
111 | return ContractHandler.SendRequestAsync(collectProtocolFunction);
112 | }
113 |
114 | public Task CollectProtocolRequestAndWaitForReceiptAsync(CollectProtocolFunction collectProtocolFunction, CancellationTokenSource cancellationToken = null)
115 | {
116 | return ContractHandler.SendRequestAndWaitForReceiptAsync(collectProtocolFunction, cancellationToken);
117 | }
118 |
119 | public Task CollectProtocolRequestAsync(string recipient, BigInteger amount0Requested, BigInteger amount1Requested)
120 | {
121 | var collectProtocolFunction = new CollectProtocolFunction();
122 | collectProtocolFunction.Recipient = recipient;
123 | collectProtocolFunction.Amount0Requested = amount0Requested;
124 | collectProtocolFunction.Amount1Requested = amount1Requested;
125 |
126 | return ContractHandler.SendRequestAsync(collectProtocolFunction);
127 | }
128 |
129 | public Task CollectProtocolRequestAndWaitForReceiptAsync(string recipient, BigInteger amount0Requested, BigInteger amount1Requested, CancellationTokenSource cancellationToken = null)
130 | {
131 | var collectProtocolFunction = new CollectProtocolFunction();
132 | collectProtocolFunction.Recipient = recipient;
133 | collectProtocolFunction.Amount0Requested = amount0Requested;
134 | collectProtocolFunction.Amount1Requested = amount1Requested;
135 |
136 | return ContractHandler.SendRequestAndWaitForReceiptAsync(collectProtocolFunction, cancellationToken);
137 | }
138 |
139 | public Task FactoryQueryAsync(FactoryFunction factoryFunction, BlockParameter blockParameter = null)
140 | {
141 | return ContractHandler.QueryAsync(factoryFunction, blockParameter);
142 | }
143 |
144 |
145 | public Task FactoryQueryAsync(BlockParameter blockParameter = null)
146 | {
147 | return ContractHandler.QueryAsync(null, blockParameter);
148 | }
149 |
150 | public Task FeeQueryAsync(FeeFunction feeFunction, BlockParameter blockParameter = null)
151 | {
152 | return ContractHandler.QueryAsync(feeFunction, blockParameter);
153 | }
154 |
155 |
156 | public Task FeeQueryAsync(BlockParameter blockParameter = null)
157 | {
158 | return ContractHandler.QueryAsync(null, blockParameter);
159 | }
160 |
161 | public Task FeeGrowthGlobal0X128QueryAsync(FeeGrowthGlobal0X128Function feeGrowthGlobal0X128Function, BlockParameter blockParameter = null)
162 | {
163 | return ContractHandler.QueryAsync(feeGrowthGlobal0X128Function, blockParameter);
164 | }
165 |
166 |
167 | public Task FeeGrowthGlobal0X128QueryAsync(BlockParameter blockParameter = null)
168 | {
169 | return ContractHandler.QueryAsync(null, blockParameter);
170 | }
171 |
172 | public Task FeeGrowthGlobal1X128QueryAsync(FeeGrowthGlobal1X128Function feeGrowthGlobal1X128Function, BlockParameter blockParameter = null)
173 | {
174 | return ContractHandler.QueryAsync(feeGrowthGlobal1X128Function, blockParameter);
175 | }
176 |
177 |
178 | public Task FeeGrowthGlobal1X128QueryAsync(BlockParameter blockParameter = null)
179 | {
180 | return ContractHandler.QueryAsync(null, blockParameter);
181 | }
182 |
183 | public Task FlashRequestAsync(FlashFunction flashFunction)
184 | {
185 | return ContractHandler.SendRequestAsync(flashFunction);
186 | }
187 |
188 | public Task FlashRequestAndWaitForReceiptAsync(FlashFunction flashFunction, CancellationTokenSource cancellationToken = null)
189 | {
190 | return ContractHandler.SendRequestAndWaitForReceiptAsync(flashFunction, cancellationToken);
191 | }
192 |
193 | public Task FlashRequestAsync(string recipient, BigInteger amount0, BigInteger amount1, byte[] data)
194 | {
195 | var flashFunction = new FlashFunction();
196 | flashFunction.Recipient = recipient;
197 | flashFunction.Amount0 = amount0;
198 | flashFunction.Amount1 = amount1;
199 | flashFunction.Data = data;
200 |
201 | return ContractHandler.SendRequestAsync(flashFunction);
202 | }
203 |
204 | public Task FlashRequestAndWaitForReceiptAsync(string recipient, BigInteger amount0, BigInteger amount1, byte[] data, CancellationTokenSource cancellationToken = null)
205 | {
206 | var flashFunction = new FlashFunction();
207 | flashFunction.Recipient = recipient;
208 | flashFunction.Amount0 = amount0;
209 | flashFunction.Amount1 = amount1;
210 | flashFunction.Data = data;
211 |
212 | return ContractHandler.SendRequestAndWaitForReceiptAsync(flashFunction, cancellationToken);
213 | }
214 |
215 | public Task IncreaseObservationCardinalityNextRequestAsync(IncreaseObservationCardinalityNextFunction increaseObservationCardinalityNextFunction)
216 | {
217 | return ContractHandler.SendRequestAsync(increaseObservationCardinalityNextFunction);
218 | }
219 |
220 | public Task IncreaseObservationCardinalityNextRequestAndWaitForReceiptAsync(IncreaseObservationCardinalityNextFunction increaseObservationCardinalityNextFunction, CancellationTokenSource cancellationToken = null)
221 | {
222 | return ContractHandler.SendRequestAndWaitForReceiptAsync(increaseObservationCardinalityNextFunction, cancellationToken);
223 | }
224 |
225 | public Task IncreaseObservationCardinalityNextRequestAsync(ushort observationCardinalityNext)
226 | {
227 | var increaseObservationCardinalityNextFunction = new IncreaseObservationCardinalityNextFunction();
228 | increaseObservationCardinalityNextFunction.ObservationCardinalityNext = observationCardinalityNext;
229 |
230 | return ContractHandler.SendRequestAsync(increaseObservationCardinalityNextFunction);
231 | }
232 |
233 | public Task IncreaseObservationCardinalityNextRequestAndWaitForReceiptAsync(ushort observationCardinalityNext, CancellationTokenSource cancellationToken = null)
234 | {
235 | var increaseObservationCardinalityNextFunction = new IncreaseObservationCardinalityNextFunction();
236 | increaseObservationCardinalityNextFunction.ObservationCardinalityNext = observationCardinalityNext;
237 |
238 | return ContractHandler.SendRequestAndWaitForReceiptAsync(increaseObservationCardinalityNextFunction, cancellationToken);
239 | }
240 |
241 | public Task InitializeRequestAsync(InitializeFunction initializeFunction)
242 | {
243 | return ContractHandler.SendRequestAsync(initializeFunction);
244 | }
245 |
246 | public Task InitializeRequestAndWaitForReceiptAsync(InitializeFunction initializeFunction, CancellationTokenSource cancellationToken = null)
247 | {
248 | return ContractHandler.SendRequestAndWaitForReceiptAsync(initializeFunction, cancellationToken);
249 | }
250 |
251 | public Task InitializeRequestAsync(BigInteger sqrtPriceX96)
252 | {
253 | var initializeFunction = new InitializeFunction();
254 | initializeFunction.SqrtPriceX96 = sqrtPriceX96;
255 |
256 | return ContractHandler.SendRequestAsync(initializeFunction);
257 | }
258 |
259 | public Task InitializeRequestAndWaitForReceiptAsync(BigInteger sqrtPriceX96, CancellationTokenSource cancellationToken = null)
260 | {
261 | var initializeFunction = new InitializeFunction();
262 | initializeFunction.SqrtPriceX96 = sqrtPriceX96;
263 |
264 | return ContractHandler.SendRequestAndWaitForReceiptAsync(initializeFunction, cancellationToken);
265 | }
266 |
267 | public Task LiquidityQueryAsync(LiquidityFunction liquidityFunction, BlockParameter blockParameter = null)
268 | {
269 | return ContractHandler.QueryAsync(liquidityFunction, blockParameter);
270 | }
271 |
272 |
273 | public Task LiquidityQueryAsync(BlockParameter blockParameter = null)
274 | {
275 | return ContractHandler.QueryAsync(null, blockParameter);
276 | }
277 |
278 | public Task MaxLiquidityPerTickQueryAsync(MaxLiquidityPerTickFunction maxLiquidityPerTickFunction, BlockParameter blockParameter = null)
279 | {
280 | return ContractHandler.QueryAsync(maxLiquidityPerTickFunction, blockParameter);
281 | }
282 |
283 |
284 | public Task MaxLiquidityPerTickQueryAsync(BlockParameter blockParameter = null)
285 | {
286 | return ContractHandler.QueryAsync(null, blockParameter);
287 | }
288 |
289 | public Task MintRequestAsync(MintFunction mintFunction)
290 | {
291 | return ContractHandler.SendRequestAsync(mintFunction);
292 | }
293 |
294 | public Task MintRequestAndWaitForReceiptAsync(MintFunction mintFunction, CancellationTokenSource cancellationToken = null)
295 | {
296 | return ContractHandler.SendRequestAndWaitForReceiptAsync(mintFunction, cancellationToken);
297 | }
298 |
299 | public Task MintRequestAsync(string recipient, int tickLower, int tickUpper, BigInteger amount, byte[] data)
300 | {
301 | var mintFunction = new MintFunction();
302 | mintFunction.Recipient = recipient;
303 | mintFunction.TickLower = tickLower;
304 | mintFunction.TickUpper = tickUpper;
305 | mintFunction.Amount = amount;
306 | mintFunction.Data = data;
307 |
308 | return ContractHandler.SendRequestAsync(mintFunction);
309 | }
310 |
311 | public Task MintRequestAndWaitForReceiptAsync(string recipient, int tickLower, int tickUpper, BigInteger amount, byte[] data, CancellationTokenSource cancellationToken = null)
312 | {
313 | var mintFunction = new MintFunction();
314 | mintFunction.Recipient = recipient;
315 | mintFunction.TickLower = tickLower;
316 | mintFunction.TickUpper = tickUpper;
317 | mintFunction.Amount = amount;
318 | mintFunction.Data = data;
319 |
320 | return ContractHandler.SendRequestAndWaitForReceiptAsync(mintFunction, cancellationToken);
321 | }
322 |
323 | public Task ObservationsQueryAsync(ObservationsFunction observationsFunction, BlockParameter blockParameter = null)
324 | {
325 | return ContractHandler.QueryDeserializingToObjectAsync(observationsFunction, blockParameter);
326 | }
327 |
328 | public Task ObservationsQueryAsync(BigInteger index, BlockParameter blockParameter = null)
329 | {
330 | var observationsFunction = new ObservationsFunction();
331 | observationsFunction.Index = index;
332 |
333 | return ContractHandler.QueryDeserializingToObjectAsync(observationsFunction, blockParameter);
334 | }
335 |
336 | public Task ObserveQueryAsync(ObserveFunction observeFunction, BlockParameter blockParameter = null)
337 | {
338 | return ContractHandler.QueryDeserializingToObjectAsync(observeFunction, blockParameter);
339 | }
340 |
341 | public Task ObserveQueryAsync(List secondsAgos, BlockParameter blockParameter = null)
342 | {
343 | var observeFunction = new ObserveFunction();
344 | observeFunction.SecondsAgos = secondsAgos;
345 |
346 | return ContractHandler.QueryDeserializingToObjectAsync(observeFunction, blockParameter);
347 | }
348 |
349 | public Task PositionsQueryAsync(PositionsFunction positionsFunction, BlockParameter blockParameter = null)
350 | {
351 | return ContractHandler.QueryDeserializingToObjectAsync(positionsFunction, blockParameter);
352 | }
353 |
354 | public Task PositionsQueryAsync(byte[] key, BlockParameter blockParameter = null)
355 | {
356 | var positionsFunction = new PositionsFunction();
357 | positionsFunction.Key = key;
358 |
359 | return ContractHandler.QueryDeserializingToObjectAsync(positionsFunction, blockParameter);
360 | }
361 |
362 | public Task ProtocolFeesQueryAsync(ProtocolFeesFunction protocolFeesFunction, BlockParameter blockParameter = null)
363 | {
364 | return ContractHandler.QueryDeserializingToObjectAsync(protocolFeesFunction, blockParameter);
365 | }
366 |
367 | public Task ProtocolFeesQueryAsync(BlockParameter blockParameter = null)
368 | {
369 | return ContractHandler.QueryDeserializingToObjectAsync(null, blockParameter);
370 | }
371 |
372 | public Task SetFeeProtocolRequestAsync(SetFeeProtocolFunction setFeeProtocolFunction)
373 | {
374 | return ContractHandler.SendRequestAsync(setFeeProtocolFunction);
375 | }
376 |
377 | public Task SetFeeProtocolRequestAndWaitForReceiptAsync(SetFeeProtocolFunction setFeeProtocolFunction, CancellationTokenSource cancellationToken = null)
378 | {
379 | return ContractHandler.SendRequestAndWaitForReceiptAsync(setFeeProtocolFunction, cancellationToken);
380 | }
381 |
382 | public Task SetFeeProtocolRequestAsync(byte feeProtocol0, byte feeProtocol1)
383 | {
384 | var setFeeProtocolFunction = new SetFeeProtocolFunction();
385 | setFeeProtocolFunction.FeeProtocol0 = feeProtocol0;
386 | setFeeProtocolFunction.FeeProtocol1 = feeProtocol1;
387 |
388 | return ContractHandler.SendRequestAsync(setFeeProtocolFunction);
389 | }
390 |
391 | public Task SetFeeProtocolRequestAndWaitForReceiptAsync(byte feeProtocol0, byte feeProtocol1, CancellationTokenSource cancellationToken = null)
392 | {
393 | var setFeeProtocolFunction = new SetFeeProtocolFunction();
394 | setFeeProtocolFunction.FeeProtocol0 = feeProtocol0;
395 | setFeeProtocolFunction.FeeProtocol1 = feeProtocol1;
396 |
397 | return ContractHandler.SendRequestAndWaitForReceiptAsync(setFeeProtocolFunction, cancellationToken);
398 | }
399 |
400 | public Task Slot0QueryAsync(Slot0Function slot0Function, BlockParameter blockParameter = null)
401 | {
402 | return ContractHandler.QueryDeserializingToObjectAsync(slot0Function, blockParameter);
403 | }
404 |
405 | public Task Slot0QueryAsync(BlockParameter blockParameter = null)
406 | {
407 | return ContractHandler.QueryDeserializingToObjectAsync(null, blockParameter);
408 | }
409 |
410 | public Task SnapshotCumulativesInsideQueryAsync(SnapshotCumulativesInsideFunction snapshotCumulativesInsideFunction, BlockParameter blockParameter = null)
411 | {
412 | return ContractHandler.QueryDeserializingToObjectAsync(snapshotCumulativesInsideFunction, blockParameter);
413 | }
414 |
415 | public Task SnapshotCumulativesInsideQueryAsync(int tickLower, int tickUpper, BlockParameter blockParameter = null)
416 | {
417 | var snapshotCumulativesInsideFunction = new SnapshotCumulativesInsideFunction();
418 | snapshotCumulativesInsideFunction.TickLower = tickLower;
419 | snapshotCumulativesInsideFunction.TickUpper = tickUpper;
420 |
421 | return ContractHandler.QueryDeserializingToObjectAsync(snapshotCumulativesInsideFunction, blockParameter);
422 | }
423 |
424 | public Task SwapRequestAsync(SwapFunction swapFunction)
425 | {
426 | return ContractHandler.SendRequestAsync(swapFunction);
427 | }
428 |
429 | public Task SwapRequestAndWaitForReceiptAsync(SwapFunction swapFunction, CancellationTokenSource cancellationToken = null)
430 | {
431 | return ContractHandler.SendRequestAndWaitForReceiptAsync(swapFunction, cancellationToken);
432 | }
433 |
434 | public Task SwapRequestAsync(string recipient, bool zeroForOne, BigInteger amountSpecified, BigInteger sqrtPriceLimitX96, byte[] data)
435 | {
436 | var swapFunction = new SwapFunction();
437 | swapFunction.Recipient = recipient;
438 | swapFunction.ZeroForOne = zeroForOne;
439 | swapFunction.AmountSpecified = amountSpecified;
440 | swapFunction.SqrtPriceLimitX96 = sqrtPriceLimitX96;
441 | swapFunction.Data = data;
442 |
443 | return ContractHandler.SendRequestAsync(swapFunction);
444 | }
445 |
446 | public Task SwapRequestAndWaitForReceiptAsync(string recipient, bool zeroForOne, BigInteger amountSpecified, BigInteger sqrtPriceLimitX96, byte[] data, CancellationTokenSource cancellationToken = null)
447 | {
448 | var swapFunction = new SwapFunction();
449 | swapFunction.Recipient = recipient;
450 | swapFunction.ZeroForOne = zeroForOne;
451 | swapFunction.AmountSpecified = amountSpecified;
452 | swapFunction.SqrtPriceLimitX96 = sqrtPriceLimitX96;
453 | swapFunction.Data = data;
454 |
455 | return ContractHandler.SendRequestAndWaitForReceiptAsync(swapFunction, cancellationToken);
456 | }
457 |
458 | public Task TickBitmapQueryAsync(TickBitmapFunction tickBitmapFunction, BlockParameter blockParameter = null)
459 | {
460 | return ContractHandler.QueryAsync(tickBitmapFunction, blockParameter);
461 | }
462 |
463 |
464 | public Task TickBitmapQueryAsync(short wordPosition, BlockParameter blockParameter = null)
465 | {
466 | var tickBitmapFunction = new TickBitmapFunction();
467 | tickBitmapFunction.WordPosition = wordPosition;
468 |
469 | return ContractHandler.QueryAsync(tickBitmapFunction, blockParameter);
470 | }
471 |
472 | public Task TickSpacingQueryAsync(TickSpacingFunction tickSpacingFunction, BlockParameter blockParameter = null)
473 | {
474 | return ContractHandler.QueryAsync(tickSpacingFunction, blockParameter);
475 | }
476 |
477 |
478 | public Task TickSpacingQueryAsync(BlockParameter blockParameter = null)
479 | {
480 | return ContractHandler.QueryAsync(null, blockParameter);
481 | }
482 |
483 | public Task TicksQueryAsync(TicksFunction ticksFunction, BlockParameter blockParameter = null)
484 | {
485 | return ContractHandler.QueryDeserializingToObjectAsync(ticksFunction, blockParameter);
486 | }
487 |
488 | public Task TicksQueryAsync(int tick, BlockParameter blockParameter = null)
489 | {
490 | var ticksFunction = new TicksFunction();
491 | ticksFunction.Tick = tick;
492 |
493 | return ContractHandler.QueryDeserializingToObjectAsync(ticksFunction, blockParameter);
494 | }
495 |
496 | public Task Token0QueryAsync(Token0Function token0Function, BlockParameter blockParameter = null)
497 | {
498 | return ContractHandler.QueryAsync(token0Function, blockParameter);
499 | }
500 |
501 |
502 | public Task Token0QueryAsync(BlockParameter blockParameter = null)
503 | {
504 | return ContractHandler.QueryAsync(null, blockParameter);
505 | }
506 |
507 | public Task Token1QueryAsync(Token1Function token1Function, BlockParameter blockParameter = null)
508 | {
509 | return ContractHandler.QueryAsync(token1Function, blockParameter);
510 | }
511 |
512 |
513 | public Task Token1QueryAsync(BlockParameter blockParameter = null)
514 | {
515 | return ContractHandler.QueryAsync(null, blockParameter);
516 | }
517 | }
518 | }
519 |
--------------------------------------------------------------------------------
/images/290005259-6f31934f-9501-4a79-9b2d-b5e66b2f1de1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/msdart/layerzero-zksync-scroll-zora-aio-tools/ce8a9e18368fed4ff3af9bdf713582105c670801/images/290005259-6f31934f-9501-4a79-9b2d-b5e66b2f1de1.png
--------------------------------------------------------------------------------
/images/git2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/msdart/layerzero-zksync-scroll-zora-aio-tools/ce8a9e18368fed4ff3af9bdf713582105c670801/images/git2.png
--------------------------------------------------------------------------------
/images/image1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/msdart/layerzero-zksync-scroll-zora-aio-tools/ce8a9e18368fed4ff3af9bdf713582105c670801/images/image1.png
--------------------------------------------------------------------------------