basememe-v4-contracts-configs 0.0.4 → 0.0.6

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.
package/index.js CHANGED
@@ -111,6 +111,43 @@ var basememeFactoryImplABI = [
111
111
  name: "buyExactIn",
112
112
  outputs: []
113
113
  },
114
+ {
115
+ stateMutability: "payable",
116
+ type: "function",
117
+ inputs: [
118
+ { name: "_token", internalType: "address", type: "address" },
119
+ { name: "_amountOutMin", internalType: "uint256", type: "uint256" },
120
+ { name: "_tradeReferrer", internalType: "address", type: "address" },
121
+ { name: "_to", internalType: "address", type: "address" }
122
+ ],
123
+ name: "buyExactInTo",
124
+ outputs: []
125
+ },
126
+ {
127
+ stateMutability: "payable",
128
+ type: "function",
129
+ inputs: [
130
+ { name: "_token", internalType: "address", type: "address" },
131
+ { name: "_collateralAmountIn", internalType: "uint256", type: "uint256" },
132
+ { name: "_amountOutMin", internalType: "uint256", type: "uint256" },
133
+ { name: "_tradeReferrer", internalType: "address", type: "address" }
134
+ ],
135
+ name: "buyExactInWithCollateral",
136
+ outputs: []
137
+ },
138
+ {
139
+ stateMutability: "payable",
140
+ type: "function",
141
+ inputs: [
142
+ { name: "_token", internalType: "address", type: "address" },
143
+ { name: "_collateralAmountIn", internalType: "uint256", type: "uint256" },
144
+ { name: "_amountOutMin", internalType: "uint256", type: "uint256" },
145
+ { name: "_tradeReferrer", internalType: "address", type: "address" },
146
+ { name: "_to", internalType: "address", type: "address" }
147
+ ],
148
+ name: "buyExactInWithCollateralTo",
149
+ outputs: []
150
+ },
114
151
  {
115
152
  stateMutability: "payable",
116
153
  type: "function",
@@ -127,6 +164,23 @@ var basememeFactoryImplABI = [
127
164
  name: "buyExactOut",
128
165
  outputs: []
129
166
  },
167
+ {
168
+ stateMutability: "payable",
169
+ type: "function",
170
+ inputs: [
171
+ { name: "_token", internalType: "address", type: "address" },
172
+ { name: "_tokenAmount", internalType: "uint256", type: "uint256" },
173
+ {
174
+ name: "_maxCollateralAmount",
175
+ internalType: "uint256",
176
+ type: "uint256"
177
+ },
178
+ { name: "_tradeReferrer", internalType: "address", type: "address" },
179
+ { name: "_to", internalType: "address", type: "address" }
180
+ ],
181
+ name: "buyExactOutTo",
182
+ outputs: []
183
+ },
130
184
  {
131
185
  stateMutability: "view",
132
186
  type: "function",
@@ -141,6 +195,67 @@ var basememeFactoryImplABI = [
141
195
  name: "chainV4LiquidityConfig",
142
196
  outputs: [{ name: "", internalType: "bytes", type: "bytes" }]
143
197
  },
198
+ {
199
+ stateMutability: "view",
200
+ type: "function",
201
+ inputs: [{ name: "", internalType: "address", type: "address" }],
202
+ name: "collateralConfigs",
203
+ outputs: [
204
+ {
205
+ name: "curveParams",
206
+ internalType: "struct IBondingCurve.CurveParams",
207
+ type: "tuple",
208
+ components: [
209
+ {
210
+ name: "initialTokenSupply",
211
+ internalType: "uint256",
212
+ type: "uint256"
213
+ },
214
+ {
215
+ name: "virtualCollateralReservesInitial",
216
+ internalType: "uint256",
217
+ type: "uint256"
218
+ },
219
+ {
220
+ name: "virtualTokenReservesInitial",
221
+ internalType: "uint256",
222
+ type: "uint256"
223
+ },
224
+ { name: "feeBPS", internalType: "uint256", type: "uint256" },
225
+ { name: "mcLowerLimit", internalType: "uint256", type: "uint256" },
226
+ { name: "mcUpperLimit", internalType: "uint256", type: "uint256" },
227
+ {
228
+ name: "tokensMigrationThreshold",
229
+ internalType: "uint256",
230
+ type: "uint256"
231
+ },
232
+ {
233
+ name: "fixedMigrationFee",
234
+ internalType: "uint256",
235
+ type: "uint256"
236
+ },
237
+ { name: "poolCreationFee", internalType: "uint256", type: "uint256" },
238
+ { name: "firstBuyFee", internalType: "uint256", type: "uint256" },
239
+ {
240
+ name: "targetCollectionAmount",
241
+ internalType: "uint256",
242
+ type: "uint256"
243
+ },
244
+ { name: "collateralToken", internalType: "address", type: "address" },
245
+ { name: "v4LpFee", internalType: "uint24", type: "uint24" }
246
+ ]
247
+ },
248
+ { name: "v4LiquidityConfig", internalType: "bytes", type: "bytes" },
249
+ { name: "v4ConfigVersion", internalType: "uint8", type: "uint8" }
250
+ ]
251
+ },
252
+ {
253
+ stateMutability: "view",
254
+ type: "function",
255
+ inputs: [{ name: "", internalType: "address", type: "address" }],
256
+ name: "collateralEnabled",
257
+ outputs: [{ name: "", internalType: "bool", type: "bool" }]
258
+ },
144
259
  {
145
260
  stateMutability: "pure",
146
261
  type: "function",
@@ -164,6 +279,22 @@ var basememeFactoryImplABI = [
164
279
  name: "createBasememeToken",
165
280
  outputs: [{ name: "", internalType: "address", type: "address" }]
166
281
  },
282
+ {
283
+ stateMutability: "nonpayable",
284
+ type: "function",
285
+ inputs: [
286
+ { name: "_name", internalType: "string", type: "string" },
287
+ { name: "_symbol", internalType: "string", type: "string" },
288
+ { name: "_tokenURI", internalType: "string", type: "string" },
289
+ { name: "_nonce", internalType: "uint256", type: "uint256" },
290
+ { name: "_signature", internalType: "bytes", type: "bytes" },
291
+ { name: "_platformReferrer", internalType: "address", type: "address" },
292
+ { name: "_payoutRecipient", internalType: "address", type: "address" },
293
+ { name: "_owner", internalType: "address", type: "address" }
294
+ ],
295
+ name: "createBasememeToken",
296
+ outputs: [{ name: "", internalType: "address", type: "address" }]
297
+ },
167
298
  {
168
299
  stateMutability: "payable",
169
300
  type: "function",
@@ -181,6 +312,59 @@ var basememeFactoryImplABI = [
181
312
  name: "createBasememeTokenAndBuy",
182
313
  outputs: [{ name: "", internalType: "address", type: "address" }]
183
314
  },
315
+ {
316
+ stateMutability: "payable",
317
+ type: "function",
318
+ inputs: [
319
+ { name: "_name", internalType: "string", type: "string" },
320
+ { name: "_symbol", internalType: "string", type: "string" },
321
+ { name: "_tokenURI", internalType: "string", type: "string" },
322
+ { name: "_nonce", internalType: "uint256", type: "uint256" },
323
+ { name: "_tokenAmountMin", internalType: "uint256", type: "uint256" },
324
+ { name: "_signature", internalType: "bytes", type: "bytes" },
325
+ { name: "_platformReferrer", internalType: "address", type: "address" },
326
+ { name: "_payoutRecipient", internalType: "address", type: "address" },
327
+ { name: "_owner", internalType: "address", type: "address" }
328
+ ],
329
+ name: "createBasememeTokenAndBuy",
330
+ outputs: [{ name: "", internalType: "address", type: "address" }]
331
+ },
332
+ {
333
+ stateMutability: "payable",
334
+ type: "function",
335
+ inputs: [
336
+ { name: "_name", internalType: "string", type: "string" },
337
+ { name: "_symbol", internalType: "string", type: "string" },
338
+ { name: "_tokenURI", internalType: "string", type: "string" },
339
+ { name: "_nonce", internalType: "uint256", type: "uint256" },
340
+ { name: "_collateralAmountIn", internalType: "uint256", type: "uint256" },
341
+ { name: "_tokenAmountMin", internalType: "uint256", type: "uint256" },
342
+ { name: "_signature", internalType: "bytes", type: "bytes" },
343
+ { name: "_platformReferrer", internalType: "address", type: "address" },
344
+ { name: "_payoutRecipient", internalType: "address", type: "address" },
345
+ { name: "_tokenSalt", internalType: "bytes32", type: "bytes32" },
346
+ { name: "_collateralToken", internalType: "address", type: "address" }
347
+ ],
348
+ name: "createBasememeTokenAndBuyWithCollateral",
349
+ outputs: [{ name: "", internalType: "address", type: "address" }]
350
+ },
351
+ {
352
+ stateMutability: "nonpayable",
353
+ type: "function",
354
+ inputs: [
355
+ { name: "_name", internalType: "string", type: "string" },
356
+ { name: "_symbol", internalType: "string", type: "string" },
357
+ { name: "_tokenURI", internalType: "string", type: "string" },
358
+ { name: "_nonce", internalType: "uint256", type: "uint256" },
359
+ { name: "_signature", internalType: "bytes", type: "bytes" },
360
+ { name: "_platformReferrer", internalType: "address", type: "address" },
361
+ { name: "_payoutRecipient", internalType: "address", type: "address" },
362
+ { name: "_tokenSalt", internalType: "bytes32", type: "bytes32" },
363
+ { name: "_collateralToken", internalType: "address", type: "address" }
364
+ ],
365
+ name: "createBasememeTokenWithCollateral",
366
+ outputs: [{ name: "", internalType: "address", type: "address" }]
367
+ },
184
368
  {
185
369
  stateMutability: "view",
186
370
  type: "function",
@@ -201,7 +385,9 @@ var basememeFactoryImplABI = [
201
385
  name: "_bondingCurveImplementation",
202
386
  internalType: "address",
203
387
  type: "address"
204
- }
388
+ },
389
+ { name: "_chainV4LiquidityConfig", internalType: "bytes", type: "bytes" },
390
+ { name: "_chainV4ConfigVersion", internalType: "uint8", type: "uint8" }
205
391
  ],
206
392
  name: "initialize",
207
393
  outputs: []
@@ -213,6 +399,13 @@ var basememeFactoryImplABI = [
213
399
  name: "isSignatureEnabled",
214
400
  outputs: [{ name: "", internalType: "bool", type: "bool" }]
215
401
  },
402
+ {
403
+ stateMutability: "view",
404
+ type: "function",
405
+ inputs: [{ name: "", internalType: "address", type: "address" }],
406
+ name: "isTrustedCaller",
407
+ outputs: [{ name: "", internalType: "bool", type: "bool" }]
408
+ },
216
409
  {
217
410
  stateMutability: "nonpayable",
218
411
  type: "function",
@@ -271,6 +464,23 @@ var basememeFactoryImplABI = [
271
464
  name: "sellExactIn",
272
465
  outputs: []
273
466
  },
467
+ {
468
+ stateMutability: "nonpayable",
469
+ type: "function",
470
+ inputs: [
471
+ { name: "_token", internalType: "address", type: "address" },
472
+ { name: "_from", internalType: "address", type: "address" },
473
+ { name: "_tokenAmount", internalType: "uint256", type: "uint256" },
474
+ {
475
+ name: "_amountCollateralMin",
476
+ internalType: "uint256",
477
+ type: "uint256"
478
+ },
479
+ { name: "_tradeReferrer", internalType: "address", type: "address" }
480
+ ],
481
+ name: "sellExactInFrom",
482
+ outputs: []
483
+ },
274
484
  {
275
485
  stateMutability: "nonpayable",
276
486
  type: "function",
@@ -283,6 +493,19 @@ var basememeFactoryImplABI = [
283
493
  name: "sellExactOut",
284
494
  outputs: []
285
495
  },
496
+ {
497
+ stateMutability: "nonpayable",
498
+ type: "function",
499
+ inputs: [
500
+ { name: "_token", internalType: "address", type: "address" },
501
+ { name: "_from", internalType: "address", type: "address" },
502
+ { name: "_tokenAmountMax", internalType: "uint256", type: "uint256" },
503
+ { name: "_amountCollateral", internalType: "uint256", type: "uint256" },
504
+ { name: "_tradeReferrer", internalType: "address", type: "address" }
505
+ ],
506
+ name: "sellExactOutFrom",
507
+ outputs: []
508
+ },
286
509
  {
287
510
  stateMutability: "nonpayable",
288
511
  type: "function",
@@ -296,6 +519,71 @@ var basememeFactoryImplABI = [
296
519
  name: "setBondingCurveImplementation",
297
520
  outputs: []
298
521
  },
522
+ {
523
+ stateMutability: "nonpayable",
524
+ type: "function",
525
+ inputs: [
526
+ { name: "_collateralToken", internalType: "address", type: "address" },
527
+ {
528
+ name: "params",
529
+ internalType: "struct IBondingCurve.CurveParams",
530
+ type: "tuple",
531
+ components: [
532
+ {
533
+ name: "initialTokenSupply",
534
+ internalType: "uint256",
535
+ type: "uint256"
536
+ },
537
+ {
538
+ name: "virtualCollateralReservesInitial",
539
+ internalType: "uint256",
540
+ type: "uint256"
541
+ },
542
+ {
543
+ name: "virtualTokenReservesInitial",
544
+ internalType: "uint256",
545
+ type: "uint256"
546
+ },
547
+ { name: "feeBPS", internalType: "uint256", type: "uint256" },
548
+ { name: "mcLowerLimit", internalType: "uint256", type: "uint256" },
549
+ { name: "mcUpperLimit", internalType: "uint256", type: "uint256" },
550
+ {
551
+ name: "tokensMigrationThreshold",
552
+ internalType: "uint256",
553
+ type: "uint256"
554
+ },
555
+ {
556
+ name: "fixedMigrationFee",
557
+ internalType: "uint256",
558
+ type: "uint256"
559
+ },
560
+ { name: "poolCreationFee", internalType: "uint256", type: "uint256" },
561
+ { name: "firstBuyFee", internalType: "uint256", type: "uint256" },
562
+ {
563
+ name: "targetCollectionAmount",
564
+ internalType: "uint256",
565
+ type: "uint256"
566
+ },
567
+ { name: "collateralToken", internalType: "address", type: "address" },
568
+ { name: "v4LpFee", internalType: "uint24", type: "uint24" }
569
+ ]
570
+ },
571
+ { name: "v4LiquidityConfig", internalType: "bytes", type: "bytes" },
572
+ { name: "v4ConfigVersion", internalType: "uint8", type: "uint8" }
573
+ ],
574
+ name: "setCollateralConfig",
575
+ outputs: []
576
+ },
577
+ {
578
+ stateMutability: "nonpayable",
579
+ type: "function",
580
+ inputs: [
581
+ { name: "_collateralToken", internalType: "address", type: "address" },
582
+ { name: "enabled", internalType: "bool", type: "bool" }
583
+ ],
584
+ name: "setCollateralEnabled",
585
+ outputs: []
586
+ },
299
587
  {
300
588
  stateMutability: "nonpayable",
301
589
  type: "function",
@@ -312,6 +600,16 @@ var basememeFactoryImplABI = [
312
600
  name: "setSigner",
313
601
  outputs: []
314
602
  },
603
+ {
604
+ stateMutability: "nonpayable",
605
+ type: "function",
606
+ inputs: [
607
+ { name: "caller", internalType: "address", type: "address" },
608
+ { name: "allowed", internalType: "bool", type: "bool" }
609
+ ],
610
+ name: "setTrustedCaller",
611
+ outputs: []
612
+ },
315
613
  {
316
614
  stateMutability: "nonpayable",
317
615
  type: "function",
@@ -336,6 +634,13 @@ var basememeFactoryImplABI = [
336
634
  name: "tokenToBondingCurve",
337
635
  outputs: [{ name: "", internalType: "address", type: "address" }]
338
636
  },
637
+ {
638
+ stateMutability: "view",
639
+ type: "function",
640
+ inputs: [{ name: "", internalType: "address", type: "address" }],
641
+ name: "tokenToCollateralToken",
642
+ outputs: [{ name: "", internalType: "address", type: "address" }]
643
+ },
339
644
  {
340
645
  stateMutability: "nonpayable",
341
646
  type: "function",
@@ -426,6 +731,45 @@ var basememeFactoryImplABI = [
426
731
  ],
427
732
  name: "Buy"
428
733
  },
734
+ {
735
+ type: "event",
736
+ anonymous: false,
737
+ inputs: [
738
+ {
739
+ name: "caller",
740
+ internalType: "address",
741
+ type: "address",
742
+ indexed: true
743
+ },
744
+ {
745
+ name: "recipient",
746
+ internalType: "address",
747
+ type: "address",
748
+ indexed: true
749
+ },
750
+ {
751
+ name: "token",
752
+ internalType: "address",
753
+ type: "address",
754
+ indexed: true
755
+ }
756
+ ],
757
+ name: "BuyRecipient"
758
+ },
759
+ {
760
+ type: "event",
761
+ anonymous: false,
762
+ inputs: [
763
+ {
764
+ name: "collateralToken",
765
+ internalType: "address",
766
+ type: "address",
767
+ indexed: true
768
+ },
769
+ { name: "enabled", internalType: "bool", type: "bool", indexed: false }
770
+ ],
771
+ name: "CollateralEnabledUpdated"
772
+ },
429
773
  {
430
774
  type: "event",
431
775
  anonymous: false,
@@ -569,6 +913,98 @@ var basememeFactoryImplABI = [
569
913
  ],
570
914
  name: "NewBasememeToken"
571
915
  },
916
+ {
917
+ type: "event",
918
+ anonymous: false,
919
+ inputs: [
920
+ { name: "addr", internalType: "address", type: "address", indexed: true },
921
+ {
922
+ name: "bondingCurve",
923
+ internalType: "address",
924
+ type: "address",
925
+ indexed: true
926
+ },
927
+ {
928
+ name: "initialTokenSupply",
929
+ internalType: "uint256",
930
+ type: "uint256",
931
+ indexed: false
932
+ },
933
+ {
934
+ name: "virtualCollateralReservesInitial",
935
+ internalType: "uint256",
936
+ type: "uint256",
937
+ indexed: false
938
+ },
939
+ {
940
+ name: "virtualTokenReservesInitial",
941
+ internalType: "uint256",
942
+ type: "uint256",
943
+ indexed: false
944
+ },
945
+ {
946
+ name: "feeBPS",
947
+ internalType: "uint256",
948
+ type: "uint256",
949
+ indexed: false
950
+ },
951
+ {
952
+ name: "mcLowerLimit",
953
+ internalType: "uint256",
954
+ type: "uint256",
955
+ indexed: false
956
+ },
957
+ {
958
+ name: "mcUpperLimit",
959
+ internalType: "uint256",
960
+ type: "uint256",
961
+ indexed: false
962
+ },
963
+ {
964
+ name: "tokensMigrationThreshold",
965
+ internalType: "uint256",
966
+ type: "uint256",
967
+ indexed: false
968
+ },
969
+ {
970
+ name: "fixedMigrationFee",
971
+ internalType: "uint256",
972
+ type: "uint256",
973
+ indexed: false
974
+ },
975
+ {
976
+ name: "poolCreationFee",
977
+ internalType: "uint256",
978
+ type: "uint256",
979
+ indexed: false
980
+ },
981
+ {
982
+ name: "firstBuyFee",
983
+ internalType: "uint256",
984
+ type: "uint256",
985
+ indexed: false
986
+ },
987
+ {
988
+ name: "targetCollectionAmount",
989
+ internalType: "uint256",
990
+ type: "uint256",
991
+ indexed: false
992
+ },
993
+ {
994
+ name: "collateralToken",
995
+ internalType: "address",
996
+ type: "address",
997
+ indexed: false
998
+ },
999
+ {
1000
+ name: "v4LpFee",
1001
+ internalType: "uint24",
1002
+ type: "uint24",
1003
+ indexed: false
1004
+ }
1005
+ ],
1006
+ name: "NewBasememeTokenCurveParams"
1007
+ },
572
1008
  {
573
1009
  type: "event",
574
1010
  anonymous: false,
@@ -655,6 +1091,45 @@ var basememeFactoryImplABI = [
655
1091
  ],
656
1092
  name: "Sell"
657
1093
  },
1094
+ {
1095
+ type: "event",
1096
+ anonymous: false,
1097
+ inputs: [
1098
+ {
1099
+ name: "caller",
1100
+ internalType: "address",
1101
+ type: "address",
1102
+ indexed: true
1103
+ },
1104
+ {
1105
+ name: "recipient",
1106
+ internalType: "address",
1107
+ type: "address",
1108
+ indexed: true
1109
+ },
1110
+ {
1111
+ name: "token",
1112
+ internalType: "address",
1113
+ type: "address",
1114
+ indexed: true
1115
+ }
1116
+ ],
1117
+ name: "SellRecipient"
1118
+ },
1119
+ {
1120
+ type: "event",
1121
+ anonymous: false,
1122
+ inputs: [
1123
+ {
1124
+ name: "caller",
1125
+ internalType: "address",
1126
+ type: "address",
1127
+ indexed: true
1128
+ },
1129
+ { name: "allowed", internalType: "bool", type: "bool", indexed: false }
1130
+ ],
1131
+ name: "TrustedCallerUpdated"
1132
+ },
658
1133
  {
659
1134
  type: "event",
660
1135
  anonymous: false,
@@ -743,6 +1218,13 @@ var basememeFactoryImplABI = [
743
1218
  inputs: [{ name: "target", internalType: "address", type: "address" }],
744
1219
  name: "AddressEmptyCode"
745
1220
  },
1221
+ {
1222
+ type: "error",
1223
+ inputs: [],
1224
+ name: "BuyExactInUnsupportedForErc20Collateral"
1225
+ },
1226
+ { type: "error", inputs: [], name: "CollateralDisabled" },
1227
+ { type: "error", inputs: [], name: "CurveParamsNotSet" },
746
1228
  { type: "error", inputs: [], name: "DexTreasuryZeroValue" },
747
1229
  {
748
1230
  type: "error",
@@ -764,6 +1246,7 @@ var basememeFactoryImplABI = [
764
1246
  ],
765
1247
  name: "InsufficientBalance"
766
1248
  },
1249
+ { type: "error", inputs: [], name: "InvalidExactInCollateralAmount" },
767
1250
  { type: "error", inputs: [], name: "InvalidInitialization" },
768
1251
  { type: "error", inputs: [], name: "InvalidNonce" },
769
1252
  { type: "error", inputs: [], name: "InvalidSignature" },
@@ -775,6 +1258,7 @@ var basememeFactoryImplABI = [
775
1258
  { type: "error", inputs: [], name: "NotBasememeToken" },
776
1259
  { type: "error", inputs: [], name: "NotInitializing" },
777
1260
  { type: "error", inputs: [], name: "NotReadyForMigration" },
1261
+ { type: "error", inputs: [], name: "NotTrustedCaller" },
778
1262
  {
779
1263
  type: "error",
780
1264
  inputs: [{ name: "owner", internalType: "address", type: "address" }],
@@ -803,7 +1287,7 @@ var basememeFactoryImplABI = [
803
1287
  ];
804
1288
  var basememeFactoryImplAddress = {
805
1289
  8453: "0x0000000000000000000000000000000000000000",
806
- 84532: "0x9fB2eb6C1D01E146b26Ca258C765644BC17c7DC3"
1290
+ 84532: "0xA77f20116d3386b46105ea2623c50ffF53594ec7"
807
1291
  };
808
1292
  var basememeFactoryImplConfig = {
809
1293
  address: basememeFactoryImplAddress,
@@ -1193,30 +1677,7 @@ var bondingCurveABI = [
1193
1677
  type: "address"
1194
1678
  },
1195
1679
  { name: "_protocolRewards", internalType: "address", type: "address" },
1196
- { name: "_initialTokenSupply", internalType: "uint256", type: "uint256" },
1197
- {
1198
- name: "_virtualCollateralReservesInitial",
1199
- internalType: "uint256",
1200
- type: "uint256"
1201
- },
1202
- {
1203
- name: "_virtualTokenReservesInitial",
1204
- internalType: "uint256",
1205
- type: "uint256"
1206
- },
1207
- { name: "_feeBasisPoints", internalType: "uint256", type: "uint256" },
1208
- { name: "_fixedMigrationFee", internalType: "uint256", type: "uint256" },
1209
- { name: "_poolCreationFee", internalType: "uint256", type: "uint256" },
1210
- { name: "_firstBuyFee", internalType: "uint256", type: "uint256" },
1211
- { name: "_mcLowerLimit", internalType: "uint256", type: "uint256" },
1212
- { name: "_mcUpperLimit", internalType: "uint256", type: "uint256" },
1213
- {
1214
- name: "_tokensMigrationThreshold",
1215
- internalType: "uint256",
1216
- type: "uint256"
1217
- },
1218
1680
  { name: "_weth", internalType: "address", type: "address" },
1219
- { name: "_v4LpFee", internalType: "uint24", type: "uint24" },
1220
1681
  {
1221
1682
  name: "_tokenImplementation",
1222
1683
  internalType: "address",
@@ -1365,6 +1826,25 @@ var bondingCurveABI = [
1365
1826
  { name: "tradeFee", internalType: "uint256", type: "uint256" }
1366
1827
  ]
1367
1828
  },
1829
+ {
1830
+ stateMutability: "payable",
1831
+ type: "function",
1832
+ inputs: [
1833
+ { name: "_collateralAmountIn", internalType: "uint256", type: "uint256" },
1834
+ { name: "_amountOutMin", internalType: "uint256", type: "uint256" },
1835
+ { name: "_tradeReferrer", internalType: "address", type: "address" }
1836
+ ],
1837
+ name: "buyExactInWithAmount",
1838
+ outputs: [
1839
+ {
1840
+ name: "collateralToPayWithFee",
1841
+ internalType: "uint256",
1842
+ type: "uint256"
1843
+ },
1844
+ { name: "tradeFee", internalType: "uint256", type: "uint256" },
1845
+ { name: "firstFee", internalType: "uint256", type: "uint256" }
1846
+ ]
1847
+ },
1368
1848
  {
1369
1849
  stateMutability: "payable",
1370
1850
  type: "function",
@@ -1388,6 +1868,13 @@ var bondingCurveABI = [
1388
1868
  { name: "firstFee", internalType: "uint256", type: "uint256" }
1389
1869
  ]
1390
1870
  },
1871
+ {
1872
+ stateMutability: "view",
1873
+ type: "function",
1874
+ inputs: [],
1875
+ name: "collateralToken",
1876
+ outputs: [{ name: "", internalType: "address", type: "address" }]
1877
+ },
1391
1878
  {
1392
1879
  stateMutability: "nonpayable",
1393
1880
  type: "function",
@@ -1536,7 +2023,51 @@ var bondingCurveABI = [
1536
2023
  inputs: [
1537
2024
  { name: "_platformReferrer", internalType: "address", type: "address" },
1538
2025
  { name: "_payoutRecipient", internalType: "address", type: "address" },
1539
- { name: "_token", internalType: "address", type: "address" }
2026
+ { name: "_token", internalType: "address", type: "address" },
2027
+ {
2028
+ name: "_params",
2029
+ internalType: "struct IBondingCurve.CurveParams",
2030
+ type: "tuple",
2031
+ components: [
2032
+ {
2033
+ name: "initialTokenSupply",
2034
+ internalType: "uint256",
2035
+ type: "uint256"
2036
+ },
2037
+ {
2038
+ name: "virtualCollateralReservesInitial",
2039
+ internalType: "uint256",
2040
+ type: "uint256"
2041
+ },
2042
+ {
2043
+ name: "virtualTokenReservesInitial",
2044
+ internalType: "uint256",
2045
+ type: "uint256"
2046
+ },
2047
+ { name: "feeBPS", internalType: "uint256", type: "uint256" },
2048
+ { name: "mcLowerLimit", internalType: "uint256", type: "uint256" },
2049
+ { name: "mcUpperLimit", internalType: "uint256", type: "uint256" },
2050
+ {
2051
+ name: "tokensMigrationThreshold",
2052
+ internalType: "uint256",
2053
+ type: "uint256"
2054
+ },
2055
+ {
2056
+ name: "fixedMigrationFee",
2057
+ internalType: "uint256",
2058
+ type: "uint256"
2059
+ },
2060
+ { name: "poolCreationFee", internalType: "uint256", type: "uint256" },
2061
+ { name: "firstBuyFee", internalType: "uint256", type: "uint256" },
2062
+ {
2063
+ name: "targetCollectionAmount",
2064
+ internalType: "uint256",
2065
+ type: "uint256"
2066
+ },
2067
+ { name: "collateralToken", internalType: "address", type: "address" },
2068
+ { name: "v4LpFee", internalType: "uint24", type: "uint24" }
2069
+ ]
2070
+ }
1540
2071
  ],
1541
2072
  name: "initialize",
1542
2073
  outputs: []
@@ -1695,6 +2226,13 @@ var bondingCurveABI = [
1695
2226
  name: "sendingToPairForbidden",
1696
2227
  outputs: [{ name: "", internalType: "bool", type: "bool" }]
1697
2228
  },
2229
+ {
2230
+ stateMutability: "view",
2231
+ type: "function",
2232
+ inputs: [],
2233
+ name: "targetCollectionAmount",
2234
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }]
2235
+ },
1698
2236
  {
1699
2237
  stateMutability: "view",
1700
2238
  type: "function",
@@ -1786,6 +2324,13 @@ var bondingCurveABI = [
1786
2324
  name: "virtualCollateralReservesInitial",
1787
2325
  outputs: [{ name: "", internalType: "uint256", type: "uint256" }]
1788
2326
  },
2327
+ {
2328
+ stateMutability: "view",
2329
+ type: "function",
2330
+ inputs: [],
2331
+ name: "virtualCollateralReservesTarget",
2332
+ outputs: [{ name: "", internalType: "uint256", type: "uint256" }]
2333
+ },
1789
2334
  {
1790
2335
  stateMutability: "view",
1791
2336
  type: "function",
@@ -1943,6 +2488,13 @@ var bondingCurveABI = [
1943
2488
  { type: "error", inputs: [], name: "AlreadyMigrated" },
1944
2489
  { type: "error", inputs: [], name: "AmountInZero" },
1945
2490
  { type: "error", inputs: [], name: "AmountOutZero" },
2491
+ {
2492
+ type: "error",
2493
+ inputs: [
2494
+ { name: "recommendedTokenOut", internalType: "uint256", type: "uint256" }
2495
+ ],
2496
+ name: "CollectionTargetExceeded"
2497
+ },
1946
2498
  { type: "error", inputs: [], name: "FailedCall" },
1947
2499
  { type: "error", inputs: [], name: "FailedToSendETH" },
1948
2500
  { type: "error", inputs: [], name: "InitialTokenSupplyNotSet" },
@@ -2020,7 +2572,7 @@ var bondingCurveABI = [
2020
2572
  ];
2021
2573
  var bondingCurveAddress = {
2022
2574
  8453: "0x0000000000000000000000000000000000000000",
2023
- 84532: "0x4F5CE506fa0A8bF06b3A5e3e61061e863B04FC65"
2575
+ 84532: "0x227F6D11D054a1F606dBC9D555fa58538208cc3c"
2024
2576
  };
2025
2577
  var bondingCurveConfig = {
2026
2578
  address: bondingCurveAddress,
@@ -2301,6 +2853,7 @@ var chainConfigs = {
2301
2853
  "MC_LOWER_LIMIT": "11795000000000000000",
2302
2854
  "TOKENS_MIGRATION_THRESHOLD": "799764393968807750154100378",
2303
2855
  "TARGET_ETH_COLLECTION_AMOUNT": "2500759732077910169",
2856
+ "TARGET_COLLECTION_AMOUNT": "2500759732077910169",
2304
2857
  "SIGNER": "0x0000000000000000000000000000000000000000",
2305
2858
  "DEPLOYER": "0x30d197dd771d8f75378aad9428ed9d5e24bdbbbb",
2306
2859
  "FACTORY_OWNER": "0x2730B29aCbBCD34A59B720338e8d06619Fd71ACa",
@@ -2360,6 +2913,7 @@ var chainConfigs = {
2360
2913
  "MC_LOWER_LIMIT": "11795000000000000000",
2361
2914
  "TOKENS_MIGRATION_THRESHOLD": "799764393968807750154100378",
2362
2915
  "TARGET_ETH_COLLECTION_AMOUNT": "2500759732077910169",
2916
+ "TARGET_COLLECTION_AMOUNT": "2500759732077910169",
2363
2917
  "SIGNER": "0x0000000000000000000000000000000000000000",
2364
2918
  "DEPLOYER": "0x30d197dd771d8f75378aad9428ed9d5e24bdbbbb",
2365
2919
  "FACTORY_OWNER": "0x2730B29aCbBCD34A59B720338e8d06619Fd71ACa",
@@ -2395,6 +2949,7 @@ var chainConfigs = {
2395
2949
  "MC_LOWER_LIMIT": "11795000000000000000",
2396
2950
  "TOKENS_MIGRATION_THRESHOLD": "799764393968807750154100378",
2397
2951
  "TARGET_ETH_COLLECTION_AMOUNT": "2500759732077910169",
2952
+ "TARGET_COLLECTION_AMOUNT": "2500759732077910169",
2398
2953
  "SIGNER": "0x0000000000000000000000000000000000000000",
2399
2954
  "DEPLOYER": "0x9575b2d4eeb082f777af9dae93702aea6d2769d3",
2400
2955
  "FACTORY_OWNER": "0x9575b2d4eeb082f777af9dae93702aea6d2769d3",
@@ -2406,14 +2961,78 @@ var chainConfigs = {
2406
2961
  "WETH": "0x4200000000000000000000000000000000000006",
2407
2962
  "V3_POOL_FEE": "10000",
2408
2963
  "TRADE_REFERRER_FEE_BPS": "1000",
2409
- "CONTRACT_VERSION": "2.0.0",
2964
+ "CONTRACT_VERSION": "2.1.0",
2410
2965
  "V4_POOL_MANAGER": "0x05E73354cFDd6745C338b50BcFDfA3Aa6fA03408",
2411
2966
  "V4_POSITION_MANAGER": "0x4B2C77d209D3405F41a037Ec6c77F7F5b8e2ca80",
2412
2967
  "QUOTER_V4": "0x4A6513c898fe1B2d0E78d3b0e0A4a151589B1cBa",
2413
2968
  "PERMIT2": "0x000000000022D473030F116dDEE9F6B43aC78BA3",
2414
2969
  "UNIVERSAL_ROUTER": "0x492E6456D9528771018DeB9E87ef7750EF184104",
2415
2970
  "V4_LP_FEE": "20000",
2416
- "V4_LIQUIDITY_CONFIG": "0x00000000000000000000000000000000000000000000000000000000000000c800000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000001c000000000000000000000000000000000000000000000000000000000000002c000000000000000000000000000000000000000000000000000000000000003c000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff27660fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffcced0fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffd3780fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffd6278fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffd92e8fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe4a80fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe81300000000000000000000000000000000000000000000000000000000000000007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffcced0fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffd36b8fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffd6278fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe4a80fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe4a80fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffecf50fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffecf5000000000000000000000000000000000000000000000000000000000000000070000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003e8000000000000000000000000000000000000000000000000000000000000138800000000000000000000000000000000000000000000000000000000000005dc00000000000000000000000000000000000000000000000000000000000007d000000000000000000000000000000000000000000000000000000000000001f40000000000000000000000000000000000000000000000000000000000000007000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000270600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
2971
+ "V4_LIQUIDITY_CONFIG": "0x00000000000000000000000000000000000000000000000000000000000000c800000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000001c000000000000000000000000000000000000000000000000000000000000002c000000000000000000000000000000000000000000000000000000000000003c000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff27660fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffcced0fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffd3780fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffd6278fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffd92e8fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe4a80fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe81300000000000000000000000000000000000000000000000000000000000000007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffcced0fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffd36b8fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffd6278fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe4a80fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe4a80fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffecf50fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffecf5000000000000000000000000000000000000000000000000000000000000000070000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003e8000000000000000000000000000000000000000000000000000000000000138800000000000000000000000000000000000000000000000000000000000005dc00000000000000000000000000000000000000000000000000000000000007d000000000000000000000000000000000000000000000000000000000000001f40000000000000000000000000000000000000000000000000000000000000007000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000270600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
2972
+ "COLLATERAL_TEMPLATES": {
2973
+ "ETH": {
2974
+ "ID": "ETH_DEFAULT",
2975
+ "COLLATERAL_TOKEN": "0x0000000000000000000000000000000000000000",
2976
+ "SYMBOL": "ETH",
2977
+ "DECIMALS": 18,
2978
+ "ENABLED": true,
2979
+ "TOTAL_SUPPLY": "1000000000000000000000000000",
2980
+ "VIRTUAL_TOKEN_RESERVES": "1088264899999999783900020736",
2981
+ "VIRTUAL_COLLATERAL_RESERVES": "902103736559999872",
2982
+ "FEE_BASIS_POINTS": "200",
2983
+ "FIXED_MIGRATION_FEE": "100000000000000000",
2984
+ "POOL_CREATION_FEE": "50000000000000000",
2985
+ "FIRST_BUY_FEE": "1500000000000000",
2986
+ "MC_UPPER_LIMIT": "11835000000000000000",
2987
+ "MC_LOWER_LIMIT": "11795000000000000000",
2988
+ "TOKENS_MIGRATION_THRESHOLD": "799764393968807750154100378",
2989
+ "TARGET_ETH_COLLECTION_AMOUNT": "2500759732077910169",
2990
+ "TARGET_COLLECTION_AMOUNT": "2500759732077910169",
2991
+ "V4_LP_FEE": "20000",
2992
+ "V4_LIQUIDITY_CONFIG": "0x00000000000000000000000000000000000000000000000000000000000000c800000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000001c000000000000000000000000000000000000000000000000000000000000002c000000000000000000000000000000000000000000000000000000000000003c000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff27660fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffcced0fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffd3780fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffd6278fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffd92e8fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe4a80fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe81300000000000000000000000000000000000000000000000000000000000000007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffcced0fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffd36b8fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffd6278fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe4a80fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe4a80fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffecf50fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffecf5000000000000000000000000000000000000000000000000000000000000000070000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003e8000000000000000000000000000000000000000000000000000000000000138800000000000000000000000000000000000000000000000000000000000005dc00000000000000000000000000000000000000000000000000000000000007d000000000000000000000000000000000000000000000000000000000000001f40000000000000000000000000000000000000000000000000000000000000007000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000270600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
2993
+ },
2994
+ "USDC": {
2995
+ "ID": "USDC_DEFAULT",
2996
+ "COLLATERAL_TOKEN": "0x4967BC4b61B3259856D1A925900263AB2B64F6de",
2997
+ "SYMBOL": "USDC",
2998
+ "DECIMALS": 6,
2999
+ "ENABLED": true,
3000
+ "TOTAL_SUPPLY": "1000000000000000000000000000",
3001
+ "VIRTUAL_TOKEN_RESERVES": "1090909090905000000000022918",
3002
+ "VIRTUAL_COLLATERAL_RESERVES": "2909090909",
3003
+ "FEE_BASIS_POINTS": "200",
3004
+ "FIXED_MIGRATION_FEE": "300000000",
3005
+ "POOL_CREATION_FEE": "200000000",
3006
+ "FIRST_BUY_FEE": "5000000",
3007
+ "MC_UPPER_LIMIT": "37560000000",
3008
+ "MC_LOWER_LIMIT": "37500000000",
3009
+ "TOKENS_MIGRATION_THRESHOLD": "800000000000000000000000000",
3010
+ "TARGET_USDC_COLLECTION_AMOUNT": "8000000000",
3011
+ "TARGET_COLLECTION_AMOUNT": "8000000000",
3012
+ "V4_LP_FEE": "20000",
3013
+ "V4_LIQUIDITY_CONFIG": "0x00000000000000000000000000000000000000000000000000000000000000c800000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000001c000000000000000000000000000000000000000000000000000000000000002c000000000000000000000000000000000000000000000000000000000000003c000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff27660fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff9d2c0fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa3aa8fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa6a50fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa9b88fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffb5320fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffb89080000000000000000000000000000000000000000000000000000000000000007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff9d2c0fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa39e0fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa6a50fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffb5320fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffb5320fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffbd7f0fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffbd7f000000000000000000000000000000000000000000000000000000000000000070000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003e8000000000000000000000000000000000000000000000000000000000000138800000000000000000000000000000000000000000000000000000000000005dc00000000000000000000000000000000000000000000000000000000000007d000000000000000000000000000000000000000000000000000000000000001f40000000000000000000000000000000000000000000000000000000000000007000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000270600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
3014
+ },
3015
+ "SOL": {
3016
+ "ID": "SOL_DEFAULT",
3017
+ "COLLATERAL_TOKEN": "0x887847e42F068df9D9C248B355ad84DbC7527070",
3018
+ "SYMBOL": "SOL",
3019
+ "DECIMALS": 9,
3020
+ "ENABLED": true,
3021
+ "TOTAL_SUPPLY": "1000000000000000000000000000",
3022
+ "VIRTUAL_TOKEN_RESERVES": "1090909090905000000000022917",
3023
+ "VIRTUAL_COLLATERAL_RESERVES": "23272727272",
3024
+ "FEE_BASIS_POINTS": "200",
3025
+ "FIXED_MIGRATION_FEE": "2400000000",
3026
+ "POOL_CREATION_FEE": "1600000000",
3027
+ "FIRST_BUY_FEE": "40000000",
3028
+ "MC_UPPER_LIMIT": "300480000003",
3029
+ "MC_LOWER_LIMIT": "300000000003",
3030
+ "TOKENS_MIGRATION_THRESHOLD": "800000000000000000000000000",
3031
+ "TARGET_COLLECTION_AMOUNT": "64000000000",
3032
+ "V4_LP_FEE": "20000",
3033
+ "V4_LIQUIDITY_CONFIG": "0x00000000000000000000000000000000000000000000000000000000000000c800000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000001c000000000000000000000000000000000000000000000000000000000000002c000000000000000000000000000000000000000000000000000000000000003c000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff27660fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa2400fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa8be8fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffabb90fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffaecc8fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffba460fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffbda480000000000000000000000000000000000000000000000000000000000000007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa2400fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa8b20fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffabb90fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffba460fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffba460fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc2930fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc293000000000000000000000000000000000000000000000000000000000000000070000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003e8000000000000000000000000000000000000000000000000000000000000138800000000000000000000000000000000000000000000000000000000000005dc00000000000000000000000000000000000000000000000000000000000007d000000000000000000000000000000000000000000000000000000000000001f40000000000000000000000000000000000000000000000000000000000000007000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000270600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
3034
+ }
3035
+ }
2417
3036
  },
2418
3037
  "1.0.12": {
2419
3038
  "TOTAL_SUPPLY": "1000000000000000000000000000",
@@ -2473,6 +3092,104 @@ var chainConfigs = {
2473
3092
  "UNIVERSAL_ROUTER": "0x492E6456D9528771018DeB9E87ef7750EF184104",
2474
3093
  "V4_LP_FEE": "20000",
2475
3094
  "V4_LIQUIDITY_CONFIG": "0x00000000000000000000000000000000000000000000000000000000000000c800000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000001c000000000000000000000000000000000000000000000000000000000000002c000000000000000000000000000000000000000000000000000000000000003c000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff27660fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffcced0fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffd3780fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffd6278fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffd92e8fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe4a80fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe81300000000000000000000000000000000000000000000000000000000000000007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffcced0fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffd36b8fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffd6278fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe4a80fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe4a80fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffecf50fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffecf5000000000000000000000000000000000000000000000000000000000000000070000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003e8000000000000000000000000000000000000000000000000000000000000138800000000000000000000000000000000000000000000000000000000000005dc00000000000000000000000000000000000000000000000000000000000007d000000000000000000000000000000000000000000000000000000000000001f40000000000000000000000000000000000000000000000000000000000000007000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000270600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
3095
+ },
3096
+ "2.1.0": {
3097
+ "TOTAL_SUPPLY": "1000000000000000000000000000",
3098
+ "VIRTUAL_TOKEN_RESERVES": "1088264899999999783900020736",
3099
+ "VIRTUAL_COLLATERAL_RESERVES": "902103736559999872",
3100
+ "FEE_BASIS_POINTS": "200",
3101
+ "DEX_FEE_BASIS_POINTS": "5000",
3102
+ "FIXED_MIGRATION_FEE": "100000000000000000",
3103
+ "POOL_CREATION_FEE": "50000000000000000",
3104
+ "FIRST_BUY_FEE": "1500000000000000",
3105
+ "MC_UPPER_LIMIT": "11835000000000000000",
3106
+ "MC_LOWER_LIMIT": "11795000000000000000",
3107
+ "TOKENS_MIGRATION_THRESHOLD": "799764393968807750154100378",
3108
+ "TARGET_ETH_COLLECTION_AMOUNT": "2500759732077910169",
3109
+ "TARGET_COLLECTION_AMOUNT": "2500759732077910169",
3110
+ "SIGNER": "0x0000000000000000000000000000000000000000",
3111
+ "DEPLOYER": "0x9575b2d4eeb082f777af9dae93702aea6d2769d3",
3112
+ "FACTORY_OWNER": "0x9575b2d4eeb082f777af9dae93702aea6d2769d3",
3113
+ "PROTOCOL_REWARD_RECIPIENT": "0x9575b2d4eeb082f777af9dae93702aea6d2769d3",
3114
+ "UNISWAP_V3_NONFUNGIBLE_POSITION_MANAGER": "0x27F971cb582BF9E50F397e4d29a5C7A34f11faA2",
3115
+ "QUOTER_V2": "0xC5290058841028F1614F3A6F0F5816cAd0df5E27",
3116
+ "SWAP_ROUTER_V2": "0x94cC0AaC535CCDB3C01d6787D6413C739ae12bc4",
3117
+ "UNISWAP_V2_ROUTER": "0x0000000000000000000000000000000000000000",
3118
+ "WETH": "0x4200000000000000000000000000000000000006",
3119
+ "V3_POOL_FEE": "10000",
3120
+ "TRADE_REFERRER_FEE_BPS": "1000",
3121
+ "CONTRACT_VERSION": "2.1.0",
3122
+ "V4_POOL_MANAGER": "0x05E73354cFDd6745C338b50BcFDfA3Aa6fA03408",
3123
+ "V4_POSITION_MANAGER": "0x4B2C77d209D3405F41a037Ec6c77F7F5b8e2ca80",
3124
+ "QUOTER_V4": "0x4A6513c898fe1B2d0E78d3b0e0A4a151589B1cBa",
3125
+ "PERMIT2": "0x000000000022D473030F116dDEE9F6B43aC78BA3",
3126
+ "UNIVERSAL_ROUTER": "0x492E6456D9528771018DeB9E87ef7750EF184104",
3127
+ "V4_LP_FEE": "20000",
3128
+ "V4_LIQUIDITY_CONFIG": "0x00000000000000000000000000000000000000000000000000000000000000c800000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000001c000000000000000000000000000000000000000000000000000000000000002c000000000000000000000000000000000000000000000000000000000000003c000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff27660fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffcced0fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffd3780fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffd6278fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffd92e8fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe4a80fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe81300000000000000000000000000000000000000000000000000000000000000007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffcced0fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffd36b8fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffd6278fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe4a80fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe4a80fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffecf50fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffecf5000000000000000000000000000000000000000000000000000000000000000070000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003e8000000000000000000000000000000000000000000000000000000000000138800000000000000000000000000000000000000000000000000000000000005dc00000000000000000000000000000000000000000000000000000000000007d000000000000000000000000000000000000000000000000000000000000001f40000000000000000000000000000000000000000000000000000000000000007000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000270600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
3129
+ "COLLATERAL_TEMPLATES": {
3130
+ "ETH": {
3131
+ "ID": "ETH_DEFAULT",
3132
+ "COLLATERAL_TOKEN": "0x0000000000000000000000000000000000000000",
3133
+ "SYMBOL": "ETH",
3134
+ "DECIMALS": 18,
3135
+ "ENABLED": true,
3136
+ "TOTAL_SUPPLY": "1000000000000000000000000000",
3137
+ "VIRTUAL_TOKEN_RESERVES": "1088264899999999783900020736",
3138
+ "VIRTUAL_COLLATERAL_RESERVES": "902103736559999872",
3139
+ "FEE_BASIS_POINTS": "200",
3140
+ "FIXED_MIGRATION_FEE": "100000000000000000",
3141
+ "POOL_CREATION_FEE": "50000000000000000",
3142
+ "FIRST_BUY_FEE": "1500000000000000",
3143
+ "MC_UPPER_LIMIT": "11835000000000000000",
3144
+ "MC_LOWER_LIMIT": "11795000000000000000",
3145
+ "TOKENS_MIGRATION_THRESHOLD": "799764393968807750154100378",
3146
+ "TARGET_ETH_COLLECTION_AMOUNT": "2500759732077910169",
3147
+ "TARGET_COLLECTION_AMOUNT": "2500759732077910169",
3148
+ "V4_LP_FEE": "20000",
3149
+ "V4_LIQUIDITY_CONFIG": "0x00000000000000000000000000000000000000000000000000000000000000c800000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000001c000000000000000000000000000000000000000000000000000000000000002c000000000000000000000000000000000000000000000000000000000000003c000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff27660fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffcced0fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffd3780fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffd6278fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffd92e8fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe4a80fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe81300000000000000000000000000000000000000000000000000000000000000007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffcced0fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffd36b8fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffd6278fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe4a80fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe4a80fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffecf50fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffecf5000000000000000000000000000000000000000000000000000000000000000070000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003e8000000000000000000000000000000000000000000000000000000000000138800000000000000000000000000000000000000000000000000000000000005dc00000000000000000000000000000000000000000000000000000000000007d000000000000000000000000000000000000000000000000000000000000001f40000000000000000000000000000000000000000000000000000000000000007000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000270600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
3150
+ },
3151
+ "USDC": {
3152
+ "ID": "USDC_DEFAULT",
3153
+ "COLLATERAL_TOKEN": "0x4967BC4b61B3259856D1A925900263AB2B64F6de",
3154
+ "SYMBOL": "USDC",
3155
+ "DECIMALS": 6,
3156
+ "ENABLED": true,
3157
+ "TOTAL_SUPPLY": "1000000000000000000000000000",
3158
+ "VIRTUAL_TOKEN_RESERVES": "1090909090905000000000022918",
3159
+ "VIRTUAL_COLLATERAL_RESERVES": "2909090909",
3160
+ "FEE_BASIS_POINTS": "200",
3161
+ "FIXED_MIGRATION_FEE": "300000000",
3162
+ "POOL_CREATION_FEE": "200000000",
3163
+ "FIRST_BUY_FEE": "5000000",
3164
+ "MC_UPPER_LIMIT": "37560000000",
3165
+ "MC_LOWER_LIMIT": "37500000000",
3166
+ "TOKENS_MIGRATION_THRESHOLD": "800000000000000000000000000",
3167
+ "TARGET_USDC_COLLECTION_AMOUNT": "8000000000",
3168
+ "TARGET_COLLECTION_AMOUNT": "8000000000",
3169
+ "V4_LP_FEE": "20000",
3170
+ "V4_LIQUIDITY_CONFIG": "0x00000000000000000000000000000000000000000000000000000000000000c800000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000001c000000000000000000000000000000000000000000000000000000000000002c000000000000000000000000000000000000000000000000000000000000003c000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff27660fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff9d2c0fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa3aa8fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa6a50fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa9b88fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffb5320fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffb89080000000000000000000000000000000000000000000000000000000000000007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff9d2c0fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa39e0fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa6a50fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffb5320fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffb5320fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffbd7f0fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffbd7f000000000000000000000000000000000000000000000000000000000000000070000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003e8000000000000000000000000000000000000000000000000000000000000138800000000000000000000000000000000000000000000000000000000000005dc00000000000000000000000000000000000000000000000000000000000007d000000000000000000000000000000000000000000000000000000000000001f40000000000000000000000000000000000000000000000000000000000000007000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000270600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
3171
+ },
3172
+ "SOL": {
3173
+ "ID": "SOL_DEFAULT",
3174
+ "COLLATERAL_TOKEN": "0x887847e42F068df9D9C248B355ad84DbC7527070",
3175
+ "SYMBOL": "SOL",
3176
+ "DECIMALS": 9,
3177
+ "ENABLED": true,
3178
+ "TOTAL_SUPPLY": "1000000000000000000000000000",
3179
+ "VIRTUAL_TOKEN_RESERVES": "1090909090905000000000022917",
3180
+ "VIRTUAL_COLLATERAL_RESERVES": "23272727272",
3181
+ "FEE_BASIS_POINTS": "200",
3182
+ "FIXED_MIGRATION_FEE": "2400000000",
3183
+ "POOL_CREATION_FEE": "1600000000",
3184
+ "FIRST_BUY_FEE": "40000000",
3185
+ "MC_UPPER_LIMIT": "300480000003",
3186
+ "MC_LOWER_LIMIT": "300000000003",
3187
+ "TOKENS_MIGRATION_THRESHOLD": "800000000000000000000000000",
3188
+ "TARGET_COLLECTION_AMOUNT": "64000000000",
3189
+ "V4_LP_FEE": "20000",
3190
+ "V4_LIQUIDITY_CONFIG": "0x00000000000000000000000000000000000000000000000000000000000000c800000000000000000000000000000000000000000000000000000000000000c000000000000000000000000000000000000000000000000000000000000001c000000000000000000000000000000000000000000000000000000000000002c000000000000000000000000000000000000000000000000000000000000003c000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff27660fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa2400fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa8be8fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffabb90fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffaecc8fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffba460fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffbda480000000000000000000000000000000000000000000000000000000000000007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa2400fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa8b20fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffabb90fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffba460fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffba460fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc2930fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffc293000000000000000000000000000000000000000000000000000000000000000070000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003e8000000000000000000000000000000000000000000000000000000000000138800000000000000000000000000000000000000000000000000000000000005dc00000000000000000000000000000000000000000000000000000000000007d000000000000000000000000000000000000000000000000000000000000001f40000000000000000000000000000000000000000000000000000000000000007000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000270600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
3191
+ }
3192
+ }
2476
3193
  }
2477
3194
  }
2478
3195
  };