@masterpeach/launchpad-sdk 0.0.0-experimental-20260818121657

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,2786 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/abi/index.ts
21
+ var abi_exports = {};
22
+ __export(abi_exports, {
23
+ constantProductCurveAbi: () => constantProductCurveAbi,
24
+ launchTokenAbi: () => launchTokenAbi,
25
+ launchpadAbiArtifactCommit: () => launchpadAbiArtifactCommit,
26
+ liquidityLockerAbi: () => liquidityLockerAbi,
27
+ portalAbi: () => portalAbi,
28
+ tokenFactoryAbi: () => tokenFactoryAbi,
29
+ v3MigratorAbi: () => v3MigratorAbi
30
+ });
31
+ module.exports = __toCommonJS(abi_exports);
32
+
33
+ // src/abi/generated/constant-product-curve.ts
34
+ var constantProductCurveAbi = [
35
+ {
36
+ type: "function",
37
+ name: "quoteBuy",
38
+ inputs: [
39
+ {
40
+ name: "state",
41
+ type: "tuple",
42
+ internalType: "struct ICurve.State",
43
+ components: [
44
+ {
45
+ name: "totalSupply",
46
+ type: "uint256",
47
+ internalType: "uint256"
48
+ },
49
+ {
50
+ name: "circulatingSupply",
51
+ type: "uint256",
52
+ internalType: "uint256"
53
+ },
54
+ {
55
+ name: "quoteReserve",
56
+ type: "uint256",
57
+ internalType: "uint256"
58
+ },
59
+ {
60
+ name: "virtualTokenReserve",
61
+ type: "uint256",
62
+ internalType: "uint256"
63
+ },
64
+ {
65
+ name: "virtualQuoteReserve",
66
+ type: "uint256",
67
+ internalType: "uint256"
68
+ },
69
+ {
70
+ name: "k",
71
+ type: "uint256",
72
+ internalType: "uint256"
73
+ }
74
+ ]
75
+ },
76
+ {
77
+ name: "quoteIn",
78
+ type: "uint256",
79
+ internalType: "uint256"
80
+ }
81
+ ],
82
+ outputs: [
83
+ {
84
+ name: "tokenOut",
85
+ type: "uint256",
86
+ internalType: "uint256"
87
+ }
88
+ ],
89
+ stateMutability: "pure"
90
+ },
91
+ {
92
+ type: "function",
93
+ name: "quoteBuyExactOut",
94
+ inputs: [
95
+ {
96
+ name: "state",
97
+ type: "tuple",
98
+ internalType: "struct ICurve.State",
99
+ components: [
100
+ {
101
+ name: "totalSupply",
102
+ type: "uint256",
103
+ internalType: "uint256"
104
+ },
105
+ {
106
+ name: "circulatingSupply",
107
+ type: "uint256",
108
+ internalType: "uint256"
109
+ },
110
+ {
111
+ name: "quoteReserve",
112
+ type: "uint256",
113
+ internalType: "uint256"
114
+ },
115
+ {
116
+ name: "virtualTokenReserve",
117
+ type: "uint256",
118
+ internalType: "uint256"
119
+ },
120
+ {
121
+ name: "virtualQuoteReserve",
122
+ type: "uint256",
123
+ internalType: "uint256"
124
+ },
125
+ {
126
+ name: "k",
127
+ type: "uint256",
128
+ internalType: "uint256"
129
+ }
130
+ ]
131
+ },
132
+ {
133
+ name: "tokenOut",
134
+ type: "uint256",
135
+ internalType: "uint256"
136
+ }
137
+ ],
138
+ outputs: [
139
+ {
140
+ name: "quoteIn",
141
+ type: "uint256",
142
+ internalType: "uint256"
143
+ }
144
+ ],
145
+ stateMutability: "pure"
146
+ },
147
+ {
148
+ type: "function",
149
+ name: "quoteSell",
150
+ inputs: [
151
+ {
152
+ name: "state",
153
+ type: "tuple",
154
+ internalType: "struct ICurve.State",
155
+ components: [
156
+ {
157
+ name: "totalSupply",
158
+ type: "uint256",
159
+ internalType: "uint256"
160
+ },
161
+ {
162
+ name: "circulatingSupply",
163
+ type: "uint256",
164
+ internalType: "uint256"
165
+ },
166
+ {
167
+ name: "quoteReserve",
168
+ type: "uint256",
169
+ internalType: "uint256"
170
+ },
171
+ {
172
+ name: "virtualTokenReserve",
173
+ type: "uint256",
174
+ internalType: "uint256"
175
+ },
176
+ {
177
+ name: "virtualQuoteReserve",
178
+ type: "uint256",
179
+ internalType: "uint256"
180
+ },
181
+ {
182
+ name: "k",
183
+ type: "uint256",
184
+ internalType: "uint256"
185
+ }
186
+ ]
187
+ },
188
+ {
189
+ name: "tokenIn",
190
+ type: "uint256",
191
+ internalType: "uint256"
192
+ }
193
+ ],
194
+ outputs: [
195
+ {
196
+ name: "quoteOut",
197
+ type: "uint256",
198
+ internalType: "uint256"
199
+ }
200
+ ],
201
+ stateMutability: "pure"
202
+ },
203
+ {
204
+ type: "error",
205
+ name: "InvalidAmount",
206
+ inputs: []
207
+ },
208
+ {
209
+ type: "error",
210
+ name: "InvalidState",
211
+ inputs: []
212
+ }
213
+ ];
214
+
215
+ // src/abi/generated/launch-token.ts
216
+ var launchTokenAbi = [
217
+ {
218
+ type: "constructor",
219
+ inputs: [
220
+ {
221
+ name: "name_",
222
+ type: "string",
223
+ internalType: "string"
224
+ },
225
+ {
226
+ name: "symbol_",
227
+ type: "string",
228
+ internalType: "string"
229
+ },
230
+ {
231
+ name: "supply_",
232
+ type: "uint256",
233
+ internalType: "uint256"
234
+ },
235
+ {
236
+ name: "portal_",
237
+ type: "address",
238
+ internalType: "address"
239
+ }
240
+ ],
241
+ stateMutability: "nonpayable"
242
+ },
243
+ {
244
+ type: "function",
245
+ name: "allowance",
246
+ inputs: [
247
+ {
248
+ name: "",
249
+ type: "address",
250
+ internalType: "address"
251
+ },
252
+ {
253
+ name: "",
254
+ type: "address",
255
+ internalType: "address"
256
+ }
257
+ ],
258
+ outputs: [
259
+ {
260
+ name: "",
261
+ type: "uint256",
262
+ internalType: "uint256"
263
+ }
264
+ ],
265
+ stateMutability: "view"
266
+ },
267
+ {
268
+ type: "function",
269
+ name: "approve",
270
+ inputs: [
271
+ {
272
+ name: "spender",
273
+ type: "address",
274
+ internalType: "address"
275
+ },
276
+ {
277
+ name: "amount",
278
+ type: "uint256",
279
+ internalType: "uint256"
280
+ }
281
+ ],
282
+ outputs: [
283
+ {
284
+ name: "",
285
+ type: "bool",
286
+ internalType: "bool"
287
+ }
288
+ ],
289
+ stateMutability: "nonpayable"
290
+ },
291
+ {
292
+ type: "function",
293
+ name: "balanceOf",
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: "decimals",
313
+ inputs: [],
314
+ outputs: [
315
+ {
316
+ name: "",
317
+ type: "uint8",
318
+ internalType: "uint8"
319
+ }
320
+ ],
321
+ stateMutability: "view"
322
+ },
323
+ {
324
+ type: "function",
325
+ name: "name",
326
+ inputs: [],
327
+ outputs: [
328
+ {
329
+ name: "",
330
+ type: "string",
331
+ internalType: "string"
332
+ }
333
+ ],
334
+ stateMutability: "view"
335
+ },
336
+ {
337
+ type: "function",
338
+ name: "officialPool",
339
+ inputs: [],
340
+ outputs: [
341
+ {
342
+ name: "",
343
+ type: "address",
344
+ internalType: "address"
345
+ }
346
+ ],
347
+ stateMutability: "view"
348
+ },
349
+ {
350
+ type: "function",
351
+ name: "officialPoolUnlocked",
352
+ inputs: [],
353
+ outputs: [
354
+ {
355
+ name: "",
356
+ type: "bool",
357
+ internalType: "bool"
358
+ }
359
+ ],
360
+ stateMutability: "view"
361
+ },
362
+ {
363
+ type: "function",
364
+ name: "portal",
365
+ inputs: [],
366
+ outputs: [
367
+ {
368
+ name: "",
369
+ type: "address",
370
+ internalType: "address"
371
+ }
372
+ ],
373
+ stateMutability: "view"
374
+ },
375
+ {
376
+ type: "function",
377
+ name: "setOfficialPool",
378
+ inputs: [
379
+ {
380
+ name: "pool",
381
+ type: "address",
382
+ internalType: "address"
383
+ }
384
+ ],
385
+ outputs: [],
386
+ stateMutability: "nonpayable"
387
+ },
388
+ {
389
+ type: "function",
390
+ name: "symbol",
391
+ inputs: [],
392
+ outputs: [
393
+ {
394
+ name: "",
395
+ type: "string",
396
+ internalType: "string"
397
+ }
398
+ ],
399
+ stateMutability: "view"
400
+ },
401
+ {
402
+ type: "function",
403
+ name: "totalSupply",
404
+ inputs: [],
405
+ outputs: [
406
+ {
407
+ name: "",
408
+ type: "uint256",
409
+ internalType: "uint256"
410
+ }
411
+ ],
412
+ stateMutability: "view"
413
+ },
414
+ {
415
+ type: "function",
416
+ name: "transfer",
417
+ inputs: [
418
+ {
419
+ name: "to",
420
+ type: "address",
421
+ internalType: "address"
422
+ },
423
+ {
424
+ name: "amount",
425
+ type: "uint256",
426
+ internalType: "uint256"
427
+ }
428
+ ],
429
+ outputs: [
430
+ {
431
+ name: "",
432
+ type: "bool",
433
+ internalType: "bool"
434
+ }
435
+ ],
436
+ stateMutability: "nonpayable"
437
+ },
438
+ {
439
+ type: "function",
440
+ name: "transferFrom",
441
+ inputs: [
442
+ {
443
+ name: "from",
444
+ type: "address",
445
+ internalType: "address"
446
+ },
447
+ {
448
+ name: "to",
449
+ type: "address",
450
+ internalType: "address"
451
+ },
452
+ {
453
+ name: "amount",
454
+ type: "uint256",
455
+ internalType: "uint256"
456
+ }
457
+ ],
458
+ outputs: [
459
+ {
460
+ name: "",
461
+ type: "bool",
462
+ internalType: "bool"
463
+ }
464
+ ],
465
+ stateMutability: "nonpayable"
466
+ },
467
+ {
468
+ type: "function",
469
+ name: "unlockOfficialPool",
470
+ inputs: [],
471
+ outputs: [],
472
+ stateMutability: "nonpayable"
473
+ },
474
+ {
475
+ type: "event",
476
+ name: "Approval",
477
+ inputs: [
478
+ {
479
+ name: "owner",
480
+ type: "address",
481
+ indexed: true,
482
+ internalType: "address"
483
+ },
484
+ {
485
+ name: "spender",
486
+ type: "address",
487
+ indexed: true,
488
+ internalType: "address"
489
+ },
490
+ {
491
+ name: "amount",
492
+ type: "uint256",
493
+ indexed: false,
494
+ internalType: "uint256"
495
+ }
496
+ ],
497
+ anonymous: false
498
+ },
499
+ {
500
+ type: "event",
501
+ name: "Transfer",
502
+ inputs: [
503
+ {
504
+ name: "from",
505
+ type: "address",
506
+ indexed: true,
507
+ internalType: "address"
508
+ },
509
+ {
510
+ name: "to",
511
+ type: "address",
512
+ indexed: true,
513
+ internalType: "address"
514
+ },
515
+ {
516
+ name: "amount",
517
+ type: "uint256",
518
+ indexed: false,
519
+ internalType: "uint256"
520
+ }
521
+ ],
522
+ anonymous: false
523
+ },
524
+ {
525
+ type: "error",
526
+ name: "InsufficientAllowance",
527
+ inputs: []
528
+ },
529
+ {
530
+ type: "error",
531
+ name: "InsufficientBalance",
532
+ inputs: []
533
+ },
534
+ {
535
+ type: "error",
536
+ name: "OfficialPoolLocked",
537
+ inputs: []
538
+ },
539
+ {
540
+ type: "error",
541
+ name: "Unauthorized",
542
+ inputs: []
543
+ },
544
+ {
545
+ type: "error",
546
+ name: "ZeroAddress",
547
+ inputs: []
548
+ }
549
+ ];
550
+
551
+ // src/abi/generated/liquidity-locker.ts
552
+ var liquidityLockerAbi = [
553
+ {
554
+ type: "constructor",
555
+ inputs: [
556
+ {
557
+ name: "owner_",
558
+ type: "address",
559
+ internalType: "address"
560
+ },
561
+ {
562
+ name: "positionManager_",
563
+ type: "address",
564
+ internalType: "address"
565
+ },
566
+ {
567
+ name: "platformTreasury_",
568
+ type: "address",
569
+ internalType: "address"
570
+ }
571
+ ],
572
+ stateMutability: "nonpayable"
573
+ },
574
+ {
575
+ type: "function",
576
+ name: "BPS",
577
+ inputs: [],
578
+ outputs: [
579
+ {
580
+ name: "",
581
+ type: "uint16",
582
+ internalType: "uint16"
583
+ }
584
+ ],
585
+ stateMutability: "view"
586
+ },
587
+ {
588
+ type: "function",
589
+ name: "MAX_PLATFORM_FEE_BPS",
590
+ inputs: [],
591
+ outputs: [
592
+ {
593
+ name: "",
594
+ type: "uint16",
595
+ internalType: "uint16"
596
+ }
597
+ ],
598
+ stateMutability: "view"
599
+ },
600
+ {
601
+ type: "function",
602
+ name: "acceptOwnership",
603
+ inputs: [],
604
+ outputs: [],
605
+ stateMutability: "nonpayable"
606
+ },
607
+ {
608
+ type: "function",
609
+ name: "claim",
610
+ inputs: [
611
+ {
612
+ name: "asset",
613
+ type: "address",
614
+ internalType: "address"
615
+ },
616
+ {
617
+ name: "recipient",
618
+ type: "address",
619
+ internalType: "address"
620
+ }
621
+ ],
622
+ outputs: [
623
+ {
624
+ name: "amount",
625
+ type: "uint256",
626
+ internalType: "uint256"
627
+ }
628
+ ],
629
+ stateMutability: "nonpayable"
630
+ },
631
+ {
632
+ type: "function",
633
+ name: "collectFees",
634
+ inputs: [
635
+ {
636
+ name: "tokenId",
637
+ type: "uint256",
638
+ internalType: "uint256"
639
+ }
640
+ ],
641
+ outputs: [
642
+ {
643
+ name: "amount0",
644
+ type: "uint256",
645
+ internalType: "uint256"
646
+ },
647
+ {
648
+ name: "amount1",
649
+ type: "uint256",
650
+ internalType: "uint256"
651
+ }
652
+ ],
653
+ stateMutability: "nonpayable"
654
+ },
655
+ {
656
+ type: "function",
657
+ name: "creditMigrationDust",
658
+ inputs: [
659
+ {
660
+ name: "asset",
661
+ type: "address",
662
+ internalType: "address"
663
+ },
664
+ {
665
+ name: "creator",
666
+ type: "address",
667
+ internalType: "address"
668
+ },
669
+ {
670
+ name: "amount",
671
+ type: "uint256",
672
+ internalType: "uint256"
673
+ },
674
+ {
675
+ name: "platformBps",
676
+ type: "uint16",
677
+ internalType: "uint16"
678
+ }
679
+ ],
680
+ outputs: [],
681
+ stateMutability: "nonpayable"
682
+ },
683
+ {
684
+ type: "function",
685
+ name: "migrators",
686
+ inputs: [
687
+ {
688
+ name: "",
689
+ type: "address",
690
+ internalType: "address"
691
+ }
692
+ ],
693
+ outputs: [
694
+ {
695
+ name: "",
696
+ type: "bool",
697
+ internalType: "bool"
698
+ }
699
+ ],
700
+ stateMutability: "view"
701
+ },
702
+ {
703
+ type: "function",
704
+ name: "onERC721Received",
705
+ inputs: [
706
+ {
707
+ name: "",
708
+ type: "address",
709
+ internalType: "address"
710
+ },
711
+ {
712
+ name: "",
713
+ type: "address",
714
+ internalType: "address"
715
+ },
716
+ {
717
+ name: "",
718
+ type: "uint256",
719
+ internalType: "uint256"
720
+ },
721
+ {
722
+ name: "",
723
+ type: "bytes",
724
+ internalType: "bytes"
725
+ }
726
+ ],
727
+ outputs: [
728
+ {
729
+ name: "",
730
+ type: "bytes4",
731
+ internalType: "bytes4"
732
+ }
733
+ ],
734
+ stateMutability: "view"
735
+ },
736
+ {
737
+ type: "function",
738
+ name: "owner",
739
+ inputs: [],
740
+ outputs: [
741
+ {
742
+ name: "",
743
+ type: "address",
744
+ internalType: "address"
745
+ }
746
+ ],
747
+ stateMutability: "view"
748
+ },
749
+ {
750
+ type: "function",
751
+ name: "pendingOwner",
752
+ inputs: [],
753
+ outputs: [
754
+ {
755
+ name: "",
756
+ type: "address",
757
+ internalType: "address"
758
+ }
759
+ ],
760
+ stateMutability: "view"
761
+ },
762
+ {
763
+ type: "function",
764
+ name: "pendingRewards",
765
+ inputs: [
766
+ {
767
+ name: "",
768
+ type: "address",
769
+ internalType: "address"
770
+ },
771
+ {
772
+ name: "",
773
+ type: "address",
774
+ internalType: "address"
775
+ }
776
+ ],
777
+ outputs: [
778
+ {
779
+ name: "",
780
+ type: "uint256",
781
+ internalType: "uint256"
782
+ }
783
+ ],
784
+ stateMutability: "view"
785
+ },
786
+ {
787
+ type: "function",
788
+ name: "platformTreasury",
789
+ inputs: [],
790
+ outputs: [
791
+ {
792
+ name: "",
793
+ type: "address",
794
+ internalType: "address"
795
+ }
796
+ ],
797
+ stateMutability: "view"
798
+ },
799
+ {
800
+ type: "function",
801
+ name: "positionManager",
802
+ inputs: [],
803
+ outputs: [
804
+ {
805
+ name: "",
806
+ type: "address",
807
+ internalType: "address"
808
+ }
809
+ ],
810
+ stateMutability: "view"
811
+ },
812
+ {
813
+ type: "function",
814
+ name: "positions",
815
+ inputs: [
816
+ {
817
+ name: "",
818
+ type: "uint256",
819
+ internalType: "uint256"
820
+ }
821
+ ],
822
+ outputs: [
823
+ {
824
+ name: "token0",
825
+ type: "address",
826
+ internalType: "address"
827
+ },
828
+ {
829
+ name: "token1",
830
+ type: "address",
831
+ internalType: "address"
832
+ },
833
+ {
834
+ name: "creator",
835
+ type: "address",
836
+ internalType: "address"
837
+ },
838
+ {
839
+ name: "platformFeeBps",
840
+ type: "uint16",
841
+ internalType: "uint16"
842
+ }
843
+ ],
844
+ stateMutability: "view"
845
+ },
846
+ {
847
+ type: "function",
848
+ name: "registerPosition",
849
+ inputs: [
850
+ {
851
+ name: "tokenId",
852
+ type: "uint256",
853
+ internalType: "uint256"
854
+ },
855
+ {
856
+ name: "token0",
857
+ type: "address",
858
+ internalType: "address"
859
+ },
860
+ {
861
+ name: "token1",
862
+ type: "address",
863
+ internalType: "address"
864
+ },
865
+ {
866
+ name: "creator",
867
+ type: "address",
868
+ internalType: "address"
869
+ },
870
+ {
871
+ name: "platformFeeBps",
872
+ type: "uint16",
873
+ internalType: "uint16"
874
+ }
875
+ ],
876
+ outputs: [],
877
+ stateMutability: "nonpayable"
878
+ },
879
+ {
880
+ type: "function",
881
+ name: "setMigrator",
882
+ inputs: [
883
+ {
884
+ name: "migrator",
885
+ type: "address",
886
+ internalType: "address"
887
+ },
888
+ {
889
+ name: "allowed",
890
+ type: "bool",
891
+ internalType: "bool"
892
+ }
893
+ ],
894
+ outputs: [],
895
+ stateMutability: "nonpayable"
896
+ },
897
+ {
898
+ type: "function",
899
+ name: "setPlatformTreasury",
900
+ inputs: [
901
+ {
902
+ name: "treasury",
903
+ type: "address",
904
+ internalType: "address"
905
+ }
906
+ ],
907
+ outputs: [],
908
+ stateMutability: "nonpayable"
909
+ },
910
+ {
911
+ type: "function",
912
+ name: "transferOwnership",
913
+ inputs: [
914
+ {
915
+ name: "newOwner",
916
+ type: "address",
917
+ internalType: "address"
918
+ }
919
+ ],
920
+ outputs: [],
921
+ stateMutability: "nonpayable"
922
+ },
923
+ {
924
+ type: "event",
925
+ name: "FeesCollected",
926
+ inputs: [
927
+ {
928
+ name: "tokenId",
929
+ type: "uint256",
930
+ indexed: true,
931
+ internalType: "uint256"
932
+ },
933
+ {
934
+ name: "amount0",
935
+ type: "uint256",
936
+ indexed: false,
937
+ internalType: "uint256"
938
+ },
939
+ {
940
+ name: "amount1",
941
+ type: "uint256",
942
+ indexed: false,
943
+ internalType: "uint256"
944
+ }
945
+ ],
946
+ anonymous: false
947
+ },
948
+ {
949
+ type: "event",
950
+ name: "MigrationDustCredited",
951
+ inputs: [
952
+ {
953
+ name: "creator",
954
+ type: "address",
955
+ indexed: true,
956
+ internalType: "address"
957
+ },
958
+ {
959
+ name: "asset",
960
+ type: "address",
961
+ indexed: true,
962
+ internalType: "address"
963
+ },
964
+ {
965
+ name: "amount",
966
+ type: "uint256",
967
+ indexed: false,
968
+ internalType: "uint256"
969
+ }
970
+ ],
971
+ anonymous: false
972
+ },
973
+ {
974
+ type: "event",
975
+ name: "MigratorSet",
976
+ inputs: [
977
+ {
978
+ name: "migrator",
979
+ type: "address",
980
+ indexed: true,
981
+ internalType: "address"
982
+ },
983
+ {
984
+ name: "allowed",
985
+ type: "bool",
986
+ indexed: false,
987
+ internalType: "bool"
988
+ }
989
+ ],
990
+ anonymous: false
991
+ },
992
+ {
993
+ type: "event",
994
+ name: "OwnershipTransferStarted",
995
+ inputs: [
996
+ {
997
+ name: "owner",
998
+ type: "address",
999
+ indexed: true,
1000
+ internalType: "address"
1001
+ },
1002
+ {
1003
+ name: "pendingOwner",
1004
+ type: "address",
1005
+ indexed: true,
1006
+ internalType: "address"
1007
+ }
1008
+ ],
1009
+ anonymous: false
1010
+ },
1011
+ {
1012
+ type: "event",
1013
+ name: "OwnershipTransferred",
1014
+ inputs: [
1015
+ {
1016
+ name: "oldOwner",
1017
+ type: "address",
1018
+ indexed: true,
1019
+ internalType: "address"
1020
+ },
1021
+ {
1022
+ name: "newOwner",
1023
+ type: "address",
1024
+ indexed: true,
1025
+ internalType: "address"
1026
+ }
1027
+ ],
1028
+ anonymous: false
1029
+ },
1030
+ {
1031
+ type: "event",
1032
+ name: "PlatformTreasurySet",
1033
+ inputs: [
1034
+ {
1035
+ name: "treasury",
1036
+ type: "address",
1037
+ indexed: true,
1038
+ internalType: "address"
1039
+ }
1040
+ ],
1041
+ anonymous: false
1042
+ },
1043
+ {
1044
+ type: "event",
1045
+ name: "PositionLocked",
1046
+ inputs: [
1047
+ {
1048
+ name: "tokenId",
1049
+ type: "uint256",
1050
+ indexed: true,
1051
+ internalType: "uint256"
1052
+ },
1053
+ {
1054
+ name: "creator",
1055
+ type: "address",
1056
+ indexed: true,
1057
+ internalType: "address"
1058
+ },
1059
+ {
1060
+ name: "platformFeeBps",
1061
+ type: "uint16",
1062
+ indexed: false,
1063
+ internalType: "uint16"
1064
+ }
1065
+ ],
1066
+ anonymous: false
1067
+ },
1068
+ {
1069
+ type: "event",
1070
+ name: "RewardsClaimed",
1071
+ inputs: [
1072
+ {
1073
+ name: "account",
1074
+ type: "address",
1075
+ indexed: true,
1076
+ internalType: "address"
1077
+ },
1078
+ {
1079
+ name: "asset",
1080
+ type: "address",
1081
+ indexed: true,
1082
+ internalType: "address"
1083
+ },
1084
+ {
1085
+ name: "recipient",
1086
+ type: "address",
1087
+ indexed: false,
1088
+ internalType: "address"
1089
+ },
1090
+ {
1091
+ name: "amount",
1092
+ type: "uint256",
1093
+ indexed: false,
1094
+ internalType: "uint256"
1095
+ }
1096
+ ],
1097
+ anonymous: false
1098
+ },
1099
+ {
1100
+ type: "error",
1101
+ name: "InvalidConfig",
1102
+ inputs: []
1103
+ },
1104
+ {
1105
+ type: "error",
1106
+ name: "NothingToClaim",
1107
+ inputs: []
1108
+ },
1109
+ {
1110
+ type: "error",
1111
+ name: "PositionAlreadyRegistered",
1112
+ inputs: []
1113
+ },
1114
+ {
1115
+ type: "error",
1116
+ name: "TransferFailed",
1117
+ inputs: []
1118
+ },
1119
+ {
1120
+ type: "error",
1121
+ name: "Unauthorized",
1122
+ inputs: []
1123
+ }
1124
+ ];
1125
+
1126
+ // src/abi/generated/metadata.ts
1127
+ var launchpadAbiArtifactCommit = "33dd9f1cd51304ebe84375774dcbee3b1181f3bb";
1128
+
1129
+ // src/abi/generated/portal.ts
1130
+ var portalAbi = [
1131
+ {
1132
+ type: "constructor",
1133
+ inputs: [
1134
+ {
1135
+ name: "owner_",
1136
+ type: "address",
1137
+ internalType: "address"
1138
+ },
1139
+ {
1140
+ name: "factory_",
1141
+ type: "address",
1142
+ internalType: "contract TokenFactory"
1143
+ },
1144
+ {
1145
+ name: "quoteToken_",
1146
+ type: "address",
1147
+ internalType: "address"
1148
+ },
1149
+ {
1150
+ name: "lpRecipient_",
1151
+ type: "address",
1152
+ internalType: "address"
1153
+ }
1154
+ ],
1155
+ stateMutability: "nonpayable"
1156
+ },
1157
+ {
1158
+ type: "function",
1159
+ name: "BPS",
1160
+ inputs: [],
1161
+ outputs: [
1162
+ {
1163
+ name: "",
1164
+ type: "uint256",
1165
+ internalType: "uint256"
1166
+ }
1167
+ ],
1168
+ stateMutability: "view"
1169
+ },
1170
+ {
1171
+ type: "function",
1172
+ name: "CURVE_K",
1173
+ inputs: [],
1174
+ outputs: [
1175
+ {
1176
+ name: "",
1177
+ type: "uint256",
1178
+ internalType: "uint256"
1179
+ }
1180
+ ],
1181
+ stateMutability: "view"
1182
+ },
1183
+ {
1184
+ type: "function",
1185
+ name: "DEFAULT_CURVE_ID",
1186
+ inputs: [],
1187
+ outputs: [
1188
+ {
1189
+ name: "",
1190
+ type: "uint16",
1191
+ internalType: "uint16"
1192
+ }
1193
+ ],
1194
+ stateMutability: "view"
1195
+ },
1196
+ {
1197
+ type: "function",
1198
+ name: "DEFAULT_MIGRATOR_ID",
1199
+ inputs: [],
1200
+ outputs: [
1201
+ {
1202
+ name: "",
1203
+ type: "uint16",
1204
+ internalType: "uint16"
1205
+ }
1206
+ ],
1207
+ stateMutability: "view"
1208
+ },
1209
+ {
1210
+ type: "function",
1211
+ name: "DEFAULT_PROTECTION_BLOCKS",
1212
+ inputs: [],
1213
+ outputs: [
1214
+ {
1215
+ name: "",
1216
+ type: "uint8",
1217
+ internalType: "uint8"
1218
+ }
1219
+ ],
1220
+ stateMutability: "view"
1221
+ },
1222
+ {
1223
+ type: "function",
1224
+ name: "DEX_SUPPLY_THRESHOLD",
1225
+ inputs: [],
1226
+ outputs: [
1227
+ {
1228
+ name: "",
1229
+ type: "uint256",
1230
+ internalType: "uint256"
1231
+ }
1232
+ ],
1233
+ stateMutability: "view"
1234
+ },
1235
+ {
1236
+ type: "function",
1237
+ name: "MAX_PROTECTION_BLOCKS",
1238
+ inputs: [],
1239
+ outputs: [
1240
+ {
1241
+ name: "",
1242
+ type: "uint8",
1243
+ internalType: "uint8"
1244
+ }
1245
+ ],
1246
+ stateMutability: "view"
1247
+ },
1248
+ {
1249
+ type: "function",
1250
+ name: "PLATFORM_LP_FEE_BPS",
1251
+ inputs: [],
1252
+ outputs: [
1253
+ {
1254
+ name: "",
1255
+ type: "uint16",
1256
+ internalType: "uint16"
1257
+ }
1258
+ ],
1259
+ stateMutability: "view"
1260
+ },
1261
+ {
1262
+ type: "function",
1263
+ name: "TOTAL_SUPPLY",
1264
+ inputs: [],
1265
+ outputs: [
1266
+ {
1267
+ name: "",
1268
+ type: "uint256",
1269
+ internalType: "uint256"
1270
+ }
1271
+ ],
1272
+ stateMutability: "view"
1273
+ },
1274
+ {
1275
+ type: "function",
1276
+ name: "TRADE_FEE_BPS",
1277
+ inputs: [],
1278
+ outputs: [
1279
+ {
1280
+ name: "",
1281
+ type: "uint16",
1282
+ internalType: "uint16"
1283
+ }
1284
+ ],
1285
+ stateMutability: "view"
1286
+ },
1287
+ {
1288
+ type: "function",
1289
+ name: "VIRTUAL_QUOTE_RESERVE",
1290
+ inputs: [],
1291
+ outputs: [
1292
+ {
1293
+ name: "",
1294
+ type: "uint256",
1295
+ internalType: "uint256"
1296
+ }
1297
+ ],
1298
+ stateMutability: "view"
1299
+ },
1300
+ {
1301
+ type: "function",
1302
+ name: "VIRTUAL_TOKEN_RESERVE",
1303
+ inputs: [],
1304
+ outputs: [
1305
+ {
1306
+ name: "",
1307
+ type: "uint256",
1308
+ internalType: "uint256"
1309
+ }
1310
+ ],
1311
+ stateMutability: "view"
1312
+ },
1313
+ {
1314
+ type: "function",
1315
+ name: "acceptOwnership",
1316
+ inputs: [],
1317
+ outputs: [],
1318
+ stateMutability: "nonpayable"
1319
+ },
1320
+ {
1321
+ type: "function",
1322
+ name: "buy",
1323
+ inputs: [
1324
+ {
1325
+ name: "token",
1326
+ type: "address",
1327
+ internalType: "address"
1328
+ },
1329
+ {
1330
+ name: "quoteIn",
1331
+ type: "uint256",
1332
+ internalType: "uint256"
1333
+ },
1334
+ {
1335
+ name: "minTokenOut",
1336
+ type: "uint256",
1337
+ internalType: "uint256"
1338
+ },
1339
+ {
1340
+ name: "deadline",
1341
+ type: "uint256",
1342
+ internalType: "uint256"
1343
+ }
1344
+ ],
1345
+ outputs: [
1346
+ {
1347
+ name: "tokenOut",
1348
+ type: "uint256",
1349
+ internalType: "uint256"
1350
+ },
1351
+ {
1352
+ name: "quoteSpent",
1353
+ type: "uint256",
1354
+ internalType: "uint256"
1355
+ }
1356
+ ],
1357
+ stateMutability: "nonpayable"
1358
+ },
1359
+ {
1360
+ type: "function",
1361
+ name: "createToken",
1362
+ inputs: [
1363
+ {
1364
+ name: "params",
1365
+ type: "tuple",
1366
+ internalType: "struct Portal.CreateParams",
1367
+ components: [
1368
+ {
1369
+ name: "name",
1370
+ type: "string",
1371
+ internalType: "string"
1372
+ },
1373
+ {
1374
+ name: "symbol",
1375
+ type: "string",
1376
+ internalType: "string"
1377
+ },
1378
+ {
1379
+ name: "metadata",
1380
+ type: "string",
1381
+ internalType: "string"
1382
+ },
1383
+ {
1384
+ name: "userSalt",
1385
+ type: "bytes32",
1386
+ internalType: "bytes32"
1387
+ }
1388
+ ]
1389
+ },
1390
+ {
1391
+ name: "initialQuoteIn",
1392
+ type: "uint256",
1393
+ internalType: "uint256"
1394
+ },
1395
+ {
1396
+ name: "minInitialTokenOut",
1397
+ type: "uint256",
1398
+ internalType: "uint256"
1399
+ },
1400
+ {
1401
+ name: "deadline",
1402
+ type: "uint256",
1403
+ internalType: "uint256"
1404
+ }
1405
+ ],
1406
+ outputs: [
1407
+ {
1408
+ name: "token",
1409
+ type: "address",
1410
+ internalType: "address"
1411
+ }
1412
+ ],
1413
+ stateMutability: "nonpayable"
1414
+ },
1415
+ {
1416
+ type: "function",
1417
+ name: "createTokenV2",
1418
+ inputs: [
1419
+ {
1420
+ name: "params",
1421
+ type: "tuple",
1422
+ internalType: "struct Portal.CreateParams",
1423
+ components: [
1424
+ {
1425
+ name: "name",
1426
+ type: "string",
1427
+ internalType: "string"
1428
+ },
1429
+ {
1430
+ name: "symbol",
1431
+ type: "string",
1432
+ internalType: "string"
1433
+ },
1434
+ {
1435
+ name: "metadata",
1436
+ type: "string",
1437
+ internalType: "string"
1438
+ },
1439
+ {
1440
+ name: "userSalt",
1441
+ type: "bytes32",
1442
+ internalType: "bytes32"
1443
+ }
1444
+ ]
1445
+ },
1446
+ {
1447
+ name: "initialQuoteIn",
1448
+ type: "uint256",
1449
+ internalType: "uint256"
1450
+ },
1451
+ {
1452
+ name: "minInitialTokenOut",
1453
+ type: "uint256",
1454
+ internalType: "uint256"
1455
+ },
1456
+ {
1457
+ name: "deadline",
1458
+ type: "uint256",
1459
+ internalType: "uint256"
1460
+ },
1461
+ {
1462
+ name: "protectionBlocks",
1463
+ type: "uint8",
1464
+ internalType: "uint8"
1465
+ }
1466
+ ],
1467
+ outputs: [
1468
+ {
1469
+ name: "token",
1470
+ type: "address",
1471
+ internalType: "address"
1472
+ }
1473
+ ],
1474
+ stateMutability: "nonpayable"
1475
+ },
1476
+ {
1477
+ type: "function",
1478
+ name: "creatorNonces",
1479
+ inputs: [
1480
+ {
1481
+ name: "",
1482
+ type: "address",
1483
+ internalType: "address"
1484
+ }
1485
+ ],
1486
+ outputs: [
1487
+ {
1488
+ name: "",
1489
+ type: "uint256",
1490
+ internalType: "uint256"
1491
+ }
1492
+ ],
1493
+ stateMutability: "view"
1494
+ },
1495
+ {
1496
+ type: "function",
1497
+ name: "curves",
1498
+ inputs: [
1499
+ {
1500
+ name: "",
1501
+ type: "uint16",
1502
+ internalType: "uint16"
1503
+ }
1504
+ ],
1505
+ outputs: [
1506
+ {
1507
+ name: "",
1508
+ type: "address",
1509
+ internalType: "address"
1510
+ }
1511
+ ],
1512
+ stateMutability: "view"
1513
+ },
1514
+ {
1515
+ type: "function",
1516
+ name: "getTokenState",
1517
+ inputs: [
1518
+ {
1519
+ name: "token",
1520
+ type: "address",
1521
+ internalType: "address"
1522
+ }
1523
+ ],
1524
+ outputs: [
1525
+ {
1526
+ name: "",
1527
+ type: "tuple",
1528
+ internalType: "struct Portal.TokenState",
1529
+ components: [
1530
+ {
1531
+ name: "status",
1532
+ type: "uint8",
1533
+ internalType: "enum Portal.Status"
1534
+ },
1535
+ {
1536
+ name: "tokenVersion",
1537
+ type: "uint16",
1538
+ internalType: "uint16"
1539
+ },
1540
+ {
1541
+ name: "curveId",
1542
+ type: "uint16",
1543
+ internalType: "uint16"
1544
+ },
1545
+ {
1546
+ name: "migratorId",
1547
+ type: "uint16",
1548
+ internalType: "uint16"
1549
+ },
1550
+ {
1551
+ name: "quoteReserve",
1552
+ type: "uint128",
1553
+ internalType: "uint128"
1554
+ },
1555
+ {
1556
+ name: "circulatingSupply",
1557
+ type: "uint128",
1558
+ internalType: "uint128"
1559
+ },
1560
+ {
1561
+ name: "creator",
1562
+ type: "address",
1563
+ internalType: "address"
1564
+ },
1565
+ {
1566
+ name: "dexPool",
1567
+ type: "address",
1568
+ internalType: "address"
1569
+ },
1570
+ {
1571
+ name: "launchBlock",
1572
+ type: "uint64",
1573
+ internalType: "uint64"
1574
+ },
1575
+ {
1576
+ name: "protectionBlocks",
1577
+ type: "uint8",
1578
+ internalType: "uint8"
1579
+ },
1580
+ {
1581
+ name: "pauseMode",
1582
+ type: "uint8",
1583
+ internalType: "uint8"
1584
+ }
1585
+ ]
1586
+ }
1587
+ ],
1588
+ stateMutability: "view"
1589
+ },
1590
+ {
1591
+ type: "function",
1592
+ name: "lpRecipient",
1593
+ inputs: [],
1594
+ outputs: [
1595
+ {
1596
+ name: "",
1597
+ type: "address",
1598
+ internalType: "address"
1599
+ }
1600
+ ],
1601
+ stateMutability: "view"
1602
+ },
1603
+ {
1604
+ type: "function",
1605
+ name: "metadata",
1606
+ inputs: [
1607
+ {
1608
+ name: "",
1609
+ type: "address",
1610
+ internalType: "address"
1611
+ }
1612
+ ],
1613
+ outputs: [
1614
+ {
1615
+ name: "",
1616
+ type: "string",
1617
+ internalType: "string"
1618
+ }
1619
+ ],
1620
+ stateMutability: "view"
1621
+ },
1622
+ {
1623
+ type: "function",
1624
+ name: "migrate",
1625
+ inputs: [
1626
+ {
1627
+ name: "token",
1628
+ type: "address",
1629
+ internalType: "address"
1630
+ }
1631
+ ],
1632
+ outputs: [
1633
+ {
1634
+ name: "pool",
1635
+ type: "address",
1636
+ internalType: "address"
1637
+ }
1638
+ ],
1639
+ stateMutability: "nonpayable"
1640
+ },
1641
+ {
1642
+ type: "function",
1643
+ name: "migrators",
1644
+ inputs: [
1645
+ {
1646
+ name: "",
1647
+ type: "uint16",
1648
+ internalType: "uint16"
1649
+ }
1650
+ ],
1651
+ outputs: [
1652
+ {
1653
+ name: "",
1654
+ type: "address",
1655
+ internalType: "address"
1656
+ }
1657
+ ],
1658
+ stateMutability: "view"
1659
+ },
1660
+ {
1661
+ type: "function",
1662
+ name: "owner",
1663
+ inputs: [],
1664
+ outputs: [
1665
+ {
1666
+ name: "",
1667
+ type: "address",
1668
+ internalType: "address"
1669
+ }
1670
+ ],
1671
+ stateMutability: "view"
1672
+ },
1673
+ {
1674
+ type: "function",
1675
+ name: "paused",
1676
+ inputs: [],
1677
+ outputs: [
1678
+ {
1679
+ name: "",
1680
+ type: "bool",
1681
+ internalType: "bool"
1682
+ }
1683
+ ],
1684
+ stateMutability: "view"
1685
+ },
1686
+ {
1687
+ type: "function",
1688
+ name: "pendingOwner",
1689
+ inputs: [],
1690
+ outputs: [
1691
+ {
1692
+ name: "",
1693
+ type: "address",
1694
+ internalType: "address"
1695
+ }
1696
+ ],
1697
+ stateMutability: "view"
1698
+ },
1699
+ {
1700
+ type: "function",
1701
+ name: "priceWad",
1702
+ inputs: [
1703
+ {
1704
+ name: "token",
1705
+ type: "address",
1706
+ internalType: "address"
1707
+ }
1708
+ ],
1709
+ outputs: [
1710
+ {
1711
+ name: "",
1712
+ type: "uint256",
1713
+ internalType: "uint256"
1714
+ }
1715
+ ],
1716
+ stateMutability: "view"
1717
+ },
1718
+ {
1719
+ type: "function",
1720
+ name: "protocolFees",
1721
+ inputs: [],
1722
+ outputs: [
1723
+ {
1724
+ name: "",
1725
+ type: "uint256",
1726
+ internalType: "uint256"
1727
+ }
1728
+ ],
1729
+ stateMutability: "view"
1730
+ },
1731
+ {
1732
+ type: "function",
1733
+ name: "quoteBuy",
1734
+ inputs: [
1735
+ {
1736
+ name: "token",
1737
+ type: "address",
1738
+ internalType: "address"
1739
+ },
1740
+ {
1741
+ name: "quoteIn",
1742
+ type: "uint256",
1743
+ internalType: "uint256"
1744
+ }
1745
+ ],
1746
+ outputs: [
1747
+ {
1748
+ name: "tokenOut",
1749
+ type: "uint256",
1750
+ internalType: "uint256"
1751
+ },
1752
+ {
1753
+ name: "quoteSpent",
1754
+ type: "uint256",
1755
+ internalType: "uint256"
1756
+ },
1757
+ {
1758
+ name: "fee",
1759
+ type: "uint256",
1760
+ internalType: "uint256"
1761
+ },
1762
+ {
1763
+ name: "reachesThreshold",
1764
+ type: "bool",
1765
+ internalType: "bool"
1766
+ }
1767
+ ],
1768
+ stateMutability: "view"
1769
+ },
1770
+ {
1771
+ type: "function",
1772
+ name: "quoteSell",
1773
+ inputs: [
1774
+ {
1775
+ name: "token",
1776
+ type: "address",
1777
+ internalType: "address"
1778
+ },
1779
+ {
1780
+ name: "tokenIn",
1781
+ type: "uint256",
1782
+ internalType: "uint256"
1783
+ }
1784
+ ],
1785
+ outputs: [
1786
+ {
1787
+ name: "quoteOut",
1788
+ type: "uint256",
1789
+ internalType: "uint256"
1790
+ },
1791
+ {
1792
+ name: "fee",
1793
+ type: "uint256",
1794
+ internalType: "uint256"
1795
+ }
1796
+ ],
1797
+ stateMutability: "view"
1798
+ },
1799
+ {
1800
+ type: "function",
1801
+ name: "quoteToken",
1802
+ inputs: [],
1803
+ outputs: [
1804
+ {
1805
+ name: "",
1806
+ type: "address",
1807
+ internalType: "address"
1808
+ }
1809
+ ],
1810
+ stateMutability: "view"
1811
+ },
1812
+ {
1813
+ type: "function",
1814
+ name: "registerCurve",
1815
+ inputs: [
1816
+ {
1817
+ name: "id",
1818
+ type: "uint16",
1819
+ internalType: "uint16"
1820
+ },
1821
+ {
1822
+ name: "curve",
1823
+ type: "address",
1824
+ internalType: "address"
1825
+ }
1826
+ ],
1827
+ outputs: [],
1828
+ stateMutability: "nonpayable"
1829
+ },
1830
+ {
1831
+ type: "function",
1832
+ name: "registerMigrator",
1833
+ inputs: [
1834
+ {
1835
+ name: "id",
1836
+ type: "uint16",
1837
+ internalType: "uint16"
1838
+ },
1839
+ {
1840
+ name: "migrator",
1841
+ type: "address",
1842
+ internalType: "address"
1843
+ }
1844
+ ],
1845
+ outputs: [],
1846
+ stateMutability: "nonpayable"
1847
+ },
1848
+ {
1849
+ type: "function",
1850
+ name: "sell",
1851
+ inputs: [
1852
+ {
1853
+ name: "token",
1854
+ type: "address",
1855
+ internalType: "address"
1856
+ },
1857
+ {
1858
+ name: "tokenIn",
1859
+ type: "uint256",
1860
+ internalType: "uint256"
1861
+ },
1862
+ {
1863
+ name: "minQuoteOut",
1864
+ type: "uint256",
1865
+ internalType: "uint256"
1866
+ },
1867
+ {
1868
+ name: "deadline",
1869
+ type: "uint256",
1870
+ internalType: "uint256"
1871
+ }
1872
+ ],
1873
+ outputs: [
1874
+ {
1875
+ name: "quoteOut",
1876
+ type: "uint256",
1877
+ internalType: "uint256"
1878
+ }
1879
+ ],
1880
+ stateMutability: "nonpayable"
1881
+ },
1882
+ {
1883
+ type: "function",
1884
+ name: "setPaused",
1885
+ inputs: [
1886
+ {
1887
+ name: "paused_",
1888
+ type: "bool",
1889
+ internalType: "bool"
1890
+ }
1891
+ ],
1892
+ outputs: [],
1893
+ stateMutability: "nonpayable"
1894
+ },
1895
+ {
1896
+ type: "function",
1897
+ name: "setTokenPause",
1898
+ inputs: [
1899
+ {
1900
+ name: "token",
1901
+ type: "address",
1902
+ internalType: "address"
1903
+ },
1904
+ {
1905
+ name: "mode",
1906
+ type: "uint8",
1907
+ internalType: "uint8"
1908
+ }
1909
+ ],
1910
+ outputs: [],
1911
+ stateMutability: "nonpayable"
1912
+ },
1913
+ {
1914
+ type: "function",
1915
+ name: "tokenFactory",
1916
+ inputs: [],
1917
+ outputs: [
1918
+ {
1919
+ name: "",
1920
+ type: "address",
1921
+ internalType: "contract TokenFactory"
1922
+ }
1923
+ ],
1924
+ stateMutability: "view"
1925
+ },
1926
+ {
1927
+ type: "function",
1928
+ name: "transferOwnership",
1929
+ inputs: [
1930
+ {
1931
+ name: "newOwner",
1932
+ type: "address",
1933
+ internalType: "address"
1934
+ }
1935
+ ],
1936
+ outputs: [],
1937
+ stateMutability: "nonpayable"
1938
+ },
1939
+ {
1940
+ type: "function",
1941
+ name: "withdrawProtocolFees",
1942
+ inputs: [
1943
+ {
1944
+ name: "recipient",
1945
+ type: "address",
1946
+ internalType: "address"
1947
+ },
1948
+ {
1949
+ name: "amount",
1950
+ type: "uint256",
1951
+ internalType: "uint256"
1952
+ }
1953
+ ],
1954
+ outputs: [],
1955
+ stateMutability: "nonpayable"
1956
+ },
1957
+ {
1958
+ type: "event",
1959
+ name: "CurveRegistered",
1960
+ inputs: [
1961
+ {
1962
+ name: "id",
1963
+ type: "uint16",
1964
+ indexed: true,
1965
+ internalType: "uint16"
1966
+ },
1967
+ {
1968
+ name: "curve",
1969
+ type: "address",
1970
+ indexed: true,
1971
+ internalType: "address"
1972
+ }
1973
+ ],
1974
+ anonymous: false
1975
+ },
1976
+ {
1977
+ type: "event",
1978
+ name: "MigrationCompleted",
1979
+ inputs: [
1980
+ {
1981
+ name: "token",
1982
+ type: "address",
1983
+ indexed: true,
1984
+ internalType: "address"
1985
+ },
1986
+ {
1987
+ name: "pool",
1988
+ type: "address",
1989
+ indexed: true,
1990
+ internalType: "address"
1991
+ },
1992
+ {
1993
+ name: "liquidity",
1994
+ type: "uint256",
1995
+ indexed: false,
1996
+ internalType: "uint256"
1997
+ },
1998
+ {
1999
+ name: "lpRecipient",
2000
+ type: "address",
2001
+ indexed: false,
2002
+ internalType: "address"
2003
+ }
2004
+ ],
2005
+ anonymous: false
2006
+ },
2007
+ {
2008
+ type: "event",
2009
+ name: "MigrationStarted",
2010
+ inputs: [
2011
+ {
2012
+ name: "token",
2013
+ type: "address",
2014
+ indexed: true,
2015
+ internalType: "address"
2016
+ },
2017
+ {
2018
+ name: "tokenAmount",
2019
+ type: "uint256",
2020
+ indexed: false,
2021
+ internalType: "uint256"
2022
+ },
2023
+ {
2024
+ name: "quoteAmount",
2025
+ type: "uint256",
2026
+ indexed: false,
2027
+ internalType: "uint256"
2028
+ }
2029
+ ],
2030
+ anonymous: false
2031
+ },
2032
+ {
2033
+ type: "event",
2034
+ name: "MigratorRegistered",
2035
+ inputs: [
2036
+ {
2037
+ name: "id",
2038
+ type: "uint16",
2039
+ indexed: true,
2040
+ internalType: "uint16"
2041
+ },
2042
+ {
2043
+ name: "migrator",
2044
+ type: "address",
2045
+ indexed: true,
2046
+ internalType: "address"
2047
+ }
2048
+ ],
2049
+ anonymous: false
2050
+ },
2051
+ {
2052
+ type: "event",
2053
+ name: "OwnershipTransferStarted",
2054
+ inputs: [
2055
+ {
2056
+ name: "currentOwner",
2057
+ type: "address",
2058
+ indexed: true,
2059
+ internalType: "address"
2060
+ },
2061
+ {
2062
+ name: "pendingOwner",
2063
+ type: "address",
2064
+ indexed: true,
2065
+ internalType: "address"
2066
+ }
2067
+ ],
2068
+ anonymous: false
2069
+ },
2070
+ {
2071
+ type: "event",
2072
+ name: "OwnershipTransferred",
2073
+ inputs: [
2074
+ {
2075
+ name: "previousOwner",
2076
+ type: "address",
2077
+ indexed: true,
2078
+ internalType: "address"
2079
+ },
2080
+ {
2081
+ name: "newOwner",
2082
+ type: "address",
2083
+ indexed: true,
2084
+ internalType: "address"
2085
+ }
2086
+ ],
2087
+ anonymous: false
2088
+ },
2089
+ {
2090
+ type: "event",
2091
+ name: "Paused",
2092
+ inputs: [
2093
+ {
2094
+ name: "paused",
2095
+ type: "bool",
2096
+ indexed: false,
2097
+ internalType: "bool"
2098
+ }
2099
+ ],
2100
+ anonymous: false
2101
+ },
2102
+ {
2103
+ type: "event",
2104
+ name: "ProtocolFeesWithdrawn",
2105
+ inputs: [
2106
+ {
2107
+ name: "recipient",
2108
+ type: "address",
2109
+ indexed: true,
2110
+ internalType: "address"
2111
+ },
2112
+ {
2113
+ name: "amount",
2114
+ type: "uint256",
2115
+ indexed: false,
2116
+ internalType: "uint256"
2117
+ }
2118
+ ],
2119
+ anonymous: false
2120
+ },
2121
+ {
2122
+ type: "event",
2123
+ name: "TokenCreated",
2124
+ inputs: [
2125
+ {
2126
+ name: "token",
2127
+ type: "address",
2128
+ indexed: true,
2129
+ internalType: "address"
2130
+ },
2131
+ {
2132
+ name: "creator",
2133
+ type: "address",
2134
+ indexed: true,
2135
+ internalType: "address"
2136
+ },
2137
+ {
2138
+ name: "name",
2139
+ type: "string",
2140
+ indexed: false,
2141
+ internalType: "string"
2142
+ },
2143
+ {
2144
+ name: "symbol",
2145
+ type: "string",
2146
+ indexed: false,
2147
+ internalType: "string"
2148
+ },
2149
+ {
2150
+ name: "metadata",
2151
+ type: "string",
2152
+ indexed: false,
2153
+ internalType: "string"
2154
+ },
2155
+ {
2156
+ name: "curveId",
2157
+ type: "uint16",
2158
+ indexed: false,
2159
+ internalType: "uint16"
2160
+ },
2161
+ {
2162
+ name: "migratorId",
2163
+ type: "uint16",
2164
+ indexed: false,
2165
+ internalType: "uint16"
2166
+ }
2167
+ ],
2168
+ anonymous: false
2169
+ },
2170
+ {
2171
+ type: "event",
2172
+ name: "TokenPauseSet",
2173
+ inputs: [
2174
+ {
2175
+ name: "token",
2176
+ type: "address",
2177
+ indexed: true,
2178
+ internalType: "address"
2179
+ },
2180
+ {
2181
+ name: "mode",
2182
+ type: "uint8",
2183
+ indexed: false,
2184
+ internalType: "uint8"
2185
+ }
2186
+ ],
2187
+ anonymous: false
2188
+ },
2189
+ {
2190
+ type: "event",
2191
+ name: "Trade",
2192
+ inputs: [
2193
+ {
2194
+ name: "token",
2195
+ type: "address",
2196
+ indexed: true,
2197
+ internalType: "address"
2198
+ },
2199
+ {
2200
+ name: "trader",
2201
+ type: "address",
2202
+ indexed: true,
2203
+ internalType: "address"
2204
+ },
2205
+ {
2206
+ name: "isBuy",
2207
+ type: "bool",
2208
+ indexed: true,
2209
+ internalType: "bool"
2210
+ },
2211
+ {
2212
+ name: "tokenAmount",
2213
+ type: "uint256",
2214
+ indexed: false,
2215
+ internalType: "uint256"
2216
+ },
2217
+ {
2218
+ name: "quoteAmount",
2219
+ type: "uint256",
2220
+ indexed: false,
2221
+ internalType: "uint256"
2222
+ },
2223
+ {
2224
+ name: "fee",
2225
+ type: "uint256",
2226
+ indexed: false,
2227
+ internalType: "uint256"
2228
+ }
2229
+ ],
2230
+ anonymous: false
2231
+ },
2232
+ {
2233
+ type: "error",
2234
+ name: "AccountingOverflow",
2235
+ inputs: []
2236
+ },
2237
+ {
2238
+ type: "error",
2239
+ name: "DeadlineExpired",
2240
+ inputs: []
2241
+ },
2242
+ {
2243
+ type: "error",
2244
+ name: "InvalidAmount",
2245
+ inputs: []
2246
+ },
2247
+ {
2248
+ type: "error",
2249
+ name: "InvalidConfig",
2250
+ inputs: []
2251
+ },
2252
+ {
2253
+ type: "error",
2254
+ name: "InvalidStatus",
2255
+ inputs: []
2256
+ },
2257
+ {
2258
+ type: "error",
2259
+ name: "LaunchBlockTradingDisabled",
2260
+ inputs: []
2261
+ },
2262
+ {
2263
+ type: "error",
2264
+ name: "ProtocolPaused",
2265
+ inputs: []
2266
+ },
2267
+ {
2268
+ type: "error",
2269
+ name: "Reentrancy",
2270
+ inputs: []
2271
+ },
2272
+ {
2273
+ type: "error",
2274
+ name: "SlippageExceeded",
2275
+ inputs: []
2276
+ },
2277
+ {
2278
+ type: "error",
2279
+ name: "TransferFailed",
2280
+ inputs: []
2281
+ },
2282
+ {
2283
+ type: "error",
2284
+ name: "Unauthorized",
2285
+ inputs: []
2286
+ },
2287
+ {
2288
+ type: "error",
2289
+ name: "UnknownModule",
2290
+ inputs: []
2291
+ }
2292
+ ];
2293
+
2294
+ // src/abi/generated/token-factory.ts
2295
+ var tokenFactoryAbi = [
2296
+ {
2297
+ type: "constructor",
2298
+ inputs: [
2299
+ {
2300
+ name: "owner_",
2301
+ type: "address",
2302
+ internalType: "address"
2303
+ }
2304
+ ],
2305
+ stateMutability: "nonpayable"
2306
+ },
2307
+ {
2308
+ type: "function",
2309
+ name: "create",
2310
+ inputs: [
2311
+ {
2312
+ name: "name",
2313
+ type: "string",
2314
+ internalType: "string"
2315
+ },
2316
+ {
2317
+ name: "symbol",
2318
+ type: "string",
2319
+ internalType: "string"
2320
+ },
2321
+ {
2322
+ name: "supply",
2323
+ type: "uint256",
2324
+ internalType: "uint256"
2325
+ },
2326
+ {
2327
+ name: "salt",
2328
+ type: "bytes32",
2329
+ internalType: "bytes32"
2330
+ }
2331
+ ],
2332
+ outputs: [
2333
+ {
2334
+ name: "token",
2335
+ type: "address",
2336
+ internalType: "address"
2337
+ }
2338
+ ],
2339
+ stateMutability: "nonpayable"
2340
+ },
2341
+ {
2342
+ type: "function",
2343
+ name: "owner",
2344
+ inputs: [],
2345
+ outputs: [
2346
+ {
2347
+ name: "",
2348
+ type: "address",
2349
+ internalType: "address"
2350
+ }
2351
+ ],
2352
+ stateMutability: "view"
2353
+ },
2354
+ {
2355
+ type: "function",
2356
+ name: "portal",
2357
+ inputs: [],
2358
+ outputs: [
2359
+ {
2360
+ name: "",
2361
+ type: "address",
2362
+ internalType: "address"
2363
+ }
2364
+ ],
2365
+ stateMutability: "view"
2366
+ },
2367
+ {
2368
+ type: "function",
2369
+ name: "predictAddress",
2370
+ inputs: [
2371
+ {
2372
+ name: "name",
2373
+ type: "string",
2374
+ internalType: "string"
2375
+ },
2376
+ {
2377
+ name: "symbol",
2378
+ type: "string",
2379
+ internalType: "string"
2380
+ },
2381
+ {
2382
+ name: "supply",
2383
+ type: "uint256",
2384
+ internalType: "uint256"
2385
+ },
2386
+ {
2387
+ name: "salt",
2388
+ type: "bytes32",
2389
+ internalType: "bytes32"
2390
+ }
2391
+ ],
2392
+ outputs: [
2393
+ {
2394
+ name: "predicted",
2395
+ type: "address",
2396
+ internalType: "address"
2397
+ }
2398
+ ],
2399
+ stateMutability: "view"
2400
+ },
2401
+ {
2402
+ type: "function",
2403
+ name: "setPortal",
2404
+ inputs: [
2405
+ {
2406
+ name: "portal_",
2407
+ type: "address",
2408
+ internalType: "address"
2409
+ }
2410
+ ],
2411
+ outputs: [],
2412
+ stateMutability: "nonpayable"
2413
+ },
2414
+ {
2415
+ type: "error",
2416
+ name: "PortalAlreadySet",
2417
+ inputs: []
2418
+ },
2419
+ {
2420
+ type: "error",
2421
+ name: "Unauthorized",
2422
+ inputs: []
2423
+ },
2424
+ {
2425
+ type: "error",
2426
+ name: "ZeroAddress",
2427
+ inputs: []
2428
+ }
2429
+ ];
2430
+
2431
+ // src/abi/generated/v3-migrator.ts
2432
+ var v3MigratorAbi = [
2433
+ {
2434
+ type: "constructor",
2435
+ inputs: [
2436
+ {
2437
+ name: "portal_",
2438
+ type: "address",
2439
+ internalType: "address"
2440
+ },
2441
+ {
2442
+ name: "factory_",
2443
+ type: "address",
2444
+ internalType: "address"
2445
+ },
2446
+ {
2447
+ name: "positionManager_",
2448
+ type: "address",
2449
+ internalType: "address"
2450
+ },
2451
+ {
2452
+ name: "fee_",
2453
+ type: "uint24",
2454
+ internalType: "uint24"
2455
+ },
2456
+ {
2457
+ name: "locker_",
2458
+ type: "address",
2459
+ internalType: "address"
2460
+ }
2461
+ ],
2462
+ stateMutability: "nonpayable"
2463
+ },
2464
+ {
2465
+ type: "function",
2466
+ name: "SQRT_RATIO_TOKEN0_LOWER_X96",
2467
+ inputs: [],
2468
+ outputs: [
2469
+ {
2470
+ name: "",
2471
+ type: "uint160",
2472
+ internalType: "uint160"
2473
+ }
2474
+ ],
2475
+ stateMutability: "view"
2476
+ },
2477
+ {
2478
+ type: "function",
2479
+ name: "SQRT_RATIO_TOKEN0_UPPER_X96",
2480
+ inputs: [],
2481
+ outputs: [
2482
+ {
2483
+ name: "",
2484
+ type: "uint160",
2485
+ internalType: "uint160"
2486
+ }
2487
+ ],
2488
+ stateMutability: "view"
2489
+ },
2490
+ {
2491
+ type: "function",
2492
+ name: "TOKEN0_TICK_LOWER",
2493
+ inputs: [],
2494
+ outputs: [
2495
+ {
2496
+ name: "",
2497
+ type: "int24",
2498
+ internalType: "int24"
2499
+ }
2500
+ ],
2501
+ stateMutability: "view"
2502
+ },
2503
+ {
2504
+ type: "function",
2505
+ name: "TOKEN0_TICK_UPPER",
2506
+ inputs: [],
2507
+ outputs: [
2508
+ {
2509
+ name: "",
2510
+ type: "int24",
2511
+ internalType: "int24"
2512
+ }
2513
+ ],
2514
+ stateMutability: "view"
2515
+ },
2516
+ {
2517
+ type: "function",
2518
+ name: "encodeSqrtRatioX96",
2519
+ inputs: [
2520
+ {
2521
+ name: "amount1",
2522
+ type: "uint256",
2523
+ internalType: "uint256"
2524
+ },
2525
+ {
2526
+ name: "amount0",
2527
+ type: "uint256",
2528
+ internalType: "uint256"
2529
+ }
2530
+ ],
2531
+ outputs: [
2532
+ {
2533
+ name: "",
2534
+ type: "uint160",
2535
+ internalType: "uint160"
2536
+ }
2537
+ ],
2538
+ stateMutability: "pure"
2539
+ },
2540
+ {
2541
+ type: "function",
2542
+ name: "factory",
2543
+ inputs: [],
2544
+ outputs: [
2545
+ {
2546
+ name: "",
2547
+ type: "address",
2548
+ internalType: "address"
2549
+ }
2550
+ ],
2551
+ stateMutability: "view"
2552
+ },
2553
+ {
2554
+ type: "function",
2555
+ name: "fee",
2556
+ inputs: [],
2557
+ outputs: [
2558
+ {
2559
+ name: "",
2560
+ type: "uint24",
2561
+ internalType: "uint24"
2562
+ }
2563
+ ],
2564
+ stateMutability: "view"
2565
+ },
2566
+ {
2567
+ type: "function",
2568
+ name: "locker",
2569
+ inputs: [],
2570
+ outputs: [
2571
+ {
2572
+ name: "",
2573
+ type: "address",
2574
+ internalType: "address"
2575
+ }
2576
+ ],
2577
+ stateMutability: "view"
2578
+ },
2579
+ {
2580
+ type: "function",
2581
+ name: "migrate",
2582
+ inputs: [
2583
+ {
2584
+ name: "token",
2585
+ type: "address",
2586
+ internalType: "address"
2587
+ },
2588
+ {
2589
+ name: "quoteToken",
2590
+ type: "address",
2591
+ internalType: "address"
2592
+ },
2593
+ {
2594
+ name: "tokenAmount",
2595
+ type: "uint256",
2596
+ internalType: "uint256"
2597
+ },
2598
+ {
2599
+ name: "quoteAmount",
2600
+ type: "uint256",
2601
+ internalType: "uint256"
2602
+ },
2603
+ {
2604
+ name: "lpRecipient",
2605
+ type: "address",
2606
+ internalType: "address"
2607
+ },
2608
+ {
2609
+ name: "data",
2610
+ type: "bytes",
2611
+ internalType: "bytes"
2612
+ }
2613
+ ],
2614
+ outputs: [
2615
+ {
2616
+ name: "pool",
2617
+ type: "address",
2618
+ internalType: "address"
2619
+ },
2620
+ {
2621
+ name: "liquidityOut",
2622
+ type: "uint256",
2623
+ internalType: "uint256"
2624
+ }
2625
+ ],
2626
+ stateMutability: "nonpayable"
2627
+ },
2628
+ {
2629
+ type: "function",
2630
+ name: "portal",
2631
+ inputs: [],
2632
+ outputs: [
2633
+ {
2634
+ name: "",
2635
+ type: "address",
2636
+ internalType: "address"
2637
+ }
2638
+ ],
2639
+ stateMutability: "view"
2640
+ },
2641
+ {
2642
+ type: "function",
2643
+ name: "positionManager",
2644
+ inputs: [],
2645
+ outputs: [
2646
+ {
2647
+ name: "",
2648
+ type: "address",
2649
+ internalType: "address"
2650
+ }
2651
+ ],
2652
+ stateMutability: "view"
2653
+ },
2654
+ {
2655
+ type: "function",
2656
+ name: "preparePool",
2657
+ inputs: [
2658
+ {
2659
+ name: "token",
2660
+ type: "address",
2661
+ internalType: "address"
2662
+ },
2663
+ {
2664
+ name: "quoteToken",
2665
+ type: "address",
2666
+ internalType: "address"
2667
+ },
2668
+ {
2669
+ name: "graduationPriceWad",
2670
+ type: "uint256",
2671
+ internalType: "uint256"
2672
+ }
2673
+ ],
2674
+ outputs: [
2675
+ {
2676
+ name: "pool",
2677
+ type: "address",
2678
+ internalType: "address"
2679
+ }
2680
+ ],
2681
+ stateMutability: "nonpayable"
2682
+ },
2683
+ {
2684
+ type: "event",
2685
+ name: "MigrationDust",
2686
+ inputs: [
2687
+ {
2688
+ name: "asset",
2689
+ type: "address",
2690
+ indexed: true,
2691
+ internalType: "address"
2692
+ },
2693
+ {
2694
+ name: "recipient",
2695
+ type: "address",
2696
+ indexed: true,
2697
+ internalType: "address"
2698
+ },
2699
+ {
2700
+ name: "amount",
2701
+ type: "uint256",
2702
+ indexed: false,
2703
+ internalType: "uint256"
2704
+ }
2705
+ ],
2706
+ anonymous: false
2707
+ },
2708
+ {
2709
+ type: "event",
2710
+ name: "PositionMinted",
2711
+ inputs: [
2712
+ {
2713
+ name: "pool",
2714
+ type: "address",
2715
+ indexed: true,
2716
+ internalType: "address"
2717
+ },
2718
+ {
2719
+ name: "tokenId",
2720
+ type: "uint256",
2721
+ indexed: true,
2722
+ internalType: "uint256"
2723
+ },
2724
+ {
2725
+ name: "liquidity",
2726
+ type: "uint128",
2727
+ indexed: false,
2728
+ internalType: "uint128"
2729
+ },
2730
+ {
2731
+ name: "amount0",
2732
+ type: "uint256",
2733
+ indexed: false,
2734
+ internalType: "uint256"
2735
+ },
2736
+ {
2737
+ name: "amount1",
2738
+ type: "uint256",
2739
+ indexed: false,
2740
+ internalType: "uint256"
2741
+ }
2742
+ ],
2743
+ anonymous: false
2744
+ },
2745
+ {
2746
+ type: "error",
2747
+ name: "InvalidAmount",
2748
+ inputs: []
2749
+ },
2750
+ {
2751
+ type: "error",
2752
+ name: "InvalidConfig",
2753
+ inputs: []
2754
+ },
2755
+ {
2756
+ type: "error",
2757
+ name: "PoolAlreadyInitialized",
2758
+ inputs: []
2759
+ },
2760
+ {
2761
+ type: "error",
2762
+ name: "PoolNotPrepared",
2763
+ inputs: []
2764
+ },
2765
+ {
2766
+ type: "error",
2767
+ name: "TransferFailed",
2768
+ inputs: []
2769
+ },
2770
+ {
2771
+ type: "error",
2772
+ name: "Unauthorized",
2773
+ inputs: []
2774
+ }
2775
+ ];
2776
+ // Annotate the CommonJS export names for ESM import in node:
2777
+ 0 && (module.exports = {
2778
+ constantProductCurveAbi,
2779
+ launchTokenAbi,
2780
+ launchpadAbiArtifactCommit,
2781
+ liquidityLockerAbi,
2782
+ portalAbi,
2783
+ tokenFactoryAbi,
2784
+ v3MigratorAbi
2785
+ });
2786
+ //# sourceMappingURL=index.cjs.map