@gearbox-protocol/deploy-tools 5.9.19 → 5.9.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.mjs +1030 -293
  2. package/package.json +2 -2
package/dist/index.mjs CHANGED
@@ -345219,149 +345219,6 @@ var iCreditAccountCompressorAbi = [
345219
345219
  stateMutability: "view"
345220
345220
  }
345221
345221
  ];
345222
- var iGaugeCompressorAbi = [
345223
- {
345224
- type: "function",
345225
- inputs: [],
345226
- name: "contractType",
345227
- outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }],
345228
- stateMutability: "view"
345229
- },
345230
- {
345231
- type: "function",
345232
- inputs: [
345233
- { name: "gauge", internalType: "address", type: "address" },
345234
- { name: "staker", internalType: "address", type: "address" }
345235
- ],
345236
- name: "getGauge",
345237
- outputs: [
345238
- {
345239
- name: "result",
345240
- internalType: "struct GaugeInfo",
345241
- type: "tuple",
345242
- components: [
345243
- { name: "addr", internalType: "address", type: "address" },
345244
- { name: "pool", internalType: "address", type: "address" },
345245
- { name: "symbol", internalType: "string", type: "string" },
345246
- { name: "name", internalType: "string", type: "string" },
345247
- { name: "voter", internalType: "address", type: "address" },
345248
- { name: "underlying", internalType: "address", type: "address" },
345249
- { name: "currentEpoch", internalType: "uint16", type: "uint16" },
345250
- { name: "epochLastUpdate", internalType: "uint16", type: "uint16" },
345251
- { name: "epochFrozen", internalType: "bool", type: "bool" },
345252
- {
345253
- name: "quotaParams",
345254
- internalType: "struct GaugeQuotaParams[]",
345255
- type: "tuple[]",
345256
- components: [
345257
- { name: "token", internalType: "address", type: "address" },
345258
- { name: "minRate", internalType: "uint16", type: "uint16" },
345259
- { name: "maxRate", internalType: "uint16", type: "uint16" },
345260
- {
345261
- name: "totalVotesLpSide",
345262
- internalType: "uint96",
345263
- type: "uint96"
345264
- },
345265
- {
345266
- name: "totalVotesCaSide",
345267
- internalType: "uint96",
345268
- type: "uint96"
345269
- },
345270
- {
345271
- name: "stakerVotesLpSide",
345272
- internalType: "uint96",
345273
- type: "uint96"
345274
- },
345275
- {
345276
- name: "stakerVotesCaSide",
345277
- internalType: "uint96",
345278
- type: "uint96"
345279
- }
345280
- ]
345281
- }
345282
- ]
345283
- }
345284
- ],
345285
- stateMutability: "view"
345286
- },
345287
- {
345288
- type: "function",
345289
- inputs: [
345290
- {
345291
- name: "filter",
345292
- internalType: "struct MarketFilter",
345293
- type: "tuple",
345294
- components: [
345295
- {
345296
- name: "configurators",
345297
- internalType: "address[]",
345298
- type: "address[]"
345299
- },
345300
- { name: "pools", internalType: "address[]", type: "address[]" },
345301
- { name: "underlying", internalType: "address", type: "address" }
345302
- ]
345303
- },
345304
- { name: "staker", internalType: "address", type: "address" }
345305
- ],
345306
- name: "getGauges",
345307
- outputs: [
345308
- {
345309
- name: "result",
345310
- internalType: "struct GaugeInfo[]",
345311
- type: "tuple[]",
345312
- components: [
345313
- { name: "addr", internalType: "address", type: "address" },
345314
- { name: "pool", internalType: "address", type: "address" },
345315
- { name: "symbol", internalType: "string", type: "string" },
345316
- { name: "name", internalType: "string", type: "string" },
345317
- { name: "voter", internalType: "address", type: "address" },
345318
- { name: "underlying", internalType: "address", type: "address" },
345319
- { name: "currentEpoch", internalType: "uint16", type: "uint16" },
345320
- { name: "epochLastUpdate", internalType: "uint16", type: "uint16" },
345321
- { name: "epochFrozen", internalType: "bool", type: "bool" },
345322
- {
345323
- name: "quotaParams",
345324
- internalType: "struct GaugeQuotaParams[]",
345325
- type: "tuple[]",
345326
- components: [
345327
- { name: "token", internalType: "address", type: "address" },
345328
- { name: "minRate", internalType: "uint16", type: "uint16" },
345329
- { name: "maxRate", internalType: "uint16", type: "uint16" },
345330
- {
345331
- name: "totalVotesLpSide",
345332
- internalType: "uint96",
345333
- type: "uint96"
345334
- },
345335
- {
345336
- name: "totalVotesCaSide",
345337
- internalType: "uint96",
345338
- type: "uint96"
345339
- },
345340
- {
345341
- name: "stakerVotesLpSide",
345342
- internalType: "uint96",
345343
- type: "uint96"
345344
- },
345345
- {
345346
- name: "stakerVotesCaSide",
345347
- internalType: "uint96",
345348
- type: "uint96"
345349
- }
345350
- ]
345351
- }
345352
- ]
345353
- }
345354
- ],
345355
- stateMutability: "view"
345356
- },
345357
- {
345358
- type: "function",
345359
- inputs: [],
345360
- name: "version",
345361
- outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
345362
- stateMutability: "view"
345363
- }
345364
- ];
345365
345222
  var iMarketCompressorAbi = [
345366
345223
  {
345367
345224
  type: "function",
@@ -368715,212 +368572,888 @@ var iCreditFacadeV310MulticallAbi = [
368715
368572
  var iMarketConfiguratorV310Abi = [
368716
368573
  {
368717
368574
  type: "function",
368718
- name: "adapterFactory",
368575
+ name: "acl",
368719
368576
  inputs: [],
368720
- outputs: [
368721
- {
368722
- name: "",
368723
- type: "address",
368724
- internalType: "address"
368725
- }
368726
- ],
368577
+ outputs: [{ name: "", type: "address", internalType: "address" }],
368727
368578
  stateMutability: "view"
368728
368579
  },
368580
+ {
368581
+ type: "function",
368582
+ name: "addPeripheryContract",
368583
+ inputs: [
368584
+ { name: "peripheryContract", type: "address", internalType: "address" }
368585
+ ],
368586
+ outputs: [],
368587
+ stateMutability: "nonpayable"
368588
+ },
368589
+ {
368590
+ type: "function",
368591
+ name: "addToken",
368592
+ inputs: [
368593
+ { name: "pool", type: "address", internalType: "address" },
368594
+ { name: "token", type: "address", internalType: "address" },
368595
+ { name: "priceFeed", type: "address", internalType: "address" }
368596
+ ],
368597
+ outputs: [],
368598
+ stateMutability: "nonpayable"
368599
+ },
368729
368600
  {
368730
368601
  type: "function",
368731
368602
  name: "addressProvider",
368732
368603
  inputs: [],
368733
- outputs: [
368734
- {
368735
- name: "",
368736
- type: "address",
368737
- internalType: "address"
368738
- }
368604
+ outputs: [{ name: "", type: "address", internalType: "address" }],
368605
+ stateMutability: "view"
368606
+ },
368607
+ {
368608
+ type: "function",
368609
+ name: "admin",
368610
+ inputs: [],
368611
+ outputs: [{ name: "", type: "address", internalType: "address" }],
368612
+ stateMutability: "view"
368613
+ },
368614
+ {
368615
+ type: "function",
368616
+ name: "authorizeFactory",
368617
+ inputs: [
368618
+ { name: "factory", type: "address", internalType: "address" },
368619
+ { name: "suite", type: "address", internalType: "address" },
368620
+ { name: "target", type: "address", internalType: "address" }
368739
368621
  ],
368622
+ outputs: [],
368623
+ stateMutability: "nonpayable"
368624
+ },
368625
+ {
368626
+ type: "function",
368627
+ name: "bytecodeRepository",
368628
+ inputs: [],
368629
+ outputs: [{ name: "", type: "address", internalType: "address" }],
368740
368630
  stateMutability: "view"
368741
368631
  },
368632
+ {
368633
+ type: "function",
368634
+ name: "configureCreditSuite",
368635
+ inputs: [
368636
+ { name: "creditManager", type: "address", internalType: "address" },
368637
+ { name: "data", type: "bytes", internalType: "bytes" }
368638
+ ],
368639
+ outputs: [],
368640
+ stateMutability: "nonpayable"
368641
+ },
368642
+ {
368643
+ type: "function",
368644
+ name: "configureInterestRateModel",
368645
+ inputs: [
368646
+ { name: "pool", type: "address", internalType: "address" },
368647
+ { name: "data", type: "bytes", internalType: "bytes" }
368648
+ ],
368649
+ outputs: [],
368650
+ stateMutability: "nonpayable"
368651
+ },
368652
+ {
368653
+ type: "function",
368654
+ name: "configureLossPolicy",
368655
+ inputs: [
368656
+ { name: "pool", type: "address", internalType: "address" },
368657
+ { name: "data", type: "bytes", internalType: "bytes" }
368658
+ ],
368659
+ outputs: [],
368660
+ stateMutability: "nonpayable"
368661
+ },
368662
+ {
368663
+ type: "function",
368664
+ name: "configurePool",
368665
+ inputs: [
368666
+ { name: "pool", type: "address", internalType: "address" },
368667
+ { name: "data", type: "bytes", internalType: "bytes" }
368668
+ ],
368669
+ outputs: [],
368670
+ stateMutability: "nonpayable"
368671
+ },
368672
+ {
368673
+ type: "function",
368674
+ name: "configurePriceOracle",
368675
+ inputs: [
368676
+ { name: "pool", type: "address", internalType: "address" },
368677
+ { name: "data", type: "bytes", internalType: "bytes" }
368678
+ ],
368679
+ outputs: [],
368680
+ stateMutability: "nonpayable"
368681
+ },
368682
+ {
368683
+ type: "function",
368684
+ name: "configureRateKeeper",
368685
+ inputs: [
368686
+ { name: "pool", type: "address", internalType: "address" },
368687
+ { name: "data", type: "bytes", internalType: "bytes" }
368688
+ ],
368689
+ outputs: [],
368690
+ stateMutability: "nonpayable"
368691
+ },
368742
368692
  {
368743
368693
  type: "function",
368744
368694
  name: "contractType",
368745
368695
  inputs: [],
368746
- outputs: [
368747
- {
368748
- name: "",
368749
- type: "bytes32",
368750
- internalType: "bytes32"
368751
- }
368752
- ],
368696
+ outputs: [{ name: "", type: "bytes32", internalType: "bytes32" }],
368753
368697
  stateMutability: "view"
368754
368698
  },
368755
368699
  {
368756
368700
  type: "function",
368757
368701
  name: "contractsRegister",
368758
368702
  inputs: [],
368703
+ outputs: [{ name: "", type: "address", internalType: "address" }],
368704
+ stateMutability: "view"
368705
+ },
368706
+ {
368707
+ type: "function",
368708
+ name: "createCreditSuite",
368709
+ inputs: [
368710
+ { name: "minorVersion", type: "uint256", internalType: "uint256" },
368711
+ { name: "pool", type: "address", internalType: "address" },
368712
+ { name: "encdodedParams", type: "bytes", internalType: "bytes" }
368713
+ ],
368759
368714
  outputs: [
368715
+ { name: "creditManager", type: "address", internalType: "address" }
368716
+ ],
368717
+ stateMutability: "nonpayable"
368718
+ },
368719
+ {
368720
+ type: "function",
368721
+ name: "createMarket",
368722
+ inputs: [
368723
+ { name: "minorVersion", type: "uint256", internalType: "uint256" },
368724
+ { name: "underlying", type: "address", internalType: "address" },
368725
+ { name: "name", type: "string", internalType: "string" },
368726
+ { name: "symbol", type: "string", internalType: "string" },
368760
368727
  {
368761
- name: "",
368762
- type: "address",
368763
- internalType: "address"
368764
- }
368728
+ name: "interestRateModelParams",
368729
+ type: "tuple",
368730
+ internalType: "struct DeployParams",
368731
+ components: [
368732
+ { name: "postfix", type: "bytes32", internalType: "bytes32" },
368733
+ { name: "salt", type: "bytes32", internalType: "bytes32" },
368734
+ { name: "constructorParams", type: "bytes", internalType: "bytes" }
368735
+ ]
368736
+ },
368737
+ {
368738
+ name: "rateKeeperParams",
368739
+ type: "tuple",
368740
+ internalType: "struct DeployParams",
368741
+ components: [
368742
+ { name: "postfix", type: "bytes32", internalType: "bytes32" },
368743
+ { name: "salt", type: "bytes32", internalType: "bytes32" },
368744
+ { name: "constructorParams", type: "bytes", internalType: "bytes" }
368745
+ ]
368746
+ },
368747
+ {
368748
+ name: "lossPolicyParams",
368749
+ type: "tuple",
368750
+ internalType: "struct DeployParams",
368751
+ components: [
368752
+ { name: "postfix", type: "bytes32", internalType: "bytes32" },
368753
+ { name: "salt", type: "bytes32", internalType: "bytes32" },
368754
+ { name: "constructorParams", type: "bytes", internalType: "bytes" }
368755
+ ]
368756
+ },
368757
+ { name: "underlyingPriceFeed", type: "address", internalType: "address" }
368765
368758
  ],
368759
+ outputs: [{ name: "pool", type: "address", internalType: "address" }],
368760
+ stateMutability: "nonpayable"
368761
+ },
368762
+ {
368763
+ type: "function",
368764
+ name: "curatorName",
368765
+ inputs: [],
368766
+ outputs: [{ name: "", type: "string", internalType: "string" }],
368766
368767
  stateMutability: "view"
368767
368768
  },
368768
368769
  {
368769
368770
  type: "function",
368770
- name: "controller",
368771
+ name: "emergencyAdmin",
368771
368772
  inputs: [],
368773
+ outputs: [{ name: "", type: "address", internalType: "address" }],
368774
+ stateMutability: "view"
368775
+ },
368776
+ {
368777
+ type: "function",
368778
+ name: "emergencyConfigureCreditSuite",
368779
+ inputs: [
368780
+ { name: "creditManager", type: "address", internalType: "address" },
368781
+ { name: "data", type: "bytes", internalType: "bytes" }
368782
+ ],
368783
+ outputs: [],
368784
+ stateMutability: "nonpayable"
368785
+ },
368786
+ {
368787
+ type: "function",
368788
+ name: "emergencyConfigureInterestRateModel",
368789
+ inputs: [
368790
+ { name: "pool", type: "address", internalType: "address" },
368791
+ { name: "data", type: "bytes", internalType: "bytes" }
368792
+ ],
368793
+ outputs: [],
368794
+ stateMutability: "nonpayable"
368795
+ },
368796
+ {
368797
+ type: "function",
368798
+ name: "emergencyConfigureLossPolicy",
368799
+ inputs: [
368800
+ { name: "pool", type: "address", internalType: "address" },
368801
+ { name: "data", type: "bytes", internalType: "bytes" }
368802
+ ],
368803
+ outputs: [],
368804
+ stateMutability: "nonpayable"
368805
+ },
368806
+ {
368807
+ type: "function",
368808
+ name: "emergencyConfigurePool",
368809
+ inputs: [
368810
+ { name: "pool", type: "address", internalType: "address" },
368811
+ { name: "data", type: "bytes", internalType: "bytes" }
368812
+ ],
368813
+ outputs: [],
368814
+ stateMutability: "nonpayable"
368815
+ },
368816
+ {
368817
+ type: "function",
368818
+ name: "emergencyConfigurePriceOracle",
368819
+ inputs: [
368820
+ { name: "pool", type: "address", internalType: "address" },
368821
+ { name: "data", type: "bytes", internalType: "bytes" }
368822
+ ],
368823
+ outputs: [],
368824
+ stateMutability: "nonpayable"
368825
+ },
368826
+ {
368827
+ type: "function",
368828
+ name: "emergencyConfigureRateKeeper",
368829
+ inputs: [
368830
+ { name: "pool", type: "address", internalType: "address" },
368831
+ { name: "data", type: "bytes", internalType: "bytes" }
368832
+ ],
368833
+ outputs: [],
368834
+ stateMutability: "nonpayable"
368835
+ },
368836
+ {
368837
+ type: "function",
368838
+ name: "emergencyRevokeRole",
368839
+ inputs: [
368840
+ { name: "role", type: "bytes32", internalType: "bytes32" },
368841
+ { name: "account", type: "address", internalType: "address" }
368842
+ ],
368843
+ outputs: [],
368844
+ stateMutability: "nonpayable"
368845
+ },
368846
+ {
368847
+ type: "function",
368848
+ name: "getAuthorizedFactory",
368849
+ inputs: [{ name: "target", type: "address", internalType: "address" }],
368850
+ outputs: [{ name: "", type: "address", internalType: "address" }],
368851
+ stateMutability: "view"
368852
+ },
368853
+ {
368854
+ type: "function",
368855
+ name: "getCreditFactory",
368856
+ inputs: [
368857
+ { name: "creditManager", type: "address", internalType: "address" }
368858
+ ],
368859
+ outputs: [{ name: "", type: "address", internalType: "address" }],
368860
+ stateMutability: "view"
368861
+ },
368862
+ {
368863
+ type: "function",
368864
+ name: "getFactoryTargets",
368865
+ inputs: [
368866
+ { name: "factory", type: "address", internalType: "address" },
368867
+ { name: "suite", type: "address", internalType: "address" }
368868
+ ],
368869
+ outputs: [{ name: "", type: "address[]", internalType: "address[]" }],
368870
+ stateMutability: "view"
368871
+ },
368872
+ {
368873
+ type: "function",
368874
+ name: "getMarketFactories",
368875
+ inputs: [{ name: "pool", type: "address", internalType: "address" }],
368772
368876
  outputs: [
368773
368877
  {
368774
368878
  name: "",
368775
- type: "address",
368776
- internalType: "address"
368879
+ type: "tuple",
368880
+ internalType: "struct MarketFactories",
368881
+ components: [
368882
+ { name: "poolFactory", type: "address", internalType: "address" },
368883
+ {
368884
+ name: "priceOracleFactory",
368885
+ type: "address",
368886
+ internalType: "address"
368887
+ },
368888
+ {
368889
+ name: "interestRateModelFactory",
368890
+ type: "address",
368891
+ internalType: "address"
368892
+ },
368893
+ {
368894
+ name: "rateKeeperFactory",
368895
+ type: "address",
368896
+ internalType: "address"
368897
+ },
368898
+ {
368899
+ name: "lossPolicyFactory",
368900
+ type: "address",
368901
+ internalType: "address"
368902
+ }
368903
+ ]
368777
368904
  }
368778
368905
  ],
368779
368906
  stateMutability: "view"
368780
368907
  },
368781
368908
  {
368782
368909
  type: "function",
368783
- name: "CreditSuite",
368784
- inputs: [],
368785
- outputs: [
368910
+ name: "getPeripheryContracts",
368911
+ inputs: [{ name: "domain", type: "bytes32", internalType: "bytes32" }],
368912
+ outputs: [{ name: "", type: "address[]", internalType: "address[]" }],
368913
+ stateMutability: "view"
368914
+ },
368915
+ {
368916
+ type: "function",
368917
+ name: "grantRole",
368918
+ inputs: [
368919
+ { name: "role", type: "bytes32", internalType: "bytes32" },
368920
+ { name: "account", type: "address", internalType: "address" }
368921
+ ],
368922
+ outputs: [],
368923
+ stateMutability: "nonpayable"
368924
+ },
368925
+ {
368926
+ type: "function",
368927
+ name: "isPeripheryContract",
368928
+ inputs: [
368929
+ { name: "domain", type: "bytes32", internalType: "bytes32" },
368930
+ { name: "peripheryContract", type: "address", internalType: "address" }
368931
+ ],
368932
+ outputs: [{ name: "", type: "bool", internalType: "bool" }],
368933
+ stateMutability: "view"
368934
+ },
368935
+ {
368936
+ type: "function",
368937
+ name: "previewCreateCreditSuite",
368938
+ inputs: [
368939
+ { name: "marketMinorVersion", type: "uint256", internalType: "uint256" },
368786
368940
  {
368787
- name: "",
368788
- type: "address",
368789
- internalType: "address"
368790
- }
368941
+ name: "creditSuiteMinorVersion",
368942
+ type: "uint256",
368943
+ internalType: "uint256"
368944
+ },
368945
+ { name: "underlying", type: "address", internalType: "address" },
368946
+ { name: "name", type: "string", internalType: "string" },
368947
+ { name: "symbol", type: "string", internalType: "string" },
368948
+ { name: "encodedParams", type: "bytes", internalType: "bytes" }
368949
+ ],
368950
+ outputs: [
368951
+ { name: "creditManager", type: "address", internalType: "address" }
368791
368952
  ],
368792
368953
  stateMutability: "view"
368793
368954
  },
368794
368955
  {
368795
368956
  type: "function",
368796
- name: "interestModelFactory",
368797
- inputs: [],
368957
+ name: "previewCreateCreditSuite",
368958
+ inputs: [
368959
+ { name: "minorVersion", type: "uint256", internalType: "uint256" },
368960
+ { name: "pool", type: "address", internalType: "address" },
368961
+ { name: "encodedParams", type: "bytes", internalType: "bytes" }
368962
+ ],
368798
368963
  outputs: [
368799
- {
368800
- name: "",
368801
- type: "address",
368802
- internalType: "address"
368803
- }
368964
+ { name: "creditManager", type: "address", internalType: "address" }
368804
368965
  ],
368805
368966
  stateMutability: "view"
368806
368967
  },
368807
368968
  {
368808
368969
  type: "function",
368809
- name: "owner",
368970
+ name: "previewCreateMarket",
368971
+ inputs: [
368972
+ { name: "minorVersion", type: "uint256", internalType: "uint256" },
368973
+ { name: "underlying", type: "address", internalType: "address" },
368974
+ { name: "name", type: "string", internalType: "string" },
368975
+ { name: "symbol", type: "string", internalType: "string" }
368976
+ ],
368977
+ outputs: [{ name: "pool", type: "address", internalType: "address" }],
368978
+ stateMutability: "view"
368979
+ },
368980
+ {
368981
+ type: "function",
368982
+ name: "removePeripheryContract",
368983
+ inputs: [
368984
+ { name: "peripheryContract", type: "address", internalType: "address" }
368985
+ ],
368986
+ outputs: [],
368987
+ stateMutability: "nonpayable"
368988
+ },
368989
+ {
368990
+ type: "function",
368991
+ name: "revokeRole",
368992
+ inputs: [
368993
+ { name: "role", type: "bytes32", internalType: "bytes32" },
368994
+ { name: "account", type: "address", internalType: "address" }
368995
+ ],
368996
+ outputs: [],
368997
+ stateMutability: "nonpayable"
368998
+ },
368999
+ {
369000
+ type: "function",
369001
+ name: "setEmergencyAdmin",
369002
+ inputs: [
369003
+ { name: "newEmergencyAdmin", type: "address", internalType: "address" }
369004
+ ],
369005
+ outputs: [],
369006
+ stateMutability: "nonpayable"
369007
+ },
369008
+ {
369009
+ type: "function",
369010
+ name: "shutdownCreditSuite",
369011
+ inputs: [
369012
+ { name: "creditManager", type: "address", internalType: "address" }
369013
+ ],
369014
+ outputs: [],
369015
+ stateMutability: "nonpayable"
369016
+ },
369017
+ {
369018
+ type: "function",
369019
+ name: "shutdownMarket",
369020
+ inputs: [{ name: "pool", type: "address", internalType: "address" }],
369021
+ outputs: [],
369022
+ stateMutability: "nonpayable"
369023
+ },
369024
+ {
369025
+ type: "function",
369026
+ name: "treasury",
368810
369027
  inputs: [],
368811
- outputs: [
369028
+ outputs: [{ name: "", type: "address", internalType: "address" }],
369029
+ stateMutability: "view"
369030
+ },
369031
+ {
369032
+ type: "function",
369033
+ name: "unauthorizeFactory",
369034
+ inputs: [
369035
+ { name: "factory", type: "address", internalType: "address" },
369036
+ { name: "suite", type: "address", internalType: "address" },
369037
+ { name: "target", type: "address", internalType: "address" }
369038
+ ],
369039
+ outputs: [],
369040
+ stateMutability: "nonpayable"
369041
+ },
369042
+ {
369043
+ type: "function",
369044
+ name: "updateInterestRateModel",
369045
+ inputs: [
369046
+ { name: "pool", type: "address", internalType: "address" },
368812
369047
  {
368813
- name: "",
368814
- type: "address",
368815
- internalType: "address"
369048
+ name: "params",
369049
+ type: "tuple",
369050
+ internalType: "struct DeployParams",
369051
+ components: [
369052
+ { name: "postfix", type: "bytes32", internalType: "bytes32" },
369053
+ { name: "salt", type: "bytes32", internalType: "bytes32" },
369054
+ { name: "constructorParams", type: "bytes", internalType: "bytes" }
369055
+ ]
368816
369056
  }
368817
369057
  ],
368818
- stateMutability: "view"
369058
+ outputs: [{ name: "irm", type: "address", internalType: "address" }],
369059
+ stateMutability: "nonpayable"
368819
369060
  },
368820
369061
  {
368821
369062
  type: "function",
368822
- name: "poolFactory",
368823
- inputs: [],
368824
- outputs: [
369063
+ name: "updateLossPolicy",
369064
+ inputs: [
369065
+ { name: "pool", type: "address", internalType: "address" },
368825
369066
  {
368826
- name: "",
368827
- type: "address",
368828
- internalType: "address"
369067
+ name: "params",
369068
+ type: "tuple",
369069
+ internalType: "struct DeployParams",
369070
+ components: [
369071
+ { name: "postfix", type: "bytes32", internalType: "bytes32" },
369072
+ { name: "salt", type: "bytes32", internalType: "bytes32" },
369073
+ { name: "constructorParams", type: "bytes", internalType: "bytes" }
369074
+ ]
368829
369075
  }
368830
369076
  ],
368831
- stateMutability: "view"
369077
+ outputs: [{ name: "lossPolicy", type: "address", internalType: "address" }],
369078
+ stateMutability: "nonpayable"
368832
369079
  },
368833
369080
  {
368834
369081
  type: "function",
368835
- name: "pools",
368836
- inputs: [],
369082
+ name: "updatePriceOracle",
369083
+ inputs: [{ name: "pool", type: "address", internalType: "address" }],
368837
369084
  outputs: [
369085
+ { name: "priceOracle", type: "address", internalType: "address" }
369086
+ ],
369087
+ stateMutability: "nonpayable"
369088
+ },
369089
+ {
369090
+ type: "function",
369091
+ name: "updateRateKeeper",
369092
+ inputs: [
369093
+ { name: "pool", type: "address", internalType: "address" },
368838
369094
  {
368839
- name: "",
368840
- type: "address[]",
368841
- internalType: "address[]"
369095
+ name: "params",
369096
+ type: "tuple",
369097
+ internalType: "struct DeployParams",
369098
+ components: [
369099
+ { name: "postfix", type: "bytes32", internalType: "bytes32" },
369100
+ { name: "salt", type: "bytes32", internalType: "bytes32" },
369101
+ { name: "constructorParams", type: "bytes", internalType: "bytes" }
369102
+ ]
368842
369103
  }
368843
369104
  ],
368844
- stateMutability: "view"
369105
+ outputs: [{ name: "rateKeeper", type: "address", internalType: "address" }],
369106
+ stateMutability: "nonpayable"
369107
+ },
369108
+ {
369109
+ type: "function",
369110
+ name: "upgradeCreditFactory",
369111
+ inputs: [
369112
+ { name: "creditManager", type: "address", internalType: "address" }
369113
+ ],
369114
+ outputs: [],
369115
+ stateMutability: "nonpayable"
369116
+ },
369117
+ {
369118
+ type: "function",
369119
+ name: "upgradeInterestRateModelFactory",
369120
+ inputs: [{ name: "pool", type: "address", internalType: "address" }],
369121
+ outputs: [],
369122
+ stateMutability: "nonpayable"
369123
+ },
369124
+ {
369125
+ type: "function",
369126
+ name: "upgradeLossPolicyFactory",
369127
+ inputs: [{ name: "pool", type: "address", internalType: "address" }],
369128
+ outputs: [],
369129
+ stateMutability: "nonpayable"
369130
+ },
369131
+ {
369132
+ type: "function",
369133
+ name: "upgradePoolFactory",
369134
+ inputs: [{ name: "pool", type: "address", internalType: "address" }],
369135
+ outputs: [],
369136
+ stateMutability: "nonpayable"
369137
+ },
369138
+ {
369139
+ type: "function",
369140
+ name: "upgradePriceOracleFactory",
369141
+ inputs: [{ name: "pool", type: "address", internalType: "address" }],
369142
+ outputs: [],
369143
+ stateMutability: "nonpayable"
369144
+ },
369145
+ {
369146
+ type: "function",
369147
+ name: "upgradeRateKeeperFactory",
369148
+ inputs: [{ name: "pool", type: "address", internalType: "address" }],
369149
+ outputs: [],
369150
+ stateMutability: "nonpayable"
368845
369151
  },
368846
369152
  {
368847
369153
  type: "function",
368848
- name: "priceOracleFactory",
369154
+ name: "version",
368849
369155
  inputs: [],
368850
- outputs: [
369156
+ outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
369157
+ stateMutability: "view"
369158
+ },
369159
+ {
369160
+ type: "event",
369161
+ name: "AddPeripheryContract",
369162
+ inputs: [
368851
369163
  {
368852
- name: "",
369164
+ name: "domain",
369165
+ type: "bytes32",
369166
+ indexed: true,
369167
+ internalType: "bytes32"
369168
+ },
369169
+ {
369170
+ name: "peripheryContract",
368853
369171
  type: "address",
369172
+ indexed: true,
368854
369173
  internalType: "address"
368855
369174
  }
368856
369175
  ],
368857
- stateMutability: "view"
369176
+ anonymous: false
368858
369177
  },
368859
369178
  {
368860
- type: "function",
368861
- name: "treasury",
368862
- inputs: [],
368863
- outputs: [
369179
+ type: "event",
369180
+ name: "AddToken",
369181
+ inputs: [
369182
+ { name: "pool", type: "address", indexed: true, internalType: "address" },
368864
369183
  {
368865
- name: "",
369184
+ name: "token",
368866
369185
  type: "address",
369186
+ indexed: true,
368867
369187
  internalType: "address"
368868
369188
  }
368869
369189
  ],
368870
- stateMutability: "view"
369190
+ anonymous: false
368871
369191
  },
368872
369192
  {
368873
- type: "function",
368874
- name: "version",
368875
- inputs: [],
368876
- outputs: [
369193
+ type: "event",
369194
+ name: "AuthorizeFactory",
369195
+ inputs: [
368877
369196
  {
368878
- name: "",
368879
- type: "uint256",
368880
- internalType: "uint256"
369197
+ name: "factory",
369198
+ type: "address",
369199
+ indexed: true,
369200
+ internalType: "address"
369201
+ },
369202
+ {
369203
+ name: "suite",
369204
+ type: "address",
369205
+ indexed: true,
369206
+ internalType: "address"
369207
+ },
369208
+ {
369209
+ name: "target",
369210
+ type: "address",
369211
+ indexed: true,
369212
+ internalType: "address"
368881
369213
  }
368882
369214
  ],
368883
- stateMutability: "view"
369215
+ anonymous: false
368884
369216
  },
368885
369217
  {
368886
369218
  type: "event",
368887
- name: "CreateMarket",
369219
+ name: "ConfigureCreditSuite",
368888
369220
  inputs: [
368889
369221
  {
368890
- name: "pool",
369222
+ name: "creditManager",
368891
369223
  type: "address",
368892
369224
  indexed: true,
368893
369225
  internalType: "address"
368894
369226
  },
369227
+ { name: "data", type: "bytes", indexed: false, internalType: "bytes" }
369228
+ ],
369229
+ anonymous: false
369230
+ },
369231
+ {
369232
+ type: "event",
369233
+ name: "ConfigureInterestRateModel",
369234
+ inputs: [
369235
+ { name: "pool", type: "address", indexed: true, internalType: "address" },
369236
+ { name: "data", type: "bytes", indexed: false, internalType: "bytes" }
369237
+ ],
369238
+ anonymous: false
369239
+ },
369240
+ {
369241
+ type: "event",
369242
+ name: "ConfigureLossPolicy",
369243
+ inputs: [
369244
+ { name: "pool", type: "address", indexed: true, internalType: "address" },
369245
+ { name: "data", type: "bytes", indexed: false, internalType: "bytes" }
369246
+ ],
369247
+ anonymous: false
369248
+ },
369249
+ {
369250
+ type: "event",
369251
+ name: "ConfigurePool",
369252
+ inputs: [
369253
+ { name: "pool", type: "address", indexed: true, internalType: "address" },
369254
+ { name: "data", type: "bytes", indexed: false, internalType: "bytes" }
369255
+ ],
369256
+ anonymous: false
369257
+ },
369258
+ {
369259
+ type: "event",
369260
+ name: "ConfigurePriceOracle",
369261
+ inputs: [
369262
+ { name: "pool", type: "address", indexed: true, internalType: "address" },
369263
+ { name: "data", type: "bytes", indexed: false, internalType: "bytes" }
369264
+ ],
369265
+ anonymous: false
369266
+ },
369267
+ {
369268
+ type: "event",
369269
+ name: "ConfigureRateKeeper",
369270
+ inputs: [
369271
+ { name: "pool", type: "address", indexed: true, internalType: "address" },
369272
+ { name: "data", type: "bytes", indexed: false, internalType: "bytes" }
369273
+ ],
369274
+ anonymous: false
369275
+ },
369276
+ {
369277
+ type: "event",
369278
+ name: "CreateCreditSuite",
369279
+ inputs: [
368895
369280
  {
368896
- name: "underlying",
369281
+ name: "creditManager",
368897
369282
  type: "address",
368898
369283
  indexed: true,
368899
369284
  internalType: "address"
368900
369285
  },
368901
369286
  {
368902
- name: "_name",
368903
- type: "string",
369287
+ name: "factory",
369288
+ type: "address",
368904
369289
  indexed: false,
368905
- internalType: "string"
369290
+ internalType: "address"
369291
+ }
369292
+ ],
369293
+ anonymous: false
369294
+ },
369295
+ {
369296
+ type: "event",
369297
+ name: "CreateMarket",
369298
+ inputs: [
369299
+ { name: "pool", type: "address", indexed: true, internalType: "address" },
369300
+ {
369301
+ name: "priceOracle",
369302
+ type: "address",
369303
+ indexed: false,
369304
+ internalType: "address"
368906
369305
  },
368907
369306
  {
368908
- name: "_symbol",
368909
- type: "string",
369307
+ name: "interestRateModel",
369308
+ type: "address",
368910
369309
  indexed: false,
368911
- internalType: "string"
369310
+ internalType: "address"
369311
+ },
369312
+ {
369313
+ name: "rateKeeper",
369314
+ type: "address",
369315
+ indexed: false,
369316
+ internalType: "address"
369317
+ },
369318
+ {
369319
+ name: "lossPolicy",
369320
+ type: "address",
369321
+ indexed: false,
369322
+ internalType: "address"
369323
+ },
369324
+ {
369325
+ name: "factories",
369326
+ type: "tuple",
369327
+ indexed: false,
369328
+ internalType: "struct MarketFactories",
369329
+ components: [
369330
+ { name: "poolFactory", type: "address", internalType: "address" },
369331
+ {
369332
+ name: "priceOracleFactory",
369333
+ type: "address",
369334
+ internalType: "address"
369335
+ },
369336
+ {
369337
+ name: "interestRateModelFactory",
369338
+ type: "address",
369339
+ internalType: "address"
369340
+ },
369341
+ {
369342
+ name: "rateKeeperFactory",
369343
+ type: "address",
369344
+ internalType: "address"
369345
+ },
369346
+ {
369347
+ name: "lossPolicyFactory",
369348
+ type: "address",
369349
+ internalType: "address"
369350
+ }
369351
+ ]
368912
369352
  }
368913
369353
  ],
368914
369354
  anonymous: false
368915
369355
  },
368916
369356
  {
368917
369357
  type: "event",
368918
- name: "DeployDegenNFT",
369358
+ name: "EmergencyConfigureCreditSuite",
368919
369359
  inputs: [
368920
369360
  {
368921
- name: "",
369361
+ name: "creditManager",
368922
369362
  type: "address",
369363
+ indexed: true,
369364
+ internalType: "address"
369365
+ },
369366
+ { name: "data", type: "bytes", indexed: false, internalType: "bytes" }
369367
+ ],
369368
+ anonymous: false
369369
+ },
369370
+ {
369371
+ type: "event",
369372
+ name: "EmergencyConfigureInterestRateModel",
369373
+ inputs: [
369374
+ { name: "pool", type: "address", indexed: true, internalType: "address" },
369375
+ { name: "data", type: "bytes", indexed: false, internalType: "bytes" }
369376
+ ],
369377
+ anonymous: false
369378
+ },
369379
+ {
369380
+ type: "event",
369381
+ name: "EmergencyConfigureLossPolicy",
369382
+ inputs: [
369383
+ { name: "pool", type: "address", indexed: true, internalType: "address" },
369384
+ { name: "data", type: "bytes", indexed: false, internalType: "bytes" }
369385
+ ],
369386
+ anonymous: false
369387
+ },
369388
+ {
369389
+ type: "event",
369390
+ name: "EmergencyConfigurePool",
369391
+ inputs: [
369392
+ { name: "pool", type: "address", indexed: true, internalType: "address" },
369393
+ { name: "data", type: "bytes", indexed: false, internalType: "bytes" }
369394
+ ],
369395
+ anonymous: false
369396
+ },
369397
+ {
369398
+ type: "event",
369399
+ name: "EmergencyConfigurePriceOracle",
369400
+ inputs: [
369401
+ { name: "pool", type: "address", indexed: true, internalType: "address" },
369402
+ { name: "data", type: "bytes", indexed: false, internalType: "bytes" }
369403
+ ],
369404
+ anonymous: false
369405
+ },
369406
+ {
369407
+ type: "event",
369408
+ name: "EmergencyConfigureRateKeeper",
369409
+ inputs: [
369410
+ { name: "pool", type: "address", indexed: true, internalType: "address" },
369411
+ { name: "data", type: "bytes", indexed: false, internalType: "bytes" }
369412
+ ],
369413
+ anonymous: false
369414
+ },
369415
+ {
369416
+ type: "event",
369417
+ name: "EmergencyRevokeRole",
369418
+ inputs: [
369419
+ { name: "role", type: "bytes32", indexed: true, internalType: "bytes32" },
369420
+ {
369421
+ name: "account",
369422
+ type: "address",
369423
+ indexed: true,
369424
+ internalType: "address"
369425
+ }
369426
+ ],
369427
+ anonymous: false
369428
+ },
369429
+ {
369430
+ type: "event",
369431
+ name: "ExecuteHook",
369432
+ inputs: [
369433
+ {
369434
+ name: "target",
369435
+ type: "address",
369436
+ indexed: true,
369437
+ internalType: "address"
369438
+ },
369439
+ {
369440
+ name: "callData",
369441
+ type: "bytes",
368923
369442
  indexed: false,
369443
+ internalType: "bytes"
369444
+ }
369445
+ ],
369446
+ anonymous: false
369447
+ },
369448
+ {
369449
+ type: "event",
369450
+ name: "GrantRole",
369451
+ inputs: [
369452
+ { name: "role", type: "bytes32", indexed: true, internalType: "bytes32" },
369453
+ {
369454
+ name: "account",
369455
+ type: "address",
369456
+ indexed: true,
368924
369457
  internalType: "address"
368925
369458
  }
368926
369459
  ],
@@ -368928,10 +369461,16 @@ var iMarketConfiguratorV310Abi = [
368928
369461
  },
368929
369462
  {
368930
369463
  type: "event",
368931
- name: "RemoveMarket",
369464
+ name: "RemovePeripheryContract",
368932
369465
  inputs: [
368933
369466
  {
368934
- name: "pool",
369467
+ name: "domain",
369468
+ type: "bytes32",
369469
+ indexed: true,
369470
+ internalType: "bytes32"
369471
+ },
369472
+ {
369473
+ name: "peripheryContract",
368935
369474
  type: "address",
368936
369475
  indexed: true,
368937
369476
  internalType: "address"
@@ -368941,60 +369480,268 @@ var iMarketConfiguratorV310Abi = [
368941
369480
  },
368942
369481
  {
368943
369482
  type: "event",
368944
- name: "SetName",
369483
+ name: "RevokeRole",
368945
369484
  inputs: [
369485
+ { name: "role", type: "bytes32", indexed: true, internalType: "bytes32" },
368946
369486
  {
368947
- name: "name",
368948
- type: "string",
368949
- indexed: false,
368950
- internalType: "string"
369487
+ name: "account",
369488
+ type: "address",
369489
+ indexed: true,
369490
+ internalType: "address"
368951
369491
  }
368952
369492
  ],
368953
369493
  anonymous: false
368954
369494
  },
368955
369495
  {
368956
369496
  type: "event",
368957
- name: "SetPriceFeedFromStore",
369497
+ name: "SetEmergencyAdmin",
368958
369498
  inputs: [
368959
369499
  {
368960
- name: "token",
369500
+ name: "newEmergencyAdmin",
369501
+ type: "address",
369502
+ indexed: true,
369503
+ internalType: "address"
369504
+ }
369505
+ ],
369506
+ anonymous: false
369507
+ },
369508
+ {
369509
+ type: "event",
369510
+ name: "ShutdownCreditSuite",
369511
+ inputs: [
369512
+ {
369513
+ name: "creditManager",
369514
+ type: "address",
369515
+ indexed: true,
369516
+ internalType: "address"
369517
+ }
369518
+ ],
369519
+ anonymous: false
369520
+ },
369521
+ {
369522
+ type: "event",
369523
+ name: "ShutdownMarket",
369524
+ inputs: [
369525
+ { name: "pool", type: "address", indexed: true, internalType: "address" }
369526
+ ],
369527
+ anonymous: false
369528
+ },
369529
+ {
369530
+ type: "event",
369531
+ name: "UnauthorizeFactory",
369532
+ inputs: [
369533
+ {
369534
+ name: "factory",
368961
369535
  type: "address",
368962
369536
  indexed: true,
368963
369537
  internalType: "address"
368964
369538
  },
368965
369539
  {
368966
- name: "priceFeed",
369540
+ name: "suite",
368967
369541
  type: "address",
368968
369542
  indexed: true,
368969
369543
  internalType: "address"
368970
369544
  },
368971
369545
  {
368972
- name: "trusted",
368973
- type: "bool",
369546
+ name: "target",
369547
+ type: "address",
369548
+ indexed: true,
369549
+ internalType: "address"
369550
+ }
369551
+ ],
369552
+ anonymous: false
369553
+ },
369554
+ {
369555
+ type: "event",
369556
+ name: "UpdateInterestRateModel",
369557
+ inputs: [
369558
+ { name: "pool", type: "address", indexed: true, internalType: "address" },
369559
+ {
369560
+ name: "interestRateModel",
369561
+ type: "address",
368974
369562
  indexed: false,
368975
- internalType: "bool"
369563
+ internalType: "address"
368976
369564
  }
368977
369565
  ],
368978
369566
  anonymous: false
368979
369567
  },
368980
369568
  {
368981
369569
  type: "event",
368982
- name: "SetReservePriceFeedFromStore",
369570
+ name: "UpdateLossPolicy",
368983
369571
  inputs: [
369572
+ { name: "pool", type: "address", indexed: true, internalType: "address" },
368984
369573
  {
368985
- name: "token",
369574
+ name: "lossPolicy",
369575
+ type: "address",
369576
+ indexed: false,
369577
+ internalType: "address"
369578
+ }
369579
+ ],
369580
+ anonymous: false
369581
+ },
369582
+ {
369583
+ type: "event",
369584
+ name: "UpdatePriceOracle",
369585
+ inputs: [
369586
+ { name: "pool", type: "address", indexed: true, internalType: "address" },
369587
+ {
369588
+ name: "priceOracle",
369589
+ type: "address",
369590
+ indexed: false,
369591
+ internalType: "address"
369592
+ }
369593
+ ],
369594
+ anonymous: false
369595
+ },
369596
+ {
369597
+ type: "event",
369598
+ name: "UpdateRateKeeper",
369599
+ inputs: [
369600
+ { name: "pool", type: "address", indexed: true, internalType: "address" },
369601
+ {
369602
+ name: "rateKeeper",
369603
+ type: "address",
369604
+ indexed: false,
369605
+ internalType: "address"
369606
+ }
369607
+ ],
369608
+ anonymous: false
369609
+ },
369610
+ {
369611
+ type: "event",
369612
+ name: "UpgradeCreditFactory",
369613
+ inputs: [
369614
+ {
369615
+ name: "creditManager",
368986
369616
  type: "address",
368987
369617
  indexed: true,
368988
369618
  internalType: "address"
368989
369619
  },
368990
369620
  {
368991
- name: "priceFeedd",
369621
+ name: "factory",
368992
369622
  type: "address",
368993
- indexed: true,
369623
+ indexed: false,
369624
+ internalType: "address"
369625
+ }
369626
+ ],
369627
+ anonymous: false
369628
+ },
369629
+ {
369630
+ type: "event",
369631
+ name: "UpgradeInterestRateModelFactory",
369632
+ inputs: [
369633
+ { name: "pool", type: "address", indexed: true, internalType: "address" },
369634
+ {
369635
+ name: "factory",
369636
+ type: "address",
369637
+ indexed: false,
369638
+ internalType: "address"
369639
+ }
369640
+ ],
369641
+ anonymous: false
369642
+ },
369643
+ {
369644
+ type: "event",
369645
+ name: "UpgradeLossPolicyFactory",
369646
+ inputs: [
369647
+ { name: "pool", type: "address", indexed: true, internalType: "address" },
369648
+ {
369649
+ name: "factory",
369650
+ type: "address",
369651
+ indexed: false,
369652
+ internalType: "address"
369653
+ }
369654
+ ],
369655
+ anonymous: false
369656
+ },
369657
+ {
369658
+ type: "event",
369659
+ name: "UpgradePoolFactory",
369660
+ inputs: [
369661
+ { name: "pool", type: "address", indexed: true, internalType: "address" },
369662
+ {
369663
+ name: "factory",
369664
+ type: "address",
369665
+ indexed: false,
369666
+ internalType: "address"
369667
+ }
369668
+ ],
369669
+ anonymous: false
369670
+ },
369671
+ {
369672
+ type: "event",
369673
+ name: "UpgradePriceOracleFactory",
369674
+ inputs: [
369675
+ { name: "pool", type: "address", indexed: true, internalType: "address" },
369676
+ {
369677
+ name: "factory",
369678
+ type: "address",
369679
+ indexed: false,
368994
369680
  internalType: "address"
368995
369681
  }
368996
369682
  ],
368997
369683
  anonymous: false
369684
+ },
369685
+ {
369686
+ type: "event",
369687
+ name: "UpgradeRateKeeperFactory",
369688
+ inputs: [
369689
+ { name: "pool", type: "address", indexed: true, internalType: "address" },
369690
+ {
369691
+ name: "factory",
369692
+ type: "address",
369693
+ indexed: false,
369694
+ internalType: "address"
369695
+ }
369696
+ ],
369697
+ anonymous: false
369698
+ },
369699
+ {
369700
+ type: "error",
369701
+ name: "CallerIsNotAdminException",
369702
+ inputs: [{ name: "caller", type: "address", internalType: "address" }]
369703
+ },
369704
+ {
369705
+ type: "error",
369706
+ name: "CallerIsNotEmergencyAdminException",
369707
+ inputs: [{ name: "caller", type: "address", internalType: "address" }]
369708
+ },
369709
+ {
369710
+ type: "error",
369711
+ name: "CallerIsNotSelfException",
369712
+ inputs: [{ name: "caller", type: "address", internalType: "address" }]
369713
+ },
369714
+ {
369715
+ type: "error",
369716
+ name: "CreditSuiteNotRegisteredException",
369717
+ inputs: [
369718
+ { name: "creditManager", type: "address", internalType: "address" }
369719
+ ]
369720
+ },
369721
+ {
369722
+ type: "error",
369723
+ name: "IncorrectMinorVersionException",
369724
+ inputs: [{ name: "version", type: "uint256", internalType: "uint256" }]
369725
+ },
369726
+ {
369727
+ type: "error",
369728
+ name: "IncorrectPeripheryContractException",
369729
+ inputs: [
369730
+ { name: "peripheryContract", type: "address", internalType: "address" }
369731
+ ]
369732
+ },
369733
+ {
369734
+ type: "error",
369735
+ name: "MarketNotRegisteredException",
369736
+ inputs: [{ name: "pool", type: "address", internalType: "address" }]
369737
+ },
369738
+ {
369739
+ type: "error",
369740
+ name: "UnauthorizedFactoryException",
369741
+ inputs: [
369742
+ { name: "factory", type: "address", internalType: "address" },
369743
+ { name: "target", type: "address", internalType: "address" }
369744
+ ]
368998
369745
  }
368999
369746
  ];
369000
369747
  var iCreditConfiguratorV310Abi = [
@@ -369729,7 +370476,6 @@ var DEPRECIATED_POOLS = {
369729
370476
  var NO_VERSION = 0;
369730
370477
  var AP_BOT_LIST = "BOT_LIST";
369731
370478
  var AP_CREDIT_ACCOUNT_COMPRESSOR = "CREDIT_ACCOUNT_COMPRESSOR";
369732
- var AP_GAUGE_COMPRESSOR = "GAUGE_COMPRESSOR";
369733
370479
  var AP_GEAR_STAKING = "GEAR_STAKING";
369734
370480
  var AP_GEAR_TOKEN = "GEAR_TOKEN";
369735
370481
  var AP_MARKET_COMPRESSOR = "MARKET_COMPRESSOR";
@@ -369794,12 +370540,11 @@ var ADDRESS_PROVIDER_BLOCK = {
369794
370540
  Sonic: 0n
369795
370541
  };
369796
370542
  var BLOCK_DURATION_BY_NETWORK = {
369797
- Mainnet: 12.16,
370543
+ Mainnet: 12.05,
369798
370544
  Arbitrum: 0.26,
369799
- Optimism: 1.64,
370545
+ Optimism: 2,
369800
370546
  Base: 2.01,
369801
- // TODO:
369802
- Sonic: 1
370547
+ Sonic: 0.91
369803
370548
  };
369804
370549
  var RAMP_TIME = 30 * 24 * 60 * 60 * 1.2;
369805
370550
  var RAMP_DURATION_BY_NETWORK = {
@@ -371595,6 +372340,7 @@ async function simulateMulticall(client, parameters) {
371595
372340
  }
371596
372341
  var abi28 = iMarketConfiguratorV310Abi;
371597
372342
  var MarketConfiguratorContract = class extends BaseContract {
372343
+ #curatorName;
371598
372344
  constructor(sdk, address) {
371599
372345
  super(sdk, {
371600
372346
  abi: abi28,
@@ -371603,13 +372349,24 @@ var MarketConfiguratorContract = class extends BaseContract {
371603
372349
  version: 0
371604
372350
  });
371605
372351
  }
372352
+ async loadCuratorName() {
372353
+ this.#curatorName = await this.sdk.provider.publicClient.readContract({
372354
+ address: this.address,
372355
+ abi: this.abi,
372356
+ functionName: "curatorName"
372357
+ });
372358
+ this.sdk.provider.addressLabels.set(
372359
+ this.address,
372360
+ "Market configurator " + this.#curatorName
372361
+ );
372362
+ }
371606
372363
  processLog(log2) {
371607
372364
  switch (log2.eventName) {
371608
372365
  // case "DeployDegenNFT":
371609
372366
  // case "SetName":
371610
372367
  // case "SetPriceFeedFromStore":
371611
372368
  // case "SetReservePriceFeedFromStore":
371612
- case "RemoveMarket":
372369
+ case "ShutdownMarket":
371613
372370
  case "CreateMarket":
371614
372371
  this.dirty = true;
371615
372372
  break;
@@ -380532,31 +381289,8 @@ var MarketRegister = class extends SDKConstruct {
380532
381289
  this.sdk.provider.addressLabels.set(t.addr, t.symbol);
380533
381290
  }
380534
381291
  }
380535
- async getGauges(staker) {
380536
- const gcAddr = this.sdk.addressProvider.getLatestVersion(AP_GAUGE_COMPRESSOR);
380537
- if (!this.#marketFilter) {
380538
- throw new Error("market filter is not set");
380539
- }
380540
- const resp = await this.provider.publicClient.readContract({
380541
- abi: iGaugeCompressorAbi,
380542
- address: gcAddr,
380543
- functionName: "getGauges",
380544
- args: [this.#marketFilter, staker]
380545
- });
380546
- return [...resp];
380547
- }
380548
- async getGauge(gauge, staker) {
380549
- const gcAddr = this.sdk.addressProvider.getLatestVersion(AP_GAUGE_COMPRESSOR);
380550
- if (!this.#marketFilter) {
380551
- throw new Error("market filter is not set");
380552
- }
380553
- const resp = await this.provider.publicClient.readContract({
380554
- abi: iGaugeCompressorAbi,
380555
- address: gcAddr,
380556
- functionName: "getGauge",
380557
- args: [gauge, staker]
380558
- });
380559
- return resp;
381292
+ get marketFilter() {
381293
+ return this.#marketFilter;
380560
381294
  }
380561
381295
  async syncState() {
380562
381296
  const pools = this.markets.filter((m) => m.dirty).map((m) => m.pool.pool.address);
@@ -381242,18 +381976,23 @@ var CHARTS_BACKEND_ADDRESSES = {
381242
381976
  [chains.Arbitrum.id]: "https://charts-server.fly.dev",
381243
381977
  [chains.Optimism.id]: "https://charts-server.fly.dev",
381244
381978
  [chains.Base.id]: "https://charts-server.fly.dev",
381979
+ [chains.Sonic.id]: "https://charts-server.fly.dev",
381245
381980
  [TESTNET_CHAINS.Mainnet]: "https://testnet.gearbox.foundation",
381246
381981
  [TESTNET_CHAINS.Arbitrum]: "https://arbtest.gearbox.foundation",
381247
381982
  [TESTNET_CHAINS.Optimism]: "https://opttest.gearbox.foundation"
381248
- // !& Base
381983
+ // !& Base & Sonic
381249
381984
  };
381250
381985
  var LEADERBOARD_APIS = {
381251
381986
  [chains.Mainnet.id]: "https://gpointbot.fly.dev",
381252
381987
  [chains.Optimism.id]: "https://gpointbot.fly.dev",
381253
381988
  [chains.Arbitrum.id]: "https://gpointbot.fly.dev",
381989
+ [chains.Base.id]: "https://gpointbot.fly.dev",
381990
+ [chains.Sonic.id]: "https://gpointbot.fly.dev",
381254
381991
  [TESTNET_CHAINS.Mainnet]: "https://testnet.gearbox.foundation/gpointbot",
381255
381992
  [TESTNET_CHAINS.Optimism]: "https://testnet.gearbox.foundation/gpointbot",
381256
- [TESTNET_CHAINS.Arbitrum]: "https://testnet.gearbox.foundation/gpointbot"
381993
+ [TESTNET_CHAINS.Arbitrum]: "https://testnet.gearbox.foundation/gpointbot",
381994
+ [TESTNET_CHAINS.Base]: "https://testnet.gearbox.foundation/gpointbot",
381995
+ [TESTNET_CHAINS.Sonic]: "https://testnet.gearbox.foundation/gpointbot"
381257
381996
  };
381258
381997
  var iBaseRewardPoolAbi = [
381259
381998
  {
@@ -382605,14 +383344,6 @@ var GearStakingContract = class extends BaseContract {
382605
383344
  });
382606
383345
  }
382607
383346
  };
382608
- var GAUGE_COMPRESSORS = {
382609
- [chains.Mainnet.id]: "0x104c4e209329524adb0febE8b6481346a6eB75C6",
382610
- [chains.Arbitrum.id]: "0x88aa4FbF86392cBF6f6517790E288314DE03E181",
382611
- [chains.Optimism.id]: "0x2697e6Ddbf572df3403B2451b954762Fd22002F6",
382612
- [TESTNET_CHAINS.Mainnet]: "0x104c4e209329524adb0febE8b6481346a6eB75C6",
382613
- [TESTNET_CHAINS.Arbitrum]: "0x88aa4FbF86392cBF6f6517790E288314DE03E181",
382614
- [TESTNET_CHAINS.Optimism]: "0x2697e6Ddbf572df3403B2451b954762Fd22002F6"
382615
- };
382616
383347
  var GearboxSDK = class _GearboxSDK {
382617
383348
  #hooks = new Hooks();
382618
383349
  // Represents chain object
@@ -408978,6 +409709,12 @@ var SDKExample = class {
408978
409709
  await publicClient.waitForTransactionReceipt({ hash: hash2 });
408979
409710
  await this.#sdk.marketRegister.loadMarkets(marketConfigurators, true);
408980
409711
  this.#logger?.info("attached sdk");
409712
+ await Promise.allSettled(
409713
+ this.#sdk.marketRegister.marketConfigurators.map(
409714
+ (m) => m.loadCuratorName()
409715
+ )
409716
+ );
409717
+ this.#logger?.info("loaded curator names");
408981
409718
  if (outFile) {
408982
409719
  try {
408983
409720
  await writeFile2(
@@ -416278,7 +417015,7 @@ function getRenderer(opts) {
416278
417015
  var package_default = {
416279
417016
  name: "@gearbox-protocol/deploy-tools",
416280
417017
  description: "Gearbox deploy tools",
416281
- version: "5.9.19",
417018
+ version: "5.9.20",
416282
417019
  homepage: "https://gearbox.fi",
416283
417020
  keywords: [
416284
417021
  "gearbox"
@@ -416321,7 +417058,7 @@ var package_default = {
416321
417058
  "@gearbox-protocol/deploy-tools-node": "0.0.0",
416322
417059
  "@gearbox-protocol/deploy-tools-shared": "0.0.0",
416323
417060
  "@gearbox-protocol/deploy-tools-types": "0.0.0",
416324
- "@gearbox-protocol/sdk": "3.0.0-vfour.226",
417061
+ "@gearbox-protocol/sdk": "3.0.0-vfour.229",
416325
417062
  "@gearbox-protocol/sdk-gov": "^2.34.1",
416326
417063
  "@types/lodash-es": "^4.17.12",
416327
417064
  "@types/node": "^22.13.1",