@peddles/sdk 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (124) hide show
  1. package/CLAUDE_PROMPT.md +159 -0
  2. package/LICENSE +21 -0
  3. package/README.md +186 -0
  4. package/dist/abis.d.ts +19 -0
  5. package/dist/abis.d.ts.map +1 -0
  6. package/dist/abis.generated.d.ts +2029 -0
  7. package/dist/abis.generated.d.ts.map +1 -0
  8. package/dist/abis.generated.js +2723 -0
  9. package/dist/abis.generated.js.map +1 -0
  10. package/dist/abis.js +19 -0
  11. package/dist/abis.js.map +1 -0
  12. package/dist/artDex.d.ts +937 -0
  13. package/dist/artDex.d.ts.map +1 -0
  14. package/dist/artDex.js +155 -0
  15. package/dist/artDex.js.map +1 -0
  16. package/dist/client.d.ts +10 -0
  17. package/dist/client.d.ts.map +1 -0
  18. package/dist/client.js +2 -0
  19. package/dist/client.js.map +1 -0
  20. package/dist/clog.d.ts +75 -0
  21. package/dist/clog.d.ts.map +1 -0
  22. package/dist/clog.js +91 -0
  23. package/dist/clog.js.map +1 -0
  24. package/dist/clogInflow.d.ts +136 -0
  25. package/dist/clogInflow.d.ts.map +1 -0
  26. package/dist/clogInflow.js +177 -0
  27. package/dist/clogInflow.js.map +1 -0
  28. package/dist/deployments.d.ts +30 -0
  29. package/dist/deployments.d.ts.map +1 -0
  30. package/dist/deployments.generated.d.ts +92 -0
  31. package/dist/deployments.generated.d.ts.map +1 -0
  32. package/dist/deployments.generated.js +93 -0
  33. package/dist/deployments.generated.js.map +1 -0
  34. package/dist/deployments.js +52 -0
  35. package/dist/deployments.js.map +1 -0
  36. package/dist/feeSplit.d.ts +54 -0
  37. package/dist/feeSplit.d.ts.map +1 -0
  38. package/dist/feeSplit.js +69 -0
  39. package/dist/feeSplit.js.map +1 -0
  40. package/dist/feeTerms.d.ts +46 -0
  41. package/dist/feeTerms.d.ts.map +1 -0
  42. package/dist/feeTerms.js +80 -0
  43. package/dist/feeTerms.js.map +1 -0
  44. package/dist/index.d.ts +102 -0
  45. package/dist/index.d.ts.map +1 -0
  46. package/dist/index.js +108 -0
  47. package/dist/index.js.map +1 -0
  48. package/dist/launch/abi.generated.d.ts +2667 -0
  49. package/dist/launch/abi.generated.d.ts.map +1 -0
  50. package/dist/launch/abi.generated.js +2472 -0
  51. package/dist/launch/abi.generated.js.map +1 -0
  52. package/dist/launch/addresses.d.ts +24 -0
  53. package/dist/launch/addresses.d.ts.map +1 -0
  54. package/dist/launch/addresses.js +35 -0
  55. package/dist/launch/addresses.js.map +1 -0
  56. package/dist/launch/feeTerms.d.ts +52 -0
  57. package/dist/launch/feeTerms.d.ts.map +1 -0
  58. package/dist/launch/feeTerms.js +72 -0
  59. package/dist/launch/feeTerms.js.map +1 -0
  60. package/dist/launch/index.d.ts +33 -0
  61. package/dist/launch/index.d.ts.map +1 -0
  62. package/dist/launch/index.js +24 -0
  63. package/dist/launch/index.js.map +1 -0
  64. package/dist/launch/revert.d.ts +23 -0
  65. package/dist/launch/revert.d.ts.map +1 -0
  66. package/dist/launch/revert.js +169 -0
  67. package/dist/launch/revert.js.map +1 -0
  68. package/dist/launch/salt.d.ts +90 -0
  69. package/dist/launch/salt.d.ts.map +1 -0
  70. package/dist/launch/salt.js +153 -0
  71. package/dist/launch/salt.js.map +1 -0
  72. package/dist/launch/stockCall.d.ts +122 -0
  73. package/dist/launch/stockCall.d.ts.map +1 -0
  74. package/dist/launch/stockCall.js +144 -0
  75. package/dist/launch/stockCall.js.map +1 -0
  76. package/dist/launch/tickMath.d.ts +39 -0
  77. package/dist/launch/tickMath.d.ts.map +1 -0
  78. package/dist/launch/tickMath.js +109 -0
  79. package/dist/launch/tickMath.js.map +1 -0
  80. package/dist/launch/variants.d.ts +64 -0
  81. package/dist/launch/variants.d.ts.map +1 -0
  82. package/dist/launch/variants.js +131 -0
  83. package/dist/launch/variants.js.map +1 -0
  84. package/dist/launch/wethCall.d.ts +133 -0
  85. package/dist/launch/wethCall.d.ts.map +1 -0
  86. package/dist/launch/wethCall.js +173 -0
  87. package/dist/launch/wethCall.js.map +1 -0
  88. package/dist/launch/wethPlan.d.ts +71 -0
  89. package/dist/launch/wethPlan.d.ts.map +1 -0
  90. package/dist/launch/wethPlan.js +146 -0
  91. package/dist/launch/wethPlan.js.map +1 -0
  92. package/dist/perps/abi.generated.d.ts +794 -0
  93. package/dist/perps/abi.generated.d.ts.map +1 -0
  94. package/dist/perps/abi.generated.js +738 -0
  95. package/dist/perps/abi.generated.js.map +1 -0
  96. package/dist/perps/index.d.ts +160 -0
  97. package/dist/perps/index.d.ts.map +1 -0
  98. package/dist/perps/index.js +147 -0
  99. package/dist/perps/index.js.map +1 -0
  100. package/package.json +105 -0
  101. package/src/abis.generated.ts +2738 -0
  102. package/src/abis.ts +35 -0
  103. package/src/artDex.ts +254 -0
  104. package/src/client.ts +10 -0
  105. package/src/clog.ts +171 -0
  106. package/src/clogInflow.ts +217 -0
  107. package/src/deployments.generated.ts +98 -0
  108. package/src/deployments.ts +60 -0
  109. package/src/feeSplit.ts +76 -0
  110. package/src/feeTerms.ts +137 -0
  111. package/src/index.ts +233 -0
  112. package/src/launch/abi.generated.ts +2481 -0
  113. package/src/launch/addresses.ts +58 -0
  114. package/src/launch/feeTerms.ts +93 -0
  115. package/src/launch/index.ts +93 -0
  116. package/src/launch/revert.ts +188 -0
  117. package/src/launch/salt.ts +216 -0
  118. package/src/launch/stockCall.ts +223 -0
  119. package/src/launch/tickMath.ts +139 -0
  120. package/src/launch/variants.ts +183 -0
  121. package/src/launch/wethCall.ts +240 -0
  122. package/src/launch/wethPlan.ts +257 -0
  123. package/src/perps/abi.generated.ts +741 -0
  124. package/src/perps/index.ts +263 -0
@@ -0,0 +1,738 @@
1
+ // GENERATED FILE — DO NOT EDIT.
2
+ // Written by script/generate-perp-abis.mjs from contracts/out/<File>.sol/<Contract>.json.
3
+ // Re-run it after `forge build` and commit the result.
4
+ /** `PeddlesPerpFactory` — market creation, CREATE2 prediction, per-base curve policy, the lens, and the launch registry. */
5
+ export const perpFactoryAbi = [
6
+ {
7
+ "type": "function",
8
+ "name": "create",
9
+ "inputs": [
10
+ {
11
+ "name": "p",
12
+ "type": "tuple",
13
+ "internalType": "struct PeddlesPerpFactory.CreateParams",
14
+ "components": [
15
+ {
16
+ "name": "name",
17
+ "type": "string",
18
+ "internalType": "string"
19
+ },
20
+ {
21
+ "name": "symbol",
22
+ "type": "string",
23
+ "internalType": "string"
24
+ },
25
+ {
26
+ "name": "tokenUri",
27
+ "type": "string",
28
+ "internalType": "string"
29
+ },
30
+ {
31
+ "name": "base",
32
+ "type": "address",
33
+ "internalType": "address"
34
+ },
35
+ {
36
+ "name": "tokenSalt",
37
+ "type": "bytes32",
38
+ "internalType": "bytes32"
39
+ },
40
+ {
41
+ "name": "hookSalt",
42
+ "type": "bytes32",
43
+ "internalType": "bytes32"
44
+ },
45
+ {
46
+ "name": "seedBuyBase",
47
+ "type": "uint256",
48
+ "internalType": "uint256"
49
+ }
50
+ ]
51
+ }
52
+ ],
53
+ "outputs": [
54
+ {
55
+ "name": "hook",
56
+ "type": "address",
57
+ "internalType": "address"
58
+ },
59
+ {
60
+ "name": "token",
61
+ "type": "address",
62
+ "internalType": "address"
63
+ },
64
+ {
65
+ "name": "lens",
66
+ "type": "address",
67
+ "internalType": "address"
68
+ }
69
+ ],
70
+ "stateMutability": "nonpayable"
71
+ },
72
+ {
73
+ "type": "function",
74
+ "name": "predictToken",
75
+ "inputs": [
76
+ {
77
+ "name": "tokenSalt",
78
+ "type": "bytes32",
79
+ "internalType": "bytes32"
80
+ },
81
+ {
82
+ "name": "name",
83
+ "type": "string",
84
+ "internalType": "string"
85
+ },
86
+ {
87
+ "name": "symbol",
88
+ "type": "string",
89
+ "internalType": "string"
90
+ },
91
+ {
92
+ "name": "tokenUri",
93
+ "type": "string",
94
+ "internalType": "string"
95
+ }
96
+ ],
97
+ "outputs": [
98
+ {
99
+ "name": "",
100
+ "type": "address",
101
+ "internalType": "address"
102
+ }
103
+ ],
104
+ "stateMutability": "view"
105
+ },
106
+ {
107
+ "type": "function",
108
+ "name": "predictHook",
109
+ "inputs": [
110
+ {
111
+ "name": "hookSalt",
112
+ "type": "bytes32",
113
+ "internalType": "bytes32"
114
+ },
115
+ {
116
+ "name": "token",
117
+ "type": "address",
118
+ "internalType": "address"
119
+ }
120
+ ],
121
+ "outputs": [
122
+ {
123
+ "name": "",
124
+ "type": "address",
125
+ "internalType": "address"
126
+ }
127
+ ],
128
+ "stateMutability": "view"
129
+ },
130
+ {
131
+ "type": "function",
132
+ "name": "tokenInitCodeHash",
133
+ "inputs": [
134
+ {
135
+ "name": "name",
136
+ "type": "string",
137
+ "internalType": "string"
138
+ },
139
+ {
140
+ "name": "symbol",
141
+ "type": "string",
142
+ "internalType": "string"
143
+ },
144
+ {
145
+ "name": "tokenUri",
146
+ "type": "string",
147
+ "internalType": "string"
148
+ }
149
+ ],
150
+ "outputs": [
151
+ {
152
+ "name": "",
153
+ "type": "bytes32",
154
+ "internalType": "bytes32"
155
+ }
156
+ ],
157
+ "stateMutability": "pure"
158
+ },
159
+ {
160
+ "type": "function",
161
+ "name": "hookInitCodeHash",
162
+ "inputs": [
163
+ {
164
+ "name": "token",
165
+ "type": "address",
166
+ "internalType": "address"
167
+ }
168
+ ],
169
+ "outputs": [
170
+ {
171
+ "name": "",
172
+ "type": "bytes32",
173
+ "internalType": "bytes32"
174
+ }
175
+ ],
176
+ "stateMutability": "view"
177
+ },
178
+ {
179
+ "type": "function",
180
+ "name": "bases",
181
+ "inputs": [
182
+ {
183
+ "name": "",
184
+ "type": "address",
185
+ "internalType": "address"
186
+ }
187
+ ],
188
+ "outputs": [
189
+ {
190
+ "name": "allowed",
191
+ "type": "bool",
192
+ "internalType": "bool"
193
+ },
194
+ {
195
+ "name": "v",
196
+ "type": "uint128",
197
+ "internalType": "uint128"
198
+ },
199
+ {
200
+ "name": "tickWidth",
201
+ "type": "uint128",
202
+ "internalType": "uint128"
203
+ }
204
+ ],
205
+ "stateMutability": "view"
206
+ },
207
+ {
208
+ "type": "function",
209
+ "name": "deployLens",
210
+ "inputs": [
211
+ {
212
+ "name": "hookAddr",
213
+ "type": "address",
214
+ "internalType": "address"
215
+ }
216
+ ],
217
+ "outputs": [
218
+ {
219
+ "name": "lens",
220
+ "type": "address",
221
+ "internalType": "address"
222
+ }
223
+ ],
224
+ "stateMutability": "nonpayable"
225
+ },
226
+ {
227
+ "type": "function",
228
+ "name": "hookDeployer",
229
+ "inputs": [],
230
+ "outputs": [
231
+ {
232
+ "name": "",
233
+ "type": "address",
234
+ "internalType": "contract PeddlesPerpHookDeployer"
235
+ }
236
+ ],
237
+ "stateMutability": "view"
238
+ },
239
+ {
240
+ "type": "function",
241
+ "name": "feeRegistry",
242
+ "inputs": [],
243
+ "outputs": [
244
+ {
245
+ "name": "",
246
+ "type": "address",
247
+ "internalType": "address"
248
+ }
249
+ ],
250
+ "stateMutability": "view"
251
+ },
252
+ {
253
+ "type": "function",
254
+ "name": "poolManager",
255
+ "inputs": [],
256
+ "outputs": [
257
+ {
258
+ "name": "",
259
+ "type": "address",
260
+ "internalType": "contract IPoolManager"
261
+ }
262
+ ],
263
+ "stateMutability": "view"
264
+ },
265
+ {
266
+ "type": "function",
267
+ "name": "blockTimeMs",
268
+ "inputs": [],
269
+ "outputs": [
270
+ {
271
+ "name": "",
272
+ "type": "uint32",
273
+ "internalType": "uint32"
274
+ }
275
+ ],
276
+ "stateMutability": "view"
277
+ },
278
+ {
279
+ "type": "function",
280
+ "name": "TOTAL_SUPPLY",
281
+ "inputs": [],
282
+ "outputs": [
283
+ {
284
+ "name": "",
285
+ "type": "uint256",
286
+ "internalType": "uint256"
287
+ }
288
+ ],
289
+ "stateMutability": "view"
290
+ },
291
+ {
292
+ "type": "function",
293
+ "name": "hookId",
294
+ "inputs": [
295
+ {
296
+ "name": "",
297
+ "type": "address",
298
+ "internalType": "address"
299
+ }
300
+ ],
301
+ "outputs": [
302
+ {
303
+ "name": "",
304
+ "type": "uint256",
305
+ "internalType": "uint256"
306
+ }
307
+ ],
308
+ "stateMutability": "view"
309
+ },
310
+ {
311
+ "type": "function",
312
+ "name": "launches",
313
+ "inputs": [
314
+ {
315
+ "name": "",
316
+ "type": "uint256",
317
+ "internalType": "uint256"
318
+ }
319
+ ],
320
+ "outputs": [
321
+ {
322
+ "name": "hook",
323
+ "type": "address",
324
+ "internalType": "address"
325
+ },
326
+ {
327
+ "name": "token",
328
+ "type": "address",
329
+ "internalType": "address"
330
+ },
331
+ {
332
+ "name": "lens",
333
+ "type": "address",
334
+ "internalType": "address"
335
+ },
336
+ {
337
+ "name": "base",
338
+ "type": "address",
339
+ "internalType": "address"
340
+ },
341
+ {
342
+ "name": "creator",
343
+ "type": "address",
344
+ "internalType": "address"
345
+ },
346
+ {
347
+ "name": "createdAt",
348
+ "type": "uint64",
349
+ "internalType": "uint64"
350
+ }
351
+ ],
352
+ "stateMutability": "view"
353
+ },
354
+ {
355
+ "type": "function",
356
+ "name": "launchCount",
357
+ "inputs": [],
358
+ "outputs": [
359
+ {
360
+ "name": "",
361
+ "type": "uint256",
362
+ "internalType": "uint256"
363
+ }
364
+ ],
365
+ "stateMutability": "view"
366
+ },
367
+ {
368
+ "type": "event",
369
+ "name": "Launched",
370
+ "inputs": [
371
+ {
372
+ "name": "hook",
373
+ "type": "address",
374
+ "indexed": true,
375
+ "internalType": "address"
376
+ },
377
+ {
378
+ "name": "token",
379
+ "type": "address",
380
+ "indexed": true,
381
+ "internalType": "address"
382
+ },
383
+ {
384
+ "name": "creator",
385
+ "type": "address",
386
+ "indexed": true,
387
+ "internalType": "address"
388
+ },
389
+ {
390
+ "name": "lens",
391
+ "type": "address",
392
+ "indexed": false,
393
+ "internalType": "address"
394
+ },
395
+ {
396
+ "name": "base",
397
+ "type": "address",
398
+ "indexed": false,
399
+ "internalType": "address"
400
+ },
401
+ {
402
+ "name": "v",
403
+ "type": "uint256",
404
+ "indexed": false,
405
+ "internalType": "uint256"
406
+ },
407
+ {
408
+ "name": "tickWidth",
409
+ "type": "uint256",
410
+ "indexed": false,
411
+ "internalType": "uint256"
412
+ },
413
+ {
414
+ "name": "name",
415
+ "type": "string",
416
+ "indexed": false,
417
+ "internalType": "string"
418
+ },
419
+ {
420
+ "name": "symbol",
421
+ "type": "string",
422
+ "indexed": false,
423
+ "internalType": "string"
424
+ },
425
+ {
426
+ "name": "tokenUri",
427
+ "type": "string",
428
+ "indexed": false,
429
+ "internalType": "string"
430
+ }
431
+ ],
432
+ "anonymous": false
433
+ },
434
+ {
435
+ "type": "event",
436
+ "name": "LensDeployed",
437
+ "inputs": [
438
+ {
439
+ "name": "hook",
440
+ "type": "address",
441
+ "indexed": true,
442
+ "internalType": "address"
443
+ },
444
+ {
445
+ "name": "lens",
446
+ "type": "address",
447
+ "indexed": true,
448
+ "internalType": "address"
449
+ }
450
+ ],
451
+ "anonymous": false
452
+ },
453
+ {
454
+ "type": "error",
455
+ "name": "BadHookAddr",
456
+ "inputs": []
457
+ },
458
+ {
459
+ "type": "error",
460
+ "name": "BadParams",
461
+ "inputs": []
462
+ },
463
+ {
464
+ "type": "error",
465
+ "name": "LensAlreadyDeployed",
466
+ "inputs": []
467
+ },
468
+ {
469
+ "type": "error",
470
+ "name": "NotWhitelisted",
471
+ "inputs": []
472
+ },
473
+ {
474
+ "type": "error",
475
+ "name": "TransferFailed",
476
+ "inputs": []
477
+ },
478
+ {
479
+ "type": "error",
480
+ "name": "UnknownHook",
481
+ "inputs": []
482
+ }
483
+ ];
484
+ /** `PeddlesPerpHook` custom errors — the hook is constructed and configured inside `create`. */
485
+ export const perpHookErrorsAbi = [
486
+ {
487
+ "type": "error",
488
+ "name": "AntiSnipeWindow",
489
+ "inputs": []
490
+ },
491
+ {
492
+ "type": "error",
493
+ "name": "BadBlockTime",
494
+ "inputs": []
495
+ },
496
+ {
497
+ "type": "error",
498
+ "name": "BadCurveParams",
499
+ "inputs": []
500
+ },
501
+ {
502
+ "type": "error",
503
+ "name": "BadSeedRange",
504
+ "inputs": []
505
+ },
506
+ {
507
+ "type": "error",
508
+ "name": "BandAlreadySeeded",
509
+ "inputs": []
510
+ },
511
+ {
512
+ "type": "error",
513
+ "name": "BaseAlreadySet",
514
+ "inputs": []
515
+ },
516
+ {
517
+ "type": "error",
518
+ "name": "BorrowCapPerBlockExceeded",
519
+ "inputs": []
520
+ },
521
+ {
522
+ "type": "error",
523
+ "name": "CollateralBelowMin",
524
+ "inputs": []
525
+ },
526
+ {
527
+ "type": "error",
528
+ "name": "CooldownActive",
529
+ "inputs": []
530
+ },
531
+ {
532
+ "type": "error",
533
+ "name": "CurveAlreadySet",
534
+ "inputs": []
535
+ },
536
+ {
537
+ "type": "error",
538
+ "name": "DeadlineExceeded",
539
+ "inputs": []
540
+ },
541
+ {
542
+ "type": "error",
543
+ "name": "EthTransferFailed",
544
+ "inputs": []
545
+ },
546
+ {
547
+ "type": "error",
548
+ "name": "ExactOutputDisallowed",
549
+ "inputs": []
550
+ },
551
+ {
552
+ "type": "error",
553
+ "name": "FeeContextAlreadySet",
554
+ "inputs": []
555
+ },
556
+ {
557
+ "type": "error",
558
+ "name": "InsufficientBorrowCapacity",
559
+ "inputs": []
560
+ },
561
+ {
562
+ "type": "error",
563
+ "name": "InvalidAction",
564
+ "inputs": []
565
+ },
566
+ {
567
+ "type": "error",
568
+ "name": "InvalidBand",
569
+ "inputs": []
570
+ },
571
+ {
572
+ "type": "error",
573
+ "name": "InvalidInitPrice",
574
+ "inputs": []
575
+ },
576
+ {
577
+ "type": "error",
578
+ "name": "InvalidLeverage",
579
+ "inputs": []
580
+ },
581
+ {
582
+ "type": "error",
583
+ "name": "InvalidPoolKey",
584
+ "inputs": []
585
+ },
586
+ {
587
+ "type": "error",
588
+ "name": "InvalidSellBps",
589
+ "inputs": []
590
+ },
591
+ {
592
+ "type": "error",
593
+ "name": "LaunchNotQuiescent",
594
+ "inputs": []
595
+ },
596
+ {
597
+ "type": "error",
598
+ "name": "NoOpenPosition",
599
+ "inputs": []
600
+ },
601
+ {
602
+ "type": "error",
603
+ "name": "NotOwner",
604
+ "inputs": []
605
+ },
606
+ {
607
+ "type": "error",
608
+ "name": "NotPositionOwner",
609
+ "inputs": []
610
+ },
611
+ {
612
+ "type": "error",
613
+ "name": "NotShortable",
614
+ "inputs": []
615
+ },
616
+ {
617
+ "type": "error",
618
+ "name": "NothingSold",
619
+ "inputs": []
620
+ },
621
+ {
622
+ "type": "error",
623
+ "name": "NothingToClaim",
624
+ "inputs": []
625
+ },
626
+ {
627
+ "type": "error",
628
+ "name": "NothingToSweep",
629
+ "inputs": []
630
+ },
631
+ {
632
+ "type": "error",
633
+ "name": "PartialFill",
634
+ "inputs": []
635
+ },
636
+ {
637
+ "type": "error",
638
+ "name": "PoolAlreadyInitialized",
639
+ "inputs": []
640
+ },
641
+ {
642
+ "type": "error",
643
+ "name": "PoolMgrOnly",
644
+ "inputs": []
645
+ },
646
+ {
647
+ "type": "error",
648
+ "name": "PoolNotInitializedErr",
649
+ "inputs": []
650
+ },
651
+ {
652
+ "type": "error",
653
+ "name": "ProtocolPaused",
654
+ "inputs": []
655
+ },
656
+ {
657
+ "type": "error",
658
+ "name": "Reentrancy",
659
+ "inputs": []
660
+ },
661
+ {
662
+ "type": "error",
663
+ "name": "SlippageExceeded",
664
+ "inputs": []
665
+ },
666
+ {
667
+ "type": "error",
668
+ "name": "TailNotSeeded",
669
+ "inputs": []
670
+ },
671
+ {
672
+ "type": "error",
673
+ "name": "TokenSupplyMismatch",
674
+ "inputs": []
675
+ },
676
+ {
677
+ "type": "error",
678
+ "name": "TokenTransferFailed",
679
+ "inputs": []
680
+ },
681
+ {
682
+ "type": "error",
683
+ "name": "TradingNotEnabled",
684
+ "inputs": []
685
+ },
686
+ {
687
+ "type": "error",
688
+ "name": "TwapNotWarm",
689
+ "inputs": []
690
+ },
691
+ {
692
+ "type": "error",
693
+ "name": "UnauthorizedInit",
694
+ "inputs": []
695
+ },
696
+ {
697
+ "type": "error",
698
+ "name": "UnauthorizedLP",
699
+ "inputs": []
700
+ },
701
+ {
702
+ "type": "error",
703
+ "name": "ZeroAddress",
704
+ "inputs": []
705
+ }
706
+ ];
707
+ /** Uniswap v4-core `Hooks` library errors — `HookAddressNotValid` is a hook salt that does not carry the permission bits. */
708
+ export const v4HooksErrorsAbi = [
709
+ {
710
+ "type": "error",
711
+ "name": "HookAddressNotValid",
712
+ "inputs": [
713
+ {
714
+ "name": "hooks",
715
+ "type": "address",
716
+ "internalType": "address"
717
+ }
718
+ ]
719
+ },
720
+ {
721
+ "type": "error",
722
+ "name": "HookCallFailed",
723
+ "inputs": []
724
+ },
725
+ {
726
+ "type": "error",
727
+ "name": "HookDeltaExceedsSwapAmount",
728
+ "inputs": []
729
+ },
730
+ {
731
+ "type": "error",
732
+ "name": "InvalidHookResponse",
733
+ "inputs": []
734
+ }
735
+ ];
736
+ /** Every custom error a perp `create` can revert with. Selectors resolve against this. */
737
+ export const perpErrorsAbi = [...perpFactoryAbi, ...perpHookErrorsAbi, ...v4HooksErrorsAbi].filter((e) => e.type === 'error');
738
+ //# sourceMappingURL=abi.generated.js.map