@oikos/core-addresses 0.1.0 → 0.1.1

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/dist/index.js CHANGED
@@ -17,10 +17,2607 @@ var deployment_default = {
17
17
  var meta_default = {
18
18
  tag: "v0.1",
19
19
  source: "https://raw.githubusercontent.com/oikos-cash/core/v0.1/deploy_helper/out/deployment.json",
20
- fetchedAt: "2026-05-16T19:38:51.457Z",
20
+ fetchedAt: "2026-05-16T21:02:29.760Z",
21
21
  sha256: "5e593341d02a2e9f935d0b234401090c6e858a654fed307ad3ccef83d6fedbb7"
22
22
  };
23
23
 
24
+ // data/abi-meta.json
25
+ var abi_meta_default = {
26
+ ref: "e9956d58340ec0c44221e5d3f3bc8590149966c0",
27
+ fetchedAt: "2026-05-16T21:02:30.220Z",
28
+ contracts: {
29
+ ExchangeHelper: {
30
+ available: true,
31
+ source: "https://raw.githubusercontent.com/oikos-cash/core/e9956d58340ec0c44221e5d3f3bc8590149966c0/out/ExchangeHelper.sol/ExchangeHelper.json",
32
+ artifact: "out/ExchangeHelper.sol/ExchangeHelper.json",
33
+ items: 24,
34
+ sha256: "c915b35c94b01e91c9c602cb02cb76a8621b2183d1e5714734402b2a1e7530ac"
35
+ },
36
+ ModelHelper: {
37
+ available: true,
38
+ source: "https://raw.githubusercontent.com/oikos-cash/core/e9956d58340ec0c44221e5d3f3bc8590149966c0/out/Helper.sol/ModelHelper.json",
39
+ artifact: "out/Helper.sol/ModelHelper.json",
40
+ items: 11,
41
+ sha256: "e8b67252d5566788bf0703a24863514735b8a42dc58531a2dade167f9e9fc41b"
42
+ },
43
+ AdaptiveSupply: {
44
+ available: true,
45
+ source: "https://raw.githubusercontent.com/oikos-cash/core/e9956d58340ec0c44221e5d3f3bc8590149966c0/out/AdaptiveSupply.sol/AdaptiveSupply.json",
46
+ artifact: "out/AdaptiveSupply.sol/AdaptiveSupply.json",
47
+ items: 8,
48
+ sha256: "513c87827c05f8b2c4b2b614e2f6f32e22dc59fd1b7976ee0444702a7a85c4e7"
49
+ },
50
+ RewardsCalculator: {
51
+ available: true,
52
+ source: "https://raw.githubusercontent.com/oikos-cash/core/e9956d58340ec0c44221e5d3f3bc8590149966c0/out/RewardsCalculator.sol/RewardsCalculator.json",
53
+ artifact: "out/RewardsCalculator.sol/RewardsCalculator.json",
54
+ items: 2,
55
+ sha256: "0f338e396e86d032446664fdea2171b0fc55eaece74a9a435feeaf961102d279"
56
+ },
57
+ Resolver: {
58
+ available: true,
59
+ source: "https://raw.githubusercontent.com/oikos-cash/core/e9956d58340ec0c44221e5d3f3bc8590149966c0/out/Resolver.sol/Resolver.json",
60
+ artifact: "out/Resolver.sol/Resolver.json",
61
+ items: 22,
62
+ sha256: "e84b2b86a044b3bce58cceaadc5bd06a39d4d60ff484867893e3991d6900124a"
63
+ },
64
+ Factory: {
65
+ available: true,
66
+ source: "https://raw.githubusercontent.com/oikos-cash/core/e9956d58340ec0c44221e5d3f3bc8590149966c0/out/OikosFactory.sol/OikosFactory.json",
67
+ artifact: "out/OikosFactory.sol/OikosFactory.json",
68
+ items: 39,
69
+ sha256: "7a731b05c79c3063a40797b4665577984850400470ba8edc0dbddae1f5e5b7bd"
70
+ },
71
+ Vault: {
72
+ available: false,
73
+ reason: "Diamond proxy; facet artifacts are not checked in at this pinned commit."
74
+ },
75
+ Pool: {
76
+ available: false,
77
+ reason: "External Uniswap V3 pool; ABI lives upstream in @uniswap/v3-core."
78
+ },
79
+ Proxy: {
80
+ available: false,
81
+ reason: "External OpenZeppelin ERC1967Proxy wrapping OKS; ABI lives upstream in @openzeppelin/contracts."
82
+ }
83
+ }
84
+ };
85
+
86
+ // data/abi/AdaptiveSupply.json
87
+ var AdaptiveSupply_default = [
88
+ {
89
+ type: "function",
90
+ name: "computeMintAmount",
91
+ inputs: [
92
+ {
93
+ name: "deltaSupply",
94
+ type: "uint256",
95
+ internalType: "uint256"
96
+ },
97
+ {
98
+ name: "timeElapsed",
99
+ type: "uint256",
100
+ internalType: "uint256"
101
+ },
102
+ {
103
+ name: "spotPrice",
104
+ type: "uint256",
105
+ internalType: "uint256"
106
+ },
107
+ {
108
+ name: "imv",
109
+ type: "uint256",
110
+ internalType: "uint256"
111
+ }
112
+ ],
113
+ outputs: [
114
+ {
115
+ name: "mintAmount",
116
+ type: "uint256",
117
+ internalType: "uint256"
118
+ },
119
+ {
120
+ name: "sigmoid",
121
+ type: "uint256",
122
+ internalType: "uint256"
123
+ }
124
+ ],
125
+ stateMutability: "view"
126
+ },
127
+ {
128
+ type: "error",
129
+ name: "DeltaSupplyZero",
130
+ inputs: []
131
+ },
132
+ {
133
+ type: "error",
134
+ name: "IMVZero",
135
+ inputs: []
136
+ },
137
+ {
138
+ type: "error",
139
+ name: "InvalidDenominator",
140
+ inputs: []
141
+ },
142
+ {
143
+ type: "error",
144
+ name: "InvalidSqrtTimeElapsed",
145
+ inputs: []
146
+ },
147
+ {
148
+ type: "error",
149
+ name: "InvalidTokenDecimals",
150
+ inputs: []
151
+ },
152
+ {
153
+ type: "error",
154
+ name: "SpotPriceLowerThanIMV",
155
+ inputs: []
156
+ },
157
+ {
158
+ type: "error",
159
+ name: "TimeElapsedZero",
160
+ inputs: []
161
+ }
162
+ ];
163
+
164
+ // data/abi/ExchangeHelper.json
165
+ var ExchangeHelper_default = [
166
+ {
167
+ type: "constructor",
168
+ inputs: [
169
+ {
170
+ name: "nomaFactoryAddress",
171
+ type: "address",
172
+ internalType: "address"
173
+ },
174
+ {
175
+ name: "wrappedMonAddress",
176
+ type: "address",
177
+ internalType: "address"
178
+ }
179
+ ],
180
+ stateMutability: "nonpayable"
181
+ },
182
+ {
183
+ type: "receive",
184
+ stateMutability: "payable"
185
+ },
186
+ {
187
+ type: "function",
188
+ name: "WBNB",
189
+ inputs: [],
190
+ outputs: [
191
+ {
192
+ name: "",
193
+ type: "address",
194
+ internalType: "address"
195
+ }
196
+ ],
197
+ stateMutability: "view"
198
+ },
199
+ {
200
+ type: "function",
201
+ name: "buyTokens",
202
+ inputs: [
203
+ {
204
+ name: "vaultAddress",
205
+ type: "address",
206
+ internalType: "address"
207
+ },
208
+ {
209
+ name: "pool",
210
+ type: "address",
211
+ internalType: "address"
212
+ },
213
+ {
214
+ name: "price",
215
+ type: "uint256",
216
+ internalType: "uint256"
217
+ },
218
+ {
219
+ name: "minAmount",
220
+ type: "uint256",
221
+ internalType: "uint256"
222
+ },
223
+ {
224
+ name: "receiver",
225
+ type: "address",
226
+ internalType: "address"
227
+ },
228
+ {
229
+ name: "isLimitOrder",
230
+ type: "bool",
231
+ internalType: "bool"
232
+ },
233
+ {
234
+ name: "slippageTolerance",
235
+ type: "uint256",
236
+ internalType: "uint256"
237
+ },
238
+ {
239
+ name: "referralCode",
240
+ type: "bytes8",
241
+ internalType: "bytes8"
242
+ }
243
+ ],
244
+ outputs: [],
245
+ stateMutability: "payable"
246
+ },
247
+ {
248
+ type: "function",
249
+ name: "buyTokensWETH",
250
+ inputs: [
251
+ {
252
+ name: "vaultAddress",
253
+ type: "address",
254
+ internalType: "address"
255
+ },
256
+ {
257
+ name: "pool",
258
+ type: "address",
259
+ internalType: "address"
260
+ },
261
+ {
262
+ name: "price",
263
+ type: "uint256",
264
+ internalType: "uint256"
265
+ },
266
+ {
267
+ name: "amount",
268
+ type: "uint256",
269
+ internalType: "uint256"
270
+ },
271
+ {
272
+ name: "minAmount",
273
+ type: "uint256",
274
+ internalType: "uint256"
275
+ },
276
+ {
277
+ name: "receiver",
278
+ type: "address",
279
+ internalType: "address"
280
+ },
281
+ {
282
+ name: "isLimitOrder",
283
+ type: "bool",
284
+ internalType: "bool"
285
+ },
286
+ {
287
+ name: "slippageTolerance",
288
+ type: "uint256",
289
+ internalType: "uint256"
290
+ },
291
+ {
292
+ name: "referralCode",
293
+ type: "bytes8",
294
+ internalType: "bytes8"
295
+ }
296
+ ],
297
+ outputs: [],
298
+ stateMutability: "nonpayable"
299
+ },
300
+ {
301
+ type: "function",
302
+ name: "nomaFactory",
303
+ inputs: [],
304
+ outputs: [
305
+ {
306
+ name: "",
307
+ type: "address",
308
+ internalType: "address"
309
+ }
310
+ ],
311
+ stateMutability: "view"
312
+ },
313
+ {
314
+ type: "function",
315
+ name: "pancakeV3SwapCallback",
316
+ inputs: [
317
+ {
318
+ name: "amount0Delta",
319
+ type: "int256",
320
+ internalType: "int256"
321
+ },
322
+ {
323
+ name: "amount1Delta",
324
+ type: "int256",
325
+ internalType: "int256"
326
+ },
327
+ {
328
+ name: "data",
329
+ type: "bytes",
330
+ internalType: "bytes"
331
+ }
332
+ ],
333
+ outputs: [],
334
+ stateMutability: "nonpayable"
335
+ },
336
+ {
337
+ type: "function",
338
+ name: "sellTokens",
339
+ inputs: [
340
+ {
341
+ name: "vaultAddress",
342
+ type: "address",
343
+ internalType: "address"
344
+ },
345
+ {
346
+ name: "pool",
347
+ type: "address",
348
+ internalType: "address"
349
+ },
350
+ {
351
+ name: "price",
352
+ type: "uint256",
353
+ internalType: "uint256"
354
+ },
355
+ {
356
+ name: "amount",
357
+ type: "uint256",
358
+ internalType: "uint256"
359
+ },
360
+ {
361
+ name: "minAmount",
362
+ type: "uint256",
363
+ internalType: "uint256"
364
+ },
365
+ {
366
+ name: "receiver",
367
+ type: "address",
368
+ internalType: "address"
369
+ },
370
+ {
371
+ name: "isLimitOrder",
372
+ type: "bool",
373
+ internalType: "bool"
374
+ },
375
+ {
376
+ name: "slippageTolerance",
377
+ type: "uint256",
378
+ internalType: "uint256"
379
+ },
380
+ {
381
+ name: "referralCode",
382
+ type: "bytes8",
383
+ internalType: "bytes8"
384
+ }
385
+ ],
386
+ outputs: [],
387
+ stateMutability: "nonpayable"
388
+ },
389
+ {
390
+ type: "function",
391
+ name: "sellTokensETH",
392
+ inputs: [
393
+ {
394
+ name: "vaultAddress",
395
+ type: "address",
396
+ internalType: "address"
397
+ },
398
+ {
399
+ name: "pool",
400
+ type: "address",
401
+ internalType: "address"
402
+ },
403
+ {
404
+ name: "price",
405
+ type: "uint256",
406
+ internalType: "uint256"
407
+ },
408
+ {
409
+ name: "amount",
410
+ type: "uint256",
411
+ internalType: "uint256"
412
+ },
413
+ {
414
+ name: "minAmount",
415
+ type: "uint256",
416
+ internalType: "uint256"
417
+ },
418
+ {
419
+ name: "receiver",
420
+ type: "address",
421
+ internalType: "address"
422
+ },
423
+ {
424
+ name: "isLimitOrder",
425
+ type: "bool",
426
+ internalType: "bool"
427
+ },
428
+ {
429
+ name: "slippageTolerance",
430
+ type: "uint256",
431
+ internalType: "uint256"
432
+ },
433
+ {
434
+ name: "referralCode",
435
+ type: "bytes8",
436
+ internalType: "bytes8"
437
+ }
438
+ ],
439
+ outputs: [],
440
+ stateMutability: "nonpayable"
441
+ },
442
+ {
443
+ type: "function",
444
+ name: "tokenInfo",
445
+ inputs: [],
446
+ outputs: [
447
+ {
448
+ name: "token0",
449
+ type: "address",
450
+ internalType: "address"
451
+ },
452
+ {
453
+ name: "token1",
454
+ type: "address",
455
+ internalType: "address"
456
+ }
457
+ ],
458
+ stateMutability: "view"
459
+ },
460
+ {
461
+ type: "function",
462
+ name: "uniswapV3SwapCallback",
463
+ inputs: [
464
+ {
465
+ name: "amount0Delta",
466
+ type: "int256",
467
+ internalType: "int256"
468
+ },
469
+ {
470
+ name: "amount1Delta",
471
+ type: "int256",
472
+ internalType: "int256"
473
+ },
474
+ {
475
+ name: "data",
476
+ type: "bytes",
477
+ internalType: "bytes"
478
+ }
479
+ ],
480
+ outputs: [],
481
+ stateMutability: "nonpayable"
482
+ },
483
+ {
484
+ type: "event",
485
+ name: "BoughtTokensETH",
486
+ inputs: [
487
+ {
488
+ name: "who",
489
+ type: "address",
490
+ indexed: false,
491
+ internalType: "address"
492
+ },
493
+ {
494
+ name: "amount",
495
+ type: "uint256",
496
+ indexed: false,
497
+ internalType: "uint256"
498
+ }
499
+ ],
500
+ anonymous: false
501
+ },
502
+ {
503
+ type: "event",
504
+ name: "BoughtTokensWETH",
505
+ inputs: [
506
+ {
507
+ name: "who",
508
+ type: "address",
509
+ indexed: false,
510
+ internalType: "address"
511
+ },
512
+ {
513
+ name: "amount",
514
+ type: "uint256",
515
+ indexed: false,
516
+ internalType: "uint256"
517
+ }
518
+ ],
519
+ anonymous: false
520
+ },
521
+ {
522
+ type: "event",
523
+ name: "SoldTokensETH",
524
+ inputs: [
525
+ {
526
+ name: "who",
527
+ type: "address",
528
+ indexed: false,
529
+ internalType: "address"
530
+ },
531
+ {
532
+ name: "amount",
533
+ type: "uint256",
534
+ indexed: false,
535
+ internalType: "uint256"
536
+ }
537
+ ],
538
+ anonymous: false
539
+ },
540
+ {
541
+ type: "event",
542
+ name: "SoldTokensWETH",
543
+ inputs: [
544
+ {
545
+ name: "who",
546
+ type: "address",
547
+ indexed: false,
548
+ internalType: "address"
549
+ },
550
+ {
551
+ name: "amount",
552
+ type: "uint256",
553
+ indexed: false,
554
+ internalType: "uint256"
555
+ }
556
+ ],
557
+ anonymous: false
558
+ },
559
+ {
560
+ type: "error",
561
+ name: "InvalidAmount",
562
+ inputs: []
563
+ },
564
+ {
565
+ type: "error",
566
+ name: "InvalidDecimals",
567
+ inputs: []
568
+ },
569
+ {
570
+ type: "error",
571
+ name: "InvalidSwap",
572
+ inputs: []
573
+ },
574
+ {
575
+ type: "error",
576
+ name: "NoETHSent",
577
+ inputs: []
578
+ },
579
+ {
580
+ type: "error",
581
+ name: "NoToken0Received",
582
+ inputs: []
583
+ },
584
+ {
585
+ type: "error",
586
+ name: "NoTokensExchanged",
587
+ inputs: []
588
+ },
589
+ {
590
+ type: "error",
591
+ name: "ReentrantCall",
592
+ inputs: []
593
+ },
594
+ {
595
+ type: "error",
596
+ name: "SafeERC20FailedOperation",
597
+ inputs: [
598
+ {
599
+ name: "token",
600
+ type: "address",
601
+ internalType: "address"
602
+ }
603
+ ]
604
+ },
605
+ {
606
+ type: "error",
607
+ name: "SlippageExceeded",
608
+ inputs: []
609
+ }
610
+ ];
611
+
612
+ // data/abi/Factory.json
613
+ var Factory_default = [
614
+ {
615
+ type: "constructor",
616
+ inputs: [
617
+ {
618
+ name: "_uniswapV3Factory",
619
+ type: "address",
620
+ internalType: "address"
621
+ },
622
+ {
623
+ name: "_pancakeSwapV3Factory",
624
+ type: "address",
625
+ internalType: "address"
626
+ },
627
+ {
628
+ name: "_resolver",
629
+ type: "address",
630
+ internalType: "address"
631
+ },
632
+ {
633
+ name: "_deployerFactory",
634
+ type: "address",
635
+ internalType: "address"
636
+ },
637
+ {
638
+ name: "_extFactory",
639
+ type: "address",
640
+ internalType: "address"
641
+ },
642
+ {
643
+ name: "_presaleFactory",
644
+ type: "address",
645
+ internalType: "address"
646
+ }
647
+ ],
648
+ stateMutability: "nonpayable"
649
+ },
650
+ {
651
+ type: "function",
652
+ name: "adaptiveSupply",
653
+ inputs: [],
654
+ outputs: [
655
+ {
656
+ name: "",
657
+ type: "address",
658
+ internalType: "address"
659
+ }
660
+ ],
661
+ stateMutability: "view"
662
+ },
663
+ {
664
+ type: "function",
665
+ name: "burnFor",
666
+ inputs: [
667
+ {
668
+ name: "from",
669
+ type: "address",
670
+ internalType: "address"
671
+ },
672
+ {
673
+ name: "amount",
674
+ type: "uint256",
675
+ internalType: "uint256"
676
+ }
677
+ ],
678
+ outputs: [],
679
+ stateMutability: "nonpayable"
680
+ },
681
+ {
682
+ type: "function",
683
+ name: "configureVault",
684
+ inputs: [
685
+ {
686
+ name: "vaultAddress",
687
+ type: "address",
688
+ internalType: "address"
689
+ },
690
+ {
691
+ name: "step",
692
+ type: "uint8",
693
+ internalType: "uint8"
694
+ }
695
+ ],
696
+ outputs: [
697
+ {
698
+ name: "data",
699
+ type: "tuple",
700
+ internalType: "struct DeploymentData",
701
+ components: [
702
+ {
703
+ name: "presaleParams",
704
+ type: "tuple",
705
+ internalType: "struct PresaleUserParams",
706
+ components: [
707
+ {
708
+ name: "softCap",
709
+ type: "uint256",
710
+ internalType: "uint256"
711
+ },
712
+ {
713
+ name: "deadline",
714
+ type: "uint256",
715
+ internalType: "uint256"
716
+ }
717
+ ]
718
+ },
719
+ {
720
+ name: "vaultDeployParams",
721
+ type: "tuple",
722
+ internalType: "struct VaultDeployParams",
723
+ components: [
724
+ {
725
+ name: "name",
726
+ type: "string",
727
+ internalType: "string"
728
+ },
729
+ {
730
+ name: "symbol",
731
+ type: "string",
732
+ internalType: "string"
733
+ },
734
+ {
735
+ name: "decimals",
736
+ type: "uint8",
737
+ internalType: "uint8"
738
+ },
739
+ {
740
+ name: "initialSupply",
741
+ type: "uint256",
742
+ internalType: "uint256"
743
+ },
744
+ {
745
+ name: "maxTotalSupply",
746
+ type: "uint256",
747
+ internalType: "uint256"
748
+ },
749
+ {
750
+ name: "IDOPrice",
751
+ type: "uint256",
752
+ internalType: "uint256"
753
+ },
754
+ {
755
+ name: "floorPrice",
756
+ type: "uint256",
757
+ internalType: "uint256"
758
+ },
759
+ {
760
+ name: "token1",
761
+ type: "address",
762
+ internalType: "address"
763
+ },
764
+ {
765
+ name: "feeTier",
766
+ type: "uint24",
767
+ internalType: "uint24"
768
+ },
769
+ {
770
+ name: "presale",
771
+ type: "uint8",
772
+ internalType: "uint8"
773
+ },
774
+ {
775
+ name: "isFreshDeploy",
776
+ type: "bool",
777
+ internalType: "bool"
778
+ },
779
+ {
780
+ name: "useUniswap",
781
+ type: "bool",
782
+ internalType: "bool"
783
+ }
784
+ ]
785
+ },
786
+ {
787
+ name: "pool",
788
+ type: "address",
789
+ internalType: "contract IUniswapV3Pool"
790
+ },
791
+ {
792
+ name: "proxy",
793
+ type: "address",
794
+ internalType: "contract ERC1967Proxy"
795
+ },
796
+ {
797
+ name: "tickSpacing",
798
+ type: "int24",
799
+ internalType: "int24"
800
+ },
801
+ {
802
+ name: "vaultAddress",
803
+ type: "address",
804
+ internalType: "address"
805
+ },
806
+ {
807
+ name: "vaultUpgrade",
808
+ type: "address",
809
+ internalType: "address"
810
+ },
811
+ {
812
+ name: "sOKS",
813
+ type: "address",
814
+ internalType: "address"
815
+ },
816
+ {
817
+ name: "stakingContract",
818
+ type: "address",
819
+ internalType: "address"
820
+ },
821
+ {
822
+ name: "presaleContract",
823
+ type: "address",
824
+ internalType: "address"
825
+ },
826
+ {
827
+ name: "tokenRepo",
828
+ type: "address",
829
+ internalType: "address"
830
+ },
831
+ {
832
+ name: "vToken",
833
+ type: "address",
834
+ internalType: "address"
835
+ },
836
+ {
837
+ name: "existingVault",
838
+ type: "address",
839
+ internalType: "address"
840
+ }
841
+ ]
842
+ }
843
+ ],
844
+ stateMutability: "nonpayable"
845
+ },
846
+ {
847
+ type: "function",
848
+ name: "deferredDeploy",
849
+ inputs: [
850
+ {
851
+ name: "_deployerContract",
852
+ type: "address",
853
+ internalType: "address"
854
+ },
855
+ {
856
+ name: "_tokenRepo",
857
+ type: "address",
858
+ internalType: "address"
859
+ }
860
+ ],
861
+ outputs: [],
862
+ stateMutability: "nonpayable"
863
+ },
864
+ {
865
+ type: "function",
866
+ name: "deployVault",
867
+ inputs: [
868
+ {
869
+ name: "presaleParams",
870
+ type: "tuple",
871
+ internalType: "struct PresaleUserParams",
872
+ components: [
873
+ {
874
+ name: "softCap",
875
+ type: "uint256",
876
+ internalType: "uint256"
877
+ },
878
+ {
879
+ name: "deadline",
880
+ type: "uint256",
881
+ internalType: "uint256"
882
+ }
883
+ ]
884
+ },
885
+ {
886
+ name: "vaultDeployParams",
887
+ type: "tuple",
888
+ internalType: "struct VaultDeployParams",
889
+ components: [
890
+ {
891
+ name: "name",
892
+ type: "string",
893
+ internalType: "string"
894
+ },
895
+ {
896
+ name: "symbol",
897
+ type: "string",
898
+ internalType: "string"
899
+ },
900
+ {
901
+ name: "decimals",
902
+ type: "uint8",
903
+ internalType: "uint8"
904
+ },
905
+ {
906
+ name: "initialSupply",
907
+ type: "uint256",
908
+ internalType: "uint256"
909
+ },
910
+ {
911
+ name: "maxTotalSupply",
912
+ type: "uint256",
913
+ internalType: "uint256"
914
+ },
915
+ {
916
+ name: "IDOPrice",
917
+ type: "uint256",
918
+ internalType: "uint256"
919
+ },
920
+ {
921
+ name: "floorPrice",
922
+ type: "uint256",
923
+ internalType: "uint256"
924
+ },
925
+ {
926
+ name: "token1",
927
+ type: "address",
928
+ internalType: "address"
929
+ },
930
+ {
931
+ name: "feeTier",
932
+ type: "uint24",
933
+ internalType: "uint24"
934
+ },
935
+ {
936
+ name: "presale",
937
+ type: "uint8",
938
+ internalType: "uint8"
939
+ },
940
+ {
941
+ name: "isFreshDeploy",
942
+ type: "bool",
943
+ internalType: "bool"
944
+ },
945
+ {
946
+ name: "useUniswap",
947
+ type: "bool",
948
+ internalType: "bool"
949
+ }
950
+ ]
951
+ },
952
+ {
953
+ name: "existingDeployData",
954
+ type: "tuple",
955
+ internalType: "struct ExistingDeployData",
956
+ components: [
957
+ {
958
+ name: "token0",
959
+ type: "address",
960
+ internalType: "address"
961
+ },
962
+ {
963
+ name: "pool",
964
+ type: "address",
965
+ internalType: "address"
966
+ },
967
+ {
968
+ name: "vaultAddress",
969
+ type: "address",
970
+ internalType: "address"
971
+ }
972
+ ]
973
+ }
974
+ ],
975
+ outputs: [
976
+ {
977
+ name: "",
978
+ type: "address",
979
+ internalType: "address"
980
+ },
981
+ {
982
+ name: "",
983
+ type: "address",
984
+ internalType: "address"
985
+ },
986
+ {
987
+ name: "",
988
+ type: "address",
989
+ internalType: "address"
990
+ }
991
+ ],
992
+ stateMutability: "payable"
993
+ },
994
+ {
995
+ type: "function",
996
+ name: "getDeployers",
997
+ inputs: [],
998
+ outputs: [
999
+ {
1000
+ name: "",
1001
+ type: "address[]",
1002
+ internalType: "address[]"
1003
+ }
1004
+ ],
1005
+ stateMutability: "view"
1006
+ },
1007
+ {
1008
+ type: "function",
1009
+ name: "getPresaleProtocolParams",
1010
+ inputs: [],
1011
+ outputs: [
1012
+ {
1013
+ name: "",
1014
+ type: "tuple",
1015
+ internalType: "struct PresaleProtocolParams",
1016
+ components: [
1017
+ {
1018
+ name: "maxSoftCap",
1019
+ type: "uint256",
1020
+ internalType: "uint256"
1021
+ },
1022
+ {
1023
+ name: "minContributionRatioBps",
1024
+ type: "uint16",
1025
+ internalType: "uint16"
1026
+ },
1027
+ {
1028
+ name: "maxContributionRatioBps",
1029
+ type: "uint16",
1030
+ internalType: "uint16"
1031
+ },
1032
+ {
1033
+ name: "presalePercentage",
1034
+ type: "uint256",
1035
+ internalType: "uint256"
1036
+ },
1037
+ {
1038
+ name: "minDuration",
1039
+ type: "uint256",
1040
+ internalType: "uint256"
1041
+ },
1042
+ {
1043
+ name: "maxDuration",
1044
+ type: "uint256",
1045
+ internalType: "uint256"
1046
+ },
1047
+ {
1048
+ name: "referralPercentage",
1049
+ type: "uint256",
1050
+ internalType: "uint256"
1051
+ },
1052
+ {
1053
+ name: "teamFee",
1054
+ type: "uint256",
1055
+ internalType: "uint256"
1056
+ }
1057
+ ]
1058
+ }
1059
+ ],
1060
+ stateMutability: "view"
1061
+ },
1062
+ {
1063
+ type: "function",
1064
+ name: "getProtocolParameters",
1065
+ inputs: [],
1066
+ outputs: [
1067
+ {
1068
+ name: "",
1069
+ type: "tuple",
1070
+ internalType: "struct ProtocolParameters",
1071
+ components: [
1072
+ {
1073
+ name: "floorPercentage",
1074
+ type: "uint8",
1075
+ internalType: "uint8"
1076
+ },
1077
+ {
1078
+ name: "anchorPercentage",
1079
+ type: "uint8",
1080
+ internalType: "uint8"
1081
+ },
1082
+ {
1083
+ name: "idoPriceMultiplier",
1084
+ type: "uint8",
1085
+ internalType: "uint8"
1086
+ },
1087
+ {
1088
+ name: "floorBips",
1089
+ type: "uint16[2]",
1090
+ internalType: "uint16[2]"
1091
+ },
1092
+ {
1093
+ name: "shiftRatio",
1094
+ type: "uint256",
1095
+ internalType: "uint256"
1096
+ },
1097
+ {
1098
+ name: "slideRatio",
1099
+ type: "uint256",
1100
+ internalType: "uint256"
1101
+ },
1102
+ {
1103
+ name: "discoveryBips",
1104
+ type: "int24",
1105
+ internalType: "int24"
1106
+ },
1107
+ {
1108
+ name: "shiftAnchorUpperBips",
1109
+ type: "int24",
1110
+ internalType: "int24"
1111
+ },
1112
+ {
1113
+ name: "slideAnchorUpperBips",
1114
+ type: "int24",
1115
+ internalType: "int24"
1116
+ },
1117
+ {
1118
+ name: "lowBalanceThresholdFactor",
1119
+ type: "uint256",
1120
+ internalType: "uint256"
1121
+ },
1122
+ {
1123
+ name: "highBalanceThresholdFactor",
1124
+ type: "uint256",
1125
+ internalType: "uint256"
1126
+ },
1127
+ {
1128
+ name: "inflationFee",
1129
+ type: "uint256",
1130
+ internalType: "uint256"
1131
+ },
1132
+ {
1133
+ name: "loanFee",
1134
+ type: "uint256",
1135
+ internalType: "uint256"
1136
+ },
1137
+ {
1138
+ name: "maxLoanUtilization",
1139
+ type: "uint256",
1140
+ internalType: "uint256"
1141
+ },
1142
+ {
1143
+ name: "deployFee",
1144
+ type: "uint256",
1145
+ internalType: "uint256"
1146
+ },
1147
+ {
1148
+ name: "presalePremium",
1149
+ type: "uint256",
1150
+ internalType: "uint256"
1151
+ },
1152
+ {
1153
+ name: "selfRepayLtvTreshold",
1154
+ type: "uint256",
1155
+ internalType: "uint256"
1156
+ },
1157
+ {
1158
+ name: "halfStep",
1159
+ type: "uint256",
1160
+ internalType: "uint256"
1161
+ },
1162
+ {
1163
+ name: "skimRatio",
1164
+ type: "uint256",
1165
+ internalType: "uint256"
1166
+ },
1167
+ {
1168
+ name: "decimals",
1169
+ type: "tuple",
1170
+ internalType: "struct Decimals",
1171
+ components: [
1172
+ {
1173
+ name: "minDecimals",
1174
+ type: "uint8",
1175
+ internalType: "uint8"
1176
+ },
1177
+ {
1178
+ name: "maxDecimals",
1179
+ type: "uint8",
1180
+ internalType: "uint8"
1181
+ }
1182
+ ]
1183
+ },
1184
+ {
1185
+ name: "basePriceDecimals",
1186
+ type: "uint256",
1187
+ internalType: "uint256"
1188
+ },
1189
+ {
1190
+ name: "reservedBalanceThreshold",
1191
+ type: "uint256",
1192
+ internalType: "uint256"
1193
+ },
1194
+ {
1195
+ name: "twapPeriod",
1196
+ type: "uint32",
1197
+ internalType: "uint32"
1198
+ },
1199
+ {
1200
+ name: "maxTwapDeviation",
1201
+ type: "uint256",
1202
+ internalType: "uint256"
1203
+ }
1204
+ ]
1205
+ }
1206
+ ],
1207
+ stateMutability: "view"
1208
+ },
1209
+ {
1210
+ type: "function",
1211
+ name: "getVaultDescription",
1212
+ inputs: [
1213
+ {
1214
+ name: "vault",
1215
+ type: "address",
1216
+ internalType: "address"
1217
+ }
1218
+ ],
1219
+ outputs: [
1220
+ {
1221
+ name: "",
1222
+ type: "tuple",
1223
+ internalType: "struct VaultDescription",
1224
+ components: [
1225
+ {
1226
+ name: "tokenName",
1227
+ type: "string",
1228
+ internalType: "string"
1229
+ },
1230
+ {
1231
+ name: "tokenSymbol",
1232
+ type: "string",
1233
+ internalType: "string"
1234
+ },
1235
+ {
1236
+ name: "tokenDecimals",
1237
+ type: "uint8",
1238
+ internalType: "uint8"
1239
+ },
1240
+ {
1241
+ name: "token0",
1242
+ type: "address",
1243
+ internalType: "address"
1244
+ },
1245
+ {
1246
+ name: "token1",
1247
+ type: "address",
1248
+ internalType: "address"
1249
+ },
1250
+ {
1251
+ name: "deployer",
1252
+ type: "address",
1253
+ internalType: "address"
1254
+ },
1255
+ {
1256
+ name: "vault",
1257
+ type: "address",
1258
+ internalType: "address"
1259
+ },
1260
+ {
1261
+ name: "presaleContract",
1262
+ type: "address",
1263
+ internalType: "address"
1264
+ },
1265
+ {
1266
+ name: "stakingContract",
1267
+ type: "address",
1268
+ internalType: "address"
1269
+ },
1270
+ {
1271
+ name: "deployerContract",
1272
+ type: "address",
1273
+ internalType: "address"
1274
+ }
1275
+ ]
1276
+ }
1277
+ ],
1278
+ stateMutability: "view"
1279
+ },
1280
+ {
1281
+ type: "function",
1282
+ name: "getVaultFromPool",
1283
+ inputs: [
1284
+ {
1285
+ name: "pool",
1286
+ type: "address",
1287
+ internalType: "address"
1288
+ }
1289
+ ],
1290
+ outputs: [
1291
+ {
1292
+ name: "",
1293
+ type: "address",
1294
+ internalType: "address"
1295
+ }
1296
+ ],
1297
+ stateMutability: "view"
1298
+ },
1299
+ {
1300
+ type: "function",
1301
+ name: "getVaults",
1302
+ inputs: [
1303
+ {
1304
+ name: "_deployer",
1305
+ type: "address",
1306
+ internalType: "address"
1307
+ }
1308
+ ],
1309
+ outputs: [
1310
+ {
1311
+ name: "",
1312
+ type: "address[]",
1313
+ internalType: "address[]"
1314
+ }
1315
+ ],
1316
+ stateMutability: "view"
1317
+ },
1318
+ {
1319
+ type: "function",
1320
+ name: "getVaultsRepository",
1321
+ inputs: [
1322
+ {
1323
+ name: "vault",
1324
+ type: "address",
1325
+ internalType: "address"
1326
+ }
1327
+ ],
1328
+ outputs: [
1329
+ {
1330
+ name: "",
1331
+ type: "tuple",
1332
+ internalType: "struct VaultDescription",
1333
+ components: [
1334
+ {
1335
+ name: "tokenName",
1336
+ type: "string",
1337
+ internalType: "string"
1338
+ },
1339
+ {
1340
+ name: "tokenSymbol",
1341
+ type: "string",
1342
+ internalType: "string"
1343
+ },
1344
+ {
1345
+ name: "tokenDecimals",
1346
+ type: "uint8",
1347
+ internalType: "uint8"
1348
+ },
1349
+ {
1350
+ name: "token0",
1351
+ type: "address",
1352
+ internalType: "address"
1353
+ },
1354
+ {
1355
+ name: "token1",
1356
+ type: "address",
1357
+ internalType: "address"
1358
+ },
1359
+ {
1360
+ name: "deployer",
1361
+ type: "address",
1362
+ internalType: "address"
1363
+ },
1364
+ {
1365
+ name: "vault",
1366
+ type: "address",
1367
+ internalType: "address"
1368
+ },
1369
+ {
1370
+ name: "presaleContract",
1371
+ type: "address",
1372
+ internalType: "address"
1373
+ },
1374
+ {
1375
+ name: "stakingContract",
1376
+ type: "address",
1377
+ internalType: "address"
1378
+ },
1379
+ {
1380
+ name: "deployerContract",
1381
+ type: "address",
1382
+ internalType: "address"
1383
+ }
1384
+ ]
1385
+ }
1386
+ ],
1387
+ stateMutability: "view"
1388
+ },
1389
+ {
1390
+ type: "function",
1391
+ name: "mintTokens",
1392
+ inputs: [
1393
+ {
1394
+ name: "to",
1395
+ type: "address",
1396
+ internalType: "address"
1397
+ },
1398
+ {
1399
+ name: "amount",
1400
+ type: "uint256",
1401
+ internalType: "uint256"
1402
+ }
1403
+ ],
1404
+ outputs: [],
1405
+ stateMutability: "nonpayable"
1406
+ },
1407
+ {
1408
+ type: "function",
1409
+ name: "modelHelper",
1410
+ inputs: [],
1411
+ outputs: [
1412
+ {
1413
+ name: "",
1414
+ type: "address",
1415
+ internalType: "address"
1416
+ }
1417
+ ],
1418
+ stateMutability: "view"
1419
+ },
1420
+ {
1421
+ type: "function",
1422
+ name: "numDeployers",
1423
+ inputs: [],
1424
+ outputs: [
1425
+ {
1426
+ name: "",
1427
+ type: "uint256",
1428
+ internalType: "uint256"
1429
+ }
1430
+ ],
1431
+ stateMutability: "view"
1432
+ },
1433
+ {
1434
+ type: "function",
1435
+ name: "numVaults",
1436
+ inputs: [
1437
+ {
1438
+ name: "_deployer",
1439
+ type: "address",
1440
+ internalType: "address"
1441
+ }
1442
+ ],
1443
+ outputs: [
1444
+ {
1445
+ name: "",
1446
+ type: "uint256",
1447
+ internalType: "uint256"
1448
+ }
1449
+ ],
1450
+ stateMutability: "view"
1451
+ },
1452
+ {
1453
+ type: "function",
1454
+ name: "owner",
1455
+ inputs: [],
1456
+ outputs: [
1457
+ {
1458
+ name: "",
1459
+ type: "address",
1460
+ internalType: "address"
1461
+ }
1462
+ ],
1463
+ stateMutability: "view"
1464
+ },
1465
+ {
1466
+ type: "function",
1467
+ name: "setMultiSigAddress",
1468
+ inputs: [
1469
+ {
1470
+ name: "_address",
1471
+ type: "address",
1472
+ internalType: "address"
1473
+ }
1474
+ ],
1475
+ outputs: [],
1476
+ stateMutability: "nonpayable"
1477
+ },
1478
+ {
1479
+ type: "function",
1480
+ name: "setPermissionlessDeploy",
1481
+ inputs: [
1482
+ {
1483
+ name: "_flag",
1484
+ type: "bool",
1485
+ internalType: "bool"
1486
+ }
1487
+ ],
1488
+ outputs: [],
1489
+ stateMutability: "nonpayable"
1490
+ },
1491
+ {
1492
+ type: "function",
1493
+ name: "setPresaleProtocolParams",
1494
+ inputs: [
1495
+ {
1496
+ name: "_params",
1497
+ type: "tuple",
1498
+ internalType: "struct PresaleProtocolParams",
1499
+ components: [
1500
+ {
1501
+ name: "maxSoftCap",
1502
+ type: "uint256",
1503
+ internalType: "uint256"
1504
+ },
1505
+ {
1506
+ name: "minContributionRatioBps",
1507
+ type: "uint16",
1508
+ internalType: "uint16"
1509
+ },
1510
+ {
1511
+ name: "maxContributionRatioBps",
1512
+ type: "uint16",
1513
+ internalType: "uint16"
1514
+ },
1515
+ {
1516
+ name: "presalePercentage",
1517
+ type: "uint256",
1518
+ internalType: "uint256"
1519
+ },
1520
+ {
1521
+ name: "minDuration",
1522
+ type: "uint256",
1523
+ internalType: "uint256"
1524
+ },
1525
+ {
1526
+ name: "maxDuration",
1527
+ type: "uint256",
1528
+ internalType: "uint256"
1529
+ },
1530
+ {
1531
+ name: "referralPercentage",
1532
+ type: "uint256",
1533
+ internalType: "uint256"
1534
+ },
1535
+ {
1536
+ name: "teamFee",
1537
+ type: "uint256",
1538
+ internalType: "uint256"
1539
+ }
1540
+ ]
1541
+ }
1542
+ ],
1543
+ outputs: [],
1544
+ stateMutability: "nonpayable"
1545
+ },
1546
+ {
1547
+ type: "function",
1548
+ name: "setProtocolParameters",
1549
+ inputs: [
1550
+ {
1551
+ name: "_params",
1552
+ type: "tuple",
1553
+ internalType: "struct ProtocolParameters",
1554
+ components: [
1555
+ {
1556
+ name: "floorPercentage",
1557
+ type: "uint8",
1558
+ internalType: "uint8"
1559
+ },
1560
+ {
1561
+ name: "anchorPercentage",
1562
+ type: "uint8",
1563
+ internalType: "uint8"
1564
+ },
1565
+ {
1566
+ name: "idoPriceMultiplier",
1567
+ type: "uint8",
1568
+ internalType: "uint8"
1569
+ },
1570
+ {
1571
+ name: "floorBips",
1572
+ type: "uint16[2]",
1573
+ internalType: "uint16[2]"
1574
+ },
1575
+ {
1576
+ name: "shiftRatio",
1577
+ type: "uint256",
1578
+ internalType: "uint256"
1579
+ },
1580
+ {
1581
+ name: "slideRatio",
1582
+ type: "uint256",
1583
+ internalType: "uint256"
1584
+ },
1585
+ {
1586
+ name: "discoveryBips",
1587
+ type: "int24",
1588
+ internalType: "int24"
1589
+ },
1590
+ {
1591
+ name: "shiftAnchorUpperBips",
1592
+ type: "int24",
1593
+ internalType: "int24"
1594
+ },
1595
+ {
1596
+ name: "slideAnchorUpperBips",
1597
+ type: "int24",
1598
+ internalType: "int24"
1599
+ },
1600
+ {
1601
+ name: "lowBalanceThresholdFactor",
1602
+ type: "uint256",
1603
+ internalType: "uint256"
1604
+ },
1605
+ {
1606
+ name: "highBalanceThresholdFactor",
1607
+ type: "uint256",
1608
+ internalType: "uint256"
1609
+ },
1610
+ {
1611
+ name: "inflationFee",
1612
+ type: "uint256",
1613
+ internalType: "uint256"
1614
+ },
1615
+ {
1616
+ name: "loanFee",
1617
+ type: "uint256",
1618
+ internalType: "uint256"
1619
+ },
1620
+ {
1621
+ name: "maxLoanUtilization",
1622
+ type: "uint256",
1623
+ internalType: "uint256"
1624
+ },
1625
+ {
1626
+ name: "deployFee",
1627
+ type: "uint256",
1628
+ internalType: "uint256"
1629
+ },
1630
+ {
1631
+ name: "presalePremium",
1632
+ type: "uint256",
1633
+ internalType: "uint256"
1634
+ },
1635
+ {
1636
+ name: "selfRepayLtvTreshold",
1637
+ type: "uint256",
1638
+ internalType: "uint256"
1639
+ },
1640
+ {
1641
+ name: "halfStep",
1642
+ type: "uint256",
1643
+ internalType: "uint256"
1644
+ },
1645
+ {
1646
+ name: "skimRatio",
1647
+ type: "uint256",
1648
+ internalType: "uint256"
1649
+ },
1650
+ {
1651
+ name: "decimals",
1652
+ type: "tuple",
1653
+ internalType: "struct Decimals",
1654
+ components: [
1655
+ {
1656
+ name: "minDecimals",
1657
+ type: "uint8",
1658
+ internalType: "uint8"
1659
+ },
1660
+ {
1661
+ name: "maxDecimals",
1662
+ type: "uint8",
1663
+ internalType: "uint8"
1664
+ }
1665
+ ]
1666
+ },
1667
+ {
1668
+ name: "basePriceDecimals",
1669
+ type: "uint256",
1670
+ internalType: "uint256"
1671
+ },
1672
+ {
1673
+ name: "reservedBalanceThreshold",
1674
+ type: "uint256",
1675
+ internalType: "uint256"
1676
+ },
1677
+ {
1678
+ name: "twapPeriod",
1679
+ type: "uint32",
1680
+ internalType: "uint32"
1681
+ },
1682
+ {
1683
+ name: "maxTwapDeviation",
1684
+ type: "uint256",
1685
+ internalType: "uint256"
1686
+ }
1687
+ ]
1688
+ }
1689
+ ],
1690
+ outputs: [],
1691
+ stateMutability: "nonpayable"
1692
+ },
1693
+ {
1694
+ type: "function",
1695
+ name: "setVaultOwnership",
1696
+ inputs: [
1697
+ {
1698
+ name: "vaultAddress",
1699
+ type: "address",
1700
+ internalType: "address"
1701
+ },
1702
+ {
1703
+ name: "newOwner",
1704
+ type: "address",
1705
+ internalType: "address"
1706
+ }
1707
+ ],
1708
+ outputs: [],
1709
+ stateMutability: "nonpayable"
1710
+ },
1711
+ {
1712
+ type: "function",
1713
+ name: "teamMultiSig",
1714
+ inputs: [],
1715
+ outputs: [
1716
+ {
1717
+ name: "",
1718
+ type: "address",
1719
+ internalType: "address"
1720
+ }
1721
+ ],
1722
+ stateMutability: "view"
1723
+ },
1724
+ {
1725
+ type: "function",
1726
+ name: "tokenFactory",
1727
+ inputs: [],
1728
+ outputs: [
1729
+ {
1730
+ name: "",
1731
+ type: "address",
1732
+ internalType: "address"
1733
+ }
1734
+ ],
1735
+ stateMutability: "view"
1736
+ },
1737
+ {
1738
+ type: "function",
1739
+ name: "upgradeToken",
1740
+ inputs: [
1741
+ {
1742
+ name: "_token",
1743
+ type: "address",
1744
+ internalType: "address"
1745
+ },
1746
+ {
1747
+ name: "_newImplementation",
1748
+ type: "address",
1749
+ internalType: "address"
1750
+ }
1751
+ ],
1752
+ outputs: [],
1753
+ stateMutability: "nonpayable"
1754
+ },
1755
+ {
1756
+ type: "error",
1757
+ name: "InvalidDecimals",
1758
+ inputs: []
1759
+ },
1760
+ {
1761
+ type: "error",
1762
+ name: "InvalidFeeTier",
1763
+ inputs: []
1764
+ },
1765
+ {
1766
+ type: "error",
1767
+ name: "InvalidParams",
1768
+ inputs: []
1769
+ },
1770
+ {
1771
+ type: "error",
1772
+ name: "InvalidSymbol",
1773
+ inputs: []
1774
+ },
1775
+ {
1776
+ type: "error",
1777
+ name: "NotAuthorized",
1778
+ inputs: []
1779
+ },
1780
+ {
1781
+ type: "error",
1782
+ name: "OnlyVault",
1783
+ inputs: []
1784
+ },
1785
+ {
1786
+ type: "error",
1787
+ name: "SafeERC20FailedOperation",
1788
+ inputs: [
1789
+ {
1790
+ name: "token",
1791
+ type: "address",
1792
+ internalType: "address"
1793
+ }
1794
+ ]
1795
+ },
1796
+ {
1797
+ type: "error",
1798
+ name: "SupplyTransferError",
1799
+ inputs: []
1800
+ },
1801
+ {
1802
+ type: "error",
1803
+ name: "TokenAlreadyExistsError",
1804
+ inputs: []
1805
+ },
1806
+ {
1807
+ type: "error",
1808
+ name: "TotalSupplyTooLow",
1809
+ inputs: [
1810
+ {
1811
+ name: "minRequired",
1812
+ type: "uint256",
1813
+ internalType: "uint256"
1814
+ },
1815
+ {
1816
+ name: "provided",
1817
+ type: "uint256",
1818
+ internalType: "uint256"
1819
+ }
1820
+ ]
1821
+ },
1822
+ {
1823
+ type: "error",
1824
+ name: "TransferFailed",
1825
+ inputs: []
1826
+ },
1827
+ {
1828
+ type: "error",
1829
+ name: "Unauthorized",
1830
+ inputs: []
1831
+ },
1832
+ {
1833
+ type: "error",
1834
+ name: "ZeroAddress",
1835
+ inputs: []
1836
+ }
1837
+ ];
1838
+
1839
+ // data/abi/ModelHelper.json
1840
+ var ModelHelper_default = [
1841
+ {
1842
+ type: "function",
1843
+ name: "enforceSolvencyInvariant",
1844
+ inputs: [
1845
+ {
1846
+ name: "_vault",
1847
+ type: "address",
1848
+ internalType: "address"
1849
+ }
1850
+ ],
1851
+ outputs: [],
1852
+ stateMutability: "view"
1853
+ },
1854
+ {
1855
+ type: "function",
1856
+ name: "getCirculatingSupply",
1857
+ inputs: [
1858
+ {
1859
+ name: "pool",
1860
+ type: "address",
1861
+ internalType: "address"
1862
+ },
1863
+ {
1864
+ name: "vault",
1865
+ type: "address",
1866
+ internalType: "address"
1867
+ },
1868
+ {
1869
+ name: "includeStaked",
1870
+ type: "bool",
1871
+ internalType: "bool"
1872
+ }
1873
+ ],
1874
+ outputs: [
1875
+ {
1876
+ name: "",
1877
+ type: "uint256",
1878
+ internalType: "uint256"
1879
+ }
1880
+ ],
1881
+ stateMutability: "view"
1882
+ },
1883
+ {
1884
+ type: "function",
1885
+ name: "getExcessReserveBalance",
1886
+ inputs: [
1887
+ {
1888
+ name: "pool",
1889
+ type: "address",
1890
+ internalType: "address"
1891
+ },
1892
+ {
1893
+ name: "vault",
1894
+ type: "address",
1895
+ internalType: "address"
1896
+ },
1897
+ {
1898
+ name: "isToken0",
1899
+ type: "bool",
1900
+ internalType: "bool"
1901
+ }
1902
+ ],
1903
+ outputs: [
1904
+ {
1905
+ name: "",
1906
+ type: "uint256",
1907
+ internalType: "uint256"
1908
+ }
1909
+ ],
1910
+ stateMutability: "view"
1911
+ },
1912
+ {
1913
+ type: "function",
1914
+ name: "getIntrinsicMinimumValue",
1915
+ inputs: [
1916
+ {
1917
+ name: "_vault",
1918
+ type: "address",
1919
+ internalType: "address"
1920
+ }
1921
+ ],
1922
+ outputs: [
1923
+ {
1924
+ name: "",
1925
+ type: "uint256",
1926
+ internalType: "uint256"
1927
+ }
1928
+ ],
1929
+ stateMutability: "view"
1930
+ },
1931
+ {
1932
+ type: "function",
1933
+ name: "getLiquidityRatio",
1934
+ inputs: [
1935
+ {
1936
+ name: "pool",
1937
+ type: "address",
1938
+ internalType: "address"
1939
+ },
1940
+ {
1941
+ name: "vault",
1942
+ type: "address",
1943
+ internalType: "address"
1944
+ }
1945
+ ],
1946
+ outputs: [
1947
+ {
1948
+ name: "liquidityRatio",
1949
+ type: "uint256",
1950
+ internalType: "uint256"
1951
+ }
1952
+ ],
1953
+ stateMutability: "view"
1954
+ },
1955
+ {
1956
+ type: "function",
1957
+ name: "getPositionCapacity",
1958
+ inputs: [
1959
+ {
1960
+ name: "pool",
1961
+ type: "address",
1962
+ internalType: "address"
1963
+ },
1964
+ {
1965
+ name: "vault",
1966
+ type: "address",
1967
+ internalType: "address"
1968
+ },
1969
+ {
1970
+ name: "position",
1971
+ type: "tuple",
1972
+ internalType: "struct LiquidityPosition",
1973
+ components: [
1974
+ {
1975
+ name: "lowerTick",
1976
+ type: "int24",
1977
+ internalType: "int24"
1978
+ },
1979
+ {
1980
+ name: "upperTick",
1981
+ type: "int24",
1982
+ internalType: "int24"
1983
+ },
1984
+ {
1985
+ name: "liquidity",
1986
+ type: "uint128",
1987
+ internalType: "uint128"
1988
+ },
1989
+ {
1990
+ name: "price",
1991
+ type: "uint256",
1992
+ internalType: "uint256"
1993
+ },
1994
+ {
1995
+ name: "tickSpacing",
1996
+ type: "int24",
1997
+ internalType: "int24"
1998
+ },
1999
+ {
2000
+ name: "liquidityType",
2001
+ type: "uint8",
2002
+ internalType: "enum LiquidityType"
2003
+ }
2004
+ ]
2005
+ },
2006
+ {
2007
+ name: "liquidityType",
2008
+ type: "uint8",
2009
+ internalType: "enum LiquidityType"
2010
+ }
2011
+ ],
2012
+ outputs: [
2013
+ {
2014
+ name: "amount0Current",
2015
+ type: "uint256",
2016
+ internalType: "uint256"
2017
+ }
2018
+ ],
2019
+ stateMutability: "view"
2020
+ },
2021
+ {
2022
+ type: "function",
2023
+ name: "getTotalSupply",
2024
+ inputs: [
2025
+ {
2026
+ name: "pool",
2027
+ type: "address",
2028
+ internalType: "address"
2029
+ },
2030
+ {
2031
+ name: "isToken0",
2032
+ type: "bool",
2033
+ internalType: "bool"
2034
+ }
2035
+ ],
2036
+ outputs: [
2037
+ {
2038
+ name: "totalSupply",
2039
+ type: "uint256",
2040
+ internalType: "uint256"
2041
+ }
2042
+ ],
2043
+ stateMutability: "view"
2044
+ },
2045
+ {
2046
+ type: "function",
2047
+ name: "getUnderlyingBalances",
2048
+ inputs: [
2049
+ {
2050
+ name: "pool",
2051
+ type: "address",
2052
+ internalType: "address"
2053
+ },
2054
+ {
2055
+ name: "vault",
2056
+ type: "address",
2057
+ internalType: "address"
2058
+ },
2059
+ {
2060
+ name: "liquidityType",
2061
+ type: "uint8",
2062
+ internalType: "enum LiquidityType"
2063
+ }
2064
+ ],
2065
+ outputs: [
2066
+ {
2067
+ name: "",
2068
+ type: "int24",
2069
+ internalType: "int24"
2070
+ },
2071
+ {
2072
+ name: "",
2073
+ type: "int24",
2074
+ internalType: "int24"
2075
+ },
2076
+ {
2077
+ name: "",
2078
+ type: "uint256",
2079
+ internalType: "uint256"
2080
+ },
2081
+ {
2082
+ name: "",
2083
+ type: "uint256",
2084
+ internalType: "uint256"
2085
+ }
2086
+ ],
2087
+ stateMutability: "view"
2088
+ },
2089
+ {
2090
+ type: "function",
2091
+ name: "getVaultInfo",
2092
+ inputs: [
2093
+ {
2094
+ name: "pool",
2095
+ type: "address",
2096
+ internalType: "address"
2097
+ },
2098
+ {
2099
+ name: "vault",
2100
+ type: "address",
2101
+ internalType: "address"
2102
+ },
2103
+ {
2104
+ name: "tokenInfo",
2105
+ type: "tuple",
2106
+ internalType: "struct TokenInfo",
2107
+ components: [
2108
+ {
2109
+ name: "token0",
2110
+ type: "address",
2111
+ internalType: "address"
2112
+ },
2113
+ {
2114
+ name: "token1",
2115
+ type: "address",
2116
+ internalType: "address"
2117
+ }
2118
+ ]
2119
+ }
2120
+ ],
2121
+ outputs: [
2122
+ {
2123
+ name: "vaultInfo",
2124
+ type: "tuple",
2125
+ internalType: "struct VaultInfo",
2126
+ components: [
2127
+ {
2128
+ name: "liquidityRatio",
2129
+ type: "uint256",
2130
+ internalType: "uint256"
2131
+ },
2132
+ {
2133
+ name: "circulatingSupply",
2134
+ type: "uint256",
2135
+ internalType: "uint256"
2136
+ },
2137
+ {
2138
+ name: "spotPriceX96",
2139
+ type: "uint256",
2140
+ internalType: "uint256"
2141
+ },
2142
+ {
2143
+ name: "anchorCapacity",
2144
+ type: "uint256",
2145
+ internalType: "uint256"
2146
+ },
2147
+ {
2148
+ name: "floorCapacity",
2149
+ type: "uint256",
2150
+ internalType: "uint256"
2151
+ },
2152
+ {
2153
+ name: "token0",
2154
+ type: "address",
2155
+ internalType: "address"
2156
+ },
2157
+ {
2158
+ name: "token1",
2159
+ type: "address",
2160
+ internalType: "address"
2161
+ },
2162
+ {
2163
+ name: "newFloor",
2164
+ type: "uint256",
2165
+ internalType: "uint256"
2166
+ },
2167
+ {
2168
+ name: "totalInterest",
2169
+ type: "uint256",
2170
+ internalType: "uint256"
2171
+ },
2172
+ {
2173
+ name: "initialized",
2174
+ type: "bool",
2175
+ internalType: "bool"
2176
+ },
2177
+ {
2178
+ name: "stakingContract",
2179
+ type: "address",
2180
+ internalType: "address"
2181
+ },
2182
+ {
2183
+ name: "sToken",
2184
+ type: "address",
2185
+ internalType: "address"
2186
+ }
2187
+ ]
2188
+ }
2189
+ ],
2190
+ stateMutability: "view"
2191
+ },
2192
+ {
2193
+ type: "function",
2194
+ name: "totalUnderlyingBalance",
2195
+ inputs: [
2196
+ {
2197
+ name: "pool",
2198
+ type: "address",
2199
+ internalType: "address"
2200
+ },
2201
+ {
2202
+ name: "vault",
2203
+ type: "address",
2204
+ internalType: "address"
2205
+ }
2206
+ ],
2207
+ outputs: [
2208
+ {
2209
+ name: "totalToken0",
2210
+ type: "uint256",
2211
+ internalType: "uint256"
2212
+ }
2213
+ ],
2214
+ stateMutability: "view"
2215
+ },
2216
+ {
2217
+ type: "error",
2218
+ name: "InsolvencyInvariant",
2219
+ inputs: []
2220
+ }
2221
+ ];
2222
+
2223
+ // data/abi/Resolver.json
2224
+ var Resolver_default = [
2225
+ {
2226
+ type: "constructor",
2227
+ inputs: [
2228
+ {
2229
+ name: "_deployer",
2230
+ type: "address",
2231
+ internalType: "address"
2232
+ }
2233
+ ],
2234
+ stateMutability: "nonpayable"
2235
+ },
2236
+ {
2237
+ type: "function",
2238
+ name: "areAddressesImported",
2239
+ inputs: [
2240
+ {
2241
+ name: "names",
2242
+ type: "bytes32[]",
2243
+ internalType: "bytes32[]"
2244
+ },
2245
+ {
2246
+ name: "destinations",
2247
+ type: "address[]",
2248
+ internalType: "address[]"
2249
+ }
2250
+ ],
2251
+ outputs: [
2252
+ {
2253
+ name: "",
2254
+ type: "bool",
2255
+ internalType: "bool"
2256
+ }
2257
+ ],
2258
+ stateMutability: "view"
2259
+ },
2260
+ {
2261
+ type: "function",
2262
+ name: "configureDeployerACL",
2263
+ inputs: [
2264
+ {
2265
+ name: "_vault",
2266
+ type: "address",
2267
+ internalType: "address"
2268
+ }
2269
+ ],
2270
+ outputs: [],
2271
+ stateMutability: "nonpayable"
2272
+ },
2273
+ {
2274
+ type: "function",
2275
+ name: "getAddress",
2276
+ inputs: [
2277
+ {
2278
+ name: "name",
2279
+ type: "bytes32",
2280
+ internalType: "bytes32"
2281
+ }
2282
+ ],
2283
+ outputs: [
2284
+ {
2285
+ name: "",
2286
+ type: "address",
2287
+ internalType: "address"
2288
+ }
2289
+ ],
2290
+ stateMutability: "view"
2291
+ },
2292
+ {
2293
+ type: "function",
2294
+ name: "getVaultAddress",
2295
+ inputs: [
2296
+ {
2297
+ name: "_vault",
2298
+ type: "address",
2299
+ internalType: "address"
2300
+ },
2301
+ {
2302
+ name: "name",
2303
+ type: "bytes32",
2304
+ internalType: "bytes32"
2305
+ }
2306
+ ],
2307
+ outputs: [
2308
+ {
2309
+ name: "",
2310
+ type: "address",
2311
+ internalType: "address"
2312
+ }
2313
+ ],
2314
+ stateMutability: "view"
2315
+ },
2316
+ {
2317
+ type: "function",
2318
+ name: "importAddresses",
2319
+ inputs: [
2320
+ {
2321
+ name: "names",
2322
+ type: "bytes32[]",
2323
+ internalType: "bytes32[]"
2324
+ },
2325
+ {
2326
+ name: "destinations",
2327
+ type: "address[]",
2328
+ internalType: "address[]"
2329
+ }
2330
+ ],
2331
+ outputs: [],
2332
+ stateMutability: "nonpayable"
2333
+ },
2334
+ {
2335
+ type: "function",
2336
+ name: "importVaultAddress",
2337
+ inputs: [
2338
+ {
2339
+ name: "_vault",
2340
+ type: "address",
2341
+ internalType: "address"
2342
+ },
2343
+ {
2344
+ name: "names",
2345
+ type: "bytes32[]",
2346
+ internalType: "bytes32[]"
2347
+ },
2348
+ {
2349
+ name: "destinations",
2350
+ type: "address[]",
2351
+ internalType: "address[]"
2352
+ }
2353
+ ],
2354
+ outputs: [],
2355
+ stateMutability: "nonpayable"
2356
+ },
2357
+ {
2358
+ type: "function",
2359
+ name: "initFactory",
2360
+ inputs: [
2361
+ {
2362
+ name: "_factory",
2363
+ type: "address",
2364
+ internalType: "address"
2365
+ }
2366
+ ],
2367
+ outputs: [],
2368
+ stateMutability: "nonpayable"
2369
+ },
2370
+ {
2371
+ type: "function",
2372
+ name: "owner",
2373
+ inputs: [],
2374
+ outputs: [
2375
+ {
2376
+ name: "",
2377
+ type: "address",
2378
+ internalType: "address"
2379
+ }
2380
+ ],
2381
+ stateMutability: "view"
2382
+ },
2383
+ {
2384
+ type: "function",
2385
+ name: "renounceOwnership",
2386
+ inputs: [],
2387
+ outputs: [],
2388
+ stateMutability: "nonpayable"
2389
+ },
2390
+ {
2391
+ type: "function",
2392
+ name: "requireAndGetAddress",
2393
+ inputs: [
2394
+ {
2395
+ name: "name",
2396
+ type: "bytes32",
2397
+ internalType: "bytes32"
2398
+ },
2399
+ {
2400
+ name: "reason",
2401
+ type: "string",
2402
+ internalType: "string"
2403
+ }
2404
+ ],
2405
+ outputs: [
2406
+ {
2407
+ name: "",
2408
+ type: "address",
2409
+ internalType: "address"
2410
+ }
2411
+ ],
2412
+ stateMutability: "view"
2413
+ },
2414
+ {
2415
+ type: "function",
2416
+ name: "requireDeployerACL",
2417
+ inputs: [
2418
+ {
2419
+ name: "_vault",
2420
+ type: "address",
2421
+ internalType: "address"
2422
+ }
2423
+ ],
2424
+ outputs: [],
2425
+ stateMutability: "view"
2426
+ },
2427
+ {
2428
+ type: "function",
2429
+ name: "transferOwnership",
2430
+ inputs: [
2431
+ {
2432
+ name: "newOwner",
2433
+ type: "address",
2434
+ internalType: "address"
2435
+ }
2436
+ ],
2437
+ outputs: [],
2438
+ stateMutability: "nonpayable"
2439
+ },
2440
+ {
2441
+ type: "event",
2442
+ name: "AddressImported",
2443
+ inputs: [
2444
+ {
2445
+ name: "name",
2446
+ type: "bytes32",
2447
+ indexed: false,
2448
+ internalType: "bytes32"
2449
+ },
2450
+ {
2451
+ name: "destination",
2452
+ type: "address",
2453
+ indexed: false,
2454
+ internalType: "address"
2455
+ }
2456
+ ],
2457
+ anonymous: false
2458
+ },
2459
+ {
2460
+ type: "event",
2461
+ name: "OwnershipTransferred",
2462
+ inputs: [
2463
+ {
2464
+ name: "previousOwner",
2465
+ type: "address",
2466
+ indexed: true,
2467
+ internalType: "address"
2468
+ },
2469
+ {
2470
+ name: "newOwner",
2471
+ type: "address",
2472
+ indexed: true,
2473
+ internalType: "address"
2474
+ }
2475
+ ],
2476
+ anonymous: false
2477
+ },
2478
+ {
2479
+ type: "error",
2480
+ name: "AddressNotFound",
2481
+ inputs: [
2482
+ {
2483
+ name: "reason",
2484
+ type: "string",
2485
+ internalType: "string"
2486
+ }
2487
+ ]
2488
+ },
2489
+ {
2490
+ type: "error",
2491
+ name: "InputLengthsMismatch",
2492
+ inputs: []
2493
+ },
2494
+ {
2495
+ type: "error",
2496
+ name: "InvalidAddress",
2497
+ inputs: []
2498
+ },
2499
+ {
2500
+ type: "error",
2501
+ name: "NotAllowed",
2502
+ inputs: []
2503
+ },
2504
+ {
2505
+ type: "error",
2506
+ name: "OnlyFactoryOrManagerAllowed",
2507
+ inputs: []
2508
+ },
2509
+ {
2510
+ type: "error",
2511
+ name: "OwnableInvalidOwner",
2512
+ inputs: [
2513
+ {
2514
+ name: "owner",
2515
+ type: "address",
2516
+ internalType: "address"
2517
+ }
2518
+ ]
2519
+ },
2520
+ {
2521
+ type: "error",
2522
+ name: "OwnableUnauthorizedAccount",
2523
+ inputs: [
2524
+ {
2525
+ name: "account",
2526
+ type: "address",
2527
+ internalType: "address"
2528
+ }
2529
+ ]
2530
+ }
2531
+ ];
2532
+
2533
+ // data/abi/RewardsCalculator.json
2534
+ var RewardsCalculator_default = [
2535
+ {
2536
+ type: "function",
2537
+ name: "calculateRewards",
2538
+ inputs: [
2539
+ {
2540
+ name: "params",
2541
+ type: "tuple",
2542
+ internalType: "struct RewardParams",
2543
+ components: [
2544
+ {
2545
+ name: "ethAmount",
2546
+ type: "uint256",
2547
+ internalType: "uint256"
2548
+ },
2549
+ {
2550
+ name: "circulating",
2551
+ type: "uint256",
2552
+ internalType: "uint256"
2553
+ },
2554
+ {
2555
+ name: "totalStaked",
2556
+ type: "uint256",
2557
+ internalType: "uint256"
2558
+ }
2559
+ ]
2560
+ }
2561
+ ],
2562
+ outputs: [
2563
+ {
2564
+ name: "",
2565
+ type: "uint256",
2566
+ internalType: "uint256"
2567
+ }
2568
+ ],
2569
+ stateMutability: "pure"
2570
+ },
2571
+ {
2572
+ type: "error",
2573
+ name: "InvalidParams",
2574
+ inputs: []
2575
+ }
2576
+ ];
2577
+
2578
+ // src/abi.ts
2579
+ var ABIS = {
2580
+ AdaptiveSupply: AdaptiveSupply_default,
2581
+ ExchangeHelper: ExchangeHelper_default,
2582
+ Factory: Factory_default,
2583
+ ModelHelper: ModelHelper_default,
2584
+ Resolver: Resolver_default,
2585
+ RewardsCalculator: RewardsCalculator_default
2586
+ };
2587
+ var meta = abi_meta_default;
2588
+ var ABI_SOURCE_REF = meta.ref;
2589
+ var ABI_FETCHED_AT = meta.fetchedAt;
2590
+ function listAbis() {
2591
+ return Object.keys(ABIS).sort();
2592
+ }
2593
+ function hasAbi(contract) {
2594
+ return Object.prototype.hasOwnProperty.call(ABIS, contract);
2595
+ }
2596
+ function getAbi(contract) {
2597
+ const abi = ABIS[contract];
2598
+ if (!abi) {
2599
+ const status = meta.contracts[contract];
2600
+ if (status && !status.available) {
2601
+ throw new Error(
2602
+ `ABI for "${contract}" is not bundled at oikos-cash/core@${meta.ref.slice(0, 8)}: ${status.reason ?? "unavailable at this ref"}`
2603
+ );
2604
+ }
2605
+ throw new Error(
2606
+ `Unknown contract "${contract}". Known contracts with ABIs: ${listAbis().join(", ")}.`
2607
+ );
2608
+ }
2609
+ return abi.slice();
2610
+ }
2611
+ function getAbiSourceMeta() {
2612
+ return {
2613
+ ref: meta.ref,
2614
+ fetchedAt: meta.fetchedAt,
2615
+ contracts: Object.fromEntries(
2616
+ Object.entries(meta.contracts).map(([k, v]) => [k, { ...v }])
2617
+ )
2618
+ };
2619
+ }
2620
+
24
2621
  // src/networks.ts
25
2622
  var NETWORKS = [
26
2623
  {
@@ -32,13 +2629,13 @@ var NETWORKS = [
32
2629
 
33
2630
  // src/index.ts
34
2631
  var deployment = deployment_default;
35
- var meta = meta_default;
36
- var SOURCE_TAG = meta.tag;
37
- var SOURCE_URL = meta.source;
38
- var FETCHED_AT = meta.fetchedAt;
39
- var SOURCE_SHA256 = meta.sha256;
2632
+ var meta2 = meta_default;
2633
+ var SOURCE_TAG = meta2.tag;
2634
+ var SOURCE_URL = meta2.source;
2635
+ var FETCHED_AT = meta2.fetchedAt;
2636
+ var SOURCE_SHA256 = meta2.sha256;
40
2637
  function getSourceMeta() {
41
- return { ...meta };
2638
+ return { ...meta2 };
42
2639
  }
43
2640
  function resolveChainId(network) {
44
2641
  if (typeof network === "number") {
@@ -90,6 +2687,12 @@ function isSupported(network) {
90
2687
  return false;
91
2688
  }
92
2689
  }
2690
+ function getContract(network, contract) {
2691
+ return {
2692
+ address: getAddress(network, contract),
2693
+ abi: getAbi(contract)
2694
+ };
2695
+ }
93
2696
  function getNetworkInfo(network) {
94
2697
  try {
95
2698
  const chainId = resolveChainId(network);
@@ -100,16 +2703,23 @@ function getNetworkInfo(network) {
100
2703
  }
101
2704
  }
102
2705
  export {
2706
+ ABI_FETCHED_AT,
2707
+ ABI_SOURCE_REF,
103
2708
  FETCHED_AT,
104
2709
  NETWORKS,
105
2710
  SOURCE_SHA256,
106
2711
  SOURCE_TAG,
107
2712
  SOURCE_URL,
108
2713
  deployment,
2714
+ getAbi,
2715
+ getAbiSourceMeta,
109
2716
  getAddress,
110
2717
  getAddresses,
2718
+ getContract,
111
2719
  getNetworkInfo,
112
2720
  getSourceMeta,
113
2721
  getSupportedNetworks,
114
- isSupported
2722
+ hasAbi,
2723
+ isSupported,
2724
+ listAbis
115
2725
  };