@gearbox-protocol/deploy-tools 5.49.13 → 5.49.14

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 +537 -330
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -4323,15 +4323,15 @@ var init_structs = __esm({
4323
4323
  // ../../node_modules/abitype/dist/esm/human-readable/parseAbi.js
4324
4324
  function parseAbi(signatures) {
4325
4325
  const structs = parseStructs(signatures);
4326
- const abi29 = [];
4326
+ const abi30 = [];
4327
4327
  const length = signatures.length;
4328
4328
  for (let i = 0; i < length; i++) {
4329
4329
  const signature = signatures[i];
4330
4330
  if (isStructSignature(signature))
4331
4331
  continue;
4332
- abi29.push(parseSignature(signature, structs));
4332
+ abi30.push(parseSignature(signature, structs));
4333
4333
  }
4334
- return abi29;
4334
+ return abi30;
4335
4335
  }
4336
4336
  var init_parseAbi = __esm({
4337
4337
  "../../node_modules/abitype/dist/esm/human-readable/parseAbi.js"() {
@@ -6093,9 +6093,9 @@ var init_toFunctionSelector = __esm({
6093
6093
 
6094
6094
  // ../../node_modules/viem/_esm/utils/abi/getAbiItem.js
6095
6095
  function getAbiItem(parameters) {
6096
- const { abi: abi29, args = [], name } = parameters;
6096
+ const { abi: abi30, args = [], name } = parameters;
6097
6097
  const isSelector = isHex(name, { strict: false });
6098
- const abiItems = abi29.filter((abiItem) => {
6098
+ const abiItems = abi30.filter((abiItem) => {
6099
6099
  if (isSelector) {
6100
6100
  if (abiItem.type === "function")
6101
6101
  return toFunctionSelector(abiItem) === name;
@@ -6225,11 +6225,11 @@ var init_parseAccount = __esm({
6225
6225
 
6226
6226
  // ../../node_modules/viem/_esm/utils/abi/prepareEncodeFunctionData.js
6227
6227
  function prepareEncodeFunctionData(parameters) {
6228
- const { abi: abi29, args, functionName } = parameters;
6229
- let abiItem = abi29[0];
6228
+ const { abi: abi30, args, functionName } = parameters;
6229
+ let abiItem = abi30[0];
6230
6230
  if (functionName) {
6231
6231
  const item = getAbiItem({
6232
- abi: abi29,
6232
+ abi: abi30,
6233
6233
  args,
6234
6234
  name: functionName
6235
6235
  });
@@ -6258,12 +6258,12 @@ var init_prepareEncodeFunctionData = __esm({
6258
6258
  // ../../node_modules/viem/_esm/utils/abi/encodeFunctionData.js
6259
6259
  function encodeFunctionData(parameters) {
6260
6260
  const { args } = parameters;
6261
- const { abi: abi29, functionName } = (() => {
6261
+ const { abi: abi30, functionName } = (() => {
6262
6262
  if (parameters.abi.length === 1 && parameters.functionName?.startsWith("0x"))
6263
6263
  return parameters;
6264
6264
  return prepareEncodeFunctionData(parameters);
6265
6265
  })();
6266
- const abiItem = abi29[0];
6266
+ const abiItem = abi30[0];
6267
6267
  const signature = functionName;
6268
6268
  const data = "inputs" in abiItem && abiItem.inputs ? encodeAbiParameters(abiItem.inputs, args ?? []) : void 0;
6269
6269
  return concatHex([signature, data ?? "0x"]);
@@ -6758,11 +6758,11 @@ var init_decodeAbiParameters = __esm({
6758
6758
 
6759
6759
  // ../../node_modules/viem/_esm/utils/abi/decodeErrorResult.js
6760
6760
  function decodeErrorResult(parameters) {
6761
- const { abi: abi29, data } = parameters;
6761
+ const { abi: abi30, data } = parameters;
6762
6762
  const signature = slice(data, 0, 4);
6763
6763
  if (signature === "0x")
6764
6764
  throw new AbiDecodingZeroDataError();
6765
- const abi_ = [...abi29 || [], solidityError, solidityPanic];
6765
+ const abi_ = [...abi30 || [], solidityError, solidityPanic];
6766
6766
  const abiItem = abi_.find((x) => x.type === "error" && signature === toFunctionSelector(formatAbiItem2(x)));
6767
6767
  if (!abiItem)
6768
6768
  throw new AbiErrorSignatureNotFoundError(signature, {
@@ -7105,8 +7105,8 @@ ${prettyStateOverride(stateOverride)}`;
7105
7105
  }
7106
7106
  };
7107
7107
  ContractFunctionExecutionError = class extends BaseError2 {
7108
- constructor(cause, { abi: abi29, args, contractAddress, docsPath: docsPath8, functionName, sender }) {
7109
- const abiItem = getAbiItem({ abi: abi29, args, name: functionName });
7108
+ constructor(cause, { abi: abi30, args, contractAddress, docsPath: docsPath8, functionName, sender }) {
7109
+ const abiItem = getAbiItem({ abi: abi30, args, name: functionName });
7110
7110
  const formattedArgs = abiItem ? formatAbiItemWithArgs({
7111
7111
  abiItem,
7112
7112
  args,
@@ -7172,7 +7172,7 @@ ${prettyStateOverride(stateOverride)}`;
7172
7172
  writable: true,
7173
7173
  value: void 0
7174
7174
  });
7175
- this.abi = abi29;
7175
+ this.abi = abi30;
7176
7176
  this.args = args;
7177
7177
  this.cause = cause;
7178
7178
  this.contractAddress = contractAddress;
@@ -7181,14 +7181,14 @@ ${prettyStateOverride(stateOverride)}`;
7181
7181
  }
7182
7182
  };
7183
7183
  ContractFunctionRevertedError = class extends BaseError2 {
7184
- constructor({ abi: abi29, data, functionName, message: message2 }) {
7184
+ constructor({ abi: abi30, data, functionName, message: message2 }) {
7185
7185
  let cause;
7186
7186
  let decodedData;
7187
7187
  let metaMessages;
7188
7188
  let reason;
7189
7189
  if (data && data !== "0x") {
7190
7190
  try {
7191
- decodedData = decodeErrorResult({ abi: abi29, data });
7191
+ decodedData = decodeErrorResult({ abi: abi30, data });
7192
7192
  const { abiItem, errorName, args: errorArgs } = decodedData;
7193
7193
  if (errorName === "Error") {
7194
7194
  reason = errorArgs[0];
@@ -10886,10 +10886,10 @@ var init_isAddressEqual = __esm({
10886
10886
 
10887
10887
  // ../../node_modules/viem/_esm/utils/abi/decodeFunctionResult.js
10888
10888
  function decodeFunctionResult(parameters) {
10889
- const { abi: abi29, args, functionName, data } = parameters;
10890
- let abiItem = abi29[0];
10889
+ const { abi: abi30, args, functionName, data } = parameters;
10890
+ let abiItem = abi30[0];
10891
10891
  if (functionName) {
10892
- const item = getAbiItem({ abi: abi29, args, name: functionName });
10892
+ const item = getAbiItem({ abi: abi30, args, name: functionName });
10893
10893
  if (!item)
10894
10894
  throw new AbiFunctionNotFoundError(functionName, { docsPath: docsPath4 });
10895
10895
  abiItem = item;
@@ -12745,10 +12745,10 @@ var init_chain = __esm({
12745
12745
 
12746
12746
  // ../../node_modules/viem/_esm/utils/abi/encodeDeployData.js
12747
12747
  function encodeDeployData(parameters) {
12748
- const { abi: abi29, args, bytecode } = parameters;
12748
+ const { abi: abi30, args, bytecode } = parameters;
12749
12749
  if (!args || args.length === 0)
12750
12750
  return bytecode;
12751
- const description = abi29.find((x) => "type" in x && x.type === "constructor");
12751
+ const description = abi30.find((x) => "type" in x && x.type === "constructor");
12752
12752
  if (!description)
12753
12753
  throw new AbiConstructorNotFoundError({ docsPath: docsPath5 });
12754
12754
  if (!("inputs" in description))
@@ -12936,9 +12936,9 @@ var init_ccip = __esm({
12936
12936
 
12937
12937
  // ../../node_modules/viem/_esm/utils/abi/decodeFunctionData.js
12938
12938
  function decodeFunctionData(parameters) {
12939
- const { abi: abi29, data } = parameters;
12939
+ const { abi: abi30, data } = parameters;
12940
12940
  const signature = slice(data, 0, 4);
12941
- const description = abi29.find((x) => x.type === "function" && signature === toFunctionSelector(formatAbiItem2(x)));
12941
+ const description = abi30.find((x) => x.type === "function" && signature === toFunctionSelector(formatAbiItem2(x)));
12942
12942
  if (!description)
12943
12943
  throw new AbiFunctionSignatureNotFoundError(signature, {
12944
12944
  docsPath: "/docs/contract/decodeFunctionData"
@@ -12960,10 +12960,10 @@ var init_decodeFunctionData = __esm({
12960
12960
 
12961
12961
  // ../../node_modules/viem/_esm/utils/abi/encodeErrorResult.js
12962
12962
  function encodeErrorResult(parameters) {
12963
- const { abi: abi29, errorName, args } = parameters;
12964
- let abiItem = abi29[0];
12963
+ const { abi: abi30, errorName, args } = parameters;
12964
+ let abiItem = abi30[0];
12965
12965
  if (errorName) {
12966
- const item = getAbiItem({ abi: abi29, args, name: errorName });
12966
+ const item = getAbiItem({ abi: abi30, args, name: errorName });
12967
12967
  if (!item)
12968
12968
  throw new AbiErrorNotFoundError(errorName, { docsPath: docsPath6 });
12969
12969
  abiItem = item;
@@ -12995,10 +12995,10 @@ var init_encodeErrorResult = __esm({
12995
12995
 
12996
12996
  // ../../node_modules/viem/_esm/utils/abi/encodeFunctionResult.js
12997
12997
  function encodeFunctionResult(parameters) {
12998
- const { abi: abi29, functionName, result } = parameters;
12999
- let abiItem = abi29[0];
12998
+ const { abi: abi30, functionName, result } = parameters;
12999
+ let abiItem = abi30[0];
13000
13000
  if (functionName) {
13001
- const item = getAbiItem({ abi: abi29, name: functionName });
13001
+ const item = getAbiItem({ abi: abi30, name: functionName });
13002
13002
  if (!item)
13003
13003
  throw new AbiFunctionNotFoundError(functionName, { docsPath: docsPath7 });
13004
13004
  abiItem = item;
@@ -35374,13 +35374,13 @@ var require_interface = __commonJS({
35374
35374
  function Interface2(fragments) {
35375
35375
  var _newTarget = this.constructor;
35376
35376
  var _this = this;
35377
- var abi29 = [];
35377
+ var abi30 = [];
35378
35378
  if (typeof fragments === "string") {
35379
- abi29 = JSON.parse(fragments);
35379
+ abi30 = JSON.parse(fragments);
35380
35380
  } else {
35381
- abi29 = fragments;
35381
+ abi30 = fragments;
35382
35382
  }
35383
- (0, properties_1.defineReadOnly)(this, "fragments", abi29.map(function(fragment) {
35383
+ (0, properties_1.defineReadOnly)(this, "fragments", abi30.map(function(fragment) {
35384
35384
  return fragments_1.Fragment.from(fragment);
35385
35385
  }).filter(function(fragment) {
35386
35386
  return fragment != null;
@@ -35434,15 +35434,15 @@ var require_interface = __commonJS({
35434
35434
  if (format2 === fragments_1.FormatTypes.sighash) {
35435
35435
  logger2.throwArgumentError("interface does not support formatting sighash", "format", format2);
35436
35436
  }
35437
- var abi29 = this.fragments.map(function(fragment) {
35437
+ var abi30 = this.fragments.map(function(fragment) {
35438
35438
  return fragment.format(format2);
35439
35439
  });
35440
35440
  if (format2 === fragments_1.FormatTypes.json) {
35441
- return JSON.stringify(abi29.map(function(j) {
35441
+ return JSON.stringify(abi30.map(function(j) {
35442
35442
  return JSON.parse(j);
35443
35443
  }));
35444
35444
  }
35445
- return abi29;
35445
+ return abi30;
35446
35446
  };
35447
35447
  Interface2.getAbiCoder = function() {
35448
35448
  return abi_coder_1.defaultAbiCoder;
@@ -51185,14 +51185,14 @@ var require_lib29 = __commonJS({
51185
51185
  if (typeof compilerOutput === "string") {
51186
51186
  compilerOutput = JSON.parse(compilerOutput);
51187
51187
  }
51188
- var abi29 = compilerOutput.abi;
51188
+ var abi30 = compilerOutput.abi;
51189
51189
  var bytecode = null;
51190
51190
  if (compilerOutput.bytecode) {
51191
51191
  bytecode = compilerOutput.bytecode;
51192
51192
  } else if (compilerOutput.evm && compilerOutput.evm.bytecode) {
51193
51193
  bytecode = compilerOutput.evm.bytecode;
51194
51194
  }
51195
- return new this(abi29, bytecode, signer);
51195
+ return new this(abi30, bytecode, signer);
51196
51196
  };
51197
51197
  ContractFactory2.getInterface = function(contractInterface) {
51198
51198
  return Contract.getInterface(contractInterface);
@@ -55707,7 +55707,7 @@ var require_node_gyp_build = __commonJS({
55707
55707
  var runtimeRequire = typeof __webpack_require__ === "function" ? __non_webpack_require__ : __require;
55708
55708
  var vars = process.config && process.config.variables || {};
55709
55709
  var prebuildsOnly = !!process.env.PREBUILDS_ONLY;
55710
- var abi29 = process.versions.modules;
55710
+ var abi30 = process.versions.modules;
55711
55711
  var runtime = isElectron() ? "electron" : isNwjs() ? "node-webkit" : "node";
55712
55712
  var arch = process.env.npm_config_arch || os2.arch();
55713
55713
  var platform = process.env.npm_config_platform || os2.platform();
@@ -55739,7 +55739,7 @@ var require_node_gyp_build = __commonJS({
55739
55739
  "platform=" + platform,
55740
55740
  "arch=" + arch,
55741
55741
  "runtime=" + runtime,
55742
- "abi=" + abi29,
55742
+ "abi=" + abi30,
55743
55743
  "uv=" + uv,
55744
55744
  armv ? "armv=" + armv : "",
55745
55745
  "libc=" + libc,
@@ -55755,7 +55755,7 @@ var require_node_gyp_build = __commonJS({
55755
55755
  if (!tuple2) return;
55756
55756
  var prebuilds = path12.join(dir2, "prebuilds", tuple2.name);
55757
55757
  var parsed = readdirSync(prebuilds).map(parseTags);
55758
- var candidates = parsed.filter(matchTags(runtime, abi29));
55758
+ var candidates = parsed.filter(matchTags(runtime, abi30));
55759
55759
  var winner = candidates.sort(compareTags(runtime))[0];
55760
55760
  if (winner) return path12.join(prebuilds, winner.file);
55761
55761
  }
@@ -55820,11 +55820,11 @@ var require_node_gyp_build = __commonJS({
55820
55820
  }
55821
55821
  return tags;
55822
55822
  }
55823
- function matchTags(runtime2, abi30) {
55823
+ function matchTags(runtime2, abi31) {
55824
55824
  return function(tags) {
55825
55825
  if (tags == null) return false;
55826
55826
  if (tags.runtime && tags.runtime !== runtime2 && !runtimeAgnostic(tags)) return false;
55827
- if (tags.abi && tags.abi !== abi30 && !tags.napi) return false;
55827
+ if (tags.abi && tags.abi !== abi31 && !tags.napi) return false;
55828
55828
  if (tags.uv && tags.uv !== uv) return false;
55829
55829
  if (tags.armv && tags.armv !== armv) return false;
55830
55830
  if (tags.libc && tags.libc !== libc) return false;
@@ -119231,17 +119231,17 @@ var require_interface2 = __commonJS({
119231
119231
  * Create a new Interface for the %%fragments%%.
119232
119232
  */
119233
119233
  constructor(fragments) {
119234
- let abi29 = [];
119234
+ let abi30 = [];
119235
119235
  if (typeof fragments === "string") {
119236
- abi29 = JSON.parse(fragments);
119236
+ abi30 = JSON.parse(fragments);
119237
119237
  } else {
119238
- abi29 = fragments;
119238
+ abi30 = fragments;
119239
119239
  }
119240
119240
  this.#functions = /* @__PURE__ */ new Map();
119241
119241
  this.#errors = /* @__PURE__ */ new Map();
119242
119242
  this.#events = /* @__PURE__ */ new Map();
119243
119243
  const frags = [];
119244
- for (const a of abi29) {
119244
+ for (const a of abi30) {
119245
119245
  try {
119246
119246
  frags.push(fragments_js_1.Fragment.from(a));
119247
119247
  } catch (error46) {
@@ -119305,16 +119305,16 @@ var require_interface2 = __commonJS({
119305
119305
  */
119306
119306
  format(minimal) {
119307
119307
  const format2 = minimal ? "minimal" : "full";
119308
- const abi29 = this.fragments.map((f) => f.format(format2));
119309
- return abi29;
119308
+ const abi30 = this.fragments.map((f) => f.format(format2));
119309
+ return abi30;
119310
119310
  }
119311
119311
  /**
119312
119312
  * Return the JSON-encoded ABI. This is the format Solidiy
119313
119313
  * returns.
119314
119314
  */
119315
119315
  formatJson() {
119316
- const abi29 = this.fragments.map((f) => f.format("json"));
119317
- return JSON.stringify(abi29.map((j) => JSON.parse(j)));
119316
+ const abi30 = this.fragments.map((f) => f.format("json"));
119317
+ return JSON.stringify(abi30.map((j) => JSON.parse(j)));
119318
119318
  }
119319
119319
  /**
119320
119320
  * The ABI coder that will be used to encode and decode binary
@@ -122082,12 +122082,12 @@ var require_contract = __commonJS({
122082
122082
  * optionally connected to a %%runner%% to perform operations on behalf
122083
122083
  * of.
122084
122084
  */
122085
- constructor(target, abi29, runner, _deployTx) {
122085
+ constructor(target, abi30, runner, _deployTx) {
122086
122086
  (0, index_js_3.assertArgument)(typeof target === "string" || (0, index_js_2.isAddressable)(target), "invalid value for Contract target", "target", target);
122087
122087
  if (runner == null) {
122088
122088
  runner = null;
122089
122089
  }
122090
- const iface = index_js_1.Interface.from(abi29);
122090
+ const iface = index_js_1.Interface.from(abi30);
122091
122091
  (0, index_js_3.defineProperties)(this, { target, runner, interface: iface });
122092
122092
  Object.defineProperty(this, internal, { value: {} });
122093
122093
  let addrPromise;
@@ -122450,10 +122450,10 @@ var require_contract = __commonJS({
122450
122450
  /**
122451
122451
  * Create a new Class for the %%abi%%.
122452
122452
  */
122453
- static buildClass(abi29) {
122453
+ static buildClass(abi30) {
122454
122454
  class CustomContract extends _BaseContract {
122455
122455
  constructor(address, runner = null) {
122456
- super(address, abi29, runner);
122456
+ super(address, abi30, runner);
122457
122457
  }
122458
122458
  }
122459
122459
  return CustomContract;
@@ -122461,11 +122461,11 @@ var require_contract = __commonJS({
122461
122461
  /**
122462
122462
  * Create a new BaseContract with a specified Interface.
122463
122463
  */
122464
- static from(target, abi29, runner) {
122464
+ static from(target, abi30, runner) {
122465
122465
  if (runner == null) {
122466
122466
  runner = null;
122467
122467
  }
122468
- const contract = new this(target, abi29, runner);
122468
+ const contract = new this(target, abi30, runner);
122469
122469
  return contract;
122470
122470
  }
122471
122471
  };
@@ -122509,8 +122509,8 @@ var require_factory = __commonJS({
122509
122509
  * The %%bytecode%% may be the ``bytecode`` property within the
122510
122510
  * standard Solidity JSON output.
122511
122511
  */
122512
- constructor(abi29, bytecode, runner) {
122513
- const iface = index_js_1.Interface.from(abi29);
122512
+ constructor(abi30, bytecode, runner) {
122513
+ const iface = index_js_1.Interface.from(abi30);
122514
122514
  if (bytecode instanceof Uint8Array) {
122515
122515
  bytecode = (0, index_js_3.hexlify)((0, index_js_3.getBytes)(bytecode));
122516
122516
  } else {
@@ -122580,14 +122580,14 @@ var require_factory = __commonJS({
122580
122580
  if (typeof output === "string") {
122581
122581
  output = JSON.parse(output);
122582
122582
  }
122583
- const abi29 = output.abi;
122583
+ const abi30 = output.abi;
122584
122584
  let bytecode = "";
122585
122585
  if (output.bytecode) {
122586
122586
  bytecode = output.bytecode;
122587
122587
  } else if (output.evm && output.evm.bytecode) {
122588
122588
  bytecode = output.evm.bytecode;
122589
122589
  }
122590
- return new this(abi29, bytecode, runner);
122590
+ return new this(abi30, bytecode, runner);
122591
122591
  }
122592
122592
  };
122593
122593
  exports2.ContractFactory = ContractFactory;
@@ -127515,8 +127515,8 @@ var require_provider_etherscan = __commonJS({
127515
127515
  action: "getabi",
127516
127516
  address
127517
127517
  });
127518
- const abi29 = JSON.parse(resp);
127519
- return new index_js_2.Contract(address, abi29, this);
127518
+ const abi30 = JSON.parse(resp);
127519
+ return new index_js_2.Contract(address, abi30, this);
127520
127520
  } catch (error46) {
127521
127521
  return null;
127522
127522
  }
@@ -153207,9 +153207,9 @@ var require_node_gyp_build_optional_packages = __commonJS({
153207
153207
  var vars = process.config && process.config.variables || {};
153208
153208
  var prebuildsOnly = !!process.env.PREBUILDS_ONLY;
153209
153209
  var versions = process.versions;
153210
- var abi29 = versions.modules;
153210
+ var abi30 = versions.modules;
153211
153211
  if (versions.deno || process.isBun) {
153212
- abi29 = "unsupported";
153212
+ abi30 = "unsupported";
153213
153213
  }
153214
153214
  var runtime = isElectron() ? "electron" : "node";
153215
153215
  var arch = process.arch;
@@ -153256,7 +153256,7 @@ var require_node_gyp_build_optional_packages = __commonJS({
153256
153256
  "platform=" + platform,
153257
153257
  "arch=" + arch,
153258
153258
  "runtime=" + runtime,
153259
- "abi=" + abi29,
153259
+ "abi=" + abi30,
153260
153260
  "uv=" + uv,
153261
153261
  armv ? "armv=" + armv : "",
153262
153262
  "libc=" + libc,
@@ -153274,7 +153274,7 @@ var require_node_gyp_build_optional_packages = __commonJS({
153274
153274
  }
153275
153275
  function resolveFile(prebuilds) {
153276
153276
  var parsed = readdirSync(prebuilds).map(parseTags);
153277
- var candidates = parsed.filter(matchTags(runtime, abi29));
153277
+ var candidates = parsed.filter(matchTags(runtime, abi30));
153278
153278
  var winner = candidates.sort(compareTags(runtime))[0];
153279
153279
  if (winner) return path12.join(prebuilds, winner.file);
153280
153280
  }
@@ -153339,11 +153339,11 @@ var require_node_gyp_build_optional_packages = __commonJS({
153339
153339
  }
153340
153340
  return tags;
153341
153341
  }
153342
- function matchTags(runtime2, abi30) {
153342
+ function matchTags(runtime2, abi31) {
153343
153343
  return function(tags) {
153344
153344
  if (tags == null) return false;
153345
153345
  if (tags.runtime !== runtime2 && !runtimeAgnostic(tags)) return false;
153346
- if (tags.abi !== abi30 && !tags.napi) return false;
153346
+ if (tags.abi !== abi31 && !tags.napi) return false;
153347
153347
  if (tags.uv && tags.uv !== uv) return false;
153348
153348
  if (tags.armv && tags.armv !== armv) return false;
153349
153349
  if (tags.libc && tags.libc !== libc) return false;
@@ -159368,11 +159368,11 @@ var require_formatAbi = __commonJS({
159368
159368
  Object.defineProperty(exports2, "__esModule", { value: true });
159369
159369
  exports2.formatAbi = formatAbi;
159370
159370
  var formatAbiItem_js_1 = require_formatAbiItem();
159371
- function formatAbi(abi29) {
159371
+ function formatAbi(abi30) {
159372
159372
  const signatures = [];
159373
- const length = abi29.length;
159373
+ const length = abi30.length;
159374
159374
  for (let i = 0; i < length; i++) {
159375
- const abiItem = abi29[i];
159375
+ const abiItem = abi30[i];
159376
159376
  const signature = (0, formatAbiItem_js_1.formatAbiItem)(abiItem);
159377
159377
  signatures.push(signature);
159378
159378
  }
@@ -160137,15 +160137,15 @@ var require_parseAbi = __commonJS({
160137
160137
  var utils_js_1 = require_utils13();
160138
160138
  function parseAbi2(signatures) {
160139
160139
  const structs = (0, structs_js_1.parseStructs)(signatures);
160140
- const abi29 = [];
160140
+ const abi30 = [];
160141
160141
  const length = signatures.length;
160142
160142
  for (let i = 0; i < length; i++) {
160143
160143
  const signature = signatures[i];
160144
160144
  if ((0, signatures_js_1.isStructSignature)(signature))
160145
160145
  continue;
160146
- abi29.push((0, utils_js_1.parseSignature)(signature, structs));
160146
+ abi30.push((0, utils_js_1.parseSignature)(signature, structs));
160147
160147
  }
160148
- return abi29;
160148
+ return abi30;
160149
160149
  }
160150
160150
  }
160151
160151
  });
@@ -169957,9 +169957,9 @@ var require_getAbiItem = __commonJS({
169957
169957
  var toEventSelector_js_1 = require_toEventSelector();
169958
169958
  var toFunctionSelector_js_1 = require_toFunctionSelector();
169959
169959
  function getAbiItem2(parameters) {
169960
- const { abi: abi29, args = [], name } = parameters;
169960
+ const { abi: abi30, args = [], name } = parameters;
169961
169961
  const isSelector = (0, isHex_js_1.isHex)(name, { strict: false });
169962
- const abiItems = abi29.filter((abiItem) => {
169962
+ const abiItems = abi30.filter((abiItem) => {
169963
169963
  if (isSelector) {
169964
169964
  if (abiItem.type === "function")
169965
169965
  return (0, toFunctionSelector_js_1.toFunctionSelector)(abiItem) === name;
@@ -170084,10 +170084,10 @@ var require_encodeEventTopics = __commonJS({
170084
170084
  var getAbiItem_js_1 = require_getAbiItem();
170085
170085
  var docsPath8 = "/docs/contract/encodeEventTopics";
170086
170086
  function encodeEventTopics2(parameters) {
170087
- const { abi: abi29, eventName, args } = parameters;
170088
- let abiItem = abi29[0];
170087
+ const { abi: abi30, eventName, args } = parameters;
170088
+ let abiItem = abi30[0];
170089
170089
  if (eventName) {
170090
- const item = (0, getAbiItem_js_1.getAbiItem)({ abi: abi29, name: eventName });
170090
+ const item = (0, getAbiItem_js_1.getAbiItem)({ abi: abi30, name: eventName });
170091
170091
  if (!item)
170092
170092
  throw new abi_js_1.AbiEventNotFoundError(eventName, { docsPath: docsPath8 });
170093
170093
  abiItem = item;
@@ -170148,12 +170148,12 @@ var require_createContractEventFilter = __commonJS({
170148
170148
  var toHex_js_1 = require_toHex();
170149
170149
  var createFilterRequestScope_js_1 = require_createFilterRequestScope();
170150
170150
  async function createContractEventFilter2(client, parameters) {
170151
- const { address, abi: abi29, args, eventName, fromBlock, strict, toBlock } = parameters;
170151
+ const { address, abi: abi30, args, eventName, fromBlock, strict, toBlock } = parameters;
170152
170152
  const getRequest = (0, createFilterRequestScope_js_1.createFilterRequestScope)(client, {
170153
170153
  method: "eth_newFilter"
170154
170154
  });
170155
170155
  const topics = eventName ? (0, encodeEventTopics_js_1.encodeEventTopics)({
170156
- abi: abi29,
170156
+ abi: abi30,
170157
170157
  args,
170158
170158
  eventName
170159
170159
  }) : void 0;
@@ -170169,7 +170169,7 @@ var require_createContractEventFilter = __commonJS({
170169
170169
  ]
170170
170170
  });
170171
170171
  return {
170172
- abi: abi29,
170172
+ abi: abi30,
170173
170173
  args,
170174
170174
  eventName,
170175
170175
  id,
@@ -170207,11 +170207,11 @@ var require_prepareEncodeFunctionData = __commonJS({
170207
170207
  var getAbiItem_js_1 = require_getAbiItem();
170208
170208
  var docsPath8 = "/docs/contract/encodeFunctionData";
170209
170209
  function prepareEncodeFunctionData2(parameters) {
170210
- const { abi: abi29, args, functionName } = parameters;
170211
- let abiItem = abi29[0];
170210
+ const { abi: abi30, args, functionName } = parameters;
170211
+ let abiItem = abi30[0];
170212
170212
  if (functionName) {
170213
170213
  const item = (0, getAbiItem_js_1.getAbiItem)({
170214
- abi: abi29,
170214
+ abi: abi30,
170215
170215
  args,
170216
170216
  name: functionName
170217
170217
  });
@@ -170240,12 +170240,12 @@ var require_encodeFunctionData = __commonJS({
170240
170240
  var prepareEncodeFunctionData_js_1 = require_prepareEncodeFunctionData();
170241
170241
  function encodeFunctionData2(parameters) {
170242
170242
  const { args } = parameters;
170243
- const { abi: abi29, functionName } = (() => {
170243
+ const { abi: abi30, functionName } = (() => {
170244
170244
  if (parameters.abi.length === 1 && parameters.functionName?.startsWith("0x"))
170245
170245
  return parameters;
170246
170246
  return (0, prepareEncodeFunctionData_js_1.prepareEncodeFunctionData)(parameters);
170247
170247
  })();
170248
- const abiItem = abi29[0];
170248
+ const abiItem = abi30[0];
170249
170249
  const signature = functionName;
170250
170250
  const data = "inputs" in abiItem && abiItem.inputs ? (0, encodeAbiParameters_js_1.encodeAbiParameters)(abiItem.inputs, args ?? []) : void 0;
170251
170251
  return (0, concat_js_1.concatHex)([signature, data ?? "0x"]);
@@ -170777,11 +170777,11 @@ var require_decodeErrorResult = __commonJS({
170777
170777
  var decodeAbiParameters_js_1 = require_decodeAbiParameters();
170778
170778
  var formatAbiItem_js_1 = require_formatAbiItem2();
170779
170779
  function decodeErrorResult2(parameters) {
170780
- const { abi: abi29, data } = parameters;
170780
+ const { abi: abi30, data } = parameters;
170781
170781
  const signature = (0, slice_js_1.slice)(data, 0, 4);
170782
170782
  if (signature === "0x")
170783
170783
  throw new abi_js_1.AbiDecodingZeroDataError();
170784
- const abi_ = [...abi29 || [], solidity_js_1.solidityError, solidity_js_1.solidityPanic];
170784
+ const abi_ = [...abi30 || [], solidity_js_1.solidityError, solidity_js_1.solidityPanic];
170785
170785
  const abiItem = abi_.find((x) => x.type === "error" && signature === (0, toFunctionSelector_js_1.toFunctionSelector)((0, formatAbiItem_js_1.formatAbiItem)(x)));
170786
170786
  if (!abiItem)
170787
170787
  throw new abi_js_1.AbiErrorSignatureNotFoundError(signature, {
@@ -171203,8 +171203,8 @@ ${(0, stateOverride_js_1.prettyStateOverride)(stateOverride)}`;
171203
171203
  };
171204
171204
  exports2.CallExecutionError = CallExecutionError2;
171205
171205
  var ContractFunctionExecutionError2 = class extends base_js_1.BaseError {
171206
- constructor(cause, { abi: abi29, args, contractAddress, docsPath: docsPath8, functionName, sender }) {
171207
- const abiItem = (0, getAbiItem_js_1.getAbiItem)({ abi: abi29, args, name: functionName });
171206
+ constructor(cause, { abi: abi30, args, contractAddress, docsPath: docsPath8, functionName, sender }) {
171207
+ const abiItem = (0, getAbiItem_js_1.getAbiItem)({ abi: abi30, args, name: functionName });
171208
171208
  const formattedArgs = abiItem ? (0, formatAbiItemWithArgs_js_1.formatAbiItemWithArgs)({
171209
171209
  abiItem,
171210
171210
  args,
@@ -171270,7 +171270,7 @@ ${(0, stateOverride_js_1.prettyStateOverride)(stateOverride)}`;
171270
171270
  writable: true,
171271
171271
  value: void 0
171272
171272
  });
171273
- this.abi = abi29;
171273
+ this.abi = abi30;
171274
171274
  this.args = args;
171275
171275
  this.cause = cause;
171276
171276
  this.contractAddress = contractAddress;
@@ -171280,14 +171280,14 @@ ${(0, stateOverride_js_1.prettyStateOverride)(stateOverride)}`;
171280
171280
  };
171281
171281
  exports2.ContractFunctionExecutionError = ContractFunctionExecutionError2;
171282
171282
  var ContractFunctionRevertedError2 = class extends base_js_1.BaseError {
171283
- constructor({ abi: abi29, data, functionName, message: message2 }) {
171283
+ constructor({ abi: abi30, data, functionName, message: message2 }) {
171284
171284
  let cause;
171285
171285
  let decodedData;
171286
171286
  let metaMessages;
171287
171287
  let reason;
171288
171288
  if (data && data !== "0x") {
171289
171289
  try {
171290
- decodedData = (0, decodeErrorResult_js_1.decodeErrorResult)({ abi: abi29, data });
171290
+ decodedData = (0, decodeErrorResult_js_1.decodeErrorResult)({ abi: abi30, data });
171291
171291
  const { abiItem, errorName, args: errorArgs } = decodedData;
171292
171292
  if (errorName === "Error") {
171293
171293
  reason = errorArgs[0];
@@ -171999,7 +171999,7 @@ var require_getContractError = __commonJS({
171999
171999
  var request_js_1 = require_request();
172000
172000
  var rpc_js_1 = require_rpc();
172001
172001
  var EXECUTION_REVERTED_ERROR_CODE2 = 3;
172002
- function getContractError2(err, { abi: abi29, address, args, docsPath: docsPath8, functionName, sender }) {
172002
+ function getContractError2(err, { abi: abi30, address, args, docsPath: docsPath8, functionName, sender }) {
172003
172003
  const error46 = err instanceof contract_js_1.RawContractError ? err : err instanceof base_js_1.BaseError ? err.walk((err2) => "data" in err2) || err.walk() : {};
172004
172004
  const { code, data, details, message: message2, shortMessage } = error46;
172005
172005
  const cause = (() => {
@@ -172007,7 +172007,7 @@ var require_getContractError = __commonJS({
172007
172007
  return new contract_js_1.ContractFunctionZeroDataError({ functionName });
172008
172008
  if ([EXECUTION_REVERTED_ERROR_CODE2, rpc_js_1.InternalRpcError.code].includes(code) && (data || details || message2 || shortMessage)) {
172009
172009
  return new contract_js_1.ContractFunctionRevertedError({
172010
- abi: abi29,
172010
+ abi: abi30,
172011
172011
  data: typeof data === "object" ? data.data : data,
172012
172012
  functionName,
172013
172013
  message: error46 instanceof request_js_1.RpcRequestError ? details : shortMessage ?? message2
@@ -172016,7 +172016,7 @@ var require_getContractError = __commonJS({
172016
172016
  return err;
172017
172017
  })();
172018
172018
  return new contract_js_1.ContractFunctionExecutionError(cause, {
172019
- abi: abi29,
172019
+ abi: abi30,
172020
172020
  args,
172021
172021
  contractAddress: address,
172022
172022
  docsPath: docsPath8,
@@ -176849,9 +176849,9 @@ var require_estimateContractGas = __commonJS({
176849
176849
  var getAction_js_1 = require_getAction();
176850
176850
  var estimateGas_js_1 = require_estimateGas2();
176851
176851
  async function estimateContractGas2(client, parameters) {
176852
- const { abi: abi29, address, args, functionName, dataSuffix, ...request } = parameters;
176852
+ const { abi: abi30, address, args, functionName, dataSuffix, ...request } = parameters;
176853
176853
  const data = (0, encodeFunctionData_js_1.encodeFunctionData)({
176854
- abi: abi29,
176854
+ abi: abi30,
176855
176855
  args,
176856
176856
  functionName
176857
176857
  });
@@ -176865,7 +176865,7 @@ var require_estimateContractGas = __commonJS({
176865
176865
  } catch (error46) {
176866
176866
  const account = request.account ? (0, parseAccount_js_1.parseAccount)(request.account) : void 0;
176867
176867
  throw (0, getContractError_js_1.getContractError)(error46, {
176868
- abi: abi29,
176868
+ abi: abi30,
176869
176869
  address,
176870
176870
  args,
176871
176871
  docsPath: "/docs/contract/estimateContractGas",
@@ -176909,12 +176909,12 @@ var require_decodeEventLog = __commonJS({
176909
176909
  var formatAbiItem_js_1 = require_formatAbiItem2();
176910
176910
  var docsPath8 = "/docs/contract/decodeEventLog";
176911
176911
  function decodeEventLog2(parameters) {
176912
- const { abi: abi29, data, strict: strict_, topics } = parameters;
176912
+ const { abi: abi30, data, strict: strict_, topics } = parameters;
176913
176913
  const strict = strict_ ?? true;
176914
176914
  const [signature, ...argTopics] = topics;
176915
176915
  if (!signature)
176916
176916
  throw new abi_js_1.AbiEventSignatureEmptyTopicsError({ docsPath: docsPath8 });
176917
- const abiItem = abi29.find((x) => x.type === "event" && signature === (0, toEventSelector_js_1.toEventSelector)((0, formatAbiItem_js_1.formatAbiItem)(x)));
176917
+ const abiItem = abi30.find((x) => x.type === "event" && signature === (0, toEventSelector_js_1.toEventSelector)((0, formatAbiItem_js_1.formatAbiItem)(x)));
176918
176918
  if (!(abiItem && "name" in abiItem) || abiItem.type !== "event")
176919
176919
  throw new abi_js_1.AbiEventSignatureNotFoundError(signature, { docsPath: docsPath8 });
176920
176920
  const { name, inputs } = abiItem;
@@ -176995,7 +176995,7 @@ var require_parseEventLogs = __commonJS({
176995
176995
  var toEventSelector_js_1 = require_toEventSelector();
176996
176996
  var decodeEventLog_js_1 = require_decodeEventLog();
176997
176997
  function parseEventLogs2(parameters) {
176998
- const { abi: abi29, args, logs, strict = true } = parameters;
176998
+ const { abi: abi30, args, logs, strict = true } = parameters;
176999
176999
  const eventName = (() => {
177000
177000
  if (!parameters.eventName)
177001
177001
  return void 0;
@@ -177005,7 +177005,7 @@ var require_parseEventLogs = __commonJS({
177005
177005
  })();
177006
177006
  return logs.map((log2) => {
177007
177007
  try {
177008
- const abiItem = abi29.find((abiItem2) => abiItem2.type === "event" && log2.topics[0] === (0, toEventSelector_js_1.toEventSelector)(abiItem2));
177008
+ const abiItem = abi30.find((abiItem2) => abiItem2.type === "event" && log2.topics[0] === (0, toEventSelector_js_1.toEventSelector)(abiItem2));
177009
177009
  if (!abiItem)
177010
177010
  return null;
177011
177011
  const event = (0, decodeEventLog_js_1.decodeEventLog)({
@@ -177166,9 +177166,9 @@ var require_getContractEvents = __commonJS({
177166
177166
  var getAction_js_1 = require_getAction();
177167
177167
  var getLogs_js_1 = require_getLogs();
177168
177168
  async function getContractEvents2(client, parameters) {
177169
- const { abi: abi29, address, args, blockHash, eventName, fromBlock, toBlock, strict } = parameters;
177170
- const event = eventName ? (0, getAbiItem_js_1.getAbiItem)({ abi: abi29, name: eventName }) : void 0;
177171
- const events = !event ? abi29.filter((x) => x.type === "event") : void 0;
177169
+ const { abi: abi30, address, args, blockHash, eventName, fromBlock, toBlock, strict } = parameters;
177170
+ const event = eventName ? (0, getAbiItem_js_1.getAbiItem)({ abi: abi30, name: eventName }) : void 0;
177171
+ const events = !event ? abi30.filter((x) => x.type === "event") : void 0;
177172
177172
  return (0, getAction_js_1.getAction)(client, getLogs_js_1.getLogs, "getLogs")({
177173
177173
  address,
177174
177174
  args,
@@ -177194,10 +177194,10 @@ var require_decodeFunctionResult = __commonJS({
177194
177194
  var getAbiItem_js_1 = require_getAbiItem();
177195
177195
  var docsPath8 = "/docs/contract/decodeFunctionResult";
177196
177196
  function decodeFunctionResult2(parameters) {
177197
- const { abi: abi29, args, functionName, data } = parameters;
177198
- let abiItem = abi29[0];
177197
+ const { abi: abi30, args, functionName, data } = parameters;
177198
+ let abiItem = abi30[0];
177199
177199
  if (functionName) {
177200
- const item = (0, getAbiItem_js_1.getAbiItem)({ abi: abi29, args, name: functionName });
177200
+ const item = (0, getAbiItem_js_1.getAbiItem)({ abi: abi30, args, name: functionName });
177201
177201
  if (!item)
177202
177202
  throw new abi_js_1.AbiFunctionNotFoundError(functionName, { docsPath: docsPath8 });
177203
177203
  abiItem = item;
@@ -180244,10 +180244,10 @@ var require_encodeDeployData = __commonJS({
180244
180244
  var encodeAbiParameters_js_1 = require_encodeAbiParameters();
180245
180245
  var docsPath8 = "/docs/contract/encodeDeployData";
180246
180246
  function encodeDeployData2(parameters) {
180247
- const { abi: abi29, args, bytecode } = parameters;
180247
+ const { abi: abi30, args, bytecode } = parameters;
180248
180248
  if (!args || args.length === 0)
180249
180249
  return bytecode;
180250
- const description = abi29.find((x) => "type" in x && x.type === "constructor");
180250
+ const description = abi30.find((x) => "type" in x && x.type === "constructor");
180251
180251
  if (!description)
180252
180252
  throw new abi_js_1.AbiConstructorNotFoundError({ docsPath: docsPath8 });
180253
180253
  if (!("inputs" in description))
@@ -180454,9 +180454,9 @@ var require_decodeFunctionData = __commonJS({
180454
180454
  var decodeAbiParameters_js_1 = require_decodeAbiParameters();
180455
180455
  var formatAbiItem_js_1 = require_formatAbiItem2();
180456
180456
  function decodeFunctionData2(parameters) {
180457
- const { abi: abi29, data } = parameters;
180457
+ const { abi: abi30, data } = parameters;
180458
180458
  const signature = (0, slice_js_1.slice)(data, 0, 4);
180459
- const description = abi29.find((x) => x.type === "function" && signature === (0, toFunctionSelector_js_1.toFunctionSelector)((0, formatAbiItem_js_1.formatAbiItem)(x)));
180459
+ const description = abi30.find((x) => x.type === "function" && signature === (0, toFunctionSelector_js_1.toFunctionSelector)((0, formatAbiItem_js_1.formatAbiItem)(x)));
180460
180460
  if (!description)
180461
180461
  throw new abi_js_1.AbiFunctionSignatureNotFoundError(signature, {
180462
180462
  docsPath: "/docs/contract/decodeFunctionData"
@@ -180483,10 +180483,10 @@ var require_encodeErrorResult = __commonJS({
180483
180483
  var getAbiItem_js_1 = require_getAbiItem();
180484
180484
  var docsPath8 = "/docs/contract/encodeErrorResult";
180485
180485
  function encodeErrorResult2(parameters) {
180486
- const { abi: abi29, errorName, args } = parameters;
180487
- let abiItem = abi29[0];
180486
+ const { abi: abi30, errorName, args } = parameters;
180487
+ let abiItem = abi30[0];
180488
180488
  if (errorName) {
180489
- const item = (0, getAbiItem_js_1.getAbiItem)({ abi: abi29, args, name: errorName });
180489
+ const item = (0, getAbiItem_js_1.getAbiItem)({ abi: abi30, args, name: errorName });
180490
180490
  if (!item)
180491
180491
  throw new abi_js_1.AbiErrorNotFoundError(errorName, { docsPath: docsPath8 });
180492
180492
  abiItem = item;
@@ -180517,10 +180517,10 @@ var require_encodeFunctionResult = __commonJS({
180517
180517
  var getAbiItem_js_1 = require_getAbiItem();
180518
180518
  var docsPath8 = "/docs/contract/encodeFunctionResult";
180519
180519
  function encodeFunctionResult2(parameters) {
180520
- const { abi: abi29, functionName, result } = parameters;
180521
- let abiItem = abi29[0];
180520
+ const { abi: abi30, functionName, result } = parameters;
180521
+ let abiItem = abi30[0];
180522
180522
  if (functionName) {
180523
- const item = (0, getAbiItem_js_1.getAbiItem)({ abi: abi29, name: functionName });
180523
+ const item = (0, getAbiItem_js_1.getAbiItem)({ abi: abi30, name: functionName });
180524
180524
  if (!item)
180525
180525
  throw new abi_js_1.AbiFunctionNotFoundError(functionName, { docsPath: docsPath8 });
180526
180526
  abiItem = item;
@@ -180960,9 +180960,9 @@ var require_readContract = __commonJS({
180960
180960
  var getAction_js_1 = require_getAction();
180961
180961
  var call_js_1 = require_call();
180962
180962
  async function readContract2(client, parameters) {
180963
- const { abi: abi29, address, args, functionName, ...rest } = parameters;
180963
+ const { abi: abi30, address, args, functionName, ...rest } = parameters;
180964
180964
  const calldata = (0, encodeFunctionData_js_1.encodeFunctionData)({
180965
- abi: abi29,
180965
+ abi: abi30,
180966
180966
  args,
180967
180967
  functionName
180968
180968
  });
@@ -180973,14 +180973,14 @@ var require_readContract = __commonJS({
180973
180973
  to: address
180974
180974
  });
180975
180975
  return (0, decodeFunctionResult_js_1.decodeFunctionResult)({
180976
- abi: abi29,
180976
+ abi: abi30,
180977
180977
  args,
180978
180978
  functionName,
180979
180979
  data: data || "0x"
180980
180980
  });
180981
180981
  } catch (error46) {
180982
180982
  throw (0, getContractError_js_1.getContractError)(error46, {
180983
- abi: abi29,
180983
+ abi: abi30,
180984
180984
  address,
180985
180985
  args,
180986
180986
  docsPath: "/docs/contract/readContract",
@@ -181004,9 +181004,9 @@ var require_simulateContract = __commonJS({
181004
181004
  var getAction_js_1 = require_getAction();
181005
181005
  var call_js_1 = require_call();
181006
181006
  async function simulateContract2(client, parameters) {
181007
- const { abi: abi29, address, args, dataSuffix, functionName, ...callRequest } = parameters;
181007
+ const { abi: abi30, address, args, dataSuffix, functionName, ...callRequest } = parameters;
181008
181008
  const account = callRequest.account ? (0, parseAccount_js_1.parseAccount)(callRequest.account) : client.account;
181009
- const calldata = (0, encodeFunctionData_js_1.encodeFunctionData)({ abi: abi29, args, functionName });
181009
+ const calldata = (0, encodeFunctionData_js_1.encodeFunctionData)({ abi: abi30, args, functionName });
181010
181010
  try {
181011
181011
  const { data } = await (0, getAction_js_1.getAction)(client, call_js_1.call, "call")({
181012
181012
  batch: false,
@@ -181016,12 +181016,12 @@ var require_simulateContract = __commonJS({
181016
181016
  account
181017
181017
  });
181018
181018
  const result = (0, decodeFunctionResult_js_1.decodeFunctionResult)({
181019
- abi: abi29,
181019
+ abi: abi30,
181020
181020
  args,
181021
181021
  functionName,
181022
181022
  data: data || "0x"
181023
181023
  });
181024
- const minimizedAbi = abi29.filter((abiItem) => "name" in abiItem && abiItem.name === parameters.functionName);
181024
+ const minimizedAbi = abi30.filter((abiItem) => "name" in abiItem && abiItem.name === parameters.functionName);
181025
181025
  return {
181026
181026
  result,
181027
181027
  request: {
@@ -181036,7 +181036,7 @@ var require_simulateContract = __commonJS({
181036
181036
  };
181037
181037
  } catch (error46) {
181038
181038
  throw (0, getContractError_js_1.getContractError)(error46, {
181039
- abi: abi29,
181039
+ abi: abi30,
181040
181040
  address,
181041
181041
  args,
181042
181042
  docsPath: "/docs/contract/simulateContract",
@@ -181282,7 +181282,7 @@ var require_watchContractEvent = __commonJS({
181282
181282
  var getFilterChanges_js_1 = require_getFilterChanges();
181283
181283
  var uninstallFilter_js_1 = require_uninstallFilter();
181284
181284
  function watchContractEvent2(client, parameters) {
181285
- const { abi: abi29, address, args, batch = true, eventName, fromBlock, onError, onLogs, poll: poll_, pollingInterval = client.pollingInterval, strict: strict_ } = parameters;
181285
+ const { abi: abi30, address, args, batch = true, eventName, fromBlock, onError, onLogs, poll: poll_, pollingInterval = client.pollingInterval, strict: strict_ } = parameters;
181286
181286
  const enablePolling = (() => {
181287
181287
  if (typeof poll_ !== "undefined")
181288
181288
  return poll_;
@@ -181317,7 +181317,7 @@ var require_watchContractEvent = __commonJS({
181317
181317
  if (!initialized) {
181318
181318
  try {
181319
181319
  filter = await (0, getAction_js_1.getAction)(client, createContractEventFilter_js_1.createContractEventFilter, "createContractEventFilter")({
181320
- abi: abi29,
181320
+ abi: abi30,
181321
181321
  address,
181322
181322
  args,
181323
181323
  eventName,
@@ -181337,7 +181337,7 @@ var require_watchContractEvent = __commonJS({
181337
181337
  const blockNumber = await (0, getAction_js_1.getAction)(client, getBlockNumber_js_1.getBlockNumber, "getBlockNumber")({});
181338
181338
  if (previousBlockNumber && previousBlockNumber < blockNumber) {
181339
181339
  logs = await (0, getAction_js_1.getAction)(client, getContractEvents_js_1.getContractEvents, "getContractEvents")({
181340
- abi: abi29,
181340
+ abi: abi30,
181341
181341
  address,
181342
181342
  args,
181343
181343
  eventName,
@@ -181401,7 +181401,7 @@ var require_watchContractEvent = __commonJS({
181401
181401
  return client.transport;
181402
181402
  })();
181403
181403
  const topics = eventName ? (0, encodeEventTopics_js_1.encodeEventTopics)({
181404
- abi: abi29,
181404
+ abi: abi30,
181405
181405
  eventName,
181406
181406
  args
181407
181407
  }) : [];
@@ -181413,7 +181413,7 @@ var require_watchContractEvent = __commonJS({
181413
181413
  const log2 = data.result;
181414
181414
  try {
181415
181415
  const { eventName: eventName2, args: args2 } = (0, decodeEventLog_js_1.decodeEventLog)({
181416
- abi: abi29,
181416
+ abi: abi30,
181417
181417
  data: log2.data,
181418
181418
  topics: log2.topics,
181419
181419
  strict: strict_
@@ -181715,14 +181715,14 @@ var require_writeContract = __commonJS({
181715
181715
  var getAction_js_1 = require_getAction();
181716
181716
  var sendTransaction_js_1 = require_sendTransaction();
181717
181717
  async function writeContract2(client, parameters) {
181718
- const { abi: abi29, account: account_ = client.account, address, args, dataSuffix, functionName, ...request } = parameters;
181718
+ const { abi: abi30, account: account_ = client.account, address, args, dataSuffix, functionName, ...request } = parameters;
181719
181719
  if (typeof account_ === "undefined")
181720
181720
  throw new account_js_1.AccountNotFoundError({
181721
181721
  docsPath: "/docs/contract/writeContract"
181722
181722
  });
181723
181723
  const account = account_ ? (0, parseAccount_js_1.parseAccount)(account_) : null;
181724
181724
  const data = (0, encodeFunctionData_js_1.encodeFunctionData)({
181725
- abi: abi29,
181725
+ abi: abi30,
181726
181726
  args,
181727
181727
  functionName
181728
181728
  });
@@ -181735,7 +181735,7 @@ var require_writeContract = __commonJS({
181735
181735
  });
181736
181736
  } catch (error46) {
181737
181737
  throw (0, getContractError_js_1.getContractError)(error46, {
181738
- abi: abi29,
181738
+ abi: abi30,
181739
181739
  address,
181740
181740
  args,
181741
181741
  docsPath: "/docs/contract/writeContract",
@@ -181763,7 +181763,7 @@ var require_getContract = __commonJS({
181763
181763
  var simulateContract_js_1 = require_simulateContract();
181764
181764
  var watchContractEvent_js_1 = require_watchContractEvent();
181765
181765
  var writeContract_js_1 = require_writeContract();
181766
- function getContract2({ abi: abi29, address, client: client_ }) {
181766
+ function getContract2({ abi: abi30, address, client: client_ }) {
181767
181767
  const client = client_;
181768
181768
  const [publicClient, walletClient] = (() => {
181769
181769
  if (!client)
@@ -181782,7 +181782,7 @@ var require_getContract = __commonJS({
181782
181782
  let hasReadFunction = false;
181783
181783
  let hasWriteFunction = false;
181784
181784
  let hasEvent = false;
181785
- for (const item of abi29) {
181785
+ for (const item of abi30) {
181786
181786
  if (item.type === "function")
181787
181787
  if (item.stateMutability === "view" || item.stateMutability === "pure")
181788
181788
  hasReadFunction = true;
@@ -181800,7 +181800,7 @@ var require_getContract = __commonJS({
181800
181800
  return (...parameters) => {
181801
181801
  const { args, options } = getFunctionParameters2(parameters);
181802
181802
  return (0, getAction_js_1.getAction)(publicClient, readContract_js_1.readContract, "readContract")({
181803
- abi: abi29,
181803
+ abi: abi30,
181804
181804
  address,
181805
181805
  functionName,
181806
181806
  args,
@@ -181815,7 +181815,7 @@ var require_getContract = __commonJS({
181815
181815
  return (...parameters) => {
181816
181816
  const { args, options } = getFunctionParameters2(parameters);
181817
181817
  return (0, getAction_js_1.getAction)(publicClient, simulateContract_js_1.simulateContract, "simulateContract")({
181818
- abi: abi29,
181818
+ abi: abi30,
181819
181819
  address,
181820
181820
  functionName,
181821
181821
  args,
@@ -181828,10 +181828,10 @@ var require_getContract = __commonJS({
181828
181828
  contract.createEventFilter = new Proxy({}, {
181829
181829
  get(_, eventName) {
181830
181830
  return (...parameters) => {
181831
- const abiEvent = abi29.find((x) => x.type === "event" && x.name === eventName);
181831
+ const abiEvent = abi30.find((x) => x.type === "event" && x.name === eventName);
181832
181832
  const { args, options } = getEventParameters2(parameters, abiEvent);
181833
181833
  return (0, getAction_js_1.getAction)(publicClient, createContractEventFilter_js_1.createContractEventFilter, "createContractEventFilter")({
181834
- abi: abi29,
181834
+ abi: abi30,
181835
181835
  address,
181836
181836
  eventName,
181837
181837
  args,
@@ -181843,10 +181843,10 @@ var require_getContract = __commonJS({
181843
181843
  contract.getEvents = new Proxy({}, {
181844
181844
  get(_, eventName) {
181845
181845
  return (...parameters) => {
181846
- const abiEvent = abi29.find((x) => x.type === "event" && x.name === eventName);
181846
+ const abiEvent = abi30.find((x) => x.type === "event" && x.name === eventName);
181847
181847
  const { args, options } = getEventParameters2(parameters, abiEvent);
181848
181848
  return (0, getAction_js_1.getAction)(publicClient, getContractEvents_js_1.getContractEvents, "getContractEvents")({
181849
- abi: abi29,
181849
+ abi: abi30,
181850
181850
  address,
181851
181851
  eventName,
181852
181852
  args,
@@ -181858,10 +181858,10 @@ var require_getContract = __commonJS({
181858
181858
  contract.watchEvent = new Proxy({}, {
181859
181859
  get(_, eventName) {
181860
181860
  return (...parameters) => {
181861
- const abiEvent = abi29.find((x) => x.type === "event" && x.name === eventName);
181861
+ const abiEvent = abi30.find((x) => x.type === "event" && x.name === eventName);
181862
181862
  const { args, options } = getEventParameters2(parameters, abiEvent);
181863
181863
  return (0, getAction_js_1.getAction)(publicClient, watchContractEvent_js_1.watchContractEvent, "watchContractEvent")({
181864
- abi: abi29,
181864
+ abi: abi30,
181865
181865
  address,
181866
181866
  eventName,
181867
181867
  args,
@@ -181879,7 +181879,7 @@ var require_getContract = __commonJS({
181879
181879
  return (...parameters) => {
181880
181880
  const { args, options } = getFunctionParameters2(parameters);
181881
181881
  return (0, getAction_js_1.getAction)(walletClient, writeContract_js_1.writeContract, "writeContract")({
181882
- abi: abi29,
181882
+ abi: abi30,
181883
181883
  address,
181884
181884
  functionName,
181885
181885
  args,
@@ -181897,7 +181897,7 @@ var require_getContract = __commonJS({
181897
181897
  const { args, options } = getFunctionParameters2(parameters);
181898
181898
  const client2 = publicClient ?? walletClient;
181899
181899
  return (0, getAction_js_1.getAction)(client2, estimateContractGas_js_1.estimateContractGas, "estimateContractGas")({
181900
- abi: abi29,
181900
+ abi: abi30,
181901
181901
  address,
181902
181902
  functionName,
181903
181903
  args,
@@ -181909,7 +181909,7 @@ var require_getContract = __commonJS({
181909
181909
  });
181910
181910
  }
181911
181911
  contract.address = address;
181912
- contract.abi = abi29;
181912
+ contract.abi = abi30;
181913
181913
  return contract;
181914
181914
  }
181915
181915
  function getFunctionParameters2(values) {
@@ -183320,7 +183320,7 @@ var require_getEip712Domain = __commonJS({
183320
183320
  const { address, factory, factoryData } = parameters;
183321
183321
  try {
183322
183322
  const [fields, name, version5, chainId, verifyingContract, salt, extensions] = await (0, getAction_js_1.getAction)(client, readContract_js_1.readContract, "readContract")({
183323
- abi: abi29,
183323
+ abi: abi30,
183324
183324
  address,
183325
183325
  functionName: "eip712Domain",
183326
183326
  factory,
@@ -183345,7 +183345,7 @@ var require_getEip712Domain = __commonJS({
183345
183345
  throw error46;
183346
183346
  }
183347
183347
  }
183348
- var abi29 = [
183348
+ var abi30 = [
183349
183349
  {
183350
183350
  inputs: [],
183351
183351
  name: "eip712Domain",
@@ -192667,9 +192667,9 @@ var require_multicall2 = __commonJS({
192667
192667
  let currentChunk = 0;
192668
192668
  let currentChunkSize = 0;
192669
192669
  for (let i = 0; i < contracts2.length; i++) {
192670
- const { abi: abi29, address, args, functionName } = contracts2[i];
192670
+ const { abi: abi30, address, args, functionName } = contracts2[i];
192671
192671
  try {
192672
- const callData = (0, encodeFunctionData_js_1.encodeFunctionData)({ abi: abi29, args, functionName });
192672
+ const callData = (0, encodeFunctionData_js_1.encodeFunctionData)({ abi: abi30, args, functionName });
192673
192673
  currentChunkSize += (callData.length - 2) / 2;
192674
192674
  if (batchSize > 0 && currentChunkSize > batchSize && chunkedCalls[currentChunk].length > 0) {
192675
192675
  currentChunk++;
@@ -192686,7 +192686,7 @@ var require_multicall2 = __commonJS({
192686
192686
  ];
192687
192687
  } catch (err) {
192688
192688
  const error46 = (0, getContractError_js_1.getContractError)(err, {
192689
- abi: abi29,
192689
+ abi: abi30,
192690
192690
  address,
192691
192691
  args,
192692
192692
  docsPath: "/docs/contract/multicall",
@@ -192736,14 +192736,14 @@ var require_multicall2 = __commonJS({
192736
192736
  for (let j = 0; j < aggregate3Result.length; j++) {
192737
192737
  const { returnData, success: success2 } = aggregate3Result[j];
192738
192738
  const { callData } = chunkedCalls[i][j];
192739
- const { abi: abi29, address, functionName, args } = contracts2[results.length];
192739
+ const { abi: abi30, address, functionName, args } = contracts2[results.length];
192740
192740
  try {
192741
192741
  if (callData === "0x")
192742
192742
  throw new abi_js_1.AbiDecodingZeroDataError();
192743
192743
  if (!success2)
192744
192744
  throw new contract_js_1.RawContractError({ data: returnData });
192745
192745
  const result2 = (0, decodeFunctionResult_js_1.decodeFunctionResult)({
192746
- abi: abi29,
192746
+ abi: abi30,
192747
192747
  args,
192748
192748
  data: returnData,
192749
192749
  functionName
@@ -192751,7 +192751,7 @@ var require_multicall2 = __commonJS({
192751
192751
  results.push(allowFailure ? { result: result2, status: "success" } : result2);
192752
192752
  } catch (err) {
192753
192753
  const error46 = (0, getContractError_js_1.getContractError)(err, {
192754
- abi: abi29,
192754
+ abi: abi30,
192755
192755
  address,
192756
192756
  args,
192757
192757
  docsPath: "/docs/contract/multicall",
@@ -192829,13 +192829,13 @@ var require_simulateBlocks = __commonJS({
192829
192829
  return result.map((block2, i) => ({
192830
192830
  ...(0, block_js_1.formatBlock)(block2),
192831
192831
  calls: block2.calls.map((call2, j) => {
192832
- const { abi: abi29, args, functionName, to } = blocks[i].calls[j];
192832
+ const { abi: abi30, args, functionName, to } = blocks[i].calls[j];
192833
192833
  const data = call2.error?.data ?? call2.returnData;
192834
192834
  const gasUsed = BigInt(call2.gasUsed);
192835
192835
  const logs = call2.logs?.map((log2) => (0, log_js_1.formatLog)(log2));
192836
192836
  const status = call2.status === "0x1" ? "success" : "failure";
192837
- const result2 = abi29 && status === "success" && data !== "0x" ? (0, decodeFunctionResult_js_1.decodeFunctionResult)({
192838
- abi: abi29,
192837
+ const result2 = abi30 && status === "success" && data !== "0x" ? (0, decodeFunctionResult_js_1.decodeFunctionResult)({
192838
+ abi: abi30,
192839
192839
  data,
192840
192840
  functionName
192841
192841
  }) : null;
@@ -192850,7 +192850,7 @@ var require_simulateBlocks = __commonJS({
192850
192850
  if (!error47)
192851
192851
  return void 0;
192852
192852
  return (0, getContractError_js_1.getContractError)(error47, {
192853
- abi: abi29 ?? [],
192853
+ abi: abi30 ?? [],
192854
192854
  address: to ?? "0x",
192855
192855
  args,
192856
192856
  functionName: functionName ?? "<unknown>"
@@ -193025,10 +193025,10 @@ var require_AbiItem = __commonJS({
193025
193025
  ...prepare ? { hash: getSignatureHash2(item) } : {}
193026
193026
  };
193027
193027
  }
193028
- function fromAbi4(abi29, name, options) {
193028
+ function fromAbi4(abi30, name, options) {
193029
193029
  const { args = [], prepare = true } = options ?? {};
193030
193030
  const isSelector = Hex.validate(name, { strict: false });
193031
- const abiItems = abi29.filter((abiItem2) => {
193031
+ const abiItems = abi30.filter((abiItem2) => {
193032
193032
  if (isSelector) {
193033
193033
  if (abiItem2.type === "function" || abiItem2.type === "error")
193034
193034
  return getSelector3(abiItem2) === Hex.slice(name, 0, 4);
@@ -193100,8 +193100,8 @@ var require_AbiItem = __commonJS({
193100
193100
  function getSelector3(...parameters) {
193101
193101
  const abiItem = (() => {
193102
193102
  if (Array.isArray(parameters[0])) {
193103
- const [abi29, name] = parameters;
193104
- return fromAbi4(abi29, name);
193103
+ const [abi30, name] = parameters;
193104
+ return fromAbi4(abi30, name);
193105
193105
  }
193106
193106
  return parameters[0];
193107
193107
  })();
@@ -193110,8 +193110,8 @@ var require_AbiItem = __commonJS({
193110
193110
  function getSignature2(...parameters) {
193111
193111
  const abiItem = (() => {
193112
193112
  if (Array.isArray(parameters[0])) {
193113
- const [abi29, name] = parameters;
193114
- return fromAbi4(abi29, name);
193113
+ const [abi30, name] = parameters;
193114
+ return fromAbi4(abi30, name);
193115
193115
  }
193116
193116
  return parameters[0];
193117
193117
  })();
@@ -193125,8 +193125,8 @@ var require_AbiItem = __commonJS({
193125
193125
  function getSignatureHash2(...parameters) {
193126
193126
  const abiItem = (() => {
193127
193127
  if (Array.isArray(parameters[0])) {
193128
- const [abi29, name] = parameters;
193129
- return fromAbi4(abi29, name);
193128
+ const [abi30, name] = parameters;
193129
+ return fromAbi4(abi30, name);
193130
193130
  }
193131
193131
  return parameters[0];
193132
193132
  })();
@@ -193205,8 +193205,8 @@ var require_AbiConstructor = __commonJS({
193205
193205
  function decode4(...parameters) {
193206
193206
  const [abiConstructor, options] = (() => {
193207
193207
  if (Array.isArray(parameters[0])) {
193208
- const [abi29, options2] = parameters;
193209
- return [fromAbi4(abi29), options2];
193208
+ const [abi30, options2] = parameters;
193209
+ return [fromAbi4(abi30), options2];
193210
193210
  }
193211
193211
  return parameters;
193212
193212
  })();
@@ -193219,8 +193219,8 @@ var require_AbiConstructor = __commonJS({
193219
193219
  function encode6(...parameters) {
193220
193220
  const [abiConstructor, options] = (() => {
193221
193221
  if (Array.isArray(parameters[0])) {
193222
- const [abi29, options2] = parameters;
193223
- return [fromAbi4(abi29), options2];
193222
+ const [abi30, options2] = parameters;
193223
+ return [fromAbi4(abi30), options2];
193224
193224
  }
193225
193225
  return parameters;
193226
193226
  })();
@@ -193233,8 +193233,8 @@ var require_AbiConstructor = __commonJS({
193233
193233
  function from14(abiConstructor) {
193234
193234
  return AbiItem.from(abiConstructor);
193235
193235
  }
193236
- function fromAbi4(abi29) {
193237
- const item = abi29.find((item2) => item2.type === "constructor");
193236
+ function fromAbi4(abi30) {
193237
+ const item = abi30.find((item2) => item2.type === "constructor");
193238
193238
  if (!item)
193239
193239
  throw new AbiItem.NotFoundError({ name: "constructor" });
193240
193240
  return item;
@@ -193262,8 +193262,8 @@ var require_AbiFunction = __commonJS({
193262
193262
  function decodeData(...parameters) {
193263
193263
  const [abiFunction, data] = (() => {
193264
193264
  if (Array.isArray(parameters[0])) {
193265
- const [abi29, name, data2] = parameters;
193266
- return [fromAbi4(abi29, name), data2];
193265
+ const [abi30, name, data2] = parameters;
193266
+ return [fromAbi4(abi30, name), data2];
193267
193267
  }
193268
193268
  return parameters;
193269
193269
  })();
@@ -193280,8 +193280,8 @@ var require_AbiFunction = __commonJS({
193280
193280
  function decodeResult(...parameters) {
193281
193281
  const [abiFunction, data, options = {}] = (() => {
193282
193282
  if (Array.isArray(parameters[0])) {
193283
- const [abi29, name, data2, options2] = parameters;
193284
- return [fromAbi4(abi29, name), data2, options2];
193283
+ const [abi30, name, data2, options2] = parameters;
193284
+ return [fromAbi4(abi30, name), data2, options2];
193285
193285
  }
193286
193286
  return parameters;
193287
193287
  })();
@@ -193298,8 +193298,8 @@ var require_AbiFunction = __commonJS({
193298
193298
  function encodeData3(...parameters) {
193299
193299
  const [abiFunction, args = []] = (() => {
193300
193300
  if (Array.isArray(parameters[0])) {
193301
- const [abi29, name, args3] = parameters;
193302
- return [fromAbi4(abi29, name, { args: args3 }), args3];
193301
+ const [abi30, name, args3] = parameters;
193302
+ return [fromAbi4(abi30, name, { args: args3 }), args3];
193303
193303
  }
193304
193304
  const [abiFunction2, args2] = parameters;
193305
193305
  return [abiFunction2, args2];
@@ -193315,8 +193315,8 @@ var require_AbiFunction = __commonJS({
193315
193315
  function encodeResult(...parameters) {
193316
193316
  const [abiFunction, output, options = {}] = (() => {
193317
193317
  if (Array.isArray(parameters[0])) {
193318
- const [abi29, name, output2, options2] = parameters;
193319
- return [fromAbi4(abi29, name), output2, options2];
193318
+ const [abi30, name, output2, options2] = parameters;
193319
+ return [fromAbi4(abi30, name), output2, options2];
193320
193320
  }
193321
193321
  return parameters;
193322
193322
  })();
@@ -193338,8 +193338,8 @@ var require_AbiFunction = __commonJS({
193338
193338
  function from14(abiFunction, options = {}) {
193339
193339
  return AbiItem.from(abiFunction, options);
193340
193340
  }
193341
- function fromAbi4(abi29, name, options) {
193342
- const item = AbiItem.fromAbi(abi29, name, options);
193341
+ function fromAbi4(abi30, name, options) {
193342
+ const item = AbiItem.fromAbi(abi30, name, options);
193343
193343
  if (item.type !== "function")
193344
193344
  throw new AbiItem.NotFoundError({ name, type: "function" });
193345
193345
  return item;
@@ -195483,8 +195483,8 @@ var require_deployContract = __commonJS({
195483
195483
  var encodeDeployData_js_1 = require_encodeDeployData();
195484
195484
  var sendTransaction_js_1 = require_sendTransaction();
195485
195485
  function deployContract2(walletClient, parameters) {
195486
- const { abi: abi29, args, bytecode, ...request } = parameters;
195487
- const calldata = (0, encodeDeployData_js_1.encodeDeployData)({ abi: abi29, args, bytecode });
195486
+ const { abi: abi30, args, bytecode, ...request } = parameters;
195487
+ const calldata = (0, encodeDeployData_js_1.encodeDeployData)({ abi: abi30, args, bytecode });
195488
195488
  return (0, sendTransaction_js_1.sendTransaction)(walletClient, {
195489
195489
  ...request,
195490
195490
  ...request.authorizationList ? { to: null } : {},
@@ -196331,10 +196331,10 @@ var require_decodeDeployData = __commonJS({
196331
196331
  var decodeAbiParameters_js_1 = require_decodeAbiParameters();
196332
196332
  var docsPath8 = "/docs/contract/decodeDeployData";
196333
196333
  function decodeDeployData(parameters) {
196334
- const { abi: abi29, bytecode, data } = parameters;
196334
+ const { abi: abi30, bytecode, data } = parameters;
196335
196335
  if (data === bytecode)
196336
196336
  return { bytecode };
196337
- const description = abi29.find((x) => "type" in x && x.type === "constructor");
196337
+ const description = abi30.find((x) => "type" in x && x.type === "constructor");
196338
196338
  if (!description)
196339
196339
  throw new abi_js_1.AbiConstructorNotFoundError({ docsPath: docsPath8 });
196340
196340
  if (!("inputs" in description))
@@ -250941,21 +250941,21 @@ var require_BaseContract2 = __commonJS({
250941
250941
  return this.contractAddress;
250942
250942
  };
250943
250943
  this.encode = (functionToEncode, args) => {
250944
- const abi29 = this.contractAbi;
250944
+ const abi30 = this.contractAbi;
250945
250945
  const functionName = functionToEncode;
250946
250946
  const params = args;
250947
250947
  return (0, viem_1.encodeFunctionData)({
250948
- abi: abi29,
250948
+ abi: abi30,
250949
250949
  functionName,
250950
250950
  args: params
250951
250951
  });
250952
250952
  };
250953
250953
  this.estimateGas = async (functionToEstimate, args, options = {}) => {
250954
250954
  const contractOptions = this.convertOptions(options);
250955
- const abi29 = this.contractAbi;
250955
+ const abi30 = this.contractAbi;
250956
250956
  const params = args;
250957
250957
  return (0, actions_1.estimateContractGas)(this.runner, {
250958
- abi: abi29,
250958
+ abi: abi30,
250959
250959
  functionName: functionToEstimate,
250960
250960
  address: this.getAddress(),
250961
250961
  args: params,
@@ -301993,17 +301993,17 @@ var require_interface3 = __commonJS({
301993
301993
  * Create a new Interface for the %%fragments%%.
301994
301994
  */
301995
301995
  constructor(fragments) {
301996
- let abi29 = [];
301996
+ let abi30 = [];
301997
301997
  if (typeof fragments === "string") {
301998
- abi29 = JSON.parse(fragments);
301998
+ abi30 = JSON.parse(fragments);
301999
301999
  } else {
302000
- abi29 = fragments;
302000
+ abi30 = fragments;
302001
302001
  }
302002
302002
  this.#functions = /* @__PURE__ */ new Map();
302003
302003
  this.#errors = /* @__PURE__ */ new Map();
302004
302004
  this.#events = /* @__PURE__ */ new Map();
302005
302005
  const frags = [];
302006
- for (const a of abi29) {
302006
+ for (const a of abi30) {
302007
302007
  try {
302008
302008
  frags.push(fragments_js_1.Fragment.from(a));
302009
302009
  } catch (error46) {
@@ -302067,16 +302067,16 @@ var require_interface3 = __commonJS({
302067
302067
  */
302068
302068
  format(minimal) {
302069
302069
  const format2 = minimal ? "minimal" : "full";
302070
- const abi29 = this.fragments.map((f) => f.format(format2));
302071
- return abi29;
302070
+ const abi30 = this.fragments.map((f) => f.format(format2));
302071
+ return abi30;
302072
302072
  }
302073
302073
  /**
302074
302074
  * Return the JSON-encoded ABI. This is the format Solidiy
302075
302075
  * returns.
302076
302076
  */
302077
302077
  formatJson() {
302078
- const abi29 = this.fragments.map((f) => f.format("json"));
302079
- return JSON.stringify(abi29.map((j) => JSON.parse(j)));
302078
+ const abi30 = this.fragments.map((f) => f.format("json"));
302079
+ return JSON.stringify(abi30.map((j) => JSON.parse(j)));
302080
302080
  }
302081
302081
  /**
302082
302082
  * The ABI coder that will be used to encode and decode binary
@@ -304844,12 +304844,12 @@ var require_contract5 = __commonJS({
304844
304844
  * optionally connected to a %%runner%% to perform operations on behalf
304845
304845
  * of.
304846
304846
  */
304847
- constructor(target, abi29, runner, _deployTx) {
304847
+ constructor(target, abi30, runner, _deployTx) {
304848
304848
  (0, index_js_3.assertArgument)(typeof target === "string" || (0, index_js_2.isAddressable)(target), "invalid value for Contract target", "target", target);
304849
304849
  if (runner == null) {
304850
304850
  runner = null;
304851
304851
  }
304852
- const iface = index_js_1.Interface.from(abi29);
304852
+ const iface = index_js_1.Interface.from(abi30);
304853
304853
  (0, index_js_3.defineProperties)(this, { target, runner, interface: iface });
304854
304854
  Object.defineProperty(this, internal, { value: {} });
304855
304855
  let addrPromise;
@@ -305212,10 +305212,10 @@ var require_contract5 = __commonJS({
305212
305212
  /**
305213
305213
  * Create a new Class for the %%abi%%.
305214
305214
  */
305215
- static buildClass(abi29) {
305215
+ static buildClass(abi30) {
305216
305216
  class CustomContract extends _BaseContract {
305217
305217
  constructor(address, runner = null) {
305218
- super(address, abi29, runner);
305218
+ super(address, abi30, runner);
305219
305219
  }
305220
305220
  }
305221
305221
  return CustomContract;
@@ -305223,11 +305223,11 @@ var require_contract5 = __commonJS({
305223
305223
  /**
305224
305224
  * Create a new BaseContract with a specified Interface.
305225
305225
  */
305226
- static from(target, abi29, runner) {
305226
+ static from(target, abi30, runner) {
305227
305227
  if (runner == null) {
305228
305228
  runner = null;
305229
305229
  }
305230
- const contract = new this(target, abi29, runner);
305230
+ const contract = new this(target, abi30, runner);
305231
305231
  return contract;
305232
305232
  }
305233
305233
  };
@@ -305271,8 +305271,8 @@ var require_factory2 = __commonJS({
305271
305271
  * The %%bytecode%% may be the ``bytecode`` property within the
305272
305272
  * standard Solidity JSON output.
305273
305273
  */
305274
- constructor(abi29, bytecode, runner) {
305275
- const iface = index_js_1.Interface.from(abi29);
305274
+ constructor(abi30, bytecode, runner) {
305275
+ const iface = index_js_1.Interface.from(abi30);
305276
305276
  if (bytecode instanceof Uint8Array) {
305277
305277
  bytecode = (0, index_js_3.hexlify)((0, index_js_3.getBytes)(bytecode));
305278
305278
  } else {
@@ -305342,14 +305342,14 @@ var require_factory2 = __commonJS({
305342
305342
  if (typeof output === "string") {
305343
305343
  output = JSON.parse(output);
305344
305344
  }
305345
- const abi29 = output.abi;
305345
+ const abi30 = output.abi;
305346
305346
  let bytecode = "";
305347
305347
  if (output.bytecode) {
305348
305348
  bytecode = output.bytecode;
305349
305349
  } else if (output.evm && output.evm.bytecode) {
305350
305350
  bytecode = output.evm.bytecode;
305351
305351
  }
305352
- return new this(abi29, bytecode, runner);
305352
+ return new this(abi30, bytecode, runner);
305353
305353
  }
305354
305354
  };
305355
305355
  exports2.ContractFactory = ContractFactory;
@@ -310299,8 +310299,8 @@ var require_provider_etherscan2 = __commonJS({
310299
310299
  action: "getabi",
310300
310300
  address
310301
310301
  });
310302
- const abi29 = JSON.parse(resp);
310303
- return new index_js_2.Contract(address, abi29, this);
310302
+ const abi30 = JSON.parse(resp);
310303
+ return new index_js_2.Contract(address, abi30, this);
310304
310304
  } catch (error46) {
310305
310305
  return null;
310306
310306
  }
@@ -336987,13 +336987,13 @@ var require_interface4 = __commonJS({
336987
336987
  function Interface2(fragments) {
336988
336988
  var _newTarget = this.constructor;
336989
336989
  var _this = this;
336990
- var abi29 = [];
336990
+ var abi30 = [];
336991
336991
  if (typeof fragments === "string") {
336992
- abi29 = JSON.parse(fragments);
336992
+ abi30 = JSON.parse(fragments);
336993
336993
  } else {
336994
- abi29 = fragments;
336994
+ abi30 = fragments;
336995
336995
  }
336996
- (0, properties_1.defineReadOnly)(this, "fragments", abi29.map(function(fragment) {
336996
+ (0, properties_1.defineReadOnly)(this, "fragments", abi30.map(function(fragment) {
336997
336997
  return fragments_1.Fragment.from(fragment);
336998
336998
  }).filter(function(fragment) {
336999
336999
  return fragment != null;
@@ -337047,15 +337047,15 @@ var require_interface4 = __commonJS({
337047
337047
  if (format2 === fragments_1.FormatTypes.sighash) {
337048
337048
  logger2.throwArgumentError("interface does not support formatting sighash", "format", format2);
337049
337049
  }
337050
- var abi29 = this.fragments.map(function(fragment) {
337050
+ var abi30 = this.fragments.map(function(fragment) {
337051
337051
  return fragment.format(format2);
337052
337052
  });
337053
337053
  if (format2 === fragments_1.FormatTypes.json) {
337054
- return JSON.stringify(abi29.map(function(j) {
337054
+ return JSON.stringify(abi30.map(function(j) {
337055
337055
  return JSON.parse(j);
337056
337056
  }));
337057
337057
  }
337058
- return abi29;
337058
+ return abi30;
337059
337059
  };
337060
337060
  Interface2.getAbiCoder = function() {
337061
337061
  return abi_coder_1.defaultAbiCoder;
@@ -372244,10 +372244,10 @@ init_formatAbiItem2();
372244
372244
  init_getAbiItem();
372245
372245
  var docsPath = "/docs/contract/encodeEventTopics";
372246
372246
  function encodeEventTopics(parameters) {
372247
- const { abi: abi29, eventName, args } = parameters;
372248
- let abiItem = abi29[0];
372247
+ const { abi: abi30, eventName, args } = parameters;
372248
+ let abiItem = abi30[0];
372249
372249
  if (eventName) {
372250
- const item = getAbiItem({ abi: abi29, name: eventName });
372250
+ const item = getAbiItem({ abi: abi30, name: eventName });
372251
372251
  if (!item)
372252
372252
  throw new AbiEventNotFoundError(eventName, { docsPath });
372253
372253
  abiItem = item;
@@ -372294,12 +372294,12 @@ function createFilterRequestScope(client, { method }) {
372294
372294
 
372295
372295
  // ../../node_modules/viem/_esm/actions/public/createContractEventFilter.js
372296
372296
  async function createContractEventFilter(client, parameters) {
372297
- const { address, abi: abi29, args, eventName, fromBlock, strict, toBlock } = parameters;
372297
+ const { address, abi: abi30, args, eventName, fromBlock, strict, toBlock } = parameters;
372298
372298
  const getRequest = createFilterRequestScope(client, {
372299
372299
  method: "eth_newFilter"
372300
372300
  });
372301
372301
  const topics = eventName ? encodeEventTopics({
372302
- abi: abi29,
372302
+ abi: abi30,
372303
372303
  args,
372304
372304
  eventName
372305
372305
  }) : void 0;
@@ -372315,7 +372315,7 @@ async function createContractEventFilter(client, parameters) {
372315
372315
  ]
372316
372316
  });
372317
372317
  return {
372318
- abi: abi29,
372318
+ abi: abi30,
372319
372319
  args,
372320
372320
  eventName,
372321
372321
  id,
@@ -372336,7 +372336,7 @@ init_contract();
372336
372336
  init_request();
372337
372337
  init_rpc();
372338
372338
  var EXECUTION_REVERTED_ERROR_CODE = 3;
372339
- function getContractError(err, { abi: abi29, address, args, docsPath: docsPath8, functionName, sender }) {
372339
+ function getContractError(err, { abi: abi30, address, args, docsPath: docsPath8, functionName, sender }) {
372340
372340
  const error46 = err instanceof RawContractError ? err : err instanceof BaseError2 ? err.walk((err2) => "data" in err2) || err.walk() : {};
372341
372341
  const { code, data, details, message: message2, shortMessage } = error46;
372342
372342
  const cause = (() => {
@@ -372344,7 +372344,7 @@ function getContractError(err, { abi: abi29, address, args, docsPath: docsPath8,
372344
372344
  return new ContractFunctionZeroDataError({ functionName });
372345
372345
  if ([EXECUTION_REVERTED_ERROR_CODE, InternalRpcError.code].includes(code) && (data || details || message2 || shortMessage)) {
372346
372346
  return new ContractFunctionRevertedError({
372347
- abi: abi29,
372347
+ abi: abi30,
372348
372348
  data: typeof data === "object" ? data.data : data,
372349
372349
  functionName,
372350
372350
  message: error46 instanceof RpcRequestError ? details : shortMessage ?? message2
@@ -372353,7 +372353,7 @@ function getContractError(err, { abi: abi29, address, args, docsPath: docsPath8,
372353
372353
  return err;
372354
372354
  })();
372355
372355
  return new ContractFunctionExecutionError(cause, {
372356
- abi: abi29,
372356
+ abi: abi30,
372357
372357
  args,
372358
372358
  contractAddress: address,
372359
372359
  docsPath: docsPath8,
@@ -373286,9 +373286,9 @@ async function estimateGas(client, args) {
373286
373286
 
373287
373287
  // ../../node_modules/viem/_esm/actions/public/estimateContractGas.js
373288
373288
  async function estimateContractGas(client, parameters) {
373289
- const { abi: abi29, address, args, functionName, dataSuffix, ...request } = parameters;
373289
+ const { abi: abi30, address, args, functionName, dataSuffix, ...request } = parameters;
373290
373290
  const data = encodeFunctionData({
373291
- abi: abi29,
373291
+ abi: abi30,
373292
373292
  args,
373293
373293
  functionName
373294
373294
  });
@@ -373302,7 +373302,7 @@ async function estimateContractGas(client, parameters) {
373302
373302
  } catch (error46) {
373303
373303
  const account = request.account ? parseAccount(request.account) : void 0;
373304
373304
  throw getContractError(error46, {
373305
- abi: abi29,
373305
+ abi: abi30,
373306
373306
  address,
373307
373307
  args,
373308
373308
  docsPath: "/docs/contract/estimateContractGas",
@@ -373331,12 +373331,12 @@ init_decodeAbiParameters();
373331
373331
  init_formatAbiItem2();
373332
373332
  var docsPath3 = "/docs/contract/decodeEventLog";
373333
373333
  function decodeEventLog(parameters) {
373334
- const { abi: abi29, data, strict: strict_, topics } = parameters;
373334
+ const { abi: abi30, data, strict: strict_, topics } = parameters;
373335
373335
  const strict = strict_ ?? true;
373336
373336
  const [signature, ...argTopics] = topics;
373337
373337
  if (!signature)
373338
373338
  throw new AbiEventSignatureEmptyTopicsError({ docsPath: docsPath3 });
373339
- const abiItem = abi29.find((x) => x.type === "event" && signature === toEventSelector(formatAbiItem2(x)));
373339
+ const abiItem = abi30.find((x) => x.type === "event" && signature === toEventSelector(formatAbiItem2(x)));
373340
373340
  if (!(abiItem && "name" in abiItem) || abiItem.type !== "event")
373341
373341
  throw new AbiEventSignatureNotFoundError(signature, { docsPath: docsPath3 });
373342
373342
  const { name, inputs } = abiItem;
@@ -373404,7 +373404,7 @@ function decodeTopic({ param, value }) {
373404
373404
 
373405
373405
  // ../../node_modules/viem/_esm/utils/abi/parseEventLogs.js
373406
373406
  function parseEventLogs(parameters) {
373407
- const { abi: abi29, args, logs, strict = true } = parameters;
373407
+ const { abi: abi30, args, logs, strict = true } = parameters;
373408
373408
  const eventName = (() => {
373409
373409
  if (!parameters.eventName)
373410
373410
  return void 0;
@@ -373414,7 +373414,7 @@ function parseEventLogs(parameters) {
373414
373414
  })();
373415
373415
  return logs.map((log2) => {
373416
373416
  try {
373417
- const abiItem = abi29.find((abiItem2) => abiItem2.type === "event" && log2.topics[0] === toEventSelector(abiItem2));
373417
+ const abiItem = abi30.find((abiItem2) => abiItem2.type === "event" && log2.topics[0] === toEventSelector(abiItem2));
373418
373418
  if (!abiItem)
373419
373419
  return null;
373420
373420
  const event = decodeEventLog({
@@ -373550,9 +373550,9 @@ async function getLogs(client, { address, blockHash, fromBlock, toBlock, event,
373550
373550
 
373551
373551
  // ../../node_modules/viem/_esm/actions/public/getContractEvents.js
373552
373552
  async function getContractEvents(client, parameters) {
373553
- const { abi: abi29, address, args, blockHash, eventName, fromBlock, toBlock, strict } = parameters;
373554
- const event = eventName ? getAbiItem({ abi: abi29, name: eventName }) : void 0;
373555
- const events = !event ? abi29.filter((x) => x.type === "event") : void 0;
373553
+ const { abi: abi30, address, args, blockHash, eventName, fromBlock, toBlock, strict } = parameters;
373554
+ const event = eventName ? getAbiItem({ abi: abi30, name: eventName }) : void 0;
373555
+ const events = !event ? abi30.filter((x) => x.type === "event") : void 0;
373556
373556
  return getAction(client, getLogs, "getLogs")({
373557
373557
  address,
373558
373558
  args,
@@ -373570,9 +373570,9 @@ init_decodeFunctionResult();
373570
373570
  init_encodeFunctionData();
373571
373571
  init_call();
373572
373572
  async function readContract(client, parameters) {
373573
- const { abi: abi29, address, args, functionName, ...rest } = parameters;
373573
+ const { abi: abi30, address, args, functionName, ...rest } = parameters;
373574
373574
  const calldata = encodeFunctionData({
373575
- abi: abi29,
373575
+ abi: abi30,
373576
373576
  args,
373577
373577
  functionName
373578
373578
  });
@@ -373583,14 +373583,14 @@ async function readContract(client, parameters) {
373583
373583
  to: address
373584
373584
  });
373585
373585
  return decodeFunctionResult({
373586
- abi: abi29,
373586
+ abi: abi30,
373587
373587
  args,
373588
373588
  functionName,
373589
373589
  data: data || "0x"
373590
373590
  });
373591
373591
  } catch (error46) {
373592
373592
  throw getContractError(error46, {
373593
- abi: abi29,
373593
+ abi: abi30,
373594
373594
  address,
373595
373595
  args,
373596
373596
  docsPath: "/docs/contract/readContract",
@@ -373605,9 +373605,9 @@ init_decodeFunctionResult();
373605
373605
  init_encodeFunctionData();
373606
373606
  init_call();
373607
373607
  async function simulateContract(client, parameters) {
373608
- const { abi: abi29, address, args, dataSuffix, functionName, ...callRequest } = parameters;
373608
+ const { abi: abi30, address, args, dataSuffix, functionName, ...callRequest } = parameters;
373609
373609
  const account = callRequest.account ? parseAccount(callRequest.account) : client.account;
373610
- const calldata = encodeFunctionData({ abi: abi29, args, functionName });
373610
+ const calldata = encodeFunctionData({ abi: abi30, args, functionName });
373611
373611
  try {
373612
373612
  const { data } = await getAction(client, call, "call")({
373613
373613
  batch: false,
@@ -373617,12 +373617,12 @@ async function simulateContract(client, parameters) {
373617
373617
  account
373618
373618
  });
373619
373619
  const result = decodeFunctionResult({
373620
- abi: abi29,
373620
+ abi: abi30,
373621
373621
  args,
373622
373622
  functionName,
373623
373623
  data: data || "0x"
373624
373624
  });
373625
- const minimizedAbi = abi29.filter((abiItem) => "name" in abiItem && abiItem.name === parameters.functionName);
373625
+ const minimizedAbi = abi30.filter((abiItem) => "name" in abiItem && abiItem.name === parameters.functionName);
373626
373626
  return {
373627
373627
  result,
373628
373628
  request: {
@@ -373637,7 +373637,7 @@ async function simulateContract(client, parameters) {
373637
373637
  };
373638
373638
  } catch (error46) {
373639
373639
  throw getContractError(error46, {
373640
- abi: abi29,
373640
+ abi: abi30,
373641
373641
  address,
373642
373642
  args,
373643
373643
  docsPath: "/docs/contract/simulateContract",
@@ -373809,7 +373809,7 @@ async function uninstallFilter(_client, { filter }) {
373809
373809
 
373810
373810
  // ../../node_modules/viem/_esm/actions/public/watchContractEvent.js
373811
373811
  function watchContractEvent(client, parameters) {
373812
- const { abi: abi29, address, args, batch = true, eventName, fromBlock, onError, onLogs, poll: poll_, pollingInterval = client.pollingInterval, strict: strict_ } = parameters;
373812
+ const { abi: abi30, address, args, batch = true, eventName, fromBlock, onError, onLogs, poll: poll_, pollingInterval = client.pollingInterval, strict: strict_ } = parameters;
373813
373813
  const enablePolling = (() => {
373814
373814
  if (typeof poll_ !== "undefined")
373815
373815
  return poll_;
@@ -373844,7 +373844,7 @@ function watchContractEvent(client, parameters) {
373844
373844
  if (!initialized) {
373845
373845
  try {
373846
373846
  filter = await getAction(client, createContractEventFilter, "createContractEventFilter")({
373847
- abi: abi29,
373847
+ abi: abi30,
373848
373848
  address,
373849
373849
  args,
373850
373850
  eventName,
@@ -373864,7 +373864,7 @@ function watchContractEvent(client, parameters) {
373864
373864
  const blockNumber = await getAction(client, getBlockNumber, "getBlockNumber")({});
373865
373865
  if (previousBlockNumber && previousBlockNumber < blockNumber) {
373866
373866
  logs = await getAction(client, getContractEvents, "getContractEvents")({
373867
- abi: abi29,
373867
+ abi: abi30,
373868
373868
  address,
373869
373869
  args,
373870
373870
  eventName,
@@ -373928,7 +373928,7 @@ function watchContractEvent(client, parameters) {
373928
373928
  return client.transport;
373929
373929
  })();
373930
373930
  const topics = eventName ? encodeEventTopics({
373931
- abi: abi29,
373931
+ abi: abi30,
373932
373932
  eventName,
373933
373933
  args
373934
373934
  }) : [];
@@ -373940,7 +373940,7 @@ function watchContractEvent(client, parameters) {
373940
373940
  const log2 = data.result;
373941
373941
  try {
373942
373942
  const { eventName: eventName2, args: args2 } = decodeEventLog({
373943
- abi: abi29,
373943
+ abi: abi30,
373944
373944
  data: log2.data,
373945
373945
  topics: log2.topics,
373946
373946
  strict: strict_
@@ -374195,14 +374195,14 @@ async function sendTransaction(client, parameters) {
374195
374195
 
374196
374196
  // ../../node_modules/viem/_esm/actions/wallet/writeContract.js
374197
374197
  async function writeContract(client, parameters) {
374198
- const { abi: abi29, account: account_ = client.account, address, args, dataSuffix, functionName, ...request } = parameters;
374198
+ const { abi: abi30, account: account_ = client.account, address, args, dataSuffix, functionName, ...request } = parameters;
374199
374199
  if (typeof account_ === "undefined")
374200
374200
  throw new AccountNotFoundError({
374201
374201
  docsPath: "/docs/contract/writeContract"
374202
374202
  });
374203
374203
  const account = account_ ? parseAccount(account_) : null;
374204
374204
  const data = encodeFunctionData({
374205
- abi: abi29,
374205
+ abi: abi30,
374206
374206
  args,
374207
374207
  functionName
374208
374208
  });
@@ -374215,7 +374215,7 @@ async function writeContract(client, parameters) {
374215
374215
  });
374216
374216
  } catch (error46) {
374217
374217
  throw getContractError(error46, {
374218
- abi: abi29,
374218
+ abi: abi30,
374219
374219
  address,
374220
374220
  args,
374221
374221
  docsPath: "/docs/contract/writeContract",
@@ -374226,7 +374226,7 @@ async function writeContract(client, parameters) {
374226
374226
  }
374227
374227
 
374228
374228
  // ../../node_modules/viem/_esm/actions/getContract.js
374229
- function getContract({ abi: abi29, address, client: client_ }) {
374229
+ function getContract({ abi: abi30, address, client: client_ }) {
374230
374230
  const client = client_;
374231
374231
  const [publicClient, walletClient] = (() => {
374232
374232
  if (!client)
@@ -374245,7 +374245,7 @@ function getContract({ abi: abi29, address, client: client_ }) {
374245
374245
  let hasReadFunction = false;
374246
374246
  let hasWriteFunction = false;
374247
374247
  let hasEvent = false;
374248
- for (const item of abi29) {
374248
+ for (const item of abi30) {
374249
374249
  if (item.type === "function")
374250
374250
  if (item.stateMutability === "view" || item.stateMutability === "pure")
374251
374251
  hasReadFunction = true;
@@ -374263,7 +374263,7 @@ function getContract({ abi: abi29, address, client: client_ }) {
374263
374263
  return (...parameters) => {
374264
374264
  const { args, options } = getFunctionParameters(parameters);
374265
374265
  return getAction(publicClient, readContract, "readContract")({
374266
- abi: abi29,
374266
+ abi: abi30,
374267
374267
  address,
374268
374268
  functionName,
374269
374269
  args,
@@ -374278,7 +374278,7 @@ function getContract({ abi: abi29, address, client: client_ }) {
374278
374278
  return (...parameters) => {
374279
374279
  const { args, options } = getFunctionParameters(parameters);
374280
374280
  return getAction(publicClient, simulateContract, "simulateContract")({
374281
- abi: abi29,
374281
+ abi: abi30,
374282
374282
  address,
374283
374283
  functionName,
374284
374284
  args,
@@ -374291,10 +374291,10 @@ function getContract({ abi: abi29, address, client: client_ }) {
374291
374291
  contract.createEventFilter = new Proxy({}, {
374292
374292
  get(_, eventName) {
374293
374293
  return (...parameters) => {
374294
- const abiEvent = abi29.find((x) => x.type === "event" && x.name === eventName);
374294
+ const abiEvent = abi30.find((x) => x.type === "event" && x.name === eventName);
374295
374295
  const { args, options } = getEventParameters(parameters, abiEvent);
374296
374296
  return getAction(publicClient, createContractEventFilter, "createContractEventFilter")({
374297
- abi: abi29,
374297
+ abi: abi30,
374298
374298
  address,
374299
374299
  eventName,
374300
374300
  args,
@@ -374306,10 +374306,10 @@ function getContract({ abi: abi29, address, client: client_ }) {
374306
374306
  contract.getEvents = new Proxy({}, {
374307
374307
  get(_, eventName) {
374308
374308
  return (...parameters) => {
374309
- const abiEvent = abi29.find((x) => x.type === "event" && x.name === eventName);
374309
+ const abiEvent = abi30.find((x) => x.type === "event" && x.name === eventName);
374310
374310
  const { args, options } = getEventParameters(parameters, abiEvent);
374311
374311
  return getAction(publicClient, getContractEvents, "getContractEvents")({
374312
- abi: abi29,
374312
+ abi: abi30,
374313
374313
  address,
374314
374314
  eventName,
374315
374315
  args,
@@ -374321,10 +374321,10 @@ function getContract({ abi: abi29, address, client: client_ }) {
374321
374321
  contract.watchEvent = new Proxy({}, {
374322
374322
  get(_, eventName) {
374323
374323
  return (...parameters) => {
374324
- const abiEvent = abi29.find((x) => x.type === "event" && x.name === eventName);
374324
+ const abiEvent = abi30.find((x) => x.type === "event" && x.name === eventName);
374325
374325
  const { args, options } = getEventParameters(parameters, abiEvent);
374326
374326
  return getAction(publicClient, watchContractEvent, "watchContractEvent")({
374327
- abi: abi29,
374327
+ abi: abi30,
374328
374328
  address,
374329
374329
  eventName,
374330
374330
  args,
@@ -374342,7 +374342,7 @@ function getContract({ abi: abi29, address, client: client_ }) {
374342
374342
  return (...parameters) => {
374343
374343
  const { args, options } = getFunctionParameters(parameters);
374344
374344
  return getAction(walletClient, writeContract, "writeContract")({
374345
- abi: abi29,
374345
+ abi: abi30,
374346
374346
  address,
374347
374347
  functionName,
374348
374348
  args,
@@ -374360,7 +374360,7 @@ function getContract({ abi: abi29, address, client: client_ }) {
374360
374360
  const { args, options } = getFunctionParameters(parameters);
374361
374361
  const client2 = publicClient ?? walletClient;
374362
374362
  return getAction(client2, estimateContractGas, "estimateContractGas")({
374363
- abi: abi29,
374363
+ abi: abi30,
374364
374364
  address,
374365
374365
  functionName,
374366
374366
  args,
@@ -374372,7 +374372,7 @@ function getContract({ abi: abi29, address, client: client_ }) {
374372
374372
  });
374373
374373
  }
374374
374374
  contract.address = address;
374375
- contract.abi = abi29;
374375
+ contract.abi = abi30;
374376
374376
  return contract;
374377
374377
  }
374378
374378
  function getFunctionParameters(values) {
@@ -378410,9 +378410,9 @@ async function multicall(client, parameters) {
378410
378410
  let currentChunk = 0;
378411
378411
  let currentChunkSize = 0;
378412
378412
  for (let i = 0; i < contracts2.length; i++) {
378413
- const { abi: abi29, address, args, functionName } = contracts2[i];
378413
+ const { abi: abi30, address, args, functionName } = contracts2[i];
378414
378414
  try {
378415
- const callData = encodeFunctionData({ abi: abi29, args, functionName });
378415
+ const callData = encodeFunctionData({ abi: abi30, args, functionName });
378416
378416
  currentChunkSize += (callData.length - 2) / 2;
378417
378417
  if (
378418
378418
  // Check if batching is enabled.
@@ -378434,7 +378434,7 @@ async function multicall(client, parameters) {
378434
378434
  ];
378435
378435
  } catch (err) {
378436
378436
  const error46 = getContractError(err, {
378437
- abi: abi29,
378437
+ abi: abi30,
378438
378438
  address,
378439
378439
  args,
378440
378440
  docsPath: "/docs/contract/multicall",
@@ -378484,14 +378484,14 @@ async function multicall(client, parameters) {
378484
378484
  for (let j = 0; j < aggregate3Result.length; j++) {
378485
378485
  const { returnData, success: success2 } = aggregate3Result[j];
378486
378486
  const { callData } = chunkedCalls[i][j];
378487
- const { abi: abi29, address, functionName, args } = contracts2[results.length];
378487
+ const { abi: abi30, address, functionName, args } = contracts2[results.length];
378488
378488
  try {
378489
378489
  if (callData === "0x")
378490
378490
  throw new AbiDecodingZeroDataError();
378491
378491
  if (!success2)
378492
378492
  throw new RawContractError({ data: returnData });
378493
378493
  const result2 = decodeFunctionResult({
378494
- abi: abi29,
378494
+ abi: abi30,
378495
378495
  args,
378496
378496
  data: returnData,
378497
378497
  functionName
@@ -378499,7 +378499,7 @@ async function multicall(client, parameters) {
378499
378499
  results.push(allowFailure ? { result: result2, status: "success" } : result2);
378500
378500
  } catch (err) {
378501
378501
  const error46 = getContractError(err, {
378502
- abi: abi29,
378502
+ abi: abi30,
378503
378503
  address,
378504
378504
  args,
378505
378505
  docsPath: "/docs/contract/multicall",
@@ -378567,13 +378567,13 @@ async function simulateBlocks(client, parameters) {
378567
378567
  return result.map((block2, i) => ({
378568
378568
  ...formatBlock(block2),
378569
378569
  calls: block2.calls.map((call2, j) => {
378570
- const { abi: abi29, args, functionName, to } = blocks[i].calls[j];
378570
+ const { abi: abi30, args, functionName, to } = blocks[i].calls[j];
378571
378571
  const data = call2.error?.data ?? call2.returnData;
378572
378572
  const gasUsed = BigInt(call2.gasUsed);
378573
378573
  const logs = call2.logs?.map((log2) => formatLog(log2));
378574
378574
  const status = call2.status === "0x1" ? "success" : "failure";
378575
- const result2 = abi29 && status === "success" && data !== "0x" ? decodeFunctionResult({
378576
- abi: abi29,
378575
+ const result2 = abi30 && status === "success" && data !== "0x" ? decodeFunctionResult({
378576
+ abi: abi30,
378577
378577
  data,
378578
378578
  functionName
378579
378579
  }) : null;
@@ -378588,7 +378588,7 @@ async function simulateBlocks(client, parameters) {
378588
378588
  if (!error47)
378589
378589
  return void 0;
378590
378590
  return getContractError(error47, {
378591
- abi: abi29 ?? [],
378591
+ abi: abi30 ?? [],
378592
378592
  address: to ?? "0x",
378593
378593
  args,
378594
378594
  functionName: functionName ?? "<unknown>"
@@ -378738,10 +378738,10 @@ function from10(abiItem, options = {}) {
378738
378738
  ...prepare ? { hash: getSignatureHash(item) } : {}
378739
378739
  };
378740
378740
  }
378741
- function fromAbi(abi29, name, options) {
378741
+ function fromAbi(abi30, name, options) {
378742
378742
  const { args = [], prepare = true } = options ?? {};
378743
378743
  const isSelector = validate2(name, { strict: false });
378744
- const abiItems = abi29.filter((abiItem2) => {
378744
+ const abiItems = abi30.filter((abiItem2) => {
378745
378745
  if (isSelector) {
378746
378746
  if (abiItem2.type === "function" || abiItem2.type === "error")
378747
378747
  return getSelector(abiItem2) === slice3(name, 0, 4);
@@ -378813,8 +378813,8 @@ function fromAbi(abi29, name, options) {
378813
378813
  function getSelector(...parameters) {
378814
378814
  const abiItem = (() => {
378815
378815
  if (Array.isArray(parameters[0])) {
378816
- const [abi29, name] = parameters;
378817
- return fromAbi(abi29, name);
378816
+ const [abi30, name] = parameters;
378817
+ return fromAbi(abi30, name);
378818
378818
  }
378819
378819
  return parameters[0];
378820
378820
  })();
@@ -378823,8 +378823,8 @@ function getSelector(...parameters) {
378823
378823
  function getSignature(...parameters) {
378824
378824
  const abiItem = (() => {
378825
378825
  if (Array.isArray(parameters[0])) {
378826
- const [abi29, name] = parameters;
378827
- return fromAbi(abi29, name);
378826
+ const [abi30, name] = parameters;
378827
+ return fromAbi(abi30, name);
378828
378828
  }
378829
378829
  return parameters[0];
378830
378830
  })();
@@ -378838,8 +378838,8 @@ function getSignature(...parameters) {
378838
378838
  function getSignatureHash(...parameters) {
378839
378839
  const abiItem = (() => {
378840
378840
  if (Array.isArray(parameters[0])) {
378841
- const [abi29, name] = parameters;
378842
- return fromAbi(abi29, name);
378841
+ const [abi30, name] = parameters;
378842
+ return fromAbi(abi30, name);
378843
378843
  }
378844
378844
  return parameters[0];
378845
378845
  })();
@@ -378891,8 +378891,8 @@ init_Hex();
378891
378891
  function encode3(...parameters) {
378892
378892
  const [abiConstructor, options] = (() => {
378893
378893
  if (Array.isArray(parameters[0])) {
378894
- const [abi29, options2] = parameters;
378895
- return [fromAbi2(abi29), options2];
378894
+ const [abi30, options2] = parameters;
378895
+ return [fromAbi2(abi30), options2];
378896
378896
  }
378897
378897
  return parameters;
378898
378898
  })();
@@ -378902,8 +378902,8 @@ function encode3(...parameters) {
378902
378902
  function from11(abiConstructor) {
378903
378903
  return from10(abiConstructor);
378904
378904
  }
378905
- function fromAbi2(abi29) {
378906
- const item = abi29.find((item2) => item2.type === "constructor");
378905
+ function fromAbi2(abi30) {
378906
+ const item = abi30.find((item2) => item2.type === "constructor");
378907
378907
  if (!item)
378908
378908
  throw new NotFoundError({ name: "constructor" });
378909
378909
  return item;
@@ -378914,8 +378914,8 @@ init_Hex();
378914
378914
  function encodeData2(...parameters) {
378915
378915
  const [abiFunction, args = []] = (() => {
378916
378916
  if (Array.isArray(parameters[0])) {
378917
- const [abi29, name, args3] = parameters;
378918
- return [fromAbi3(abi29, name, { args: args3 }), args3];
378917
+ const [abi30, name, args3] = parameters;
378918
+ return [fromAbi3(abi30, name, { args: args3 }), args3];
378919
378919
  }
378920
378920
  const [abiFunction2, args2] = parameters;
378921
378921
  return [abiFunction2, args2];
@@ -378931,8 +378931,8 @@ function encodeData2(...parameters) {
378931
378931
  function from12(abiFunction, options = {}) {
378932
378932
  return from10(abiFunction, options);
378933
378933
  }
378934
- function fromAbi3(abi29, name, options) {
378935
- const item = fromAbi(abi29, name, options);
378934
+ function fromAbi3(abi30, name, options) {
378935
+ const item = fromAbi(abi30, name, options);
378936
378936
  if (item.type !== "function")
378937
378937
  throw new NotFoundError({ name, type: "function" });
378938
378938
  return item;
@@ -380595,8 +380595,8 @@ async function addChain(client, { chain }) {
380595
380595
  // ../../node_modules/viem/_esm/actions/wallet/deployContract.js
380596
380596
  init_encodeDeployData();
380597
380597
  function deployContract(walletClient, parameters) {
380598
- const { abi: abi29, args, bytecode, ...request } = parameters;
380599
- const calldata = encodeDeployData({ abi: abi29, args, bytecode });
380598
+ const { abi: abi30, args, bytecode, ...request } = parameters;
380599
+ const calldata = encodeDeployData({ abi: abi30, args, bytecode });
380600
380600
  return sendTransaction(walletClient, {
380601
380601
  ...request,
380602
380602
  ...request.authorizationList ? { to: null } : {},
@@ -395280,12 +395280,12 @@ var json_parse = (s) => {
395280
395280
  function createRawTx(to, parameters, description) {
395281
395281
  const { args } = parameters;
395282
395282
  const fname = parameters.functionName;
395283
- const { abi: abi29, functionName } = (() => {
395283
+ const { abi: abi30, functionName } = (() => {
395284
395284
  if (parameters.abi.length === 1 && parameters.functionName?.startsWith("0x"))
395285
395285
  return parameters;
395286
395286
  return prepareEncodeFunctionData(parameters);
395287
395287
  })();
395288
- const abiItem = abi29[0];
395288
+ const abiItem = abi30[0];
395289
395289
  const signature = functionName;
395290
395290
  const data = "inputs" in abiItem && abiItem.inputs ? encodeAbiParameters(abiItem.inputs, args ?? []) : void 0;
395291
395291
  const functionEncodedData = concatHex([signature, data ?? "0x"]);
@@ -417825,9 +417825,9 @@ async function simulateMulticall(client, parameters) {
417825
417825
  }
417826
417826
  const calls = [];
417827
417827
  for (const contract of contracts2) {
417828
- const { abi: abi29, address, args, functionName } = contract;
417828
+ const { abi: abi30, address, args, functionName } = contract;
417829
417829
  try {
417830
- const callData = encodeFunctionData({ abi: abi29, args, functionName });
417830
+ const callData = encodeFunctionData({ abi: abi30, args, functionName });
417831
417831
  calls.push({
417832
417832
  allowFailure: true,
417833
417833
  callData,
@@ -417835,7 +417835,7 @@ async function simulateMulticall(client, parameters) {
417835
417835
  });
417836
417836
  } catch (err) {
417837
417837
  const error46 = getContractError(err, {
417838
- abi: abi29,
417838
+ abi: abi30,
417839
417839
  address,
417840
417840
  args,
417841
417841
  docsPath: "/docs/contract/multicall",
@@ -417878,12 +417878,12 @@ async function simulateMulticall(client, parameters) {
417878
417878
  for (let j = 0; j < result.length; j++) {
417879
417879
  const { returnData, success: success2 } = result[j];
417880
417880
  const { callData } = calls[j];
417881
- const { abi: abi29, address, functionName, args } = contracts2[results.length];
417881
+ const { abi: abi30, address, functionName, args } = contracts2[results.length];
417882
417882
  try {
417883
417883
  if (callData === "0x") throw new AbiDecodingZeroDataError();
417884
417884
  if (!success2) throw new RawContractError({ data: returnData });
417885
417885
  const result2 = decodeFunctionResult({
417886
- abi: abi29,
417886
+ abi: abi30,
417887
417887
  args,
417888
417888
  data: returnData,
417889
417889
  functionName
@@ -417891,7 +417891,7 @@ async function simulateMulticall(client, parameters) {
417891
417891
  results.push(allowFailure ? { result: result2, status: "success" } : result2);
417892
417892
  } catch (err) {
417893
417893
  const error46 = getContractError(err, {
417894
- abi: abi29,
417894
+ abi: abi30,
417895
417895
  address,
417896
417896
  args,
417897
417897
  docsPath: "/docs/contract/multicall",
@@ -446050,7 +446050,7 @@ function normalizeTransactions(batch) {
446050
446050
  });
446051
446051
  }
446052
446052
  function normalizeDirectTx(t) {
446053
- const abi29 = [
446053
+ const abi30 = [
446054
446054
  {
446055
446055
  type: "function",
446056
446056
  outputs: [],
@@ -446072,10 +446072,10 @@ function normalizeDirectTx(t) {
446072
446072
  return {
446073
446073
  target: t.to,
446074
446074
  value: t.value,
446075
- signature: formatAbiItem2(abi29[0], { includeName: false }),
446075
+ signature: formatAbiItem2(abi30[0], { includeName: false }),
446076
446076
  parameters,
446077
446077
  data: encodeFunctionData({
446078
- abi: abi29,
446078
+ abi: abi30,
446079
446079
  functionName: t.contractMethod.name,
446080
446080
  args: values
446081
446081
  })
@@ -450923,15 +450923,15 @@ var Create2Deployer = class extends SDKConstruct {
450923
450923
  this.#walletClient = walletClient;
450924
450924
  }
450925
450925
  async ensureExists(parameters) {
450926
- const { abi: abi29, args, bytecode } = parameters;
450926
+ const { abi: abi30, args, bytecode } = parameters;
450927
450927
  const address = getPublicCreate2Address({
450928
- abi: abi29,
450928
+ abi: abi30,
450929
450929
  bytecode,
450930
450930
  args
450931
450931
  });
450932
450932
  this.#logger?.info(`will deploy contract at ${address}`);
450933
450933
  const isDeployed = await isDeployedUsingPublicCreate2(this.client, {
450934
- abi: abi29,
450934
+ abi: abi30,
450935
450935
  bytecode,
450936
450936
  args
450937
450937
  });
@@ -450956,13 +450956,13 @@ var Create2Deployer = class extends SDKConstruct {
450956
450956
  };
450957
450957
  async function deployUsingPublicCreate2(walletClient, parameters) {
450958
450958
  const {
450959
- abi: abi29,
450959
+ abi: abi30,
450960
450960
  args,
450961
450961
  bytecode,
450962
450962
  salt = DEFAULT_CREATE2_SALT,
450963
450963
  ...request
450964
450964
  } = parameters;
450965
- const calldata = encodeDeployData({ abi: abi29, bytecode, args });
450965
+ const calldata = encodeDeployData({ abi: abi30, bytecode, args });
450966
450966
  const saltHex = stringToHex(salt, { size: 32 });
450967
450967
  const data = concatHex([saltHex, calldata]);
450968
450968
  return sendTransaction(walletClient, {
@@ -450973,12 +450973,12 @@ async function deployUsingPublicCreate2(walletClient, parameters) {
450973
450973
  }
450974
450974
  function getPublicCreate2Address(params) {
450975
450975
  const {
450976
- abi: abi29,
450976
+ abi: abi30,
450977
450977
  args,
450978
450978
  bytecode,
450979
450979
  salt = DEFAULT_CREATE2_SALT
450980
450980
  } = params;
450981
- const deployBytecode = encodeDeployData({ abi: abi29, bytecode, args });
450981
+ const deployBytecode = encodeDeployData({ abi: abi30, bytecode, args });
450982
450982
  const saltHex = stringToHex(salt, { size: 32 });
450983
450983
  return getCreate2Address({
450984
450984
  from: PUBLIC_CREATE2_FACTORY,
@@ -453577,9 +453577,9 @@ var AbstractParser = class {
453577
453577
  };
453578
453578
  }
453579
453579
  parseConstructor(address, encodedArgs) {
453580
- for (const { abi: abi29, comment } of this.constructorAbis) {
453580
+ for (const { abi: abi30, comment } of this.constructorAbis) {
453581
453581
  try {
453582
- return this.#parseConstructor(address, encodedArgs, abi29, comment);
453582
+ return this.#parseConstructor(address, encodedArgs, abi30, comment);
453583
453583
  } catch (e) {
453584
453584
  this.logger.warn(`constructor ${comment} of ${address} failed to parse args: ${e}`);
453585
453585
  }
@@ -453813,10 +453813,217 @@ var AaveV2WrappedAtokenAdapterParser = class extends AbstractParser {
453813
453813
  };
453814
453814
 
453815
453815
  // ../../packages/node/dist/parsers/adapters/AccountMigratorAdapterV30Parser.js
453816
+ var abi25 = [
453817
+ {
453818
+ type: "constructor",
453819
+ inputs: [
453820
+ { name: "_creditManager", type: "address" },
453821
+ { name: "_targetContract", type: "address" }
453822
+ ],
453823
+ stateMutability: "nonpayable"
453824
+ },
453825
+ {
453826
+ type: "function",
453827
+ name: "_gearboxAdapterType",
453828
+ inputs: [],
453829
+ outputs: [{ name: "", type: "uint8" }],
453830
+ stateMutability: "view"
453831
+ },
453832
+ {
453833
+ type: "function",
453834
+ name: "_gearboxAdapterVersion",
453835
+ inputs: [],
453836
+ outputs: [{ name: "", type: "uint16" }],
453837
+ stateMutability: "view"
453838
+ },
453839
+ {
453840
+ type: "function",
453841
+ name: "acl",
453842
+ inputs: [],
453843
+ outputs: [{ name: "", type: "address" }],
453844
+ stateMutability: "view"
453845
+ },
453846
+ {
453847
+ type: "function",
453848
+ name: "contractType",
453849
+ inputs: [],
453850
+ outputs: [{ name: "", type: "bytes32" }],
453851
+ stateMutability: "pure"
453852
+ },
453853
+ {
453854
+ type: "function",
453855
+ name: "creditManager",
453856
+ inputs: [],
453857
+ outputs: [{ name: "", type: "address" }],
453858
+ stateMutability: "view"
453859
+ },
453860
+ {
453861
+ type: "function",
453862
+ name: "lock",
453863
+ inputs: [],
453864
+ outputs: [],
453865
+ stateMutability: "nonpayable"
453866
+ },
453867
+ {
453868
+ type: "function",
453869
+ name: "locked",
453870
+ inputs: [],
453871
+ outputs: [{ name: "", type: "bool" }],
453872
+ stateMutability: "view"
453873
+ },
453874
+ {
453875
+ type: "function",
453876
+ name: "migrate",
453877
+ inputs: [
453878
+ {
453879
+ name: "params",
453880
+ type: "tuple",
453881
+ internalType: "struct MigrationParams",
453882
+ components: [
453883
+ {
453884
+ name: "accountOwner",
453885
+ type: "address"
453886
+ },
453887
+ {
453888
+ name: "sourceCreditAccount",
453889
+ type: "address"
453890
+ },
453891
+ {
453892
+ name: "targetCreditManager",
453893
+ type: "address"
453894
+ },
453895
+ {
453896
+ name: "migratedCollaterals",
453897
+ type: "tuple[]",
453898
+ internalType: "struct MigratedCollateral[]",
453899
+ components: [
453900
+ {
453901
+ name: "collateral",
453902
+ type: "address"
453903
+ },
453904
+ { name: "amount", type: "uint256" },
453905
+ {
453906
+ name: "targetQuotaIncrease",
453907
+ type: "uint96"
453908
+ },
453909
+ {
453910
+ name: "underlyingInSource",
453911
+ type: "bool"
453912
+ },
453913
+ {
453914
+ name: "underlyingInTarget",
453915
+ type: "bool"
453916
+ },
453917
+ {
453918
+ name: "phantomTokenParams",
453919
+ type: "tuple",
453920
+ components: [
453921
+ {
453922
+ name: "isPhantomToken",
453923
+ type: "bool"
453924
+ },
453925
+ {
453926
+ name: "underlying",
453927
+ type: "address"
453928
+ },
453929
+ {
453930
+ name: "underlyingAmount",
453931
+ type: "uint256"
453932
+ }
453933
+ ]
453934
+ }
453935
+ ]
453936
+ },
453937
+ {
453938
+ name: "targetBorrowAmount",
453939
+ type: "uint256"
453940
+ },
453941
+ {
453942
+ name: "underlyingSwapCalls",
453943
+ type: "tuple[]",
453944
+ components: [
453945
+ { name: "target", type: "address" },
453946
+ { name: "callData", type: "bytes" }
453947
+ ]
453948
+ },
453949
+ {
453950
+ name: "extraOpeningCalls",
453951
+ type: "tuple[]",
453952
+ components: [
453953
+ { name: "target", type: "address" },
453954
+ { name: "callData", type: "bytes" }
453955
+ ]
453956
+ },
453957
+ {
453958
+ name: "uniqueTransferredTokens",
453959
+ type: "address[]"
453960
+ },
453961
+ {
453962
+ name: "numAddCollateralCalls",
453963
+ type: "uint256"
453964
+ },
453965
+ {
453966
+ name: "numRemoveQuotasCalls",
453967
+ type: "uint256"
453968
+ },
453969
+ {
453970
+ name: "numIncreaseQuotaCalls",
453971
+ type: "uint256"
453972
+ },
453973
+ {
453974
+ name: "numPhantomTokenCalls",
453975
+ type: "uint256"
453976
+ }
453977
+ ]
453978
+ }
453979
+ ],
453980
+ outputs: [
453981
+ { name: "tokensToEnable", type: "uint256" },
453982
+ { name: "tokensToDisable", type: "uint256" }
453983
+ ],
453984
+ stateMutability: "nonpayable"
453985
+ },
453986
+ {
453987
+ type: "function",
453988
+ name: "serialize",
453989
+ inputs: [],
453990
+ outputs: [{ name: "serializedData", type: "bytes" }],
453991
+ stateMutability: "view"
453992
+ },
453993
+ {
453994
+ type: "function",
453995
+ name: "targetContract",
453996
+ inputs: [],
453997
+ outputs: [{ name: "", type: "address" }],
453998
+ stateMutability: "view"
453999
+ },
454000
+ {
454001
+ type: "function",
454002
+ name: "unlock",
454003
+ inputs: [],
454004
+ outputs: [],
454005
+ stateMutability: "nonpayable"
454006
+ },
454007
+ {
454008
+ type: "function",
454009
+ name: "version",
454010
+ inputs: [],
454011
+ outputs: [{ name: "", type: "uint256" }],
454012
+ stateMutability: "pure"
454013
+ },
454014
+ {
454015
+ type: "error",
454016
+ name: "AddressIsNotContractException",
454017
+ inputs: [{ name: "", type: "address" }]
454018
+ },
454019
+ { type: "error", name: "CallerNotCreditFacadeException", inputs: [] },
454020
+ { type: "error", name: "NotImplementedException", inputs: [] },
454021
+ { type: "error", name: "ZeroAddressException", inputs: [] }
454022
+ ];
453816
454023
  var AccountMigratorAdapterV30Parser = class extends AbstractParser {
453817
454024
  constructor(contractType) {
453818
454025
  super(contractType, "constructor(address creditManager, address targetContract)");
453819
- this._abi = [];
454026
+ this._abi = abi25;
453820
454027
  this.parameterParsers = {
453821
454028
  constructor: [parseAddress(), parseAddress()]
453822
454029
  };
@@ -454805,7 +455012,7 @@ var CreditManagerV3Parser = class extends AbstractParser {
454805
455012
  };
454806
455013
 
454807
455014
  // ../../packages/node/dist/parsers/CrossChainMultisigParser.js
454808
- var abi25 = [
455015
+ var abi26 = [
454809
455016
  {
454810
455017
  type: "constructor",
454811
455018
  inputs: [
@@ -455321,7 +455528,7 @@ var abi25 = [
455321
455528
  var CrossChainMultisigParser = class extends AbstractParser {
455322
455529
  constructor(contractType) {
455323
455530
  super(contractType);
455324
- this._abi = abi25;
455531
+ this._abi = abi26;
455325
455532
  }
455326
455533
  async parse(to, calldata, signature, metaRepo) {
455327
455534
  if (!metaRepo) {
@@ -456162,7 +456369,7 @@ var InflationAttackBlockerParser = class extends AbstractParser {
456162
456369
  };
456163
456370
 
456164
456371
  // ../../packages/node/dist/parsers/InstanceManagerParser.js
456165
- var abi26 = [
456372
+ var abi27 = [
456166
456373
  {
456167
456374
  type: "constructor",
456168
456375
  inputs: [{ name: "owner_", type: "address", internalType: "address" }],
@@ -456412,7 +456619,7 @@ var abi26 = [
456412
456619
  var InstanceManagerParser = class extends AbstractParser {
456413
456620
  constructor(contractType) {
456414
456621
  super(contractType);
456415
- this._abi = abi26;
456622
+ this._abi = abi27;
456416
456623
  }
456417
456624
  };
456418
456625
 
@@ -458818,7 +459025,7 @@ function getRenderer(opts) {
458818
459025
  var package_default = {
458819
459026
  name: "@gearbox-protocol/deploy-tools",
458820
459027
  description: "Gearbox deploy tools",
458821
- version: "5.49.13",
459028
+ version: "5.49.14",
458822
459029
  homepage: "https://gearbox.fi",
458823
459030
  keywords: [
458824
459031
  "gearbox"
@@ -459405,12 +459612,12 @@ var PartialLiquidationBotBaseContract = class extends BaseContract {
459405
459612
  };
459406
459613
 
459407
459614
  // ../../node_modules/@gearbox-protocol/sdk/dist/esm/plugins/bots/PartialLiquidationBotV300Contract.js
459408
- var abi27 = iPartialLiquidationBotV300Abi;
459615
+ var abi28 = iPartialLiquidationBotV300Abi;
459409
459616
  var PartialLiquidationBotV300Contract = class extends PartialLiquidationBotBaseContract {
459410
459617
  #botType;
459411
459618
  constructor(sdk, args, marketConfigurator) {
459412
459619
  super(sdk, {
459413
- abi: abi27,
459620
+ abi: abi28,
459414
459621
  ...args.baseParams,
459415
459622
  requiredPermissions: args.requiredPermissions,
459416
459623
  marketConfigurator,
@@ -459443,11 +459650,11 @@ var PartialLiquidationBotV300Contract = class extends PartialLiquidationBotBaseC
459443
459650
  };
459444
459651
 
459445
459652
  // ../../node_modules/@gearbox-protocol/sdk/dist/esm/plugins/bots/PartialLiquidationBotV310Contract.js
459446
- var abi28 = iPartialLiquidationBotV310Abi;
459653
+ var abi29 = iPartialLiquidationBotV310Abi;
459447
459654
  var PartialLiquidationBotV310Contract = class extends PartialLiquidationBotBaseContract {
459448
459655
  constructor(sdk, args, marketConfigurator) {
459449
459656
  super(sdk, {
459450
- abi: abi28,
459657
+ abi: abi29,
459451
459658
  ...args.baseParams,
459452
459659
  requiredPermissions: args.requiredPermissions,
459453
459660
  marketConfigurator,