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