@gearbox-protocol/deploy-tools 5.9.18 → 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 +1231 -418
  2. package/package.json +4 -4
package/dist/index.mjs CHANGED
@@ -4276,7 +4276,7 @@ var init_size = __esm({
4276
4276
  var version2;
4277
4277
  var init_version2 = __esm({
4278
4278
  "../../node_modules/viem/_esm/errors/version.js"() {
4279
- version2 = "2.23.0";
4279
+ version2 = "2.23.1";
4280
4280
  }
4281
4281
  });
4282
4282
 
@@ -133695,6 +133695,11 @@ var require_audits = __commonJS({
133695
133695
  auditor: Auditor2.Watchpug,
133696
133696
  revision: "2024 Oct",
133697
133697
  reportLink: "https://github.com/Gearbox-protocol/security/blob/main/audits/2024%20Dec%20-%20Watchpug_Pendle_Oracle.pdf"
133698
+ },
133699
+ "2025_Feb_Decurity_BalancerV3": {
133700
+ auditor: Auditor2.Decurity,
133701
+ revision: "2025 Feb",
133702
+ reportLink: "https://github.com/Gearbox-protocol/security/blob/main/audits/2025%20Feb%20-%20Decurity_Gearbox_BalancerV3.pdf"
133698
133703
  }
133699
133704
  };
133700
133705
  exports2.audits = {
@@ -133801,6 +133806,16 @@ var require_audits = __commonJS({
133801
133806
  type: "commit",
133802
133807
  commit: "e3e558df565f3541ca90a2afd40d9e76eded2fa9",
133803
133808
  report: exports2.auditReports["2024_Oct_Decurity_SKY"]
133809
+ },
133810
+ {
133811
+ type: "commit",
133812
+ commit: "0af99438c80a246c4e04118d498ca3508483d8a0",
133813
+ report: exports2.auditReports["2025_Feb_Decurity_BalancerV3"]
133814
+ },
133815
+ {
133816
+ type: "commit",
133817
+ commit: "f79aa663f3f40903429243af75ef57c9e6fcf0b8",
133818
+ report: exports2.auditReports["2025_Feb_Decurity_BalancerV3"]
133804
133819
  }
133805
133820
  ],
133806
133821
  governance: [
@@ -160725,7 +160740,7 @@ var require_version28 = __commonJS({
160725
160740
  "use strict";
160726
160741
  Object.defineProperty(exports2, "__esModule", { value: true });
160727
160742
  exports2.version = void 0;
160728
- exports2.version = "2.23.0";
160743
+ exports2.version = "2.23.1";
160729
160744
  }
160730
160745
  });
160731
160746
 
@@ -172823,6 +172838,7 @@ var require_createTransport = __commonJS({
172823
172838
  return {
172824
172839
  config: {
172825
172840
  key,
172841
+ methods,
172826
172842
  name,
172827
172843
  request,
172828
172844
  retryCount,
@@ -172880,6 +172896,7 @@ var require_fallback = __commonJS({
172880
172896
  key,
172881
172897
  name,
172882
172898
  async request({ method, params }) {
172899
+ let includes;
172883
172900
  const fetch2 = async (i = 0) => {
172884
172901
  const transport2 = transports[i]({
172885
172902
  ...rest2,
@@ -172912,6 +172929,16 @@ var require_fallback = __commonJS({
172912
172929
  throw err;
172913
172930
  if (i === transports.length - 1)
172914
172931
  throw err;
172932
+ includes ??= transports.slice(i + 1).some((transport3) => {
172933
+ const { include, exclude } = transport3({ chain }).config.methods || {};
172934
+ if (include)
172935
+ return include.includes(method);
172936
+ if (exclude)
172937
+ return !exclude.includes(method);
172938
+ return true;
172939
+ });
172940
+ if (!includes)
172941
+ throw err;
172915
172942
  return fetch2(i + 1);
172916
172943
  }
172917
172944
  };
@@ -225013,6 +225040,39 @@ var require_ultronTestnet = __commonJS({
225013
225040
  }
225014
225041
  });
225015
225042
 
225043
+ // ../../node_modules/viem/_cjs/chains/definitions/unichain.js
225044
+ var require_unichain = __commonJS({
225045
+ "../../node_modules/viem/_cjs/chains/definitions/unichain.js"(exports2) {
225046
+ "use strict";
225047
+ Object.defineProperty(exports2, "__esModule", { value: true });
225048
+ exports2.unichain = void 0;
225049
+ var defineChain_js_1 = require_defineChain();
225050
+ exports2.unichain = (0, defineChain_js_1.defineChain)({
225051
+ id: 130,
225052
+ name: "Unichain",
225053
+ nativeCurrency: { name: "Unichain", symbol: "ETH", decimals: 18 },
225054
+ rpcUrls: {
225055
+ default: {
225056
+ http: ["https://mainnet.unichain.org/"]
225057
+ }
225058
+ },
225059
+ blockExplorers: {
225060
+ default: {
225061
+ name: "Uniscan",
225062
+ url: "https://uniscan.xyz",
225063
+ apiUrl: "https://api.uniscan.xyz/api"
225064
+ }
225065
+ },
225066
+ contracts: {
225067
+ multicall3: {
225068
+ address: "0xca11bde05977b3631167028862be2a173976ca11",
225069
+ blockCreated: 0
225070
+ }
225071
+ }
225072
+ });
225073
+ }
225074
+ });
225075
+
225016
225076
  // ../../node_modules/viem/_cjs/chains/definitions/unichainSepolia.js
225017
225077
  var require_unichainSepolia = __commonJS({
225018
225078
  "../../node_modules/viem/_cjs/chains/definitions/unichainSepolia.js"(exports2) {
@@ -226940,8 +227000,8 @@ var require_chains2 = __commonJS({
226940
227000
  exports2.polygonZkEvm = exports2.polygonMumbai = exports2.polygonAmoy = exports2.polygon = exports2.polterTestnet = exports2.plumeTestnet = exports2.plumeDevnet = exports2.plume = exports2.plinga = exports2.playfiAlbireo = exports2.planq = exports2.phoenix = exports2.pgnTestnet = exports2.pgn = exports2.palmTestnet = exports2.palm = exports2.otimDevnet = exports2.orderlySepolia = exports2.orderly = exports2.optopiaTestnet = exports2.optopia = exports2.optimismSepolia = exports2.optimismGoerli = exports2.optimism = exports2.opBNBTestnet = exports2.opBNB = exports2.oortMainnetDev = exports2.oneWorld = exports2.omax = exports2.okc = exports2.odysseyTestnet = exports2.oasys = exports2.oasisTestnet = exports2.nexilix = exports2.nexi = exports2.neoxT4 = exports2.neoxMainnet = exports2.neonMainnet = exports2.neonDevnet = exports2.nearTestnet = exports2.near = exports2.nautilus = exports2.nahmii = exports2.morphSepolia = exports2.morphHolesky = exports2.morph = exports2.moonriver = exports2.moonbeamDev = exports2.moonbeam = exports2.moonbaseAlpha = void 0;
226941
227001
  exports2.sixProtocol = exports2.siliconSepolia = exports2.silicon = exports2.sidraChain = exports2.shimmerTestnet = exports2.shimmer = exports2.shiden = exports2.shibariumTestnet = exports2.shibarium = exports2.shardeumSphinx = exports2.shapeSepolia = exports2.shape = exports2.sepolia = exports2.seiTestnet = exports2.seiDevnet = exports2.sei = exports2.scrollSepolia = exports2.satoshiVMTestnet = exports2.satoshiVM = exports2.sapphireTestnet = exports2.sapphire = exports2.sanko = exports2.saigon = exports2.saga = exports2.saakuru = exports2.rss3Sepolia = exports2.rss3 = exports2.rootstockTestnet = exports2.rootstock = exports2.rootPorcini = exports2.root = exports2.ronin = exports2.rolluxTestnet = exports2.rollux = exports2.rivalz = exports2.reddioSepolia = exports2.reyaNetwork = exports2.rei = exports2.redstone = exports2.redbellyTestnet = exports2.redbellyMainnet = exports2.real = exports2.qTestnet = exports2.qMainnet = exports2.ql1 = exports2.pulsechainV4 = exports2.pulsechain = exports2.premiumBlockTestnet = exports2.polygonZkEvmTestnet = exports2.polygonZkEvmCardona = void 0;
226942
227002
  exports2.telcoinTestnet = exports2.taraxaTestnet = exports2.taraxa = exports2.taikoTestnetSepolia = exports2.taikoKatla = exports2.taikoJolnir = exports2.taikoHekla = exports2.taiko = exports2.syscoinTestnet = exports2.syscoin = exports2.swissdlt = exports2.swellchain = exports2.swanSaturnTestnet = exports2.swanProximaTestnet = exports2.swan = exports2.superseedSepolia = exports2.superseed = exports2.superposition = exports2.superlumio = exports2.stratis = exports2.storyTestnet = exports2.storyOdyssey = exports2.story = exports2.step = exports2.spicy = exports2.sophonTestnet = exports2.sophon = exports2.songbirdTestnet = exports2.songbird = exports2.sonicTestnet = exports2.sonic = exports2.soneiumMinato = exports2.soneium = exports2.snaxTestnet = exports2.snax = exports2.sketchpad = exports2.skaleTitanTestnet = exports2.skaleTitan = exports2.skaleRazor = exports2.skaleNebulaTestnet = exports2.skaleNebula = exports2.skaleHumanProtocol = exports2.skaleExorde = exports2.skaleEuropaTestnet = exports2.skaleEuropa = exports2.skaleCryptoColosseum = exports2.skaleCryptoBlades = exports2.skaleCalypsoTestnet = exports2.skaleCalypso = exports2.skaleBlockBrawlers = void 0;
226943
- exports2.xrSepolia = exports2.xrOne = exports2.xLayerTestnet = exports2.x1Testnet = exports2.xLayer = exports2.xdcTestnet = exports2.xdc = exports2.xaiTestnet = exports2.xai = exports2.worldLand = exports2.worldchainSepolia = exports2.worldchain = exports2.wmcTestnet = exports2.wemixTestnet = exports2.wemix = exports2.weaveVMAlphanet = exports2.wanchainTestnet = exports2.wanchain = exports2.visionTestnet = exports2.vision = exports2.victionTestnet = exports2.viction = exports2.velas = exports2.vechain = exports2.vanar = exports2.unreal = exports2.uniqueQuartz = exports2.uniqueOpal = exports2.unique = exports2.unichainSepolia = exports2.ultronTestnet = exports2.ultron = exports2.ultraTestnet = exports2.ultra = exports2.ubiq = exports2.tron = exports2.treasureTopaz = exports2.treasure = exports2.tomb = exports2.tiktrixTestnet = exports2.thunderTestnet = exports2.thunderCore = exports2.thetaTestnet = exports2.theta = exports2.that = exports2.thaiChain = exports2.ternoa = exports2.tenet = exports2.telosTestnet = exports2.telos = void 0;
226944
- exports2.zoraTestnet = exports2.zoraSepolia = exports2.zora = exports2.zksyncSepoliaTestnet = exports2.zkSyncSepoliaTestnet = exports2.zksyncLocalNode = exports2.zkSyncLocalNode = exports2.zksyncLocalHyperchainL1 = exports2.zksyncLocalHyperchain = exports2.zksyncLocalCustomHyperchain = exports2.zksyncInMemoryNode = exports2.zkSyncInMemoryNode = exports2.zksync = exports2.zkSync = exports2.zkLinkNovaSepoliaTestnet = exports2.zkLinkNova = exports2.zkFairTestnet = exports2.zkFair = exports2.zircuitTestnet = exports2.zircuit = exports2.zilliqaTestnet = exports2.zilliqa = exports2.zhejiang = exports2.zetachainAthensTestnet = exports2.zetachain = exports2.zeroG = exports2.zeniq = exports2.zenchainTestnet = exports2.yooldoVerseTestnet = exports2.yooldoVerse = void 0;
227003
+ exports2.xrOne = exports2.xLayerTestnet = exports2.x1Testnet = exports2.xLayer = exports2.xdcTestnet = exports2.xdc = exports2.xaiTestnet = exports2.xai = exports2.worldLand = exports2.worldchainSepolia = exports2.worldchain = exports2.wmcTestnet = exports2.wemixTestnet = exports2.wemix = exports2.weaveVMAlphanet = exports2.wanchainTestnet = exports2.wanchain = exports2.visionTestnet = exports2.vision = exports2.victionTestnet = exports2.viction = exports2.velas = exports2.vechain = exports2.vanar = exports2.unreal = exports2.uniqueQuartz = exports2.uniqueOpal = exports2.unique = exports2.unichainSepolia = exports2.unichain = exports2.ultronTestnet = exports2.ultron = exports2.ultraTestnet = exports2.ultra = exports2.ubiq = exports2.tron = exports2.treasureTopaz = exports2.treasure = exports2.tomb = exports2.tiktrixTestnet = exports2.thunderTestnet = exports2.thunderCore = exports2.thetaTestnet = exports2.theta = exports2.that = exports2.thaiChain = exports2.ternoa = exports2.tenet = exports2.telosTestnet = exports2.telos = void 0;
227004
+ exports2.zoraTestnet = exports2.zoraSepolia = exports2.zora = exports2.zksyncSepoliaTestnet = exports2.zkSyncSepoliaTestnet = exports2.zksyncLocalNode = exports2.zkSyncLocalNode = exports2.zksyncLocalHyperchainL1 = exports2.zksyncLocalHyperchain = exports2.zksyncLocalCustomHyperchain = exports2.zksyncInMemoryNode = exports2.zkSyncInMemoryNode = exports2.zksync = exports2.zkSync = exports2.zkLinkNovaSepoliaTestnet = exports2.zkLinkNova = exports2.zkFairTestnet = exports2.zkFair = exports2.zircuitTestnet = exports2.zircuit = exports2.zilliqaTestnet = exports2.zilliqa = exports2.zhejiang = exports2.zetachainAthensTestnet = exports2.zetachain = exports2.zeroG = exports2.zeniq = exports2.zenchainTestnet = exports2.yooldoVerseTestnet = exports2.yooldoVerse = exports2.xrSepolia = void 0;
226945
227005
  var abey_js_1 = require_abey();
226946
227006
  Object.defineProperty(exports2, "abey", { enumerable: true, get: function() {
226947
227007
  return abey_js_1.abey;
@@ -228826,6 +228886,10 @@ var require_chains2 = __commonJS({
228826
228886
  Object.defineProperty(exports2, "ultronTestnet", { enumerable: true, get: function() {
228827
228887
  return ultronTestnet_js_1.ultronTestnet;
228828
228888
  } });
228889
+ var unichain_js_1 = require_unichain();
228890
+ Object.defineProperty(exports2, "unichain", { enumerable: true, get: function() {
228891
+ return unichain_js_1.unichain;
228892
+ } });
228829
228893
  var unichainSepolia_js_1 = require_unichainSepolia();
228830
228894
  Object.defineProperty(exports2, "unichainSepolia", { enumerable: true, get: function() {
228831
228895
  return unichainSepolia_js_1.unichainSepolia;
@@ -338424,6 +338488,7 @@ function createTransport({ key, methods, name, request, retryCount = 3, retryDel
338424
338488
  return {
338425
338489
  config: {
338426
338490
  key,
338491
+ methods,
338427
338492
  name,
338428
338493
  request,
338429
338494
  retryCount,
@@ -338449,6 +338514,7 @@ function fallback(transports_, config = {}) {
338449
338514
  key,
338450
338515
  name,
338451
338516
  async request({ method, params }) {
338517
+ let includes;
338452
338518
  const fetch2 = async (i = 0) => {
338453
338519
  const transport2 = transports[i]({
338454
338520
  ...rest2,
@@ -338481,6 +338547,16 @@ function fallback(transports_, config = {}) {
338481
338547
  throw err;
338482
338548
  if (i === transports.length - 1)
338483
338549
  throw err;
338550
+ includes ??= transports.slice(i + 1).some((transport3) => {
338551
+ const { include, exclude } = transport3({ chain }).config.methods || {};
338552
+ if (include)
338553
+ return include.includes(method);
338554
+ if (exclude)
338555
+ return !exclude.includes(method);
338556
+ return true;
338557
+ });
338558
+ if (!includes)
338559
+ throw err;
338484
338560
  return fetch2(i + 1);
338485
338561
  }
338486
338562
  };
@@ -345143,7 +345219,7 @@ var iCreditAccountCompressorAbi = [
345143
345219
  stateMutability: "view"
345144
345220
  }
345145
345221
  ];
345146
- var iGaugeCompressorAbi = [
345222
+ var iMarketCompressorAbi = [
345147
345223
  {
345148
345224
  type: "function",
345149
345225
  inputs: [],
@@ -345154,292 +345230,149 @@ var iGaugeCompressorAbi = [
345154
345230
  {
345155
345231
  type: "function",
345156
345232
  inputs: [
345157
- { name: "gauge", internalType: "address", type: "address" },
345158
- { name: "staker", internalType: "address", type: "address" }
345233
+ { name: "pool", internalType: "address", type: "address" },
345234
+ { name: "configurator", internalType: "address", type: "address" }
345159
345235
  ],
345160
- name: "getGauge",
345236
+ name: "getMarketData",
345161
345237
  outputs: [
345162
345238
  {
345163
345239
  name: "result",
345164
- internalType: "struct GaugeInfo",
345240
+ internalType: "struct MarketData",
345165
345241
  type: "tuple",
345166
345242
  components: [
345167
- { name: "addr", internalType: "address", type: "address" },
345168
- { name: "pool", internalType: "address", type: "address" },
345169
- { name: "symbol", internalType: "string", type: "string" },
345170
- { name: "name", internalType: "string", type: "string" },
345171
- { name: "voter", internalType: "address", type: "address" },
345172
- { name: "underlying", internalType: "address", type: "address" },
345173
- { name: "currentEpoch", internalType: "uint16", type: "uint16" },
345174
- { name: "epochLastUpdate", internalType: "uint16", type: "uint16" },
345175
- { name: "epochFrozen", internalType: "bool", type: "bool" },
345243
+ { name: "acl", internalType: "address", type: "address" },
345176
345244
  {
345177
- name: "quotaParams",
345178
- internalType: "struct GaugeQuotaParams[]",
345179
- type: "tuple[]",
345245
+ name: "contractsRegister",
345246
+ internalType: "address",
345247
+ type: "address"
345248
+ },
345249
+ { name: "treasury", internalType: "address", type: "address" },
345250
+ {
345251
+ name: "pool",
345252
+ internalType: "struct PoolState",
345253
+ type: "tuple",
345180
345254
  components: [
345181
- { name: "token", internalType: "address", type: "address" },
345182
- { name: "minRate", internalType: "uint16", type: "uint16" },
345183
- { name: "maxRate", internalType: "uint16", type: "uint16" },
345184
345255
  {
345185
- name: "totalVotesLpSide",
345186
- internalType: "uint96",
345187
- type: "uint96"
345256
+ name: "baseParams",
345257
+ internalType: "struct BaseParams",
345258
+ type: "tuple",
345259
+ components: [
345260
+ { name: "addr", internalType: "address", type: "address" },
345261
+ { name: "version", internalType: "uint256", type: "uint256" },
345262
+ {
345263
+ name: "contractType",
345264
+ internalType: "bytes32",
345265
+ type: "bytes32"
345266
+ },
345267
+ {
345268
+ name: "serializedParams",
345269
+ internalType: "bytes",
345270
+ type: "bytes"
345271
+ }
345272
+ ]
345188
345273
  },
345274
+ { name: "symbol", internalType: "string", type: "string" },
345275
+ { name: "name", internalType: "string", type: "string" },
345276
+ { name: "decimals", internalType: "uint8", type: "uint8" },
345277
+ { name: "totalSupply", internalType: "uint256", type: "uint256" },
345189
345278
  {
345190
- name: "totalVotesCaSide",
345191
- internalType: "uint96",
345192
- type: "uint96"
345279
+ name: "poolQuotaKeeper",
345280
+ internalType: "address",
345281
+ type: "address"
345193
345282
  },
345194
345283
  {
345195
- name: "stakerVotesLpSide",
345196
- internalType: "uint96",
345197
- type: "uint96"
345284
+ name: "interestRateModel",
345285
+ internalType: "address",
345286
+ type: "address"
345198
345287
  },
345288
+ { name: "underlying", internalType: "address", type: "address" },
345199
345289
  {
345200
- name: "stakerVotesCaSide",
345201
- internalType: "uint96",
345202
- type: "uint96"
345203
- }
345204
- ]
345205
- }
345206
- ]
345207
- }
345208
- ],
345209
- stateMutability: "view"
345210
- },
345211
- {
345212
- type: "function",
345213
- inputs: [
345214
- {
345215
- name: "filter",
345216
- internalType: "struct MarketFilter",
345217
- type: "tuple",
345218
- components: [
345219
- {
345220
- name: "configurators",
345221
- internalType: "address[]",
345222
- type: "address[]"
345223
- },
345224
- { name: "pools", internalType: "address[]", type: "address[]" },
345225
- { name: "underlying", internalType: "address", type: "address" }
345226
- ]
345227
- },
345228
- { name: "staker", internalType: "address", type: "address" }
345229
- ],
345230
- name: "getGauges",
345231
- outputs: [
345232
- {
345233
- name: "result",
345234
- internalType: "struct GaugeInfo[]",
345235
- type: "tuple[]",
345236
- components: [
345237
- { name: "addr", internalType: "address", type: "address" },
345238
- { name: "pool", internalType: "address", type: "address" },
345239
- { name: "symbol", internalType: "string", type: "string" },
345240
- { name: "name", internalType: "string", type: "string" },
345241
- { name: "voter", internalType: "address", type: "address" },
345242
- { name: "underlying", internalType: "address", type: "address" },
345243
- { name: "currentEpoch", internalType: "uint16", type: "uint16" },
345244
- { name: "epochLastUpdate", internalType: "uint16", type: "uint16" },
345245
- { name: "epochFrozen", internalType: "bool", type: "bool" },
345246
- {
345247
- name: "quotaParams",
345248
- internalType: "struct GaugeQuotaParams[]",
345249
- type: "tuple[]",
345250
- components: [
345251
- { name: "token", internalType: "address", type: "address" },
345252
- { name: "minRate", internalType: "uint16", type: "uint16" },
345253
- { name: "maxRate", internalType: "uint16", type: "uint16" },
345290
+ name: "availableLiquidity",
345291
+ internalType: "uint256",
345292
+ type: "uint256"
345293
+ },
345254
345294
  {
345255
- name: "totalVotesLpSide",
345256
- internalType: "uint96",
345257
- type: "uint96"
345295
+ name: "expectedLiquidity",
345296
+ internalType: "uint256",
345297
+ type: "uint256"
345258
345298
  },
345259
345299
  {
345260
- name: "totalVotesCaSide",
345261
- internalType: "uint96",
345262
- type: "uint96"
345300
+ name: "baseInterestIndex",
345301
+ internalType: "uint256",
345302
+ type: "uint256"
345263
345303
  },
345264
345304
  {
345265
- name: "stakerVotesLpSide",
345266
- internalType: "uint96",
345267
- type: "uint96"
345305
+ name: "baseInterestRate",
345306
+ internalType: "uint256",
345307
+ type: "uint256"
345308
+ },
345309
+ { name: "dieselRate", internalType: "uint256", type: "uint256" },
345310
+ { name: "supplyRate", internalType: "uint256", type: "uint256" },
345311
+ { name: "withdrawFee", internalType: "uint256", type: "uint256" },
345312
+ {
345313
+ name: "totalBorrowed",
345314
+ internalType: "uint256",
345315
+ type: "uint256"
345268
345316
  },
345269
345317
  {
345270
- name: "stakerVotesCaSide",
345271
- internalType: "uint96",
345272
- type: "uint96"
345273
- }
345318
+ name: "totalDebtLimit",
345319
+ internalType: "uint256",
345320
+ type: "uint256"
345321
+ },
345322
+ {
345323
+ name: "creditManagerDebtParams",
345324
+ internalType: "struct CreditManagerDebtParams[]",
345325
+ type: "tuple[]",
345326
+ components: [
345327
+ {
345328
+ name: "creditManager",
345329
+ internalType: "address",
345330
+ type: "address"
345331
+ },
345332
+ {
345333
+ name: "borrowed",
345334
+ internalType: "uint256",
345335
+ type: "uint256"
345336
+ },
345337
+ { name: "limit", internalType: "uint256", type: "uint256" },
345338
+ {
345339
+ name: "available",
345340
+ internalType: "uint256",
345341
+ type: "uint256"
345342
+ }
345343
+ ]
345344
+ },
345345
+ {
345346
+ name: "baseInterestIndexLU",
345347
+ internalType: "uint256",
345348
+ type: "uint256"
345349
+ },
345350
+ {
345351
+ name: "expectedLiquidityLU",
345352
+ internalType: "uint256",
345353
+ type: "uint256"
345354
+ },
345355
+ {
345356
+ name: "quotaRevenue",
345357
+ internalType: "uint256",
345358
+ type: "uint256"
345359
+ },
345360
+ {
345361
+ name: "lastBaseInterestUpdate",
345362
+ internalType: "uint40",
345363
+ type: "uint40"
345364
+ },
345365
+ {
345366
+ name: "lastQuotaRevenueUpdate",
345367
+ internalType: "uint40",
345368
+ type: "uint40"
345369
+ },
345370
+ { name: "isPaused", internalType: "bool", type: "bool" }
345274
345371
  ]
345275
- }
345276
- ]
345277
- }
345278
- ],
345279
- stateMutability: "view"
345280
- },
345281
- {
345282
- type: "function",
345283
- inputs: [],
345284
- name: "version",
345285
- outputs: [{ name: "", internalType: "uint256", type: "uint256" }],
345286
- stateMutability: "view"
345287
- }
345288
- ];
345289
- var iMarketCompressorAbi = [
345290
- {
345291
- type: "function",
345292
- inputs: [],
345293
- name: "contractType",
345294
- outputs: [{ name: "", internalType: "bytes32", type: "bytes32" }],
345295
- stateMutability: "view"
345296
- },
345297
- {
345298
- type: "function",
345299
- inputs: [
345300
- { name: "pool", internalType: "address", type: "address" },
345301
- { name: "configurator", internalType: "address", type: "address" }
345302
- ],
345303
- name: "getMarketData",
345304
- outputs: [
345305
- {
345306
- name: "result",
345307
- internalType: "struct MarketData",
345308
- type: "tuple",
345309
- components: [
345310
- { name: "acl", internalType: "address", type: "address" },
345311
- {
345312
- name: "contractsRegister",
345313
- internalType: "address",
345314
- type: "address"
345315
345372
  },
345316
- { name: "treasury", internalType: "address", type: "address" },
345317
345373
  {
345318
- name: "pool",
345319
- internalType: "struct PoolState",
345320
- type: "tuple",
345321
- components: [
345322
- {
345323
- name: "baseParams",
345324
- internalType: "struct BaseParams",
345325
- type: "tuple",
345326
- components: [
345327
- { name: "addr", internalType: "address", type: "address" },
345328
- { name: "version", internalType: "uint256", type: "uint256" },
345329
- {
345330
- name: "contractType",
345331
- internalType: "bytes32",
345332
- type: "bytes32"
345333
- },
345334
- {
345335
- name: "serializedParams",
345336
- internalType: "bytes",
345337
- type: "bytes"
345338
- }
345339
- ]
345340
- },
345341
- { name: "symbol", internalType: "string", type: "string" },
345342
- { name: "name", internalType: "string", type: "string" },
345343
- { name: "decimals", internalType: "uint8", type: "uint8" },
345344
- { name: "totalSupply", internalType: "uint256", type: "uint256" },
345345
- {
345346
- name: "poolQuotaKeeper",
345347
- internalType: "address",
345348
- type: "address"
345349
- },
345350
- {
345351
- name: "interestRateModel",
345352
- internalType: "address",
345353
- type: "address"
345354
- },
345355
- { name: "underlying", internalType: "address", type: "address" },
345356
- {
345357
- name: "availableLiquidity",
345358
- internalType: "uint256",
345359
- type: "uint256"
345360
- },
345361
- {
345362
- name: "expectedLiquidity",
345363
- internalType: "uint256",
345364
- type: "uint256"
345365
- },
345366
- {
345367
- name: "baseInterestIndex",
345368
- internalType: "uint256",
345369
- type: "uint256"
345370
- },
345371
- {
345372
- name: "baseInterestRate",
345373
- internalType: "uint256",
345374
- type: "uint256"
345375
- },
345376
- { name: "dieselRate", internalType: "uint256", type: "uint256" },
345377
- { name: "supplyRate", internalType: "uint256", type: "uint256" },
345378
- { name: "withdrawFee", internalType: "uint256", type: "uint256" },
345379
- {
345380
- name: "totalBorrowed",
345381
- internalType: "uint256",
345382
- type: "uint256"
345383
- },
345384
- {
345385
- name: "totalDebtLimit",
345386
- internalType: "uint256",
345387
- type: "uint256"
345388
- },
345389
- {
345390
- name: "creditManagerDebtParams",
345391
- internalType: "struct CreditManagerDebtParams[]",
345392
- type: "tuple[]",
345393
- components: [
345394
- {
345395
- name: "creditManager",
345396
- internalType: "address",
345397
- type: "address"
345398
- },
345399
- {
345400
- name: "borrowed",
345401
- internalType: "uint256",
345402
- type: "uint256"
345403
- },
345404
- { name: "limit", internalType: "uint256", type: "uint256" },
345405
- {
345406
- name: "available",
345407
- internalType: "uint256",
345408
- type: "uint256"
345409
- }
345410
- ]
345411
- },
345412
- {
345413
- name: "baseInterestIndexLU",
345414
- internalType: "uint256",
345415
- type: "uint256"
345416
- },
345417
- {
345418
- name: "expectedLiquidityLU",
345419
- internalType: "uint256",
345420
- type: "uint256"
345421
- },
345422
- {
345423
- name: "quotaRevenue",
345424
- internalType: "uint256",
345425
- type: "uint256"
345426
- },
345427
- {
345428
- name: "lastBaseInterestUpdate",
345429
- internalType: "uint40",
345430
- type: "uint40"
345431
- },
345432
- {
345433
- name: "lastQuotaRevenueUpdate",
345434
- internalType: "uint40",
345435
- type: "uint40"
345436
- },
345437
- { name: "isPaused", internalType: "bool", type: "bool" }
345438
- ]
345439
- },
345440
- {
345441
- name: "poolQuotaKeeper",
345442
- internalType: "struct PoolQuotaKeeperState",
345374
+ name: "poolQuotaKeeper",
345375
+ internalType: "struct PoolQuotaKeeperState",
345443
345376
  type: "tuple",
345444
345377
  components: [
345445
345378
  {
@@ -368639,212 +368572,888 @@ var iCreditFacadeV310MulticallAbi = [
368639
368572
  var iMarketConfiguratorV310Abi = [
368640
368573
  {
368641
368574
  type: "function",
368642
- name: "adapterFactory",
368575
+ name: "acl",
368643
368576
  inputs: [],
368644
- outputs: [
368645
- {
368646
- name: "",
368647
- type: "address",
368648
- internalType: "address"
368649
- }
368650
- ],
368577
+ outputs: [{ name: "", type: "address", internalType: "address" }],
368651
368578
  stateMutability: "view"
368652
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
+ },
368653
368600
  {
368654
368601
  type: "function",
368655
368602
  name: "addressProvider",
368656
368603
  inputs: [],
368657
- outputs: [
368658
- {
368659
- name: "",
368660
- type: "address",
368661
- internalType: "address"
368662
- }
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" }
368663
368621
  ],
368622
+ outputs: [],
368623
+ stateMutability: "nonpayable"
368624
+ },
368625
+ {
368626
+ type: "function",
368627
+ name: "bytecodeRepository",
368628
+ inputs: [],
368629
+ outputs: [{ name: "", type: "address", internalType: "address" }],
368664
368630
  stateMutability: "view"
368665
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
+ },
368666
368692
  {
368667
368693
  type: "function",
368668
368694
  name: "contractType",
368669
368695
  inputs: [],
368670
- outputs: [
368671
- {
368672
- name: "",
368673
- type: "bytes32",
368674
- internalType: "bytes32"
368675
- }
368676
- ],
368696
+ outputs: [{ name: "", type: "bytes32", internalType: "bytes32" }],
368677
368697
  stateMutability: "view"
368678
368698
  },
368679
368699
  {
368680
368700
  type: "function",
368681
368701
  name: "contractsRegister",
368682
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
+ ],
368683
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" },
368684
368727
  {
368685
- name: "",
368686
- type: "address",
368687
- internalType: "address"
368688
- }
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" }
368689
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" }],
368690
368767
  stateMutability: "view"
368691
368768
  },
368692
368769
  {
368693
368770
  type: "function",
368694
- name: "controller",
368771
+ name: "emergencyAdmin",
368695
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" }],
368696
368876
  outputs: [
368697
368877
  {
368698
368878
  name: "",
368699
- type: "address",
368700
- 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
+ ]
368701
368904
  }
368702
368905
  ],
368703
368906
  stateMutability: "view"
368704
368907
  },
368705
368908
  {
368706
368909
  type: "function",
368707
- name: "CreditSuite",
368708
- inputs: [],
368709
- 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" },
368710
368940
  {
368711
- name: "",
368712
- type: "address",
368713
- internalType: "address"
368714
- }
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" }
368715
368952
  ],
368716
368953
  stateMutability: "view"
368717
368954
  },
368718
368955
  {
368719
368956
  type: "function",
368720
- name: "interestModelFactory",
368721
- 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
+ ],
368722
368963
  outputs: [
368723
- {
368724
- name: "",
368725
- type: "address",
368726
- internalType: "address"
368727
- }
368964
+ { name: "creditManager", type: "address", internalType: "address" }
368728
368965
  ],
368729
368966
  stateMutability: "view"
368730
368967
  },
368731
368968
  {
368732
368969
  type: "function",
368733
- 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",
368734
369027
  inputs: [],
368735
- 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" },
368736
369047
  {
368737
- name: "",
368738
- type: "address",
368739
- 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
+ ]
368740
369056
  }
368741
369057
  ],
368742
- stateMutability: "view"
369058
+ outputs: [{ name: "irm", type: "address", internalType: "address" }],
369059
+ stateMutability: "nonpayable"
368743
369060
  },
368744
369061
  {
368745
369062
  type: "function",
368746
- name: "poolFactory",
368747
- inputs: [],
368748
- outputs: [
369063
+ name: "updateLossPolicy",
369064
+ inputs: [
369065
+ { name: "pool", type: "address", internalType: "address" },
368749
369066
  {
368750
- name: "",
368751
- type: "address",
368752
- 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
+ ]
368753
369075
  }
368754
369076
  ],
368755
- stateMutability: "view"
369077
+ outputs: [{ name: "lossPolicy", type: "address", internalType: "address" }],
369078
+ stateMutability: "nonpayable"
368756
369079
  },
368757
369080
  {
368758
369081
  type: "function",
368759
- name: "pools",
368760
- inputs: [],
369082
+ name: "updatePriceOracle",
369083
+ inputs: [{ name: "pool", type: "address", internalType: "address" }],
368761
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" },
368762
369094
  {
368763
- name: "",
368764
- type: "address[]",
368765
- 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
+ ]
368766
369103
  }
368767
369104
  ],
368768
- 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"
368769
369123
  },
368770
369124
  {
368771
369125
  type: "function",
368772
- name: "priceOracleFactory",
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"
369151
+ },
369152
+ {
369153
+ type: "function",
369154
+ name: "version",
368773
369155
  inputs: [],
368774
- outputs: [
369156
+ outputs: [{ name: "", type: "uint256", internalType: "uint256" }],
369157
+ stateMutability: "view"
369158
+ },
369159
+ {
369160
+ type: "event",
369161
+ name: "AddPeripheryContract",
369162
+ inputs: [
368775
369163
  {
368776
- name: "",
369164
+ name: "domain",
369165
+ type: "bytes32",
369166
+ indexed: true,
369167
+ internalType: "bytes32"
369168
+ },
369169
+ {
369170
+ name: "peripheryContract",
368777
369171
  type: "address",
369172
+ indexed: true,
368778
369173
  internalType: "address"
368779
369174
  }
368780
369175
  ],
368781
- stateMutability: "view"
369176
+ anonymous: false
368782
369177
  },
368783
369178
  {
368784
- type: "function",
368785
- name: "treasury",
368786
- inputs: [],
368787
- outputs: [
369179
+ type: "event",
369180
+ name: "AddToken",
369181
+ inputs: [
369182
+ { name: "pool", type: "address", indexed: true, internalType: "address" },
368788
369183
  {
368789
- name: "",
369184
+ name: "token",
368790
369185
  type: "address",
369186
+ indexed: true,
368791
369187
  internalType: "address"
368792
369188
  }
368793
369189
  ],
368794
- stateMutability: "view"
369190
+ anonymous: false
368795
369191
  },
368796
369192
  {
368797
- type: "function",
368798
- name: "version",
368799
- inputs: [],
368800
- outputs: [
369193
+ type: "event",
369194
+ name: "AuthorizeFactory",
369195
+ inputs: [
368801
369196
  {
368802
- name: "",
368803
- type: "uint256",
368804
- 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"
368805
369213
  }
368806
369214
  ],
368807
- stateMutability: "view"
369215
+ anonymous: false
368808
369216
  },
368809
369217
  {
368810
369218
  type: "event",
368811
- name: "CreateMarket",
369219
+ name: "ConfigureCreditSuite",
368812
369220
  inputs: [
368813
369221
  {
368814
- name: "pool",
369222
+ name: "creditManager",
368815
369223
  type: "address",
368816
369224
  indexed: true,
368817
369225
  internalType: "address"
368818
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: [
368819
369280
  {
368820
- name: "underlying",
369281
+ name: "creditManager",
368821
369282
  type: "address",
368822
369283
  indexed: true,
368823
369284
  internalType: "address"
368824
369285
  },
368825
369286
  {
368826
- name: "_name",
368827
- type: "string",
369287
+ name: "factory",
369288
+ type: "address",
368828
369289
  indexed: false,
368829
- 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"
368830
369305
  },
368831
369306
  {
368832
- name: "_symbol",
368833
- type: "string",
369307
+ name: "interestRateModel",
369308
+ type: "address",
368834
369309
  indexed: false,
368835
- 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
+ ]
368836
369352
  }
368837
369353
  ],
368838
369354
  anonymous: false
368839
369355
  },
368840
369356
  {
368841
369357
  type: "event",
368842
- name: "DeployDegenNFT",
369358
+ name: "EmergencyConfigureCreditSuite",
368843
369359
  inputs: [
368844
369360
  {
368845
- name: "",
369361
+ name: "creditManager",
368846
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",
368847
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,
368848
369457
  internalType: "address"
368849
369458
  }
368850
369459
  ],
@@ -368852,10 +369461,16 @@ var iMarketConfiguratorV310Abi = [
368852
369461
  },
368853
369462
  {
368854
369463
  type: "event",
368855
- name: "RemoveMarket",
369464
+ name: "RemovePeripheryContract",
368856
369465
  inputs: [
368857
369466
  {
368858
- name: "pool",
369467
+ name: "domain",
369468
+ type: "bytes32",
369469
+ indexed: true,
369470
+ internalType: "bytes32"
369471
+ },
369472
+ {
369473
+ name: "peripheryContract",
368859
369474
  type: "address",
368860
369475
  indexed: true,
368861
369476
  internalType: "address"
@@ -368865,60 +369480,268 @@ var iMarketConfiguratorV310Abi = [
368865
369480
  },
368866
369481
  {
368867
369482
  type: "event",
368868
- name: "SetName",
369483
+ name: "RevokeRole",
368869
369484
  inputs: [
369485
+ { name: "role", type: "bytes32", indexed: true, internalType: "bytes32" },
368870
369486
  {
368871
- name: "name",
368872
- type: "string",
368873
- indexed: false,
368874
- internalType: "string"
369487
+ name: "account",
369488
+ type: "address",
369489
+ indexed: true,
369490
+ internalType: "address"
368875
369491
  }
368876
369492
  ],
368877
369493
  anonymous: false
368878
369494
  },
368879
369495
  {
368880
369496
  type: "event",
368881
- name: "SetPriceFeedFromStore",
369497
+ name: "SetEmergencyAdmin",
368882
369498
  inputs: [
368883
369499
  {
368884
- 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",
368885
369535
  type: "address",
368886
369536
  indexed: true,
368887
369537
  internalType: "address"
368888
369538
  },
368889
369539
  {
368890
- name: "priceFeed",
369540
+ name: "suite",
368891
369541
  type: "address",
368892
369542
  indexed: true,
368893
369543
  internalType: "address"
368894
369544
  },
368895
369545
  {
368896
- name: "trusted",
368897
- 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",
368898
369562
  indexed: false,
368899
- internalType: "bool"
369563
+ internalType: "address"
368900
369564
  }
368901
369565
  ],
368902
369566
  anonymous: false
368903
369567
  },
368904
369568
  {
368905
369569
  type: "event",
368906
- name: "SetReservePriceFeedFromStore",
369570
+ name: "UpdateLossPolicy",
368907
369571
  inputs: [
369572
+ { name: "pool", type: "address", indexed: true, internalType: "address" },
368908
369573
  {
368909
- 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",
368910
369616
  type: "address",
368911
369617
  indexed: true,
368912
369618
  internalType: "address"
368913
369619
  },
368914
369620
  {
368915
- name: "priceFeedd",
369621
+ name: "factory",
368916
369622
  type: "address",
368917
- 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,
368918
369638
  internalType: "address"
368919
369639
  }
368920
369640
  ],
368921
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,
369680
+ internalType: "address"
369681
+ }
369682
+ ],
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
+ ]
368922
369745
  }
368923
369746
  ];
368924
369747
  var iCreditConfiguratorV310Abi = [
@@ -369653,7 +370476,6 @@ var DEPRECIATED_POOLS = {
369653
370476
  var NO_VERSION = 0;
369654
370477
  var AP_BOT_LIST = "BOT_LIST";
369655
370478
  var AP_CREDIT_ACCOUNT_COMPRESSOR = "CREDIT_ACCOUNT_COMPRESSOR";
369656
- var AP_GAUGE_COMPRESSOR = "GAUGE_COMPRESSOR";
369657
370479
  var AP_GEAR_STAKING = "GEAR_STAKING";
369658
370480
  var AP_GEAR_TOKEN = "GEAR_TOKEN";
369659
370481
  var AP_MARKET_COMPRESSOR = "MARKET_COMPRESSOR";
@@ -369718,12 +370540,11 @@ var ADDRESS_PROVIDER_BLOCK = {
369718
370540
  Sonic: 0n
369719
370541
  };
369720
370542
  var BLOCK_DURATION_BY_NETWORK = {
369721
- Mainnet: 12.16,
370543
+ Mainnet: 12.05,
369722
370544
  Arbitrum: 0.26,
369723
- Optimism: 1.64,
370545
+ Optimism: 2,
369724
370546
  Base: 2.01,
369725
- // TODO:
369726
- Sonic: 1
370547
+ Sonic: 0.91
369727
370548
  };
369728
370549
  var RAMP_TIME = 30 * 24 * 60 * 60 * 1.2;
369729
370550
  var RAMP_DURATION_BY_NETWORK = {
@@ -371519,6 +372340,7 @@ async function simulateMulticall(client, parameters) {
371519
372340
  }
371520
372341
  var abi28 = iMarketConfiguratorV310Abi;
371521
372342
  var MarketConfiguratorContract = class extends BaseContract {
372343
+ #curatorName;
371522
372344
  constructor(sdk, address) {
371523
372345
  super(sdk, {
371524
372346
  abi: abi28,
@@ -371527,13 +372349,24 @@ var MarketConfiguratorContract = class extends BaseContract {
371527
372349
  version: 0
371528
372350
  });
371529
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
+ }
371530
372363
  processLog(log2) {
371531
372364
  switch (log2.eventName) {
371532
372365
  // case "DeployDegenNFT":
371533
372366
  // case "SetName":
371534
372367
  // case "SetPriceFeedFromStore":
371535
372368
  // case "SetReservePriceFeedFromStore":
371536
- case "RemoveMarket":
372369
+ case "ShutdownMarket":
371537
372370
  case "CreateMarket":
371538
372371
  this.dirty = true;
371539
372372
  break;
@@ -380456,31 +381289,8 @@ var MarketRegister = class extends SDKConstruct {
380456
381289
  this.sdk.provider.addressLabels.set(t.addr, t.symbol);
380457
381290
  }
380458
381291
  }
380459
- async getGauges(staker) {
380460
- const gcAddr = this.sdk.addressProvider.getLatestVersion(AP_GAUGE_COMPRESSOR);
380461
- if (!this.#marketFilter) {
380462
- throw new Error("market filter is not set");
380463
- }
380464
- const resp = await this.provider.publicClient.readContract({
380465
- abi: iGaugeCompressorAbi,
380466
- address: gcAddr,
380467
- functionName: "getGauges",
380468
- args: [this.#marketFilter, staker]
380469
- });
380470
- return [...resp];
380471
- }
380472
- async getGauge(gauge, staker) {
380473
- const gcAddr = this.sdk.addressProvider.getLatestVersion(AP_GAUGE_COMPRESSOR);
380474
- if (!this.#marketFilter) {
380475
- throw new Error("market filter is not set");
380476
- }
380477
- const resp = await this.provider.publicClient.readContract({
380478
- abi: iGaugeCompressorAbi,
380479
- address: gcAddr,
380480
- functionName: "getGauge",
380481
- args: [gauge, staker]
380482
- });
380483
- return resp;
381292
+ get marketFilter() {
381293
+ return this.#marketFilter;
380484
381294
  }
380485
381295
  async syncState() {
380486
381296
  const pools = this.markets.filter((m) => m.dirty).map((m) => m.pool.pool.address);
@@ -381166,18 +381976,23 @@ var CHARTS_BACKEND_ADDRESSES = {
381166
381976
  [chains.Arbitrum.id]: "https://charts-server.fly.dev",
381167
381977
  [chains.Optimism.id]: "https://charts-server.fly.dev",
381168
381978
  [chains.Base.id]: "https://charts-server.fly.dev",
381979
+ [chains.Sonic.id]: "https://charts-server.fly.dev",
381169
381980
  [TESTNET_CHAINS.Mainnet]: "https://testnet.gearbox.foundation",
381170
381981
  [TESTNET_CHAINS.Arbitrum]: "https://arbtest.gearbox.foundation",
381171
381982
  [TESTNET_CHAINS.Optimism]: "https://opttest.gearbox.foundation"
381172
- // !& Base
381983
+ // !& Base & Sonic
381173
381984
  };
381174
381985
  var LEADERBOARD_APIS = {
381175
381986
  [chains.Mainnet.id]: "https://gpointbot.fly.dev",
381176
381987
  [chains.Optimism.id]: "https://gpointbot.fly.dev",
381177
381988
  [chains.Arbitrum.id]: "https://gpointbot.fly.dev",
381989
+ [chains.Base.id]: "https://gpointbot.fly.dev",
381990
+ [chains.Sonic.id]: "https://gpointbot.fly.dev",
381178
381991
  [TESTNET_CHAINS.Mainnet]: "https://testnet.gearbox.foundation/gpointbot",
381179
381992
  [TESTNET_CHAINS.Optimism]: "https://testnet.gearbox.foundation/gpointbot",
381180
- [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"
381181
381996
  };
381182
381997
  var iBaseRewardPoolAbi = [
381183
381998
  {
@@ -382529,14 +383344,6 @@ var GearStakingContract = class extends BaseContract {
382529
383344
  });
382530
383345
  }
382531
383346
  };
382532
- var GAUGE_COMPRESSORS = {
382533
- [chains.Mainnet.id]: "0x104c4e209329524adb0febE8b6481346a6eB75C6",
382534
- [chains.Arbitrum.id]: "0x88aa4FbF86392cBF6f6517790E288314DE03E181",
382535
- [chains.Optimism.id]: "0x2697e6Ddbf572df3403B2451b954762Fd22002F6",
382536
- [TESTNET_CHAINS.Mainnet]: "0x104c4e209329524adb0febE8b6481346a6eB75C6",
382537
- [TESTNET_CHAINS.Arbitrum]: "0x88aa4FbF86392cBF6f6517790E288314DE03E181",
382538
- [TESTNET_CHAINS.Optimism]: "0x2697e6Ddbf572df3403B2451b954762Fd22002F6"
382539
- };
382540
383347
  var GearboxSDK = class _GearboxSDK {
382541
383348
  #hooks = new Hooks();
382542
383349
  // Represents chain object
@@ -408902,6 +409709,12 @@ var SDKExample = class {
408902
409709
  await publicClient.waitForTransactionReceipt({ hash: hash2 });
408903
409710
  await this.#sdk.marketRegister.loadMarkets(marketConfigurators, true);
408904
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");
408905
409718
  if (outFile) {
408906
409719
  try {
408907
409720
  await writeFile2(
@@ -416202,7 +417015,7 @@ function getRenderer(opts) {
416202
417015
  var package_default = {
416203
417016
  name: "@gearbox-protocol/deploy-tools",
416204
417017
  description: "Gearbox deploy tools",
416205
- version: "5.9.18",
417018
+ version: "5.9.20",
416206
417019
  homepage: "https://gearbox.fi",
416207
417020
  keywords: [
416208
417021
  "gearbox"
@@ -416245,8 +417058,8 @@ var package_default = {
416245
417058
  "@gearbox-protocol/deploy-tools-node": "0.0.0",
416246
417059
  "@gearbox-protocol/deploy-tools-shared": "0.0.0",
416247
417060
  "@gearbox-protocol/deploy-tools-types": "0.0.0",
416248
- "@gearbox-protocol/sdk": "3.0.0-vfour.226",
416249
- "@gearbox-protocol/sdk-gov": "^2.34.0",
417061
+ "@gearbox-protocol/sdk": "3.0.0-vfour.229",
417062
+ "@gearbox-protocol/sdk-gov": "^2.34.1",
416250
417063
  "@types/lodash-es": "^4.17.12",
416251
417064
  "@types/node": "^22.13.1",
416252
417065
  "@types/react": "^19.0.8",
@@ -416267,7 +417080,7 @@ var package_default = {
416267
417080
  "react-dom": "^19.0.0",
416268
417081
  table: "^6.9.0",
416269
417082
  tsx: "^4.19.2",
416270
- viem: "^2.23.0",
417083
+ viem: "^2.23.1",
416271
417084
  yaml: "^2.7.0",
416272
417085
  zod: "^3.24.1"
416273
417086
  },