@dhedge/v2-sdk 1.10.11 → 1.10.13

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,697 @@
1
+ [
2
+ {
3
+ "inputs": [
4
+ { "internalType": "address", "name": "_deployer", "type": "address" },
5
+ { "internalType": "address", "name": "_WETH9", "type": "address" },
6
+ {
7
+ "internalType": "address",
8
+ "name": "_tokenDescriptor_",
9
+ "type": "address"
10
+ },
11
+ { "internalType": "address", "name": "_accessHub", "type": "address" }
12
+ ],
13
+ "stateMutability": "nonpayable",
14
+ "type": "constructor"
15
+ },
16
+ { "inputs": [], "name": "CheckSlippage", "type": "error" },
17
+ {
18
+ "inputs": [],
19
+ "name": "ERC721EnumerableForbiddenBatchMint",
20
+ "type": "error"
21
+ },
22
+ {
23
+ "inputs": [
24
+ { "internalType": "address", "name": "sender", "type": "address" },
25
+ { "internalType": "uint256", "name": "tokenId", "type": "uint256" },
26
+ { "internalType": "address", "name": "owner", "type": "address" }
27
+ ],
28
+ "name": "ERC721IncorrectOwner",
29
+ "type": "error"
30
+ },
31
+ {
32
+ "inputs": [
33
+ { "internalType": "address", "name": "operator", "type": "address" },
34
+ { "internalType": "uint256", "name": "tokenId", "type": "uint256" }
35
+ ],
36
+ "name": "ERC721InsufficientApproval",
37
+ "type": "error"
38
+ },
39
+ {
40
+ "inputs": [
41
+ { "internalType": "address", "name": "approver", "type": "address" }
42
+ ],
43
+ "name": "ERC721InvalidApprover",
44
+ "type": "error"
45
+ },
46
+ {
47
+ "inputs": [
48
+ { "internalType": "address", "name": "operator", "type": "address" }
49
+ ],
50
+ "name": "ERC721InvalidOperator",
51
+ "type": "error"
52
+ },
53
+ {
54
+ "inputs": [
55
+ { "internalType": "address", "name": "owner", "type": "address" }
56
+ ],
57
+ "name": "ERC721InvalidOwner",
58
+ "type": "error"
59
+ },
60
+ {
61
+ "inputs": [
62
+ { "internalType": "address", "name": "receiver", "type": "address" }
63
+ ],
64
+ "name": "ERC721InvalidReceiver",
65
+ "type": "error"
66
+ },
67
+ {
68
+ "inputs": [
69
+ { "internalType": "address", "name": "sender", "type": "address" }
70
+ ],
71
+ "name": "ERC721InvalidSender",
72
+ "type": "error"
73
+ },
74
+ {
75
+ "inputs": [
76
+ { "internalType": "uint256", "name": "tokenId", "type": "uint256" }
77
+ ],
78
+ "name": "ERC721NonexistentToken",
79
+ "type": "error"
80
+ },
81
+ {
82
+ "inputs": [
83
+ { "internalType": "address", "name": "owner", "type": "address" },
84
+ { "internalType": "uint256", "name": "index", "type": "uint256" }
85
+ ],
86
+ "name": "ERC721OutOfBoundsIndex",
87
+ "type": "error"
88
+ },
89
+ {
90
+ "inputs": [
91
+ { "internalType": "uint256", "name": "tokenId", "type": "uint256" }
92
+ ],
93
+ "name": "InvalidTokenId",
94
+ "type": "error"
95
+ },
96
+ { "inputs": [], "name": "NotCleared", "type": "error" },
97
+ { "inputs": [], "name": "Old", "type": "error" },
98
+ { "inputs": [], "name": "Slippage", "type": "error" },
99
+ { "inputs": [], "name": "T", "type": "error" },
100
+ {
101
+ "anonymous": false,
102
+ "inputs": [
103
+ {
104
+ "indexed": true,
105
+ "internalType": "address",
106
+ "name": "owner",
107
+ "type": "address"
108
+ },
109
+ {
110
+ "indexed": true,
111
+ "internalType": "address",
112
+ "name": "approved",
113
+ "type": "address"
114
+ },
115
+ {
116
+ "indexed": true,
117
+ "internalType": "uint256",
118
+ "name": "tokenId",
119
+ "type": "uint256"
120
+ }
121
+ ],
122
+ "name": "Approval",
123
+ "type": "event"
124
+ },
125
+ {
126
+ "anonymous": false,
127
+ "inputs": [
128
+ {
129
+ "indexed": true,
130
+ "internalType": "address",
131
+ "name": "owner",
132
+ "type": "address"
133
+ },
134
+ {
135
+ "indexed": true,
136
+ "internalType": "address",
137
+ "name": "operator",
138
+ "type": "address"
139
+ },
140
+ {
141
+ "indexed": false,
142
+ "internalType": "bool",
143
+ "name": "approved",
144
+ "type": "bool"
145
+ }
146
+ ],
147
+ "name": "ApprovalForAll",
148
+ "type": "event"
149
+ },
150
+ {
151
+ "anonymous": false,
152
+ "inputs": [
153
+ {
154
+ "indexed": true,
155
+ "internalType": "uint256",
156
+ "name": "tokenId",
157
+ "type": "uint256"
158
+ },
159
+ {
160
+ "indexed": false,
161
+ "internalType": "address",
162
+ "name": "recipient",
163
+ "type": "address"
164
+ },
165
+ {
166
+ "indexed": false,
167
+ "internalType": "uint256",
168
+ "name": "amount0",
169
+ "type": "uint256"
170
+ },
171
+ {
172
+ "indexed": false,
173
+ "internalType": "uint256",
174
+ "name": "amount1",
175
+ "type": "uint256"
176
+ }
177
+ ],
178
+ "name": "Collect",
179
+ "type": "event"
180
+ },
181
+ {
182
+ "anonymous": false,
183
+ "inputs": [
184
+ {
185
+ "indexed": true,
186
+ "internalType": "uint256",
187
+ "name": "tokenId",
188
+ "type": "uint256"
189
+ },
190
+ {
191
+ "indexed": false,
192
+ "internalType": "uint128",
193
+ "name": "liquidity",
194
+ "type": "uint128"
195
+ },
196
+ {
197
+ "indexed": false,
198
+ "internalType": "uint256",
199
+ "name": "amount0",
200
+ "type": "uint256"
201
+ },
202
+ {
203
+ "indexed": false,
204
+ "internalType": "uint256",
205
+ "name": "amount1",
206
+ "type": "uint256"
207
+ }
208
+ ],
209
+ "name": "DecreaseLiquidity",
210
+ "type": "event"
211
+ },
212
+ {
213
+ "anonymous": false,
214
+ "inputs": [
215
+ {
216
+ "indexed": true,
217
+ "internalType": "uint256",
218
+ "name": "tokenId",
219
+ "type": "uint256"
220
+ },
221
+ {
222
+ "indexed": false,
223
+ "internalType": "uint128",
224
+ "name": "liquidity",
225
+ "type": "uint128"
226
+ },
227
+ {
228
+ "indexed": false,
229
+ "internalType": "uint256",
230
+ "name": "amount0",
231
+ "type": "uint256"
232
+ },
233
+ {
234
+ "indexed": false,
235
+ "internalType": "uint256",
236
+ "name": "amount1",
237
+ "type": "uint256"
238
+ }
239
+ ],
240
+ "name": "IncreaseLiquidity",
241
+ "type": "event"
242
+ },
243
+ {
244
+ "anonymous": false,
245
+ "inputs": [
246
+ {
247
+ "indexed": true,
248
+ "internalType": "address",
249
+ "name": "from",
250
+ "type": "address"
251
+ },
252
+ {
253
+ "indexed": true,
254
+ "internalType": "address",
255
+ "name": "to",
256
+ "type": "address"
257
+ },
258
+ {
259
+ "indexed": true,
260
+ "internalType": "uint256",
261
+ "name": "tokenId",
262
+ "type": "uint256"
263
+ }
264
+ ],
265
+ "name": "Transfer",
266
+ "type": "event"
267
+ },
268
+ {
269
+ "inputs": [],
270
+ "name": "WETH9",
271
+ "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
272
+ "stateMutability": "view",
273
+ "type": "function"
274
+ },
275
+ {
276
+ "inputs": [
277
+ { "internalType": "address", "name": "to", "type": "address" },
278
+ { "internalType": "uint256", "name": "tokenId", "type": "uint256" }
279
+ ],
280
+ "name": "approve",
281
+ "outputs": [],
282
+ "stateMutability": "nonpayable",
283
+ "type": "function"
284
+ },
285
+ {
286
+ "inputs": [
287
+ { "internalType": "address", "name": "owner", "type": "address" }
288
+ ],
289
+ "name": "balanceOf",
290
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
291
+ "stateMutability": "view",
292
+ "type": "function"
293
+ },
294
+ {
295
+ "inputs": [
296
+ { "internalType": "uint256", "name": "tokenId", "type": "uint256" }
297
+ ],
298
+ "name": "burn",
299
+ "outputs": [],
300
+ "stateMutability": "payable",
301
+ "type": "function"
302
+ },
303
+ {
304
+ "inputs": [
305
+ {
306
+ "components": [
307
+ { "internalType": "uint256", "name": "tokenId", "type": "uint256" },
308
+ { "internalType": "address", "name": "recipient", "type": "address" },
309
+ {
310
+ "internalType": "uint128",
311
+ "name": "amount0Max",
312
+ "type": "uint128"
313
+ },
314
+ { "internalType": "uint128", "name": "amount1Max", "type": "uint128" }
315
+ ],
316
+ "internalType": "struct INonfungiblePositionManager.CollectParams",
317
+ "name": "params",
318
+ "type": "tuple"
319
+ }
320
+ ],
321
+ "name": "collect",
322
+ "outputs": [
323
+ { "internalType": "uint256", "name": "amount0", "type": "uint256" },
324
+ { "internalType": "uint256", "name": "amount1", "type": "uint256" }
325
+ ],
326
+ "stateMutability": "payable",
327
+ "type": "function"
328
+ },
329
+ {
330
+ "inputs": [
331
+ { "internalType": "address", "name": "token0", "type": "address" },
332
+ { "internalType": "address", "name": "token1", "type": "address" },
333
+ { "internalType": "int24", "name": "tickSpacing", "type": "int24" },
334
+ { "internalType": "uint160", "name": "sqrtPriceX96", "type": "uint160" }
335
+ ],
336
+ "name": "createAndInitializePoolIfNecessary",
337
+ "outputs": [
338
+ { "internalType": "address", "name": "pool", "type": "address" }
339
+ ],
340
+ "stateMutability": "payable",
341
+ "type": "function"
342
+ },
343
+ {
344
+ "inputs": [
345
+ {
346
+ "components": [
347
+ { "internalType": "uint256", "name": "tokenId", "type": "uint256" },
348
+ { "internalType": "uint128", "name": "liquidity", "type": "uint128" },
349
+ {
350
+ "internalType": "uint256",
351
+ "name": "amount0Min",
352
+ "type": "uint256"
353
+ },
354
+ {
355
+ "internalType": "uint256",
356
+ "name": "amount1Min",
357
+ "type": "uint256"
358
+ },
359
+ { "internalType": "uint256", "name": "deadline", "type": "uint256" }
360
+ ],
361
+ "internalType": "struct INonfungiblePositionManager.DecreaseLiquidityParams",
362
+ "name": "params",
363
+ "type": "tuple"
364
+ }
365
+ ],
366
+ "name": "decreaseLiquidity",
367
+ "outputs": [
368
+ { "internalType": "uint256", "name": "amount0", "type": "uint256" },
369
+ { "internalType": "uint256", "name": "amount1", "type": "uint256" }
370
+ ],
371
+ "stateMutability": "payable",
372
+ "type": "function"
373
+ },
374
+ {
375
+ "inputs": [],
376
+ "name": "deployer",
377
+ "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
378
+ "stateMutability": "view",
379
+ "type": "function"
380
+ },
381
+ {
382
+ "inputs": [
383
+ { "internalType": "uint256", "name": "tokenId", "type": "uint256" }
384
+ ],
385
+ "name": "getApproved",
386
+ "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
387
+ "stateMutability": "view",
388
+ "type": "function"
389
+ },
390
+ {
391
+ "inputs": [
392
+ { "internalType": "uint256", "name": "tokenId", "type": "uint256" },
393
+ { "internalType": "address[]", "name": "tokens", "type": "address[]" }
394
+ ],
395
+ "name": "getReward",
396
+ "outputs": [],
397
+ "stateMutability": "nonpayable",
398
+ "type": "function"
399
+ },
400
+ {
401
+ "inputs": [
402
+ {
403
+ "components": [
404
+ { "internalType": "uint256", "name": "tokenId", "type": "uint256" },
405
+ {
406
+ "internalType": "uint256",
407
+ "name": "amount0Desired",
408
+ "type": "uint256"
409
+ },
410
+ {
411
+ "internalType": "uint256",
412
+ "name": "amount1Desired",
413
+ "type": "uint256"
414
+ },
415
+ {
416
+ "internalType": "uint256",
417
+ "name": "amount0Min",
418
+ "type": "uint256"
419
+ },
420
+ {
421
+ "internalType": "uint256",
422
+ "name": "amount1Min",
423
+ "type": "uint256"
424
+ },
425
+ { "internalType": "uint256", "name": "deadline", "type": "uint256" }
426
+ ],
427
+ "internalType": "struct INonfungiblePositionManager.IncreaseLiquidityParams",
428
+ "name": "params",
429
+ "type": "tuple"
430
+ }
431
+ ],
432
+ "name": "increaseLiquidity",
433
+ "outputs": [
434
+ { "internalType": "uint128", "name": "liquidity", "type": "uint128" },
435
+ { "internalType": "uint256", "name": "amount0", "type": "uint256" },
436
+ { "internalType": "uint256", "name": "amount1", "type": "uint256" }
437
+ ],
438
+ "stateMutability": "payable",
439
+ "type": "function"
440
+ },
441
+ {
442
+ "inputs": [
443
+ { "internalType": "address", "name": "owner", "type": "address" },
444
+ { "internalType": "address", "name": "operator", "type": "address" }
445
+ ],
446
+ "name": "isApprovedForAll",
447
+ "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
448
+ "stateMutability": "view",
449
+ "type": "function"
450
+ },
451
+ {
452
+ "inputs": [
453
+ {
454
+ "components": [
455
+ { "internalType": "address", "name": "token0", "type": "address" },
456
+ { "internalType": "address", "name": "token1", "type": "address" },
457
+ { "internalType": "int24", "name": "tickSpacing", "type": "int24" },
458
+ { "internalType": "int24", "name": "tickLower", "type": "int24" },
459
+ { "internalType": "int24", "name": "tickUpper", "type": "int24" },
460
+ {
461
+ "internalType": "uint256",
462
+ "name": "amount0Desired",
463
+ "type": "uint256"
464
+ },
465
+ {
466
+ "internalType": "uint256",
467
+ "name": "amount1Desired",
468
+ "type": "uint256"
469
+ },
470
+ {
471
+ "internalType": "uint256",
472
+ "name": "amount0Min",
473
+ "type": "uint256"
474
+ },
475
+ {
476
+ "internalType": "uint256",
477
+ "name": "amount1Min",
478
+ "type": "uint256"
479
+ },
480
+ { "internalType": "address", "name": "recipient", "type": "address" },
481
+ { "internalType": "uint256", "name": "deadline", "type": "uint256" }
482
+ ],
483
+ "internalType": "struct INonfungiblePositionManager.MintParams",
484
+ "name": "params",
485
+ "type": "tuple"
486
+ }
487
+ ],
488
+ "name": "mint",
489
+ "outputs": [
490
+ { "internalType": "uint256", "name": "tokenId", "type": "uint256" },
491
+ { "internalType": "uint128", "name": "liquidity", "type": "uint128" },
492
+ { "internalType": "uint256", "name": "amount0", "type": "uint256" },
493
+ { "internalType": "uint256", "name": "amount1", "type": "uint256" }
494
+ ],
495
+ "stateMutability": "payable",
496
+ "type": "function"
497
+ },
498
+ {
499
+ "inputs": [
500
+ { "internalType": "bytes[]", "name": "data", "type": "bytes[]" }
501
+ ],
502
+ "name": "multicall",
503
+ "outputs": [
504
+ { "internalType": "bytes[]", "name": "results", "type": "bytes[]" }
505
+ ],
506
+ "stateMutability": "payable",
507
+ "type": "function"
508
+ },
509
+ {
510
+ "inputs": [],
511
+ "name": "name",
512
+ "outputs": [{ "internalType": "string", "name": "", "type": "string" }],
513
+ "stateMutability": "view",
514
+ "type": "function"
515
+ },
516
+ {
517
+ "inputs": [
518
+ { "internalType": "uint256", "name": "tokenId", "type": "uint256" }
519
+ ],
520
+ "name": "ownerOf",
521
+ "outputs": [{ "internalType": "address", "name": "", "type": "address" }],
522
+ "stateMutability": "view",
523
+ "type": "function"
524
+ },
525
+ {
526
+ "inputs": [
527
+ { "internalType": "uint256", "name": "tokenId", "type": "uint256" }
528
+ ],
529
+ "name": "positions",
530
+ "outputs": [
531
+ { "internalType": "address", "name": "token0", "type": "address" },
532
+ { "internalType": "address", "name": "token1", "type": "address" },
533
+ { "internalType": "int24", "name": "tickSpacing", "type": "int24" },
534
+ { "internalType": "int24", "name": "tickLower", "type": "int24" },
535
+ { "internalType": "int24", "name": "tickUpper", "type": "int24" },
536
+ { "internalType": "uint128", "name": "liquidity", "type": "uint128" },
537
+ {
538
+ "internalType": "uint256",
539
+ "name": "feeGrowthInside0LastX128",
540
+ "type": "uint256"
541
+ },
542
+ {
543
+ "internalType": "uint256",
544
+ "name": "feeGrowthInside1LastX128",
545
+ "type": "uint256"
546
+ },
547
+ { "internalType": "uint128", "name": "tokensOwed0", "type": "uint128" },
548
+ { "internalType": "uint128", "name": "tokensOwed1", "type": "uint128" }
549
+ ],
550
+ "stateMutability": "view",
551
+ "type": "function"
552
+ },
553
+ {
554
+ "inputs": [],
555
+ "name": "refundETH",
556
+ "outputs": [],
557
+ "stateMutability": "payable",
558
+ "type": "function"
559
+ },
560
+ {
561
+ "inputs": [
562
+ { "internalType": "address", "name": "from", "type": "address" },
563
+ { "internalType": "address", "name": "to", "type": "address" },
564
+ { "internalType": "uint256", "name": "tokenId", "type": "uint256" }
565
+ ],
566
+ "name": "safeTransferFrom",
567
+ "outputs": [],
568
+ "stateMutability": "nonpayable",
569
+ "type": "function"
570
+ },
571
+ {
572
+ "inputs": [
573
+ { "internalType": "address", "name": "from", "type": "address" },
574
+ { "internalType": "address", "name": "to", "type": "address" },
575
+ { "internalType": "uint256", "name": "tokenId", "type": "uint256" },
576
+ { "internalType": "bytes", "name": "data", "type": "bytes" }
577
+ ],
578
+ "name": "safeTransferFrom",
579
+ "outputs": [],
580
+ "stateMutability": "nonpayable",
581
+ "type": "function"
582
+ },
583
+ {
584
+ "inputs": [
585
+ { "internalType": "address", "name": "operator", "type": "address" },
586
+ { "internalType": "bool", "name": "approved", "type": "bool" }
587
+ ],
588
+ "name": "setApprovalForAll",
589
+ "outputs": [],
590
+ "stateMutability": "nonpayable",
591
+ "type": "function"
592
+ },
593
+ {
594
+ "inputs": [
595
+ { "internalType": "address", "name": "_voter", "type": "address" }
596
+ ],
597
+ "name": "setVoter",
598
+ "outputs": [],
599
+ "stateMutability": "nonpayable",
600
+ "type": "function"
601
+ },
602
+ {
603
+ "inputs": [
604
+ { "internalType": "bytes4", "name": "interfaceId", "type": "bytes4" }
605
+ ],
606
+ "name": "supportsInterface",
607
+ "outputs": [{ "internalType": "bool", "name": "", "type": "bool" }],
608
+ "stateMutability": "view",
609
+ "type": "function"
610
+ },
611
+ {
612
+ "inputs": [
613
+ { "internalType": "address", "name": "token", "type": "address" },
614
+ { "internalType": "uint256", "name": "amountMinimum", "type": "uint256" },
615
+ { "internalType": "address", "name": "recipient", "type": "address" }
616
+ ],
617
+ "name": "sweepToken",
618
+ "outputs": [],
619
+ "stateMutability": "payable",
620
+ "type": "function"
621
+ },
622
+ {
623
+ "inputs": [],
624
+ "name": "symbol",
625
+ "outputs": [{ "internalType": "string", "name": "", "type": "string" }],
626
+ "stateMutability": "view",
627
+ "type": "function"
628
+ },
629
+ {
630
+ "inputs": [
631
+ { "internalType": "uint256", "name": "index", "type": "uint256" }
632
+ ],
633
+ "name": "tokenByIndex",
634
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
635
+ "stateMutability": "view",
636
+ "type": "function"
637
+ },
638
+ {
639
+ "inputs": [
640
+ { "internalType": "address", "name": "owner", "type": "address" },
641
+ { "internalType": "uint256", "name": "index", "type": "uint256" }
642
+ ],
643
+ "name": "tokenOfOwnerByIndex",
644
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
645
+ "stateMutability": "view",
646
+ "type": "function"
647
+ },
648
+ {
649
+ "inputs": [
650
+ { "internalType": "uint256", "name": "tokenId", "type": "uint256" }
651
+ ],
652
+ "name": "tokenURI",
653
+ "outputs": [{ "internalType": "string", "name": "", "type": "string" }],
654
+ "stateMutability": "view",
655
+ "type": "function"
656
+ },
657
+ {
658
+ "inputs": [],
659
+ "name": "totalSupply",
660
+ "outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }],
661
+ "stateMutability": "view",
662
+ "type": "function"
663
+ },
664
+ {
665
+ "inputs": [
666
+ { "internalType": "address", "name": "from", "type": "address" },
667
+ { "internalType": "address", "name": "to", "type": "address" },
668
+ { "internalType": "uint256", "name": "tokenId", "type": "uint256" }
669
+ ],
670
+ "name": "transferFrom",
671
+ "outputs": [],
672
+ "stateMutability": "nonpayable",
673
+ "type": "function"
674
+ },
675
+ {
676
+ "inputs": [
677
+ { "internalType": "uint256", "name": "amount0Owed", "type": "uint256" },
678
+ { "internalType": "uint256", "name": "amount1Owed", "type": "uint256" },
679
+ { "internalType": "bytes", "name": "data", "type": "bytes" }
680
+ ],
681
+ "name": "uniswapV3MintCallback",
682
+ "outputs": [],
683
+ "stateMutability": "nonpayable",
684
+ "type": "function"
685
+ },
686
+ {
687
+ "inputs": [
688
+ { "internalType": "uint256", "name": "amountMinimum", "type": "uint256" },
689
+ { "internalType": "address", "name": "recipient", "type": "address" }
690
+ ],
691
+ "name": "unwrapWETH9",
692
+ "outputs": [],
693
+ "stateMutability": "payable",
694
+ "type": "function"
695
+ },
696
+ { "stateMutability": "payable", "type": "receive" }
697
+ ]