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