damm-sdk 1.1.31-alpha.43 → 1.1.31-alpha.45

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -14489,7 +14489,7 @@ var require_utils2 = __commonJS((exports2) => {
14489
14489
  var exports_process = {};
14490
14490
  __export(exports_process, {
14491
14491
  versions: () => versions,
14492
- version: () => version7,
14492
+ version: () => version6,
14493
14493
  umask: () => umask,
14494
14494
  title: () => title,
14495
14495
  removeListener: () => removeListener,
@@ -14546,7 +14546,7 @@ function nextTick(fun) {
14546
14546
  setTimeout(drainQueue, 0);
14547
14547
  }
14548
14548
  function noop() {}
14549
- var queue, draining = false, currentQueue, queueIndex = -1, title = "browser", browser = true, env, argv, version7 = "", versions, on, addListener, once, off, removeListener, removeAllListeners, emit, prependListener, prependOnceListener, listeners = function(name) {
14549
+ var queue, draining = false, currentQueue, queueIndex = -1, title = "browser", browser = true, env, argv, version6 = "", versions, on, addListener, once, off, removeListener, removeAllListeners, emit, prependListener, prependOnceListener, listeners = function(name) {
14550
14550
  return [];
14551
14551
  }, binding = function(name) {
14552
14552
  throw new Error("process.binding is not supported in browser polyfill");
@@ -35378,7 +35378,7 @@ var require_lib14 = __commonJS((exports2) => {
35378
35378
  var properties_1 = require_lib4();
35379
35379
  var logger_1 = require_lib();
35380
35380
  var _version_1 = require__version10();
35381
- var logger6 = new logger_1.Logger(_version_1.version);
35381
+ var logger5 = new logger_1.Logger(_version_1.version);
35382
35382
  var _curve = null;
35383
35383
  function getCurve() {
35384
35384
  if (!_curve) {
@@ -35391,7 +35391,7 @@ var require_lib14 = __commonJS((exports2) => {
35391
35391
  (0, properties_1.defineReadOnly)(this, "curve", "secp256k1");
35392
35392
  (0, properties_1.defineReadOnly)(this, "privateKey", (0, bytes_1.hexlify)(privateKey));
35393
35393
  if ((0, bytes_1.hexDataLength)(this.privateKey) !== 32) {
35394
- logger6.throwArgumentError("invalid private key", "privateKey", "[[ REDACTED ]]");
35394
+ logger5.throwArgumentError("invalid private key", "privateKey", "[[ REDACTED ]]");
35395
35395
  }
35396
35396
  var keyPair = getCurve().keyFromPrivate((0, bytes_1.arrayify)(this.privateKey));
35397
35397
  (0, properties_1.defineReadOnly)(this, "publicKey", "0x" + keyPair.getPublic(false, "hex"));
@@ -35407,7 +35407,7 @@ var require_lib14 = __commonJS((exports2) => {
35407
35407
  var keyPair = getCurve().keyFromPrivate((0, bytes_1.arrayify)(this.privateKey));
35408
35408
  var digestBytes = (0, bytes_1.arrayify)(digest);
35409
35409
  if (digestBytes.length !== 32) {
35410
- logger6.throwArgumentError("bad digest length", "digest", digest);
35410
+ logger5.throwArgumentError("bad digest length", "digest", digest);
35411
35411
  }
35412
35412
  var signature = keyPair.sign(digestBytes, { canonical: true });
35413
35413
  return (0, bytes_1.splitSignature)({
@@ -35452,7 +35452,7 @@ var require_lib14 = __commonJS((exports2) => {
35452
35452
  }
35453
35453
  return "0x" + getCurve().keyFromPublic(bytes).getPublic(true, "hex");
35454
35454
  }
35455
- return logger6.throwArgumentError("invalid public or private key", "key", "[REDACTED]");
35455
+ return logger5.throwArgumentError("invalid public or private key", "key", "[REDACTED]");
35456
35456
  }
35457
35457
  exports2.computePublicKey = computePublicKey;
35458
35458
  });
@@ -35506,7 +35506,7 @@ var require_lib15 = __commonJS((exports2) => {
35506
35506
  var signing_key_1 = require_lib14();
35507
35507
  var logger_1 = require_lib();
35508
35508
  var _version_1 = require__version11();
35509
- var logger6 = new logger_1.Logger(_version_1.version);
35509
+ var logger5 = new logger_1.Logger(_version_1.version);
35510
35510
  var TransactionTypes;
35511
35511
  (function(TransactionTypes2) {
35512
35512
  TransactionTypes2[TransactionTypes2["legacy"] = 0] = "legacy";
@@ -35555,7 +35555,7 @@ var require_lib15 = __commonJS((exports2) => {
35555
35555
  function formatNumber(value, name) {
35556
35556
  var result = (0, bytes_1.stripZeros)(bignumber_1.BigNumber.from(value).toHexString());
35557
35557
  if (result.length > 32) {
35558
- logger6.throwArgumentError("invalid length for " + name, "transaction:" + name, value);
35558
+ logger5.throwArgumentError("invalid length for " + name, "transaction:" + name, value);
35559
35559
  }
35560
35560
  return result;
35561
35561
  }
@@ -35564,7 +35564,7 @@ var require_lib15 = __commonJS((exports2) => {
35564
35564
  address: (0, address_1.getAddress)(addr),
35565
35565
  storageKeys: (storageKeys || []).map(function(storageKey, index) {
35566
35566
  if ((0, bytes_1.hexDataLength)(storageKey) !== 32) {
35567
- logger6.throwArgumentError("invalid access list storageKey", "accessList[" + addr + ":" + index + "]", storageKey);
35567
+ logger5.throwArgumentError("invalid access list storageKey", "accessList[" + addr + ":" + index + "]", storageKey);
35568
35568
  }
35569
35569
  return storageKey.toLowerCase();
35570
35570
  })
@@ -35575,7 +35575,7 @@ var require_lib15 = __commonJS((exports2) => {
35575
35575
  return value.map(function(set, index) {
35576
35576
  if (Array.isArray(set)) {
35577
35577
  if (set.length > 2) {
35578
- logger6.throwArgumentError("access list expected to be [ address, storageKeys[] ]", "value[" + index + "]", set);
35578
+ logger5.throwArgumentError("access list expected to be [ address, storageKeys[] ]", "value[" + index + "]", set);
35579
35579
  }
35580
35580
  return accessSetify(set[0], set[1]);
35581
35581
  }
@@ -35605,7 +35605,7 @@ var require_lib15 = __commonJS((exports2) => {
35605
35605
  var gasPrice = bignumber_1.BigNumber.from(transaction.gasPrice);
35606
35606
  var maxFeePerGas = bignumber_1.BigNumber.from(transaction.maxFeePerGas || 0);
35607
35607
  if (!gasPrice.eq(maxFeePerGas)) {
35608
- logger6.throwArgumentError("mismatch EIP-1559 gasPrice != maxFeePerGas", "tx", {
35608
+ logger5.throwArgumentError("mismatch EIP-1559 gasPrice != maxFeePerGas", "tx", {
35609
35609
  gasPrice,
35610
35610
  maxFeePerGas
35611
35611
  });
@@ -35660,12 +35660,12 @@ var require_lib15 = __commonJS((exports2) => {
35660
35660
  }
35661
35661
  value = (0, bytes_1.arrayify)((0, bytes_1.hexlify)(value, options));
35662
35662
  if (fieldInfo.length && value.length !== fieldInfo.length && value.length > 0) {
35663
- logger6.throwArgumentError("invalid length for " + fieldInfo.name, "transaction:" + fieldInfo.name, value);
35663
+ logger5.throwArgumentError("invalid length for " + fieldInfo.name, "transaction:" + fieldInfo.name, value);
35664
35664
  }
35665
35665
  if (fieldInfo.maxLength) {
35666
35666
  value = (0, bytes_1.stripZeros)(value);
35667
35667
  if (value.length > fieldInfo.maxLength) {
35668
- logger6.throwArgumentError("invalid length for " + fieldInfo.name, "transaction:" + fieldInfo.name, value);
35668
+ logger5.throwArgumentError("invalid length for " + fieldInfo.name, "transaction:" + fieldInfo.name, value);
35669
35669
  }
35670
35670
  }
35671
35671
  raw.push((0, bytes_1.hexlify)(value));
@@ -35674,7 +35674,7 @@ var require_lib15 = __commonJS((exports2) => {
35674
35674
  if (transaction.chainId != null) {
35675
35675
  chainId = transaction.chainId;
35676
35676
  if (typeof chainId !== "number") {
35677
- logger6.throwArgumentError("invalid transaction.chainId", "transaction", transaction);
35677
+ logger5.throwArgumentError("invalid transaction.chainId", "transaction", transaction);
35678
35678
  }
35679
35679
  } else if (signature && !(0, bytes_1.isBytesLike)(signature) && signature.v > 28) {
35680
35680
  chainId = Math.floor((signature.v - 35) / 2);
@@ -35695,10 +35695,10 @@ var require_lib15 = __commonJS((exports2) => {
35695
35695
  raw.pop();
35696
35696
  v += chainId * 2 + 8;
35697
35697
  if (sig.v > 28 && sig.v !== v) {
35698
- logger6.throwArgumentError("transaction.chainId/signature.v mismatch", "signature", signature);
35698
+ logger5.throwArgumentError("transaction.chainId/signature.v mismatch", "signature", signature);
35699
35699
  }
35700
35700
  } else if (sig.v !== v) {
35701
- logger6.throwArgumentError("transaction.chainId/signature.v mismatch", "signature", signature);
35701
+ logger5.throwArgumentError("transaction.chainId/signature.v mismatch", "signature", signature);
35702
35702
  }
35703
35703
  raw.push((0, bytes_1.hexlify)(v));
35704
35704
  raw.push((0, bytes_1.stripZeros)((0, bytes_1.arrayify)(sig.r)));
@@ -35708,7 +35708,7 @@ var require_lib15 = __commonJS((exports2) => {
35708
35708
  function serialize(transaction, signature) {
35709
35709
  if (transaction.type == null || transaction.type === 0) {
35710
35710
  if (transaction.accessList != null) {
35711
- logger6.throwArgumentError("untyped transactions do not support accessList; include type: 1", "transaction", transaction);
35711
+ logger5.throwArgumentError("untyped transactions do not support accessList; include type: 1", "transaction", transaction);
35712
35712
  }
35713
35713
  return _serialize(transaction, signature);
35714
35714
  }
@@ -35720,7 +35720,7 @@ var require_lib15 = __commonJS((exports2) => {
35720
35720
  default:
35721
35721
  break;
35722
35722
  }
35723
- return logger6.throwError("unsupported transaction type: " + transaction.type, logger_1.Logger.errors.UNSUPPORTED_OPERATION, {
35723
+ return logger5.throwError("unsupported transaction type: " + transaction.type, logger_1.Logger.errors.UNSUPPORTED_OPERATION, {
35724
35724
  operation: "serializeTransaction",
35725
35725
  transactionType: transaction.type
35726
35726
  });
@@ -35734,7 +35734,7 @@ var require_lib15 = __commonJS((exports2) => {
35734
35734
  }
35735
35735
  tx.v = recid;
35736
35736
  } catch (error) {
35737
- logger6.throwArgumentError("invalid v for transaction type: 1", "v", fields[0]);
35737
+ logger5.throwArgumentError("invalid v for transaction type: 1", "v", fields[0]);
35738
35738
  }
35739
35739
  tx.r = (0, bytes_1.hexZeroPad)(fields[1], 32);
35740
35740
  tx.s = (0, bytes_1.hexZeroPad)(fields[2], 32);
@@ -35746,7 +35746,7 @@ var require_lib15 = __commonJS((exports2) => {
35746
35746
  function _parseEip1559(payload) {
35747
35747
  var transaction = RLP.decode(payload.slice(1));
35748
35748
  if (transaction.length !== 9 && transaction.length !== 12) {
35749
- logger6.throwArgumentError("invalid component count for transaction type: 2", "payload", (0, bytes_1.hexlify)(payload));
35749
+ logger5.throwArgumentError("invalid component count for transaction type: 2", "payload", (0, bytes_1.hexlify)(payload));
35750
35750
  }
35751
35751
  var maxPriorityFeePerGas = handleNumber(transaction[2]);
35752
35752
  var maxFeePerGas = handleNumber(transaction[3]);
@@ -35773,7 +35773,7 @@ var require_lib15 = __commonJS((exports2) => {
35773
35773
  function _parseEip2930(payload) {
35774
35774
  var transaction = RLP.decode(payload.slice(1));
35775
35775
  if (transaction.length !== 8 && transaction.length !== 11) {
35776
- logger6.throwArgumentError("invalid component count for transaction type: 1", "payload", (0, bytes_1.hexlify)(payload));
35776
+ logger5.throwArgumentError("invalid component count for transaction type: 1", "payload", (0, bytes_1.hexlify)(payload));
35777
35777
  }
35778
35778
  var tx = {
35779
35779
  type: 1,
@@ -35796,7 +35796,7 @@ var require_lib15 = __commonJS((exports2) => {
35796
35796
  function _parse(rawTransaction) {
35797
35797
  var transaction = RLP.decode(rawTransaction);
35798
35798
  if (transaction.length !== 9 && transaction.length !== 6) {
35799
- logger6.throwArgumentError("invalid raw transaction", "rawTransaction", rawTransaction);
35799
+ logger5.throwArgumentError("invalid raw transaction", "rawTransaction", rawTransaction);
35800
35800
  }
35801
35801
  var tx = {
35802
35802
  nonce: handleNumber(transaction[0]).toNumber(),
@@ -35855,7 +35855,7 @@ var require_lib15 = __commonJS((exports2) => {
35855
35855
  default:
35856
35856
  break;
35857
35857
  }
35858
- return logger6.throwError("unsupported transaction type: " + payload[0], logger_1.Logger.errors.UNSUPPORTED_OPERATION, {
35858
+ return logger5.throwError("unsupported transaction type: " + payload[0], logger_1.Logger.errors.UNSUPPORTED_OPERATION, {
35859
35859
  operation: "parseTransaction",
35860
35860
  transactionType: payload[0]
35861
35861
  });
@@ -35975,7 +35975,7 @@ var require_browser_sha2 = __commonJS((exports2) => {
35975
35975
  var types_1 = require_types();
35976
35976
  var logger_1 = require_lib();
35977
35977
  var _version_1 = require__version12();
35978
- var logger7 = new logger_1.Logger(_version_1.version);
35978
+ var logger6 = new logger_1.Logger(_version_1.version);
35979
35979
  function ripemd160(data) {
35980
35980
  return "0x" + hash_js_1.default.ripemd160().update((0, bytes_1.arrayify)(data)).digest("hex");
35981
35981
  }
@@ -35990,7 +35990,7 @@ var require_browser_sha2 = __commonJS((exports2) => {
35990
35990
  exports2.sha512 = sha512;
35991
35991
  function computeHmac(algorithm, key, data) {
35992
35992
  if (!types_1.SupportedAlgorithm[algorithm]) {
35993
- logger7.throwError("unsupported algorithm " + algorithm, logger_1.Logger.errors.UNSUPPORTED_OPERATION, {
35993
+ logger6.throwError("unsupported algorithm " + algorithm, logger_1.Logger.errors.UNSUPPORTED_OPERATION, {
35994
35994
  operation: "hmac",
35995
35995
  algorithm
35996
35996
  });
@@ -36865,7 +36865,7 @@ var require_lib20 = __commonJS((exports2) => {
36865
36865
  var wordlists_1 = require_lib19();
36866
36866
  var logger_1 = require_lib();
36867
36867
  var _version_1 = require__version14();
36868
- var logger7 = new logger_1.Logger(_version_1.version);
36868
+ var logger6 = new logger_1.Logger(_version_1.version);
36869
36869
  var N = bignumber_1.BigNumber.from("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141");
36870
36870
  var MasterSecret = (0, strings_1.toUtf8Bytes)("Bitcoin seed");
36871
36871
  var HardenedBit = 2147483648;
@@ -36888,7 +36888,7 @@ var require_lib20 = __commonJS((exports2) => {
36888
36888
  if (typeof wordlist === "string") {
36889
36889
  var words = wordlists_1.wordlists[wordlist];
36890
36890
  if (words == null) {
36891
- logger7.throwArgumentError("unknown locale", "wordlist", wordlist);
36891
+ logger6.throwArgumentError("unknown locale", "wordlist", wordlist);
36892
36892
  }
36893
36893
  return words;
36894
36894
  }
@@ -37043,7 +37043,7 @@ var require_lib20 = __commonJS((exports2) => {
37043
37043
  HDNode2.fromExtendedKey = function(extendedKey) {
37044
37044
  var bytes = basex_1.Base58.decode(extendedKey);
37045
37045
  if (bytes.length !== 82 || base58check(bytes.slice(0, 78)) !== extendedKey) {
37046
- logger7.throwArgumentError("invalid extended key", "extendedKey", "[REDACTED]");
37046
+ logger6.throwArgumentError("invalid extended key", "extendedKey", "[REDACTED]");
37047
37047
  }
37048
37048
  var depth = bytes[4];
37049
37049
  var parentFingerprint = (0, bytes_1.hexlify)(bytes.slice(5, 9));
@@ -37061,7 +37061,7 @@ var require_lib20 = __commonJS((exports2) => {
37061
37061
  }
37062
37062
  return new HDNode2(_constructorGuard3, (0, bytes_1.hexlify)(key.slice(1)), null, parentFingerprint, chainCode, index, depth, null);
37063
37063
  }
37064
- return logger7.throwArgumentError("invalid extended key", "extendedKey", "[REDACTED]");
37064
+ return logger6.throwArgumentError("invalid extended key", "extendedKey", "[REDACTED]");
37065
37065
  };
37066
37066
  return HDNode2;
37067
37067
  }();
@@ -37076,7 +37076,7 @@ var require_lib20 = __commonJS((exports2) => {
37076
37076
  exports2.mnemonicToSeed = mnemonicToSeed;
37077
37077
  function mnemonicToEntropy(mnemonic, wordlist) {
37078
37078
  wordlist = getWordlist(wordlist);
37079
- logger7.checkNormalize();
37079
+ logger6.checkNormalize();
37080
37080
  var words = wordlist.split(mnemonic);
37081
37081
  if (words.length % 3 !== 0) {
37082
37082
  throw new Error("invalid mnemonic");
@@ -37144,7 +37144,7 @@ var require_lib20 = __commonJS((exports2) => {
37144
37144
  exports2.isValidMnemonic = isValidMnemonic;
37145
37145
  function getAccountPath(index) {
37146
37146
  if (typeof index !== "number" || index < 0 || index >= HardenedBit || index % 1) {
37147
- logger7.throwArgumentError("invalid account index", "index", index);
37147
+ logger6.throwArgumentError("invalid account index", "index", index);
37148
37148
  }
37149
37149
  return "m/44'/60'/" + index + "'/0/0";
37150
37150
  }
@@ -37165,7 +37165,7 @@ var require_browser_random = __commonJS((exports2) => {
37165
37165
  var bytes_1 = require_lib2();
37166
37166
  var logger_1 = require_lib();
37167
37167
  var _version_1 = require__version15();
37168
- var logger7 = new logger_1.Logger(_version_1.version);
37168
+ var logger6 = new logger_1.Logger(_version_1.version);
37169
37169
  function getGlobal() {
37170
37170
  if (typeof self !== "undefined") {
37171
37171
  return self;
@@ -37181,10 +37181,10 @@ var require_browser_random = __commonJS((exports2) => {
37181
37181
  var anyGlobal = getGlobal();
37182
37182
  var crypto2 = anyGlobal.crypto || anyGlobal.msCrypto;
37183
37183
  if (!crypto2 || !crypto2.getRandomValues) {
37184
- logger7.warn("WARNING: Missing strong random number source");
37184
+ logger6.warn("WARNING: Missing strong random number source");
37185
37185
  crypto2 = {
37186
37186
  getRandomValues: function(buffer) {
37187
- return logger7.throwError("no secure random source avaialble", logger_1.Logger.errors.UNSUPPORTED_OPERATION, {
37187
+ return logger6.throwError("no secure random source avaialble", logger_1.Logger.errors.UNSUPPORTED_OPERATION, {
37188
37188
  operation: "crypto.getRandomValues"
37189
37189
  });
37190
37190
  }
@@ -37192,7 +37192,7 @@ var require_browser_random = __commonJS((exports2) => {
37192
37192
  }
37193
37193
  function randomBytes(length) {
37194
37194
  if (length <= 0 || length > 1024 || length % 1 || length != length) {
37195
- logger7.throwArgumentError("invalid length", "length", length);
37195
+ logger6.throwArgumentError("invalid length", "length", length);
37196
37196
  }
37197
37197
  var result = new Uint8Array(length);
37198
37198
  crypto2.getRandomValues(result);
@@ -37886,7 +37886,7 @@ var require_crowdsale = __commonJS((exports2) => {
37886
37886
  var properties_1 = require_lib4();
37887
37887
  var logger_1 = require_lib();
37888
37888
  var _version_1 = require__version16();
37889
- var logger7 = new logger_1.Logger(_version_1.version);
37889
+ var logger6 = new logger_1.Logger(_version_1.version);
37890
37890
  var utils_1 = require_utils5();
37891
37891
  var CrowdsaleAccount = function(_super) {
37892
37892
  __extends(CrowdsaleAccount2, _super);
@@ -37905,7 +37905,7 @@ var require_crowdsale = __commonJS((exports2) => {
37905
37905
  var ethaddr = (0, address_1.getAddress)((0, utils_1.searchPath)(data, "ethaddr"));
37906
37906
  var encseed = (0, utils_1.looseArrayify)((0, utils_1.searchPath)(data, "encseed"));
37907
37907
  if (!encseed || encseed.length % 16 !== 0) {
37908
- logger7.throwArgumentError("invalid encseed", "json", json);
37908
+ logger6.throwArgumentError("invalid encseed", "json", json);
37909
37909
  }
37910
37910
  var key = (0, bytes_1.arrayify)((0, pbkdf2_1.pbkdf2)(password, password, 2000, 32, "sha256")).slice(0, 16);
37911
37911
  var iv = encseed.slice(0, 16);
@@ -38587,7 +38587,7 @@ var require_keystore = __commonJS((exports2) => {
38587
38587
  var utils_1 = require_utils5();
38588
38588
  var logger_1 = require_lib();
38589
38589
  var _version_1 = require__version16();
38590
- var logger7 = new logger_1.Logger(_version_1.version);
38590
+ var logger6 = new logger_1.Logger(_version_1.version);
38591
38591
  function hasMnemonic(value) {
38592
38592
  return value != null && value.mnemonic && value.mnemonic.phrase;
38593
38593
  }
@@ -38620,7 +38620,7 @@ var require_keystore = __commonJS((exports2) => {
38620
38620
  }
38621
38621
  var privateKey = _decrypt(data, key.slice(0, 16), ciphertext);
38622
38622
  if (!privateKey) {
38623
- logger7.throwError("unsupported cipher", logger_1.Logger.errors.UNSUPPORTED_OPERATION, {
38623
+ logger6.throwError("unsupported cipher", logger_1.Logger.errors.UNSUPPORTED_OPERATION, {
38624
38624
  operation: "decrypt"
38625
38625
  });
38626
38626
  }
@@ -38674,7 +38674,7 @@ var require_keystore = __commonJS((exports2) => {
38674
38674
  var kdf = (0, utils_1.searchPath)(data, "crypto/kdf");
38675
38675
  if (kdf && typeof kdf === "string") {
38676
38676
  var throwError = function(name, value) {
38677
- return logger7.throwArgumentError("invalid key-derivation function parameters", name, value);
38677
+ return logger6.throwArgumentError("invalid key-derivation function parameters", name, value);
38678
38678
  };
38679
38679
  if (kdf.toLowerCase() === "scrypt") {
38680
38680
  var salt = (0, utils_1.looseArrayify)((0, utils_1.searchPath)(data, "crypto/kdfparams/salt"));
@@ -38711,7 +38711,7 @@ var require_keystore = __commonJS((exports2) => {
38711
38711
  return pbkdf2Func(passwordBytes, salt, count, dkLen, prfFunc);
38712
38712
  }
38713
38713
  }
38714
- return logger7.throwArgumentError("unsupported key-derivation function", "kdf", kdf);
38714
+ return logger6.throwArgumentError("unsupported key-derivation function", "kdf", kdf);
38715
38715
  }
38716
38716
  function decryptSync(json, password) {
38717
38717
  var data = JSON.parse(json);
@@ -39215,7 +39215,7 @@ var require_lib23 = __commonJS((exports2) => {
39215
39215
  var strings_1 = require_lib9();
39216
39216
  var logger_1 = require_lib();
39217
39217
  var _version_1 = require__version17();
39218
- var logger9 = new logger_1.Logger(_version_1.version);
39218
+ var logger8 = new logger_1.Logger(_version_1.version);
39219
39219
  var geturl_1 = require_browser_geturl();
39220
39220
  function staller(duration) {
39221
39221
  return new Promise(function(resolve) {
@@ -39246,10 +39246,10 @@ var require_lib23 = __commonJS((exports2) => {
39246
39246
  }
39247
39247
  function _fetchData(connection, body, processFunc) {
39248
39248
  var attemptLimit = typeof connection === "object" && connection.throttleLimit != null ? connection.throttleLimit : 12;
39249
- logger9.assertArgument(attemptLimit > 0 && attemptLimit % 1 === 0, "invalid connection throttle limit", "connection.throttleLimit", attemptLimit);
39249
+ logger8.assertArgument(attemptLimit > 0 && attemptLimit % 1 === 0, "invalid connection throttle limit", "connection.throttleLimit", attemptLimit);
39250
39250
  var throttleCallback = typeof connection === "object" ? connection.throttleCallback : null;
39251
39251
  var throttleSlotInterval = typeof connection === "object" && typeof connection.throttleSlotInterval === "number" ? connection.throttleSlotInterval : 100;
39252
- logger9.assertArgument(throttleSlotInterval > 0 && throttleSlotInterval % 1 === 0, "invalid connection throttle slot interval", "connection.throttleSlotInterval", throttleSlotInterval);
39252
+ logger8.assertArgument(throttleSlotInterval > 0 && throttleSlotInterval % 1 === 0, "invalid connection throttle slot interval", "connection.throttleSlotInterval", throttleSlotInterval);
39253
39253
  var errorPassThrough = typeof connection === "object" ? !!connection.errorPassThrough : false;
39254
39254
  var headers = {};
39255
39255
  var url = null;
@@ -39262,7 +39262,7 @@ var require_lib23 = __commonJS((exports2) => {
39262
39262
  url = connection;
39263
39263
  } else if (typeof connection === "object") {
39264
39264
  if (connection == null || connection.url == null) {
39265
- logger9.throwArgumentError("missing URL", "connection.url", connection);
39265
+ logger8.throwArgumentError("missing URL", "connection.url", connection);
39266
39266
  }
39267
39267
  url = connection.url;
39268
39268
  if (typeof connection.timeout === "number" && connection.timeout > 0) {
@@ -39279,7 +39279,7 @@ var require_lib23 = __commonJS((exports2) => {
39279
39279
  options.allowGzip = !!connection.allowGzip;
39280
39280
  if (connection.user != null && connection.password != null) {
39281
39281
  if (url.substring(0, 6) !== "https:" && connection.allowInsecureAuthentication !== true) {
39282
- logger9.throwError("basic authentication requires a secure https url", logger_1.Logger.errors.INVALID_ARGUMENT, { argument: "url", url, user: connection.user, password: "[REDACTED]" });
39282
+ logger8.throwError("basic authentication requires a secure https url", logger_1.Logger.errors.INVALID_ARGUMENT, { argument: "url", url, user: connection.user, password: "[REDACTED]" });
39283
39283
  }
39284
39284
  var authorization = connection.user + ":" + connection.password;
39285
39285
  headers["authorization"] = {
@@ -39310,7 +39310,7 @@ var require_lib23 = __commonJS((exports2) => {
39310
39310
  }
39311
39311
  return Promise.resolve(result);
39312
39312
  } catch (error) {
39313
- logger9.throwError("processing response error", logger_1.Logger.errors.SERVER_ERROR, {
39313
+ logger8.throwError("processing response error", logger_1.Logger.errors.SERVER_ERROR, {
39314
39314
  body: bodyify(dataMatch[1], dataMatch[2]),
39315
39315
  error,
39316
39316
  requestBody: null,
@@ -39344,7 +39344,7 @@ var require_lib23 = __commonJS((exports2) => {
39344
39344
  return;
39345
39345
  }
39346
39346
  timer = null;
39347
- reject(logger9.makeError("timeout", logger_1.Logger.errors.TIMEOUT, {
39347
+ reject(logger8.makeError("timeout", logger_1.Logger.errors.TIMEOUT, {
39348
39348
  requestBody: bodyify(options.body, flatHeaders["content-type"]),
39349
39349
  requestMethod: options.method,
39350
39350
  timeout,
@@ -39421,7 +39421,7 @@ var require_lib23 = __commonJS((exports2) => {
39421
39421
  response2 = error_1.response;
39422
39422
  if (response2 == null) {
39423
39423
  runningTimeout.cancel();
39424
- logger9.throwError("missing response", logger_1.Logger.errors.SERVER_ERROR, {
39424
+ logger8.throwError("missing response", logger_1.Logger.errors.SERVER_ERROR, {
39425
39425
  requestBody: bodyify(options.body, flatHeaders["content-type"]),
39426
39426
  requestMethod: options.method,
39427
39427
  serverError: error_1,
@@ -39435,7 +39435,7 @@ var require_lib23 = __commonJS((exports2) => {
39435
39435
  body_1 = null;
39436
39436
  } else if (!errorPassThrough && (response2.statusCode < 200 || response2.statusCode >= 300)) {
39437
39437
  runningTimeout.cancel();
39438
- logger9.throwError("bad response", logger_1.Logger.errors.SERVER_ERROR, {
39438
+ logger8.throwError("bad response", logger_1.Logger.errors.SERVER_ERROR, {
39439
39439
  status: response2.statusCode,
39440
39440
  headers: response2.headers,
39441
39441
  body: bodyify(body_1, response2.headers ? response2.headers["content-type"] : null),
@@ -39475,7 +39475,7 @@ var require_lib23 = __commonJS((exports2) => {
39475
39475
  return [3, 19];
39476
39476
  case 17:
39477
39477
  runningTimeout.cancel();
39478
- logger9.throwError("processing response error", logger_1.Logger.errors.SERVER_ERROR, {
39478
+ logger8.throwError("processing response error", logger_1.Logger.errors.SERVER_ERROR, {
39479
39479
  body: bodyify(body_1, response2.headers ? response2.headers["content-type"] : null),
39480
39480
  error: error_2,
39481
39481
  requestBody: bodyify(options.body, flatHeaders["content-type"]),
@@ -39490,7 +39490,7 @@ var require_lib23 = __commonJS((exports2) => {
39490
39490
  attempt++;
39491
39491
  return [3, 1];
39492
39492
  case 20:
39493
- return [2, logger9.throwError("failed response", logger_1.Logger.errors.SERVER_ERROR, {
39493
+ return [2, logger8.throwError("failed response", logger_1.Logger.errors.SERVER_ERROR, {
39494
39494
  requestBody: bodyify(options.body, flatHeaders["content-type"]),
39495
39495
  requestMethod: options.method,
39496
39496
  url
@@ -39509,7 +39509,7 @@ var require_lib23 = __commonJS((exports2) => {
39509
39509
  try {
39510
39510
  result = JSON.parse((0, strings_1.toUtf8String)(value));
39511
39511
  } catch (error) {
39512
- logger9.throwError("invalid JSON", logger_1.Logger.errors.SERVER_ERROR, {
39512
+ logger8.throwError("invalid JSON", logger_1.Logger.errors.SERVER_ERROR, {
39513
39513
  body: value,
39514
39514
  error
39515
39515
  });
@@ -39647,7 +39647,7 @@ var require_bech32 = __commonJS((exports2, module2) => {
39647
39647
  }
39648
39648
  return chk;
39649
39649
  }
39650
- function encode2(prefix, words, LIMIT) {
39650
+ function encode(prefix, words, LIMIT) {
39651
39651
  LIMIT = LIMIT || 90;
39652
39652
  if (prefix.length + 7 + words.length > LIMIT)
39653
39653
  throw new TypeError("Exceeds length limit");
@@ -39772,7 +39772,7 @@ var require_bech32 = __commonJS((exports2, module2) => {
39772
39772
  module2.exports = {
39773
39773
  decodeUnsafe,
39774
39774
  decode,
39775
- encode: encode2,
39775
+ encode,
39776
39776
  toWordsUnsafe,
39777
39777
  toWords,
39778
39778
  fromWordsUnsafe,
@@ -39802,7 +39802,7 @@ var require_lib24 = __commonJS((exports2) => {
39802
39802
  var Zeros = "0000000000000000000000000000000000000000000000000000000000000000";
39803
39803
  var logger_1 = require_lib();
39804
39804
  var _version_1 = require__version18();
39805
- var logger25 = new logger_1.Logger(_version_1.version);
39805
+ var logger24 = new logger_1.Logger(_version_1.version);
39806
39806
  function _pack(type, value, isArray2) {
39807
39807
  switch (type) {
39808
39808
  case "address":
@@ -39825,7 +39825,7 @@ var require_lib24 = __commonJS((exports2) => {
39825
39825
  if (match) {
39826
39826
  var size2 = parseInt(match[2] || "256");
39827
39827
  if (match[2] && String(size2) !== match[2] || size2 % 8 !== 0 || size2 === 0 || size2 > 256) {
39828
- logger25.throwArgumentError("invalid number type", "type", type);
39828
+ logger24.throwArgumentError("invalid number type", "type", type);
39829
39829
  }
39830
39830
  if (isArray2) {
39831
39831
  size2 = 256;
@@ -39837,10 +39837,10 @@ var require_lib24 = __commonJS((exports2) => {
39837
39837
  if (match) {
39838
39838
  var size2 = parseInt(match[1]);
39839
39839
  if (String(size2) !== match[1] || size2 === 0 || size2 > 32) {
39840
- logger25.throwArgumentError("invalid bytes type", "type", type);
39840
+ logger24.throwArgumentError("invalid bytes type", "type", type);
39841
39841
  }
39842
39842
  if ((0, bytes_1.arrayify)(value).byteLength !== size2) {
39843
- logger25.throwArgumentError("invalid value for " + type, "value", value);
39843
+ logger24.throwArgumentError("invalid value for " + type, "value", value);
39844
39844
  }
39845
39845
  if (isArray2) {
39846
39846
  return (0, bytes_1.arrayify)((value + Zeros).substring(0, 66));
@@ -39852,7 +39852,7 @@ var require_lib24 = __commonJS((exports2) => {
39852
39852
  var baseType_1 = match[1];
39853
39853
  var count = parseInt(match[2] || String(value.length));
39854
39854
  if (count != value.length) {
39855
- logger25.throwArgumentError("invalid array length for " + type, "value", value);
39855
+ logger24.throwArgumentError("invalid array length for " + type, "value", value);
39856
39856
  }
39857
39857
  var result_1 = [];
39858
39858
  value.forEach(function(value2) {
@@ -39860,11 +39860,11 @@ var require_lib24 = __commonJS((exports2) => {
39860
39860
  });
39861
39861
  return (0, bytes_1.concat)(result_1);
39862
39862
  }
39863
- return logger25.throwArgumentError("invalid type", "type", type);
39863
+ return logger24.throwArgumentError("invalid type", "type", type);
39864
39864
  }
39865
39865
  function pack(types2, values) {
39866
39866
  if (types2.length != values.length) {
39867
- logger25.throwArgumentError("wrong number of values; expected ${ types.length }", "values", values);
39867
+ logger24.throwArgumentError("wrong number of values; expected ${ types.length }", "values", values);
39868
39868
  }
39869
39869
  var tight = [];
39870
39870
  types2.forEach(function(type, index) {
@@ -39873,10 +39873,10 @@ var require_lib24 = __commonJS((exports2) => {
39873
39873
  return (0, bytes_1.hexlify)((0, bytes_1.concat)(tight));
39874
39874
  }
39875
39875
  exports2.pack = pack;
39876
- function keccak2563(types2, values) {
39876
+ function keccak2562(types2, values) {
39877
39877
  return (0, keccak256_1.keccak256)(pack(types2, values));
39878
39878
  }
39879
- exports2.keccak256 = keccak2563;
39879
+ exports2.keccak256 = keccak2562;
39880
39880
  function sha2562(types2, values) {
39881
39881
  return (0, sha2_1.sha256)(pack(types2, values));
39882
39882
  }
@@ -39897,7 +39897,7 @@ var require_lib25 = __commonJS((exports2) => {
39897
39897
  var bignumber_1 = require_lib3();
39898
39898
  var logger_1 = require_lib();
39899
39899
  var _version_1 = require__version19();
39900
- var logger25 = new logger_1.Logger(_version_1.version);
39900
+ var logger24 = new logger_1.Logger(_version_1.version);
39901
39901
  var names = [
39902
39902
  "wei",
39903
39903
  "kwei",
@@ -39910,7 +39910,7 @@ var require_lib25 = __commonJS((exports2) => {
39910
39910
  function commify(value) {
39911
39911
  var comps = String(value).split(".");
39912
39912
  if (comps.length > 2 || !comps[0].match(/^-?[0-9]*$/) || comps[1] && !comps[1].match(/^[0-9]*$/) || value === "." || value === "-.") {
39913
- logger25.throwArgumentError("invalid value", "value", value);
39913
+ logger24.throwArgumentError("invalid value", "value", value);
39914
39914
  }
39915
39915
  var whole = comps[0];
39916
39916
  var negative = "";
@@ -39957,7 +39957,7 @@ var require_lib25 = __commonJS((exports2) => {
39957
39957
  exports2.formatUnits = formatUnits;
39958
39958
  function parseUnits(value, unitName) {
39959
39959
  if (typeof value !== "string") {
39960
- logger25.throwArgumentError("value must be a string", "value", value);
39960
+ logger24.throwArgumentError("value must be a string", "value", value);
39961
39961
  }
39962
39962
  if (typeof unitName === "string") {
39963
39963
  var index = names.indexOf(unitName);
@@ -41216,7 +41216,7 @@ var require_decimal = __commonJS((exports2, module2) => {
41216
41216
  toExpNeg: -7,
41217
41217
  toExpPos: 21,
41218
41218
  LN10: "2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"
41219
- }, external = true, decimalError = "[DecimalError] ", invalidArgument = decimalError + "Invalid argument: ", exponentOutOfRange = decimalError + "Exponent out of range: ", mathfloor = Math.floor, mathpow = Math.pow, isDecimal = /^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i, ONE2, BASE = 1e7, LOG_BASE = 7, MAX_SAFE_INTEGER2 = 9007199254740991, MAX_E = mathfloor(MAX_SAFE_INTEGER2 / LOG_BASE), P = {};
41219
+ }, external = true, decimalError = "[DecimalError] ", invalidArgument = decimalError + "Invalid argument: ", exponentOutOfRange = decimalError + "Exponent out of range: ", mathfloor = Math.floor, mathpow = Math.pow, isDecimal = /^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i, ONE2, BASE = 1e7, LOG_BASE = 7, MAX_SAFE_INTEGER = 9007199254740991, MAX_E = mathfloor(MAX_SAFE_INTEGER / LOG_BASE), P = {};
41220
41220
  P.absoluteValue = P.abs = function() {
41221
41221
  var x = new this.constructor(this);
41222
41222
  if (x.s)
@@ -41506,7 +41506,7 @@ var require_decimal = __commonJS((exports2, module2) => {
41506
41506
  if (!yIsInt) {
41507
41507
  if (sign < 0)
41508
41508
  throw Error(decimalError + "NaN");
41509
- } else if ((k = yn < 0 ? -yn : yn) <= MAX_SAFE_INTEGER2) {
41509
+ } else if ((k = yn < 0 ? -yn : yn) <= MAX_SAFE_INTEGER) {
41510
41510
  r = new Ctor(ONE2);
41511
41511
  e = Math.ceil(pr / LOG_BASE + 4);
41512
41512
  external = false;
@@ -42988,7 +42988,7 @@ var require_lib26 = __commonJS((exports2) => {
42988
42988
  var properties_1 = require_lib4();
42989
42989
  var logger_1 = require_lib();
42990
42990
  var _version_1 = require__version20();
42991
- var logger26 = new logger_1.Logger(_version_1.version);
42991
+ var logger25 = new logger_1.Logger(_version_1.version);
42992
42992
  var ForkEvent2 = function(_super) {
42993
42993
  __extends(ForkEvent3, _super);
42994
42994
  function ForkEvent3() {
@@ -43005,7 +43005,7 @@ var require_lib26 = __commonJS((exports2) => {
43005
43005
  function BlockForkEvent2(blockHash, expiry) {
43006
43006
  var _this = this;
43007
43007
  if (!(0, bytes_1.isHexString)(blockHash, 32)) {
43008
- logger26.throwArgumentError("invalid blockHash", "blockHash", blockHash);
43008
+ logger25.throwArgumentError("invalid blockHash", "blockHash", blockHash);
43009
43009
  }
43010
43010
  _this = _super.call(this, {
43011
43011
  _isForkEvent: true,
@@ -43023,7 +43023,7 @@ var require_lib26 = __commonJS((exports2) => {
43023
43023
  function TransactionForkEvent2(hash, expiry) {
43024
43024
  var _this = this;
43025
43025
  if (!(0, bytes_1.isHexString)(hash, 32)) {
43026
- logger26.throwArgumentError("invalid transaction hash", "hash", hash);
43026
+ logger25.throwArgumentError("invalid transaction hash", "hash", hash);
43027
43027
  }
43028
43028
  _this = _super.call(this, {
43029
43029
  _isForkEvent: true,
@@ -43041,10 +43041,10 @@ var require_lib26 = __commonJS((exports2) => {
43041
43041
  function TransactionOrderForkEvent2(beforeHash, afterHash, expiry) {
43042
43042
  var _this = this;
43043
43043
  if (!(0, bytes_1.isHexString)(beforeHash, 32)) {
43044
- logger26.throwArgumentError("invalid transaction hash", "beforeHash", beforeHash);
43044
+ logger25.throwArgumentError("invalid transaction hash", "beforeHash", beforeHash);
43045
43045
  }
43046
43046
  if (!(0, bytes_1.isHexString)(afterHash, 32)) {
43047
- logger26.throwArgumentError("invalid transaction hash", "afterHash", afterHash);
43047
+ logger25.throwArgumentError("invalid transaction hash", "afterHash", afterHash);
43048
43048
  }
43049
43049
  _this = _super.call(this, {
43050
43050
  _isForkEvent: true,
@@ -43061,7 +43061,7 @@ var require_lib26 = __commonJS((exports2) => {
43061
43061
  var Provider2 = function() {
43062
43062
  function Provider3() {
43063
43063
  var _newTarget = this.constructor;
43064
- logger26.checkAbstract(_newTarget, Provider3);
43064
+ logger25.checkAbstract(_newTarget, Provider3);
43065
43065
  (0, properties_1.defineReadOnly)(this, "_isProvider", true);
43066
43066
  }
43067
43067
  Provider3.prototype.getFeeData = function() {
@@ -43241,7 +43241,7 @@ var require_lib27 = __commonJS((exports2) => {
43241
43241
  var properties_1 = require_lib4();
43242
43242
  var logger_1 = require_lib();
43243
43243
  var _version_1 = require__version21();
43244
- var logger26 = new logger_1.Logger(_version_1.version);
43244
+ var logger25 = new logger_1.Logger(_version_1.version);
43245
43245
  var allowedTransactionKeys4 = [
43246
43246
  "accessList",
43247
43247
  "ccipReadEnabled",
@@ -43266,7 +43266,7 @@ var require_lib27 = __commonJS((exports2) => {
43266
43266
  var Signer2 = function() {
43267
43267
  function Signer3() {
43268
43268
  var _newTarget = this.constructor;
43269
- logger26.checkAbstract(_newTarget, Signer3);
43269
+ logger25.checkAbstract(_newTarget, Signer3);
43270
43270
  (0, properties_1.defineReadOnly)(this, "_isSigner", true);
43271
43271
  }
43272
43272
  Signer3.prototype.getBalance = function(blockTag) {
@@ -43406,7 +43406,7 @@ var require_lib27 = __commonJS((exports2) => {
43406
43406
  Signer3.prototype.checkTransaction = function(transaction) {
43407
43407
  for (var key in transaction) {
43408
43408
  if (allowedTransactionKeys4.indexOf(key) === -1) {
43409
- logger26.throwArgumentError("invalid transaction key: " + key, "transaction", transaction);
43409
+ logger25.throwArgumentError("invalid transaction key: " + key, "transaction", transaction);
43410
43410
  }
43411
43411
  }
43412
43412
  var tx = (0, properties_1.shallowCopy)(transaction);
@@ -43418,7 +43418,7 @@ var require_lib27 = __commonJS((exports2) => {
43418
43418
  this.getAddress()
43419
43419
  ]).then(function(result) {
43420
43420
  if (result[0].toLowerCase() !== result[1].toLowerCase()) {
43421
- logger26.throwArgumentError("from address mismatch", "transaction", transaction);
43421
+ logger25.throwArgumentError("from address mismatch", "transaction", transaction);
43422
43422
  }
43423
43423
  return result[0];
43424
43424
  });
@@ -43449,7 +43449,7 @@ var require_lib27 = __commonJS((exports2) => {
43449
43449
  case 1:
43450
43450
  address = _a2.sent();
43451
43451
  if (address == null) {
43452
- logger26.throwArgumentError("provided ENS name resolves to null", "tx.to", to);
43452
+ logger25.throwArgumentError("provided ENS name resolves to null", "tx.to", to);
43453
43453
  }
43454
43454
  return [2, address];
43455
43455
  }
@@ -43460,9 +43460,9 @@ var require_lib27 = __commonJS((exports2) => {
43460
43460
  }
43461
43461
  hasEip1559 = tx.maxFeePerGas != null || tx.maxPriorityFeePerGas != null;
43462
43462
  if (tx.gasPrice != null && (tx.type === 2 || hasEip1559)) {
43463
- logger26.throwArgumentError("eip-1559 transaction do not support gasPrice", "transaction", transaction);
43463
+ logger25.throwArgumentError("eip-1559 transaction do not support gasPrice", "transaction", transaction);
43464
43464
  } else if ((tx.type === 0 || tx.type === 1) && hasEip1559) {
43465
- logger26.throwArgumentError("pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas", "transaction", transaction);
43465
+ logger25.throwArgumentError("pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas", "transaction", transaction);
43466
43466
  }
43467
43467
  if (!((tx.type === 2 || tx.type == null) && (tx.maxFeePerGas != null && tx.maxPriorityFeePerGas != null)))
43468
43468
  return [3, 2];
@@ -43497,7 +43497,7 @@ var require_lib27 = __commonJS((exports2) => {
43497
43497
  }
43498
43498
  } else if (feeData.gasPrice != null) {
43499
43499
  if (hasEip1559) {
43500
- logger26.throwError("network does not support EIP-1559", logger_1.Logger.errors.UNSUPPORTED_OPERATION, {
43500
+ logger25.throwError("network does not support EIP-1559", logger_1.Logger.errors.UNSUPPORTED_OPERATION, {
43501
43501
  operation: "populateTransaction"
43502
43502
  });
43503
43503
  }
@@ -43506,7 +43506,7 @@ var require_lib27 = __commonJS((exports2) => {
43506
43506
  }
43507
43507
  tx.type = 0;
43508
43508
  } else {
43509
- logger26.throwError("failed to get consistent fee data", logger_1.Logger.errors.UNSUPPORTED_OPERATION, {
43509
+ logger25.throwError("failed to get consistent fee data", logger_1.Logger.errors.UNSUPPORTED_OPERATION, {
43510
43510
  operation: "signer.getFeeData"
43511
43511
  });
43512
43512
  }
@@ -43528,7 +43528,7 @@ var require_lib27 = __commonJS((exports2) => {
43528
43528
  if (forwardErrors2.indexOf(error.code) >= 0) {
43529
43529
  throw error;
43530
43530
  }
43531
- return logger26.throwError("cannot estimate gas; transaction may fail or may require manual gas limit", logger_1.Logger.errors.UNPREDICTABLE_GAS_LIMIT, {
43531
+ return logger25.throwError("cannot estimate gas; transaction may fail or may require manual gas limit", logger_1.Logger.errors.UNPREDICTABLE_GAS_LIMIT, {
43532
43532
  error,
43533
43533
  tx
43534
43534
  });
@@ -43542,7 +43542,7 @@ var require_lib27 = __commonJS((exports2) => {
43542
43542
  this.getChainId()
43543
43543
  ]).then(function(results) {
43544
43544
  if (results[1] !== 0 && results[0] !== results[1]) {
43545
- logger26.throwArgumentError("chainId address mismatch", "transaction", transaction);
43545
+ logger25.throwArgumentError("chainId address mismatch", "transaction", transaction);
43546
43546
  }
43547
43547
  return results[0];
43548
43548
  });
@@ -43556,7 +43556,7 @@ var require_lib27 = __commonJS((exports2) => {
43556
43556
  };
43557
43557
  Signer3.prototype._checkProvider = function(operation) {
43558
43558
  if (!this.provider) {
43559
- logger26.throwError("missing provider", logger_1.Logger.errors.UNSUPPORTED_OPERATION, {
43559
+ logger25.throwError("missing provider", logger_1.Logger.errors.UNSUPPORTED_OPERATION, {
43560
43560
  operation: operation || "_checkProvider"
43561
43561
  });
43562
43562
  }
@@ -43580,7 +43580,7 @@ var require_lib27 = __commonJS((exports2) => {
43580
43580
  };
43581
43581
  VoidSigner3.prototype._fail = function(message, operation) {
43582
43582
  return Promise.resolve().then(function() {
43583
- logger26.throwError(message, logger_1.Logger.errors.UNSUPPORTED_OPERATION, { operation });
43583
+ logger25.throwError(message, logger_1.Logger.errors.UNSUPPORTED_OPERATION, { operation });
43584
43584
  });
43585
43585
  };
43586
43586
  VoidSigner3.prototype.signMessage = function(message) {
@@ -43749,7 +43749,7 @@ var require_lib28 = __commonJS((exports2) => {
43749
43749
  var transactions_1 = require_lib15();
43750
43750
  var logger_1 = require_lib();
43751
43751
  var _version_1 = require__version22();
43752
- var logger26 = new logger_1.Logger(_version_1.version);
43752
+ var logger25 = new logger_1.Logger(_version_1.version);
43753
43753
  function isAccount2(value) {
43754
43754
  return value != null && (0, bytes_1.isHexString)(value.privateKey, 32) && value.address != null;
43755
43755
  }
@@ -43768,7 +43768,7 @@ var require_lib28 = __commonJS((exports2) => {
43768
43768
  });
43769
43769
  (0, properties_1.defineReadOnly)(_this, "address", (0, transactions_1.computeAddress)(_this.publicKey));
43770
43770
  if (_this.address !== (0, address_1.getAddress)(privateKey.address)) {
43771
- logger26.throwArgumentError("privateKey/address mismatch", "privateKey", "[REDACTED]");
43771
+ logger25.throwArgumentError("privateKey/address mismatch", "privateKey", "[REDACTED]");
43772
43772
  }
43773
43773
  if (hasMnemonic2(privateKey)) {
43774
43774
  var srcMnemonic_1 = privateKey.mnemonic;
@@ -43782,7 +43782,7 @@ var require_lib28 = __commonJS((exports2) => {
43782
43782
  var mnemonic = _this.mnemonic;
43783
43783
  var node = hdnode_1.HDNode.fromMnemonic(mnemonic.phrase, null, mnemonic.locale).derivePath(mnemonic.path);
43784
43784
  if ((0, transactions_1.computeAddress)(node.privateKey) !== _this.address) {
43785
- logger26.throwArgumentError("mnemonic/address mismatch", "privateKey", "[REDACTED]");
43785
+ logger25.throwArgumentError("mnemonic/address mismatch", "privateKey", "[REDACTED]");
43786
43786
  }
43787
43787
  } else {
43788
43788
  (0, properties_1.defineReadOnly)(_this, "_mnemonic", function() {
@@ -43792,7 +43792,7 @@ var require_lib28 = __commonJS((exports2) => {
43792
43792
  } else {
43793
43793
  if (signing_key_1.SigningKey.isSigningKey(privateKey)) {
43794
43794
  if (privateKey.curve !== "secp256k1") {
43795
- logger26.throwArgumentError("unsupported curve; must be secp256k1", "privateKey", "[REDACTED]");
43795
+ logger25.throwArgumentError("unsupported curve; must be secp256k1", "privateKey", "[REDACTED]");
43796
43796
  }
43797
43797
  (0, properties_1.defineReadOnly)(_this, "_signingKey", function() {
43798
43798
  return privateKey;
@@ -43814,7 +43814,7 @@ var require_lib28 = __commonJS((exports2) => {
43814
43814
  (0, properties_1.defineReadOnly)(_this, "address", (0, transactions_1.computeAddress)(_this.publicKey));
43815
43815
  }
43816
43816
  if (provider && !abstract_provider_1.Provider.isProvider(provider)) {
43817
- logger26.throwArgumentError("invalid provider", "provider", provider);
43817
+ logger25.throwArgumentError("invalid provider", "provider", provider);
43818
43818
  }
43819
43819
  (0, properties_1.defineReadOnly)(_this, "provider", provider || null);
43820
43820
  return _this;
@@ -43851,7 +43851,7 @@ var require_lib28 = __commonJS((exports2) => {
43851
43851
  return (0, properties_1.resolveProperties)(transaction).then(function(tx) {
43852
43852
  if (tx.from != null) {
43853
43853
  if ((0, address_1.getAddress)(tx.from) !== _this.address) {
43854
- logger26.throwArgumentError("transaction from address mismatch", "transaction.from", transaction.from);
43854
+ logger25.throwArgumentError("transaction from address mismatch", "transaction.from", transaction.from);
43855
43855
  }
43856
43856
  delete tx.from;
43857
43857
  }
@@ -43875,7 +43875,7 @@ var require_lib28 = __commonJS((exports2) => {
43875
43875
  case 0:
43876
43876
  return [4, hash_1._TypedDataEncoder.resolveNames(domain, types3, value, function(name) {
43877
43877
  if (_this.provider == null) {
43878
- logger26.throwError("cannot resolve ENS names without a provider", logger_1.Logger.errors.UNSUPPORTED_OPERATION, {
43878
+ logger25.throwError("cannot resolve ENS names without a provider", logger_1.Logger.errors.UNSUPPORTED_OPERATION, {
43879
43879
  operation: "resolveName",
43880
43880
  value: name
43881
43881
  });
@@ -44915,10 +44915,10 @@ var createCall = (call) => {
44915
44915
  var exports_ethers = {};
44916
44916
  __export(exports_ethers, {
44917
44917
  wordlists: () => wordlists,
44918
- version: () => version13,
44918
+ version: () => version12,
44919
44919
  utils: () => exports_utils,
44920
44920
  providers: () => exports_lib2,
44921
- logger: () => logger25,
44921
+ logger: () => logger24,
44922
44922
  getDefaultProvider: () => getDefaultProvider,
44923
44923
  errors: () => ErrorCode,
44924
44924
  constants: () => exports_lib,
@@ -45493,12 +45493,6 @@ function throwFault(fault, operation, value) {
45493
45493
  }
45494
45494
  return logger.throwError(fault, Logger.errors.NUMERIC_FAULT, params);
45495
45495
  }
45496
- function _base36To16(value) {
45497
- return new BN(value, 36).toString(16);
45498
- }
45499
- function _base16To36(value) {
45500
- return new BN(value, 16).toString(36);
45501
- }
45502
45496
  // node_modules/@ethersproject/bignumber/lib.esm/fixednumber.js
45503
45497
  var import_bytes2 = __toESM(require_lib2());
45504
45498
  var logger2 = new Logger(version3);
@@ -46196,136 +46190,14 @@ class VoidSigner extends Signer {
46196
46190
  }
46197
46191
  }
46198
46192
 
46199
- // node_modules/@ethersproject/address/lib.esm/index.js
46200
- var import_bytes3 = __toESM(require_lib2());
46201
- var import_keccak256 = __toESM(require_lib5());
46202
- var import_rlp = __toESM(require_lib6());
46203
-
46204
- // node_modules/@ethersproject/address/lib.esm/_version.js
46205
- var version6 = "address/5.7.0";
46206
-
46207
- // node_modules/@ethersproject/address/lib.esm/index.js
46208
- var logger5 = new Logger(version6);
46209
- function getChecksumAddress(address) {
46210
- if (!import_bytes3.isHexString(address, 20)) {
46211
- logger5.throwArgumentError("invalid address", "address", address);
46212
- }
46213
- address = address.toLowerCase();
46214
- const chars = address.substring(2).split("");
46215
- const expanded = new Uint8Array(40);
46216
- for (let i2 = 0;i2 < 40; i2++) {
46217
- expanded[i2] = chars[i2].charCodeAt(0);
46218
- }
46219
- const hashed = import_bytes3.arrayify(import_keccak256.keccak256(expanded));
46220
- for (let i2 = 0;i2 < 40; i2 += 2) {
46221
- if (hashed[i2 >> 1] >> 4 >= 8) {
46222
- chars[i2] = chars[i2].toUpperCase();
46223
- }
46224
- if ((hashed[i2 >> 1] & 15) >= 8) {
46225
- chars[i2 + 1] = chars[i2 + 1].toUpperCase();
46226
- }
46227
- }
46228
- return "0x" + chars.join("");
46229
- }
46230
- var MAX_SAFE_INTEGER = 9007199254740991;
46231
- function log10(x) {
46232
- if (Math.log10) {
46233
- return Math.log10(x);
46234
- }
46235
- return Math.log(x) / Math.LN10;
46236
- }
46237
- var ibanLookup = {};
46238
- for (let i2 = 0;i2 < 10; i2++) {
46239
- ibanLookup[String(i2)] = String(i2);
46240
- }
46241
- for (let i2 = 0;i2 < 26; i2++) {
46242
- ibanLookup[String.fromCharCode(65 + i2)] = String(10 + i2);
46243
- }
46244
- var safeDigits = Math.floor(log10(MAX_SAFE_INTEGER));
46245
- function ibanChecksum(address) {
46246
- address = address.toUpperCase();
46247
- address = address.substring(4) + address.substring(0, 2) + "00";
46248
- let expanded = address.split("").map((c) => {
46249
- return ibanLookup[c];
46250
- }).join("");
46251
- while (expanded.length >= safeDigits) {
46252
- let block = expanded.substring(0, safeDigits);
46253
- expanded = parseInt(block, 10) % 97 + expanded.substring(block.length);
46254
- }
46255
- let checksum = String(98 - parseInt(expanded, 10) % 97);
46256
- while (checksum.length < 2) {
46257
- checksum = "0" + checksum;
46258
- }
46259
- return checksum;
46260
- }
46261
- function getAddress(address) {
46262
- let result = null;
46263
- if (typeof address !== "string") {
46264
- logger5.throwArgumentError("invalid address", "address", address);
46265
- }
46266
- if (address.match(/^(0x)?[0-9a-fA-F]{40}$/)) {
46267
- if (address.substring(0, 2) !== "0x") {
46268
- address = "0x" + address;
46269
- }
46270
- result = getChecksumAddress(address);
46271
- if (address.match(/([A-F].*[a-f])|([a-f].*[A-F])/) && result !== address) {
46272
- logger5.throwArgumentError("bad address checksum", "address", address);
46273
- }
46274
- } else if (address.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)) {
46275
- if (address.substring(2, 4) !== ibanChecksum(address)) {
46276
- logger5.throwArgumentError("bad icap checksum", "address", address);
46277
- }
46278
- result = _base36To16(address.substring(4));
46279
- while (result.length < 40) {
46280
- result = "0" + result;
46281
- }
46282
- result = getChecksumAddress("0x" + result);
46283
- } else {
46284
- logger5.throwArgumentError("invalid address", "address", address);
46285
- }
46286
- return result;
46287
- }
46288
- function isAddress(address) {
46289
- try {
46290
- getAddress(address);
46291
- return true;
46292
- } catch (error) {}
46293
- return false;
46294
- }
46295
- function getIcapAddress(address) {
46296
- let base36 = _base16To36(getAddress(address).substring(2)).toUpperCase();
46297
- while (base36.length < 30) {
46298
- base36 = "0" + base36;
46299
- }
46300
- return "XE" + ibanChecksum("XE00" + base36) + base36;
46301
- }
46302
- function getContractAddress(transaction) {
46303
- let from2 = null;
46304
- try {
46305
- from2 = getAddress(transaction.from);
46306
- } catch (error) {
46307
- logger5.throwArgumentError("missing from address", "transaction", transaction);
46308
- }
46309
- const nonce = import_bytes3.stripZeros(import_bytes3.arrayify(BigNumber.from(transaction.nonce).toHexString()));
46310
- return getAddress(import_bytes3.hexDataSlice(import_keccak256.keccak256(import_rlp.encode([from2, nonce])), 12));
46311
- }
46312
- function getCreate2Address(from2, salt, initCodeHash) {
46313
- if (import_bytes3.hexDataLength(salt) !== 32) {
46314
- logger5.throwArgumentError("salt must be 32 bytes", "salt", salt);
46315
- }
46316
- if (import_bytes3.hexDataLength(initCodeHash) !== 32) {
46317
- logger5.throwArgumentError("initCodeHash must be 32 bytes", "initCodeHash", initCodeHash);
46318
- }
46319
- return getAddress(import_bytes3.hexDataSlice(import_keccak256.keccak256(import_bytes3.concat(["0xff", getAddress(from2), salt, initCodeHash])), 12));
46320
- }
46321
-
46322
46193
  // node_modules/@ethersproject/contracts/lib.esm/index.js
46323
- var import_bytes4 = __toESM(require_lib2());
46194
+ var import_address2 = __toESM(require_lib7());
46195
+ var import_bytes3 = __toESM(require_lib2());
46324
46196
  var import_properties3 = __toESM(require_lib4());
46325
46197
  var import_transactions = __toESM(require_lib15());
46326
46198
 
46327
46199
  // node_modules/@ethersproject/contracts/lib.esm/_version.js
46328
- var version8 = "contracts/5.7.0";
46200
+ var version7 = "contracts/5.7.0";
46329
46201
 
46330
46202
  // node_modules/@ethersproject/contracts/lib.esm/index.js
46331
46203
  var __awaiter3 = function(thisArg, _arguments, P, generator) {
@@ -46355,7 +46227,7 @@ var __awaiter3 = function(thisArg, _arguments, P, generator) {
46355
46227
  step((generator = generator.apply(thisArg, _arguments || [])).next());
46356
46228
  });
46357
46229
  };
46358
- var logger6 = new Logger(version8);
46230
+ var logger5 = new Logger(version7);
46359
46231
  var allowedTransactionKeys2 = {
46360
46232
  chainId: true,
46361
46233
  data: true,
@@ -46376,19 +46248,19 @@ function resolveName(resolver, nameOrPromise) {
46376
46248
  return __awaiter3(this, undefined, undefined, function* () {
46377
46249
  const name = yield nameOrPromise;
46378
46250
  if (typeof name !== "string") {
46379
- logger6.throwArgumentError("invalid address or ENS name", "name", name);
46251
+ logger5.throwArgumentError("invalid address or ENS name", "name", name);
46380
46252
  }
46381
46253
  try {
46382
- return getAddress(name);
46254
+ return import_address2.getAddress(name);
46383
46255
  } catch (error) {}
46384
46256
  if (!resolver) {
46385
- logger6.throwError("a provider or signer is needed to resolve ENS names", Logger.errors.UNSUPPORTED_OPERATION, {
46257
+ logger5.throwError("a provider or signer is needed to resolve ENS names", Logger.errors.UNSUPPORTED_OPERATION, {
46386
46258
  operation: "resolveName"
46387
46259
  });
46388
46260
  }
46389
46261
  const address = yield resolver.resolveName(name);
46390
46262
  if (address == null) {
46391
- logger6.throwArgumentError("resolver or addr is not configured for ENS name", "name", name);
46263
+ logger5.throwArgumentError("resolver or addr is not configured for ENS name", "name", name);
46392
46264
  }
46393
46265
  return address;
46394
46266
  });
@@ -46408,7 +46280,7 @@ function resolveAddresses(resolver, value, paramType) {
46408
46280
  }
46409
46281
  if (paramType.baseType === "array") {
46410
46282
  if (!Array.isArray(value)) {
46411
- return Promise.reject(logger6.makeError("invalid value for array", Logger.errors.INVALID_ARGUMENT, {
46283
+ return Promise.reject(logger5.makeError("invalid value for array", Logger.errors.INVALID_ARGUMENT, {
46412
46284
  argument: "value",
46413
46285
  value
46414
46286
  }));
@@ -46424,15 +46296,15 @@ function populateTransaction(contract, fragment, args) {
46424
46296
  if (args.length === fragment.inputs.length + 1 && typeof args[args.length - 1] === "object") {
46425
46297
  overrides = import_properties3.shallowCopy(args.pop());
46426
46298
  }
46427
- logger6.checkArgumentCount(args.length, fragment.inputs.length, "passed to contract");
46299
+ logger5.checkArgumentCount(args.length, fragment.inputs.length, "passed to contract");
46428
46300
  if (contract.signer) {
46429
46301
  if (overrides.from) {
46430
46302
  overrides.from = import_properties3.resolveProperties({
46431
46303
  override: resolveName(contract.signer, overrides.from),
46432
46304
  signer: contract.signer.getAddress()
46433
46305
  }).then((check) => __awaiter3(this, undefined, undefined, function* () {
46434
- if (getAddress(check.signer) !== check.override) {
46435
- logger6.throwError("Contract with a Signer cannot override from", Logger.errors.UNSUPPORTED_OPERATION, {
46306
+ if (import_address2.getAddress(check.signer) !== check.override) {
46307
+ logger5.throwError("Contract with a Signer cannot override from", Logger.errors.UNSUPPORTED_OPERATION, {
46436
46308
  operation: "overrides.from"
46437
46309
  });
46438
46310
  }
@@ -46481,7 +46353,7 @@ function populateTransaction(contract, fragment, args) {
46481
46353
  }
46482
46354
  if (tx.gasLimit == null && fragment.gas != null) {
46483
46355
  let intrinsic = 21000;
46484
- const bytes = import_bytes4.arrayify(data);
46356
+ const bytes = import_bytes3.arrayify(data);
46485
46357
  for (let i2 = 0;i2 < bytes.length; i2++) {
46486
46358
  intrinsic += 4;
46487
46359
  if (bytes[i2]) {
@@ -46493,7 +46365,7 @@ function populateTransaction(contract, fragment, args) {
46493
46365
  if (ro.value) {
46494
46366
  const roValue = BigNumber.from(ro.value);
46495
46367
  if (!roValue.isZero() && !fragment.payable) {
46496
- logger6.throwError("non-payable method cannot override value", Logger.errors.UNSUPPORTED_OPERATION, {
46368
+ logger5.throwError("non-payable method cannot override value", Logger.errors.UNSUPPORTED_OPERATION, {
46497
46369
  operation: "overrides.value",
46498
46370
  value: overrides.value
46499
46371
  });
@@ -46519,7 +46391,7 @@ function populateTransaction(contract, fragment, args) {
46519
46391
  delete overrides.ccipReadEnabled;
46520
46392
  const leftovers = Object.keys(overrides).filter((key) => overrides[key] != null);
46521
46393
  if (leftovers.length) {
46522
- logger6.throwError(`cannot override ${leftovers.map((l) => JSON.stringify(l)).join(",")}`, Logger.errors.UNSUPPORTED_OPERATION, {
46394
+ logger5.throwError(`cannot override ${leftovers.map((l) => JSON.stringify(l)).join(",")}`, Logger.errors.UNSUPPORTED_OPERATION, {
46523
46395
  operation: "overrides",
46524
46396
  overrides: leftovers
46525
46397
  });
@@ -46537,7 +46409,7 @@ function buildEstimate(contract, fragment) {
46537
46409
  return function(...args) {
46538
46410
  return __awaiter3(this, undefined, undefined, function* () {
46539
46411
  if (!signerOrProvider) {
46540
- logger6.throwError("estimate require a provider or signer", Logger.errors.UNSUPPORTED_OPERATION, {
46412
+ logger5.throwError("estimate require a provider or signer", Logger.errors.UNSUPPORTED_OPERATION, {
46541
46413
  operation: "estimateGas"
46542
46414
  });
46543
46415
  }
@@ -46621,7 +46493,7 @@ function buildSend(contract, fragment) {
46621
46493
  return function(...args) {
46622
46494
  return __awaiter3(this, undefined, undefined, function* () {
46623
46495
  if (!contract.signer) {
46624
- logger6.throwError("sending a transaction requires a signer", Logger.errors.UNSUPPORTED_OPERATION, {
46496
+ logger5.throwError("sending a transaction requires a signer", Logger.errors.UNSUPPORTED_OPERATION, {
46625
46497
  operation: "sendTransaction"
46626
46498
  });
46627
46499
  }
@@ -46712,7 +46584,7 @@ class FragmentRunningEvent extends RunningEvent {
46712
46584
  let topic = contractInterface.getEventTopic(fragment);
46713
46585
  if (topics) {
46714
46586
  if (topic !== topics[0]) {
46715
- logger6.throwArgumentError("topic mismatch", "topics", topics);
46587
+ logger5.throwArgumentError("topic mismatch", "topics", topics);
46716
46588
  }
46717
46589
  filter.topics = topics.slice();
46718
46590
  } else {
@@ -46781,7 +46653,7 @@ class BaseContract {
46781
46653
  import_properties3.defineReadOnly(this, "provider", signerOrProvider);
46782
46654
  import_properties3.defineReadOnly(this, "signer", null);
46783
46655
  } else {
46784
- logger6.throwArgumentError("invalid signer or provider", "signerOrProvider", signerOrProvider);
46656
+ logger5.throwArgumentError("invalid signer or provider", "signerOrProvider", signerOrProvider);
46785
46657
  }
46786
46658
  import_properties3.defineReadOnly(this, "callStatic", {});
46787
46659
  import_properties3.defineReadOnly(this, "estimateGas", {});
@@ -46808,23 +46680,23 @@ class BaseContract {
46808
46680
  if (filters.length === 1) {
46809
46681
  import_properties3.defineReadOnly(this.filters, name, this.filters[filters[0]]);
46810
46682
  } else {
46811
- logger6.warn(`Duplicate definition of ${name} (${filters.join(", ")})`);
46683
+ logger5.warn(`Duplicate definition of ${name} (${filters.join(", ")})`);
46812
46684
  }
46813
46685
  });
46814
46686
  }
46815
46687
  import_properties3.defineReadOnly(this, "_runningEvents", {});
46816
46688
  import_properties3.defineReadOnly(this, "_wrappedEmits", {});
46817
46689
  if (addressOrName == null) {
46818
- logger6.throwArgumentError("invalid contract address or ENS name", "addressOrName", addressOrName);
46690
+ logger5.throwArgumentError("invalid contract address or ENS name", "addressOrName", addressOrName);
46819
46691
  }
46820
46692
  import_properties3.defineReadOnly(this, "address", addressOrName);
46821
46693
  if (this.provider) {
46822
46694
  import_properties3.defineReadOnly(this, "resolvedAddress", resolveName(this.provider, addressOrName));
46823
46695
  } else {
46824
46696
  try {
46825
- import_properties3.defineReadOnly(this, "resolvedAddress", Promise.resolve(getAddress(addressOrName)));
46697
+ import_properties3.defineReadOnly(this, "resolvedAddress", Promise.resolve(import_address2.getAddress(addressOrName)));
46826
46698
  } catch (error) {
46827
- logger6.throwError("provider is required to use ENS name as contract address", Logger.errors.UNSUPPORTED_OPERATION, {
46699
+ logger5.throwError("provider is required to use ENS name as contract address", Logger.errors.UNSUPPORTED_OPERATION, {
46828
46700
  operation: "new Contract"
46829
46701
  });
46830
46702
  }
@@ -46835,7 +46707,7 @@ class BaseContract {
46835
46707
  Object.keys(this.interface.functions).forEach((signature) => {
46836
46708
  const fragment = this.interface.functions[signature];
46837
46709
  if (uniqueSignatures[signature]) {
46838
- logger6.warn(`Duplicate ABI entry for ${JSON.stringify(signature)}`);
46710
+ logger5.warn(`Duplicate ABI entry for ${JSON.stringify(signature)}`);
46839
46711
  return;
46840
46712
  }
46841
46713
  uniqueSignatures[signature] = true;
@@ -46889,7 +46761,7 @@ class BaseContract {
46889
46761
  });
46890
46762
  }
46891
46763
  static getContractAddress(transaction) {
46892
- return getContractAddress(transaction);
46764
+ return import_address2.getContractAddress(transaction);
46893
46765
  }
46894
46766
  static getInterface(contractInterface) {
46895
46767
  if (import_abi.Interface.isInterface(contractInterface)) {
@@ -46909,7 +46781,7 @@ class BaseContract {
46909
46781
  } else {
46910
46782
  this._deployedPromise = this.provider.getCode(this.address, blockTag).then((code2) => {
46911
46783
  if (code2 === "0x") {
46912
- logger6.throwError("contract not deployed", Logger.errors.UNSUPPORTED_OPERATION, {
46784
+ logger5.throwError("contract not deployed", Logger.errors.UNSUPPORTED_OPERATION, {
46913
46785
  contractAddress: this.address,
46914
46786
  operation: "getDeployed"
46915
46787
  });
@@ -46922,14 +46794,14 @@ class BaseContract {
46922
46794
  }
46923
46795
  fallback(overrides) {
46924
46796
  if (!this.signer) {
46925
- logger6.throwError("sending a transactions require a signer", Logger.errors.UNSUPPORTED_OPERATION, { operation: "sendTransaction(fallback)" });
46797
+ logger5.throwError("sending a transactions require a signer", Logger.errors.UNSUPPORTED_OPERATION, { operation: "sendTransaction(fallback)" });
46926
46798
  }
46927
46799
  const tx = import_properties3.shallowCopy(overrides || {});
46928
46800
  ["from", "to"].forEach(function(key) {
46929
46801
  if (tx[key] == null) {
46930
46802
  return;
46931
46803
  }
46932
- logger6.throwError("cannot override " + key, Logger.errors.UNSUPPORTED_OPERATION, { operation: key });
46804
+ logger5.throwError("cannot override " + key, Logger.errors.UNSUPPORTED_OPERATION, { operation: key });
46933
46805
  });
46934
46806
  tx.to = this.resolvedAddress;
46935
46807
  return this.deployed().then(() => {
@@ -47022,7 +46894,7 @@ class BaseContract {
47022
46894
  }
47023
46895
  _addEventListener(runningEvent, listener, once3) {
47024
46896
  if (!this.provider) {
47025
- logger6.throwError("events require a provider or a signer with a provider", Logger.errors.UNSUPPORTED_OPERATION, { operation: "once" });
46897
+ logger5.throwError("events require a provider or a signer with a provider", Logger.errors.UNSUPPORTED_OPERATION, { operation: "once" });
47026
46898
  }
47027
46899
  runningEvent.addListener(listener, once3);
47028
46900
  this._runningEvents[runningEvent.tag] = runningEvent;
@@ -47053,9 +46925,9 @@ class BaseContract {
47053
46925
  queryFilter(event, fromBlockOrBlockhash, toBlock) {
47054
46926
  const runningEvent = this._getRunningEvent(event);
47055
46927
  const filter = import_properties3.shallowCopy(runningEvent.filter);
47056
- if (typeof fromBlockOrBlockhash === "string" && import_bytes4.isHexString(fromBlockOrBlockhash, 32)) {
46928
+ if (typeof fromBlockOrBlockhash === "string" && import_bytes3.isHexString(fromBlockOrBlockhash, 32)) {
47057
46929
  if (toBlock != null) {
47058
- logger6.throwArgumentError("cannot specify toBlock with blockhash", "toBlock", toBlock);
46930
+ logger5.throwArgumentError("cannot specify toBlock with blockhash", "toBlock", toBlock);
47059
46931
  }
47060
46932
  filter.blockHash = fromBlockOrBlockhash;
47061
46933
  } else {
@@ -47148,8 +47020,8 @@ class ContractFactory {
47148
47020
  let bytecodeHex = null;
47149
47021
  if (typeof bytecode === "string") {
47150
47022
  bytecodeHex = bytecode;
47151
- } else if (import_bytes4.isBytes(bytecode)) {
47152
- bytecodeHex = import_bytes4.hexlify(bytecode);
47023
+ } else if (import_bytes3.isBytes(bytecode)) {
47024
+ bytecodeHex = import_bytes3.hexlify(bytecode);
47153
47025
  } else if (bytecode && typeof bytecode.object === "string") {
47154
47026
  bytecodeHex = bytecode.object;
47155
47027
  } else {
@@ -47158,11 +47030,11 @@ class ContractFactory {
47158
47030
  if (bytecodeHex.substring(0, 2) !== "0x") {
47159
47031
  bytecodeHex = "0x" + bytecodeHex;
47160
47032
  }
47161
- if (!import_bytes4.isHexString(bytecodeHex) || bytecodeHex.length % 2) {
47162
- logger6.throwArgumentError("invalid bytecode", "bytecode", bytecode);
47033
+ if (!import_bytes3.isHexString(bytecodeHex) || bytecodeHex.length % 2) {
47034
+ logger5.throwArgumentError("invalid bytecode", "bytecode", bytecode);
47163
47035
  }
47164
47036
  if (signer && !Signer.isSigner(signer)) {
47165
- logger6.throwArgumentError("invalid signer", "signer", signer);
47037
+ logger5.throwArgumentError("invalid signer", "signer", signer);
47166
47038
  }
47167
47039
  import_properties3.defineReadOnly(this, "bytecode", bytecodeHex);
47168
47040
  import_properties3.defineReadOnly(this, "interface", import_properties3.getStatic(new.target, "getInterface")(contractInterface));
@@ -47182,19 +47054,19 @@ class ContractFactory {
47182
47054
  if (tx[key] == null) {
47183
47055
  return;
47184
47056
  }
47185
- logger6.throwError("cannot override " + key, Logger.errors.UNSUPPORTED_OPERATION, { operation: key });
47057
+ logger5.throwError("cannot override " + key, Logger.errors.UNSUPPORTED_OPERATION, { operation: key });
47186
47058
  });
47187
47059
  if (tx.value) {
47188
47060
  const value = BigNumber.from(tx.value);
47189
47061
  if (!value.isZero() && !this.interface.deploy.payable) {
47190
- logger6.throwError("non-payable constructor cannot override value", Logger.errors.UNSUPPORTED_OPERATION, {
47062
+ logger5.throwError("non-payable constructor cannot override value", Logger.errors.UNSUPPORTED_OPERATION, {
47191
47063
  operation: "overrides.value",
47192
47064
  value: tx.value
47193
47065
  });
47194
47066
  }
47195
47067
  }
47196
- logger6.checkArgumentCount(args.length, this.interface.deploy.inputs.length, " in Contract constructor");
47197
- tx.data = import_bytes4.hexlify(import_bytes4.concat([
47068
+ logger5.checkArgumentCount(args.length, this.interface.deploy.inputs.length, " in Contract constructor");
47069
+ tx.data = import_bytes3.hexlify(import_bytes3.concat([
47198
47070
  this.bytecode,
47199
47071
  this.interface.encodeDeploy(args)
47200
47072
  ]));
@@ -47206,7 +47078,7 @@ class ContractFactory {
47206
47078
  if (args.length === this.interface.deploy.inputs.length + 1) {
47207
47079
  overrides = args.pop();
47208
47080
  }
47209
- logger6.checkArgumentCount(args.length, this.interface.deploy.inputs.length, " in Contract constructor");
47081
+ logger5.checkArgumentCount(args.length, this.interface.deploy.inputs.length, " in Contract constructor");
47210
47082
  const params = yield resolveAddresses(this.signer, args, this.interface.deploy.inputs);
47211
47083
  params.push(overrides);
47212
47084
  const unsignedTx = this.getDeployTransaction(...params);
@@ -47226,7 +47098,7 @@ class ContractFactory {
47226
47098
  }
47227
47099
  static fromSolidity(compilerOutput, signer) {
47228
47100
  if (compilerOutput == null) {
47229
- logger6.throwError("missing compiler output", Logger.errors.MISSING_ARGUMENT, { argument: "compilerOutput" });
47101
+ logger5.throwError("missing compiler output", Logger.errors.MISSING_ARGUMENT, { argument: "compilerOutput" });
47230
47102
  }
47231
47103
  if (typeof compilerOutput === "string") {
47232
47104
  compilerOutput = JSON.parse(compilerOutput);
@@ -47244,7 +47116,7 @@ class ContractFactory {
47244
47116
  return Contract.getInterface(contractInterface);
47245
47117
  }
47246
47118
  static getContractAddress(tx) {
47247
- return getContractAddress(tx);
47119
+ return import_address2.getContractAddress(tx);
47248
47120
  }
47249
47121
  static getContract(address, contractInterface, signer) {
47250
47122
  return new Contract(address, contractInterface, signer);
@@ -47252,10 +47124,11 @@ class ContractFactory {
47252
47124
  }
47253
47125
 
47254
47126
  // node_modules/@ethersproject/wallet/lib.esm/index.js
47255
- var import_bytes5 = __toESM(require_lib2());
47127
+ var import_address3 = __toESM(require_lib7());
47128
+ var import_bytes4 = __toESM(require_lib2());
47256
47129
  var import_hash = __toESM(require_lib12());
47257
47130
  var import_hdnode = __toESM(require_lib20());
47258
- var import_keccak2562 = __toESM(require_lib5());
47131
+ var import_keccak256 = __toESM(require_lib5());
47259
47132
  var import_properties4 = __toESM(require_lib4());
47260
47133
  var import_random = __toESM(require_lib21());
47261
47134
  var import_signing_key = __toESM(require_lib14());
@@ -47263,7 +47136,7 @@ var import_json_wallets = __toESM(require_lib22());
47263
47136
  var import_transactions2 = __toESM(require_lib15());
47264
47137
 
47265
47138
  // node_modules/@ethersproject/wallet/lib.esm/_version.js
47266
- var version9 = "wallet/5.7.0";
47139
+ var version8 = "wallet/5.7.0";
47267
47140
 
47268
47141
  // node_modules/@ethersproject/wallet/lib.esm/index.js
47269
47142
  var __awaiter4 = function(thisArg, _arguments, P, generator) {
@@ -47293,9 +47166,9 @@ var __awaiter4 = function(thisArg, _arguments, P, generator) {
47293
47166
  step((generator = generator.apply(thisArg, _arguments || [])).next());
47294
47167
  });
47295
47168
  };
47296
- var logger7 = new Logger(version9);
47169
+ var logger6 = new Logger(version8);
47297
47170
  function isAccount(value) {
47298
- return value != null && import_bytes5.isHexString(value.privateKey, 32) && value.address != null;
47171
+ return value != null && import_bytes4.isHexString(value.privateKey, 32) && value.address != null;
47299
47172
  }
47300
47173
  function hasMnemonic(value) {
47301
47174
  const mnemonic = value.mnemonic;
@@ -47309,8 +47182,8 @@ class Wallet extends Signer {
47309
47182
  const signingKey = new import_signing_key.SigningKey(privateKey.privateKey);
47310
47183
  import_properties4.defineReadOnly(this, "_signingKey", () => signingKey);
47311
47184
  import_properties4.defineReadOnly(this, "address", import_transactions2.computeAddress(this.publicKey));
47312
- if (this.address !== getAddress(privateKey.address)) {
47313
- logger7.throwArgumentError("privateKey/address mismatch", "privateKey", "[REDACTED]");
47185
+ if (this.address !== import_address3.getAddress(privateKey.address)) {
47186
+ logger6.throwArgumentError("privateKey/address mismatch", "privateKey", "[REDACTED]");
47314
47187
  }
47315
47188
  if (hasMnemonic(privateKey)) {
47316
47189
  const srcMnemonic = privateKey.mnemonic;
@@ -47322,7 +47195,7 @@ class Wallet extends Signer {
47322
47195
  const mnemonic = this.mnemonic;
47323
47196
  const node = import_hdnode.HDNode.fromMnemonic(mnemonic.phrase, null, mnemonic.locale).derivePath(mnemonic.path);
47324
47197
  if (import_transactions2.computeAddress(node.privateKey) !== this.address) {
47325
- logger7.throwArgumentError("mnemonic/address mismatch", "privateKey", "[REDACTED]");
47198
+ logger6.throwArgumentError("mnemonic/address mismatch", "privateKey", "[REDACTED]");
47326
47199
  }
47327
47200
  } else {
47328
47201
  import_properties4.defineReadOnly(this, "_mnemonic", () => null);
@@ -47330,7 +47203,7 @@ class Wallet extends Signer {
47330
47203
  } else {
47331
47204
  if (import_signing_key.SigningKey.isSigningKey(privateKey)) {
47332
47205
  if (privateKey.curve !== "secp256k1") {
47333
- logger7.throwArgumentError("unsupported curve; must be secp256k1", "privateKey", "[REDACTED]");
47206
+ logger6.throwArgumentError("unsupported curve; must be secp256k1", "privateKey", "[REDACTED]");
47334
47207
  }
47335
47208
  import_properties4.defineReadOnly(this, "_signingKey", () => privateKey);
47336
47209
  } else {
@@ -47346,7 +47219,7 @@ class Wallet extends Signer {
47346
47219
  import_properties4.defineReadOnly(this, "address", import_transactions2.computeAddress(this.publicKey));
47347
47220
  }
47348
47221
  if (provider && !Provider.isProvider(provider)) {
47349
- logger7.throwArgumentError("invalid provider", "provider", provider);
47222
+ logger6.throwArgumentError("invalid provider", "provider", provider);
47350
47223
  }
47351
47224
  import_properties4.defineReadOnly(this, "provider", provider || null);
47352
47225
  }
@@ -47368,32 +47241,32 @@ class Wallet extends Signer {
47368
47241
  signTransaction(transaction) {
47369
47242
  return import_properties4.resolveProperties(transaction).then((tx) => {
47370
47243
  if (tx.from != null) {
47371
- if (getAddress(tx.from) !== this.address) {
47372
- logger7.throwArgumentError("transaction from address mismatch", "transaction.from", transaction.from);
47244
+ if (import_address3.getAddress(tx.from) !== this.address) {
47245
+ logger6.throwArgumentError("transaction from address mismatch", "transaction.from", transaction.from);
47373
47246
  }
47374
47247
  delete tx.from;
47375
47248
  }
47376
- const signature = this._signingKey().signDigest(import_keccak2562.keccak256(import_transactions2.serialize(tx)));
47249
+ const signature = this._signingKey().signDigest(import_keccak256.keccak256(import_transactions2.serialize(tx)));
47377
47250
  return import_transactions2.serialize(tx, signature);
47378
47251
  });
47379
47252
  }
47380
47253
  signMessage(message) {
47381
47254
  return __awaiter4(this, undefined, undefined, function* () {
47382
- return import_bytes5.joinSignature(this._signingKey().signDigest(import_hash.hashMessage(message)));
47255
+ return import_bytes4.joinSignature(this._signingKey().signDigest(import_hash.hashMessage(message)));
47383
47256
  });
47384
47257
  }
47385
47258
  _signTypedData(domain, types2, value) {
47386
47259
  return __awaiter4(this, undefined, undefined, function* () {
47387
47260
  const populated = yield import_hash._TypedDataEncoder.resolveNames(domain, types2, value, (name) => {
47388
47261
  if (this.provider == null) {
47389
- logger7.throwError("cannot resolve ENS names without a provider", Logger.errors.UNSUPPORTED_OPERATION, {
47262
+ logger6.throwError("cannot resolve ENS names without a provider", Logger.errors.UNSUPPORTED_OPERATION, {
47390
47263
  operation: "resolveName",
47391
47264
  value: name
47392
47265
  });
47393
47266
  }
47394
47267
  return this.provider.resolveName(name);
47395
47268
  });
47396
- return import_bytes5.joinSignature(this._signingKey().signDigest(import_hash._TypedDataEncoder.hash(populated.domain, types2, populated.value)));
47269
+ return import_bytes4.joinSignature(this._signingKey().signDigest(import_hash._TypedDataEncoder.hash(populated.domain, types2, populated.value)));
47397
47270
  });
47398
47271
  }
47399
47272
  encrypt(password, options, progressCallback) {
@@ -47415,7 +47288,7 @@ class Wallet extends Signer {
47415
47288
  options = {};
47416
47289
  }
47417
47290
  if (options.extraEntropy) {
47418
- entropy = import_bytes5.arrayify(import_bytes5.hexDataSlice(import_keccak2562.keccak256(import_bytes5.concat([entropy, options.extraEntropy])), 0, 16));
47291
+ entropy = import_bytes4.arrayify(import_bytes4.hexDataSlice(import_keccak256.keccak256(import_bytes4.concat([entropy, options.extraEntropy])), 0, 16));
47419
47292
  }
47420
47293
  const mnemonic = import_hdnode.entropyToMnemonic(entropy, options.locale);
47421
47294
  return Wallet.fromMnemonic(mnemonic, options.path, options.locale);
@@ -47506,10 +47379,10 @@ __export(exports_lib2, {
47506
47379
  });
47507
47380
 
47508
47381
  // node_modules/@ethersproject/networks/lib.esm/_version.js
47509
- var version10 = "networks/5.7.1";
47382
+ var version9 = "networks/5.7.1";
47510
47383
 
47511
47384
  // node_modules/@ethersproject/networks/lib.esm/index.js
47512
- var logger8 = new Logger(version10);
47385
+ var logger7 = new Logger(version9);
47513
47386
  function isRenetworkable(value) {
47514
47387
  return value && typeof value.renetwork === "function";
47515
47388
  }
@@ -47704,12 +47577,12 @@ function getNetwork(network) {
47704
47577
  const standard = networks[network.name];
47705
47578
  if (!standard) {
47706
47579
  if (typeof network.chainId !== "number") {
47707
- logger8.throwArgumentError("invalid network chainId", "network", network);
47580
+ logger7.throwArgumentError("invalid network chainId", "network", network);
47708
47581
  }
47709
47582
  return network;
47710
47583
  }
47711
47584
  if (network.chainId !== 0 && network.chainId !== standard.chainId) {
47712
- logger8.throwArgumentError("network chainId mismatch", "network", network);
47585
+ logger7.throwArgumentError("network chainId mismatch", "network", network);
47713
47586
  }
47714
47587
  let defaultProvider = network._defaultProvider || null;
47715
47588
  if (defaultProvider == null && standard._defaultProvider) {
@@ -47730,7 +47603,7 @@ function getNetwork(network) {
47730
47603
  // node_modules/@ethersproject/providers/lib.esm/base-provider.js
47731
47604
  var import_base64 = __toESM(require_lib10());
47732
47605
  var import_basex = __toESM(require_lib16());
47733
- var import_bytes7 = __toESM(require_lib2());
47606
+ var import_bytes6 = __toESM(require_lib2());
47734
47607
  var import_hash2 = __toESM(require_lib12());
47735
47608
  var import_properties6 = __toESM(require_lib4());
47736
47609
  var import_sha2 = __toESM(require_lib17());
@@ -47739,13 +47612,14 @@ var import_web = __toESM(require_lib23());
47739
47612
  var import_bech32 = __toESM(require_bech32());
47740
47613
 
47741
47614
  // node_modules/@ethersproject/providers/lib.esm/_version.js
47742
- var version11 = "providers/5.7.2";
47615
+ var version10 = "providers/5.7.2";
47743
47616
 
47744
47617
  // node_modules/@ethersproject/providers/lib.esm/formatter.js
47745
- var import_bytes6 = __toESM(require_lib2());
47618
+ var import_address4 = __toESM(require_lib7());
47619
+ var import_bytes5 = __toESM(require_lib2());
47746
47620
  var import_properties5 = __toESM(require_lib4());
47747
47621
  var import_transactions3 = __toESM(require_lib15());
47748
- var logger9 = new Logger(version11);
47622
+ var logger8 = new Logger(version10);
47749
47623
 
47750
47624
  class Formatter {
47751
47625
  constructor() {
@@ -47902,11 +47776,11 @@ class Formatter {
47902
47776
  if (!strict && value.substring(0, 2) !== "0x") {
47903
47777
  value = "0x" + value;
47904
47778
  }
47905
- if (import_bytes6.isHexString(value)) {
47779
+ if (import_bytes5.isHexString(value)) {
47906
47780
  return value.toLowerCase();
47907
47781
  }
47908
47782
  }
47909
- return logger9.throwArgumentError("invalid hash", "value", value);
47783
+ return logger8.throwArgumentError("invalid hash", "value", value);
47910
47784
  }
47911
47785
  data(value, strict) {
47912
47786
  const result = this.hex(value, strict);
@@ -47916,17 +47790,17 @@ class Formatter {
47916
47790
  return result;
47917
47791
  }
47918
47792
  address(value) {
47919
- return getAddress(value);
47793
+ return import_address4.getAddress(value);
47920
47794
  }
47921
47795
  callAddress(value) {
47922
- if (!import_bytes6.isHexString(value, 32)) {
47796
+ if (!import_bytes5.isHexString(value, 32)) {
47923
47797
  return null;
47924
47798
  }
47925
- const address = getAddress(import_bytes6.hexDataSlice(value, 12));
47799
+ const address = import_address4.getAddress(import_bytes5.hexDataSlice(value, 12));
47926
47800
  return address === AddressZero ? null : address;
47927
47801
  }
47928
47802
  contractAddress(value) {
47929
- return getContractAddress(value);
47803
+ return import_address4.getContractAddress(value);
47930
47804
  }
47931
47805
  blockTag(blockTag) {
47932
47806
  if (blockTag == null) {
@@ -47944,15 +47818,15 @@ class Formatter {
47944
47818
  case "finalized":
47945
47819
  return blockTag;
47946
47820
  }
47947
- if (typeof blockTag === "number" || import_bytes6.isHexString(blockTag)) {
47948
- return import_bytes6.hexValue(blockTag);
47821
+ if (typeof blockTag === "number" || import_bytes5.isHexString(blockTag)) {
47822
+ return import_bytes5.hexValue(blockTag);
47949
47823
  }
47950
47824
  throw new Error("invalid blockTag");
47951
47825
  }
47952
47826
  hash(value, strict) {
47953
47827
  const result = this.hex(value, strict);
47954
- if (import_bytes6.hexDataLength(result) !== 32) {
47955
- return logger9.throwArgumentError("invalid hash", "value", value);
47828
+ if (import_bytes5.hexDataLength(result) !== 32) {
47829
+ return logger8.throwArgumentError("invalid hash", "value", value);
47956
47830
  }
47957
47831
  return result;
47958
47832
  }
@@ -47967,10 +47841,10 @@ class Formatter {
47967
47841
  return null;
47968
47842
  }
47969
47843
  uint256(value) {
47970
- if (!import_bytes6.isHexString(value)) {
47844
+ if (!import_bytes5.isHexString(value)) {
47971
47845
  throw new Error("invalid uint256");
47972
47846
  }
47973
- return import_bytes6.hexZeroPad(value, 32);
47847
+ return import_bytes5.hexZeroPad(value, 32);
47974
47848
  }
47975
47849
  _block(value, format2) {
47976
47850
  if (value.author != null && value.miner == null) {
@@ -48009,7 +47883,7 @@ class Formatter {
48009
47883
  const result = Formatter.check(this.formats.transaction, transaction);
48010
47884
  if (transaction.chainId != null) {
48011
47885
  let chainId = transaction.chainId;
48012
- if (import_bytes6.isHexString(chainId)) {
47886
+ if (import_bytes5.isHexString(chainId)) {
48013
47887
  chainId = BigNumber.from(chainId).toNumber();
48014
47888
  }
48015
47889
  result.chainId = chainId;
@@ -48018,7 +47892,7 @@ class Formatter {
48018
47892
  if (chainId == null && result.v == null) {
48019
47893
  chainId = transaction.chainId;
48020
47894
  }
48021
- if (import_bytes6.isHexString(chainId)) {
47895
+ if (import_bytes5.isHexString(chainId)) {
48022
47896
  chainId = BigNumber.from(chainId).toNumber();
48023
47897
  }
48024
47898
  if (typeof chainId !== "number" && result.v != null) {
@@ -48051,15 +47925,15 @@ class Formatter {
48051
47925
  const value2 = BigNumber.from(result.root).toNumber();
48052
47926
  if (value2 === 0 || value2 === 1) {
48053
47927
  if (result.status != null && result.status !== value2) {
48054
- logger9.throwArgumentError("alt-root-status/status mismatch", "value", { root: result.root, status: result.status });
47928
+ logger8.throwArgumentError("alt-root-status/status mismatch", "value", { root: result.root, status: result.status });
48055
47929
  }
48056
47930
  result.status = value2;
48057
47931
  delete result.root;
48058
47932
  } else {
48059
- logger9.throwArgumentError("invalid alt-root-status", "value.root", result.root);
47933
+ logger8.throwArgumentError("invalid alt-root-status", "value.root", result.root);
48060
47934
  }
48061
47935
  } else if (result.root.length !== 66) {
48062
- logger9.throwArgumentError("invalid root hash", "value.root", result.root);
47936
+ logger8.throwArgumentError("invalid root hash", "value.root", result.root);
48063
47937
  }
48064
47938
  }
48065
47939
  if (result.status != null) {
@@ -48180,14 +48054,14 @@ var __awaiter5 = function(thisArg, _arguments, P, generator) {
48180
48054
  step((generator = generator.apply(thisArg, _arguments || [])).next());
48181
48055
  });
48182
48056
  };
48183
- var logger10 = new Logger(version11);
48057
+ var logger9 = new Logger(version10);
48184
48058
  var MAX_CCIP_REDIRECTS = 10;
48185
48059
  function checkTopic(topic) {
48186
48060
  if (topic == null) {
48187
48061
  return "null";
48188
48062
  }
48189
- if (import_bytes7.hexDataLength(topic) !== 32) {
48190
- logger10.throwArgumentError("invalid topic", "topic", topic);
48063
+ if (import_bytes6.hexDataLength(topic) !== 32) {
48064
+ logger9.throwArgumentError("invalid topic", "topic", topic);
48191
48065
  }
48192
48066
  return topic.toLowerCase();
48193
48067
  }
@@ -48227,7 +48101,7 @@ function deserializeTopics(data) {
48227
48101
  function getEventTag2(eventName) {
48228
48102
  if (typeof eventName === "string") {
48229
48103
  eventName = eventName.toLowerCase();
48230
- if (import_bytes7.hexDataLength(eventName) === 32) {
48104
+ if (import_bytes6.hexDataLength(eventName) === 32) {
48231
48105
  return "tx:" + eventName;
48232
48106
  }
48233
48107
  if (eventName.indexOf(":") === -1) {
@@ -48236,7 +48110,7 @@ function getEventTag2(eventName) {
48236
48110
  } else if (Array.isArray(eventName)) {
48237
48111
  return "filter:*:" + serializeTopics(eventName);
48238
48112
  } else if (ForkEvent.isForkEvent(eventName)) {
48239
- logger10.warn("not implemented");
48113
+ logger9.warn("not implemented");
48240
48114
  throw new Error("not implemented");
48241
48115
  } else if (eventName && typeof eventName === "object") {
48242
48116
  return "filter:" + (eventName.address || "*") + ":" + serializeTopics(eventName.topics || []);
@@ -48309,10 +48183,10 @@ var coinInfos = {
48309
48183
  "700": { symbol: "xdai", ilk: "eth" }
48310
48184
  };
48311
48185
  function bytes32ify(value) {
48312
- return import_bytes7.hexZeroPad(BigNumber.from(value).toHexString(), 32);
48186
+ return import_bytes6.hexZeroPad(BigNumber.from(value).toHexString(), 32);
48313
48187
  }
48314
48188
  function base58Encode(data) {
48315
- return import_basex.Base58.encode(import_bytes7.concat([data, import_bytes7.hexDataSlice(import_sha2.sha256(import_sha2.sha256(data)), 0, 4)]));
48189
+ return import_basex.Base58.encode(import_bytes6.concat([data, import_bytes6.hexDataSlice(import_sha2.sha256(import_sha2.sha256(data)), 0, 4)]));
48316
48190
  }
48317
48191
  var matcherIpfs = new RegExp("^(ipfs)://(.*)$", "i");
48318
48192
  var matchers = [
@@ -48331,9 +48205,9 @@ function _parseBytes(result, start) {
48331
48205
  if (result === "0x") {
48332
48206
  return null;
48333
48207
  }
48334
- const offset = BigNumber.from(import_bytes7.hexDataSlice(result, start, start + 32)).toNumber();
48335
- const length = BigNumber.from(import_bytes7.hexDataSlice(result, offset, offset + 32)).toNumber();
48336
- return import_bytes7.hexDataSlice(result, offset + 32, offset + 32 + length);
48208
+ const offset = BigNumber.from(import_bytes6.hexDataSlice(result, start, start + 32)).toNumber();
48209
+ const length = BigNumber.from(import_bytes6.hexDataSlice(result, offset, offset + 32)).toNumber();
48210
+ return import_bytes6.hexDataSlice(result, offset + 32, offset + 32 + length);
48337
48211
  }
48338
48212
  function getIpfsLink(link) {
48339
48213
  if (link.match(/^ipfs:\/\/ipfs\//i)) {
@@ -48341,12 +48215,12 @@ function getIpfsLink(link) {
48341
48215
  } else if (link.match(/^ipfs:\/\//i)) {
48342
48216
  link = link.substring(7);
48343
48217
  } else {
48344
- logger10.throwArgumentError("unsupported IPFS format", "link", link);
48218
+ logger9.throwArgumentError("unsupported IPFS format", "link", link);
48345
48219
  }
48346
48220
  return `https://gateway.ipfs.io/ipfs/${link}`;
48347
48221
  }
48348
48222
  function numPad(value) {
48349
- const result = import_bytes7.arrayify(value);
48223
+ const result = import_bytes6.arrayify(value);
48350
48224
  if (result.length > 32) {
48351
48225
  throw new Error("internal; should not happen");
48352
48226
  }
@@ -48370,13 +48244,13 @@ function encodeBytes(datas) {
48370
48244
  byteCount += 32;
48371
48245
  }
48372
48246
  for (let i2 = 0;i2 < datas.length; i2++) {
48373
- const data = import_bytes7.arrayify(datas[i2]);
48247
+ const data = import_bytes6.arrayify(datas[i2]);
48374
48248
  result[i2] = numPad(byteCount);
48375
48249
  result.push(numPad(data.length));
48376
48250
  result.push(bytesPad(data));
48377
48251
  byteCount += 32 + Math.ceil(data.length / 32) * 32;
48378
48252
  }
48379
- return import_bytes7.hexConcat(result);
48253
+ return import_bytes6.hexConcat(result);
48380
48254
  }
48381
48255
 
48382
48256
  class Resolver {
@@ -48408,17 +48282,17 @@ class Resolver {
48408
48282
  const tx = {
48409
48283
  to: this.address,
48410
48284
  ccipReadEnabled: true,
48411
- data: import_bytes7.hexConcat([selector, import_hash2.namehash(this.name), parameters || "0x"])
48285
+ data: import_bytes6.hexConcat([selector, import_hash2.namehash(this.name), parameters || "0x"])
48412
48286
  };
48413
48287
  let parseBytes = false;
48414
48288
  if (yield this.supportsWildcard()) {
48415
48289
  parseBytes = true;
48416
- tx.data = import_bytes7.hexConcat(["0x9061b923", encodeBytes([import_hash2.dnsEncode(this.name), tx.data])]);
48290
+ tx.data = import_bytes6.hexConcat(["0x9061b923", encodeBytes([import_hash2.dnsEncode(this.name), tx.data])]);
48417
48291
  }
48418
48292
  try {
48419
48293
  let result = yield this.provider.call(tx);
48420
- if (import_bytes7.arrayify(result).length % 32 === 4) {
48421
- logger10.throwError("resolver threw error", Logger.errors.CALL_EXCEPTION, {
48294
+ if (import_bytes6.arrayify(result).length % 32 === 4) {
48295
+ logger9.throwError("resolver threw error", Logger.errors.CALL_EXCEPTION, {
48422
48296
  transaction: tx,
48423
48297
  data: result
48424
48298
  });
@@ -48447,20 +48321,20 @@ class Resolver {
48447
48321
  _getAddress(coinType, hexBytes) {
48448
48322
  const coinInfo = coinInfos[String(coinType)];
48449
48323
  if (coinInfo == null) {
48450
- logger10.throwError(`unsupported coin type: ${coinType}`, Logger.errors.UNSUPPORTED_OPERATION, {
48324
+ logger9.throwError(`unsupported coin type: ${coinType}`, Logger.errors.UNSUPPORTED_OPERATION, {
48451
48325
  operation: `getAddress(${coinType})`
48452
48326
  });
48453
48327
  }
48454
48328
  if (coinInfo.ilk === "eth") {
48455
48329
  return this.provider.formatter.address(hexBytes);
48456
48330
  }
48457
- const bytes = import_bytes7.arrayify(hexBytes);
48331
+ const bytes = import_bytes6.arrayify(hexBytes);
48458
48332
  if (coinInfo.p2pkh != null) {
48459
48333
  const p2pkh = hexBytes.match(/^0x76a9([0-9a-f][0-9a-f])([0-9a-f]*)88ac$/);
48460
48334
  if (p2pkh) {
48461
48335
  const length = parseInt(p2pkh[1], 16);
48462
48336
  if (p2pkh[2].length === length * 2 && length >= 1 && length <= 75) {
48463
- return base58Encode(import_bytes7.concat([[coinInfo.p2pkh], "0x" + p2pkh[2]]));
48337
+ return base58Encode(import_bytes6.concat([[coinInfo.p2pkh], "0x" + p2pkh[2]]));
48464
48338
  }
48465
48339
  }
48466
48340
  }
@@ -48469,23 +48343,23 @@ class Resolver {
48469
48343
  if (p2sh) {
48470
48344
  const length = parseInt(p2sh[1], 16);
48471
48345
  if (p2sh[2].length === length * 2 && length >= 1 && length <= 75) {
48472
- return base58Encode(import_bytes7.concat([[coinInfo.p2sh], "0x" + p2sh[2]]));
48346
+ return base58Encode(import_bytes6.concat([[coinInfo.p2sh], "0x" + p2sh[2]]));
48473
48347
  }
48474
48348
  }
48475
48349
  }
48476
48350
  if (coinInfo.prefix != null) {
48477
48351
  const length = bytes[1];
48478
- let version12 = bytes[0];
48479
- if (version12 === 0) {
48352
+ let version11 = bytes[0];
48353
+ if (version11 === 0) {
48480
48354
  if (length !== 20 && length !== 32) {
48481
- version12 = -1;
48355
+ version11 = -1;
48482
48356
  }
48483
48357
  } else {
48484
- version12 = -1;
48358
+ version11 = -1;
48485
48359
  }
48486
- if (version12 >= 0 && bytes.length === 2 + length && length >= 1 && length <= 75) {
48360
+ if (version11 >= 0 && bytes.length === 2 + length && length >= 1 && length <= 75) {
48487
48361
  const words = import_bech32.default.toWords(bytes.slice(2));
48488
- words.unshift(version12);
48362
+ words.unshift(version11);
48489
48363
  return import_bech32.default.encode(coinInfo.prefix, words);
48490
48364
  }
48491
48365
  }
@@ -48516,7 +48390,7 @@ class Resolver {
48516
48390
  }
48517
48391
  const address = this._getAddress(coinType, hexBytes);
48518
48392
  if (address == null) {
48519
- logger10.throwError(`invalid or unsupported coin data`, Logger.errors.UNSUPPORTED_OPERATION, {
48393
+ logger9.throwError(`invalid or unsupported coin data`, Logger.errors.UNSUPPORTED_OPERATION, {
48520
48394
  operation: `getAddress(${coinType})`,
48521
48395
  coinType,
48522
48396
  data: hexBytes
@@ -48559,11 +48433,11 @@ class Resolver {
48559
48433
  return null;
48560
48434
  }
48561
48435
  const addr = yield this.provider.formatter.address(comps[0]);
48562
- const tokenId = import_bytes7.hexZeroPad(BigNumber.from(comps[1]).toHexString(), 32);
48436
+ const tokenId = import_bytes6.hexZeroPad(BigNumber.from(comps[1]).toHexString(), 32);
48563
48437
  if (scheme === "erc721") {
48564
48438
  const tokenOwner = this.provider.formatter.callAddress(yield this.provider.call({
48565
48439
  to: addr,
48566
- data: import_bytes7.hexConcat(["0x6352211e", tokenId])
48440
+ data: import_bytes6.hexConcat(["0x6352211e", tokenId])
48567
48441
  }));
48568
48442
  if (owner !== tokenOwner) {
48569
48443
  return null;
@@ -48572,7 +48446,7 @@ class Resolver {
48572
48446
  } else if (scheme === "erc1155") {
48573
48447
  const balance = BigNumber.from(yield this.provider.call({
48574
48448
  to: addr,
48575
- data: import_bytes7.hexConcat(["0x00fdd58e", import_bytes7.hexZeroPad(owner, 32), tokenId])
48449
+ data: import_bytes6.hexConcat(["0x00fdd58e", import_bytes6.hexZeroPad(owner, 32), tokenId])
48576
48450
  }));
48577
48451
  if (balance.isZero()) {
48578
48452
  return null;
@@ -48581,7 +48455,7 @@ class Resolver {
48581
48455
  }
48582
48456
  const tx = {
48583
48457
  to: this.provider.formatter.address(comps[0]),
48584
- data: import_bytes7.hexConcat([selector, tokenId])
48458
+ data: import_bytes6.hexConcat([selector, tokenId])
48585
48459
  };
48586
48460
  let metadataUrl = _parseString(yield this.provider.call(tx), 0);
48587
48461
  if (metadataUrl == null) {
@@ -48656,7 +48530,7 @@ class Resolver {
48656
48530
  return "sia://" + hash;
48657
48531
  }
48658
48532
  }
48659
- return logger10.throwError(`invalid or unsupported content hash data`, Logger.errors.UNSUPPORTED_OPERATION, {
48533
+ return logger9.throwError(`invalid or unsupported content hash data`, Logger.errors.UNSUPPORTED_OPERATION, {
48660
48534
  operation: "getContentHash()",
48661
48535
  data: hexBytes
48662
48536
  });
@@ -48665,11 +48539,11 @@ class Resolver {
48665
48539
  getText(key) {
48666
48540
  return __awaiter5(this, undefined, undefined, function* () {
48667
48541
  let keyBytes = import_strings2.toUtf8Bytes(key);
48668
- keyBytes = import_bytes7.concat([bytes32ify(64), bytes32ify(keyBytes.length), keyBytes]);
48542
+ keyBytes = import_bytes6.concat([bytes32ify(64), bytes32ify(keyBytes.length), keyBytes]);
48669
48543
  if (keyBytes.length % 32 !== 0) {
48670
- keyBytes = import_bytes7.concat([keyBytes, import_bytes7.hexZeroPad("0x", 32 - key.length % 32)]);
48544
+ keyBytes = import_bytes6.concat([keyBytes, import_bytes6.hexZeroPad("0x", 32 - key.length % 32)]);
48671
48545
  }
48672
- const hexBytes = yield this._fetchBytes("0x59d1d43c", import_bytes7.hexlify(keyBytes));
48546
+ const hexBytes = yield this._fetchBytes("0x59d1d43c", import_bytes6.hexlify(keyBytes));
48673
48547
  if (hexBytes == null || hexBytes === "0x") {
48674
48548
  return null;
48675
48549
  }
@@ -48701,7 +48575,7 @@ class BaseProvider extends Provider {
48701
48575
  import_properties6.defineReadOnly(this, "_network", knownNetwork);
48702
48576
  this.emit("network", knownNetwork, null);
48703
48577
  } else {
48704
- logger10.throwArgumentError("invalid network", "network", network);
48578
+ logger9.throwArgumentError("invalid network", "network", network);
48705
48579
  }
48706
48580
  }
48707
48581
  this._maxInternalBlockNumber = -1024;
@@ -48723,7 +48597,7 @@ class BaseProvider extends Provider {
48723
48597
  network = yield this.detectNetwork();
48724
48598
  }
48725
48599
  if (!network) {
48726
- logger10.throwError("no network detected", Logger.errors.UNKNOWN_ERROR, {});
48600
+ logger9.throwError("no network detected", Logger.errors.UNKNOWN_ERROR, {});
48727
48601
  }
48728
48602
  if (this._network == null) {
48729
48603
  if (this.anyNetwork) {
@@ -48779,11 +48653,11 @@ class BaseProvider extends Provider {
48779
48653
  }
48780
48654
  const errorMessage = result.message || "unknown error";
48781
48655
  if (result.status >= 400 && result.status < 500) {
48782
- return logger10.throwError(`response not found during CCIP fetch: ${errorMessage}`, Logger.errors.SERVER_ERROR, { url, errorMessage });
48656
+ return logger9.throwError(`response not found during CCIP fetch: ${errorMessage}`, Logger.errors.SERVER_ERROR, { url, errorMessage });
48783
48657
  }
48784
48658
  errorMessages.push(errorMessage);
48785
48659
  }
48786
- return logger10.throwError(`error encountered during CCIP fetch: ${errorMessages.map((m) => JSON.stringify(m)).join(", ")}`, Logger.errors.SERVER_ERROR, {
48660
+ return logger9.throwError(`error encountered during CCIP fetch: ${errorMessages.map((m) => JSON.stringify(m)).join(", ")}`, Logger.errors.SERVER_ERROR, {
48787
48661
  urls,
48788
48662
  errorMessages
48789
48663
  });
@@ -48858,8 +48732,8 @@ class BaseProvider extends Provider {
48858
48732
  this._emitted.block = blockNumber - 1;
48859
48733
  }
48860
48734
  if (Math.abs(this._emitted.block - blockNumber) > 1000) {
48861
- logger10.warn(`network block skew detected; skipping block events (emitted=${this._emitted.block} blockNumber${blockNumber})`);
48862
- this.emit("error", logger10.makeError("network block skew detected", Logger.errors.NETWORK_ERROR, {
48735
+ logger9.warn(`network block skew detected; skipping block events (emitted=${this._emitted.block} blockNumber${blockNumber})`);
48736
+ this.emit("error", logger9.makeError("network block skew detected", Logger.errors.NETWORK_ERROR, {
48863
48737
  blockNumber,
48864
48738
  event: "blockSkew",
48865
48739
  previousBlockNumber: this._emitted.block
@@ -48964,7 +48838,7 @@ class BaseProvider extends Provider {
48964
48838
  }
48965
48839
  detectNetwork() {
48966
48840
  return __awaiter5(this, undefined, undefined, function* () {
48967
- return logger10.throwError("provider does not support network detection", Logger.errors.UNSUPPORTED_OPERATION, {
48841
+ return logger9.throwError("provider does not support network detection", Logger.errors.UNSUPPORTED_OPERATION, {
48968
48842
  operation: "provider.detectNetwork"
48969
48843
  });
48970
48844
  });
@@ -48987,7 +48861,7 @@ class BaseProvider extends Provider {
48987
48861
  yield stall(0);
48988
48862
  return this._network;
48989
48863
  }
48990
- const error = logger10.makeError("underlying network changed", Logger.errors.NETWORK_ERROR, {
48864
+ const error = logger9.makeError("underlying network changed", Logger.errors.NETWORK_ERROR, {
48991
48865
  event: "changed",
48992
48866
  network,
48993
48867
  detectedNetwork: currentNetwork
@@ -49154,7 +49028,7 @@ class BaseProvider extends Provider {
49154
49028
  } else if (tx.data === "0x" && tx.from === tx.to && tx.value.isZero()) {
49155
49029
  reason = "cancelled";
49156
49030
  }
49157
- reject(logger10.makeError("transaction was replaced", Logger.errors.TRANSACTION_REPLACED, {
49031
+ reject(logger9.makeError("transaction was replaced", Logger.errors.TRANSACTION_REPLACED, {
49158
49032
  cancelled: reason === "replaced" || reason === "cancelled",
49159
49033
  reason,
49160
49034
  replacement: this._wrapTransaction(tx),
@@ -49191,7 +49065,7 @@ class BaseProvider extends Provider {
49191
49065
  if (alreadyDone()) {
49192
49066
  return;
49193
49067
  }
49194
- reject(logger10.makeError("timeout exceeded", Logger.errors.TIMEOUT, { timeout }));
49068
+ reject(logger9.makeError("timeout exceeded", Logger.errors.TIMEOUT, { timeout }));
49195
49069
  }, timeout);
49196
49070
  if (timer.unref) {
49197
49071
  timer.unref();
@@ -49215,7 +49089,7 @@ class BaseProvider extends Provider {
49215
49089
  try {
49216
49090
  return BigNumber.from(result);
49217
49091
  } catch (error) {
49218
- return logger10.throwError("bad result from backend", Logger.errors.SERVER_ERROR, {
49092
+ return logger9.throwError("bad result from backend", Logger.errors.SERVER_ERROR, {
49219
49093
  method: "getGasPrice",
49220
49094
  result,
49221
49095
  error
@@ -49234,7 +49108,7 @@ class BaseProvider extends Provider {
49234
49108
  try {
49235
49109
  return BigNumber.from(result);
49236
49110
  } catch (error) {
49237
- return logger10.throwError("bad result from backend", Logger.errors.SERVER_ERROR, {
49111
+ return logger9.throwError("bad result from backend", Logger.errors.SERVER_ERROR, {
49238
49112
  method: "getBalance",
49239
49113
  params,
49240
49114
  result,
@@ -49254,7 +49128,7 @@ class BaseProvider extends Provider {
49254
49128
  try {
49255
49129
  return BigNumber.from(result).toNumber();
49256
49130
  } catch (error) {
49257
- return logger10.throwError("bad result from backend", Logger.errors.SERVER_ERROR, {
49131
+ return logger9.throwError("bad result from backend", Logger.errors.SERVER_ERROR, {
49258
49132
  method: "getTransactionCount",
49259
49133
  params,
49260
49134
  result,
@@ -49272,9 +49146,9 @@ class BaseProvider extends Provider {
49272
49146
  });
49273
49147
  const result = yield this.perform("getCode", params);
49274
49148
  try {
49275
- return import_bytes7.hexlify(result);
49149
+ return import_bytes6.hexlify(result);
49276
49150
  } catch (error) {
49277
- return logger10.throwError("bad result from backend", Logger.errors.SERVER_ERROR, {
49151
+ return logger9.throwError("bad result from backend", Logger.errors.SERVER_ERROR, {
49278
49152
  method: "getCode",
49279
49153
  params,
49280
49154
  result,
@@ -49289,13 +49163,13 @@ class BaseProvider extends Provider {
49289
49163
  const params = yield import_properties6.resolveProperties({
49290
49164
  address: this._getAddress(addressOrName),
49291
49165
  blockTag: this._getBlockTag(blockTag),
49292
- position: Promise.resolve(position).then((p) => import_bytes7.hexValue(p))
49166
+ position: Promise.resolve(position).then((p) => import_bytes6.hexValue(p))
49293
49167
  });
49294
49168
  const result = yield this.perform("getStorageAt", params);
49295
49169
  try {
49296
- return import_bytes7.hexlify(result);
49170
+ return import_bytes6.hexlify(result);
49297
49171
  } catch (error) {
49298
- return logger10.throwError("bad result from backend", Logger.errors.SERVER_ERROR, {
49172
+ return logger9.throwError("bad result from backend", Logger.errors.SERVER_ERROR, {
49299
49173
  method: "getStorageAt",
49300
49174
  params,
49301
49175
  result,
@@ -49305,12 +49179,12 @@ class BaseProvider extends Provider {
49305
49179
  });
49306
49180
  }
49307
49181
  _wrapTransaction(tx, hash, startBlock) {
49308
- if (hash != null && import_bytes7.hexDataLength(hash) !== 32) {
49182
+ if (hash != null && import_bytes6.hexDataLength(hash) !== 32) {
49309
49183
  throw new Error("invalid response - sendTransaction");
49310
49184
  }
49311
49185
  const result = tx;
49312
49186
  if (hash != null && tx.hash !== hash) {
49313
- logger10.throwError("Transaction hash mismatch from Provider.sendTransaction.", Logger.errors.UNKNOWN_ERROR, { expectedHash: tx.hash, returnedHash: hash });
49187
+ logger9.throwError("Transaction hash mismatch from Provider.sendTransaction.", Logger.errors.UNKNOWN_ERROR, { expectedHash: tx.hash, returnedHash: hash });
49314
49188
  }
49315
49189
  result.wait = (confirms, timeout) => __awaiter5(this, undefined, undefined, function* () {
49316
49190
  if (confirms == null) {
@@ -49336,7 +49210,7 @@ class BaseProvider extends Provider {
49336
49210
  }
49337
49211
  this._emitted["t:" + tx.hash] = receipt.blockNumber;
49338
49212
  if (receipt.status === 0) {
49339
- logger10.throwError("transaction failed", Logger.errors.CALL_EXCEPTION, {
49213
+ logger9.throwError("transaction failed", Logger.errors.CALL_EXCEPTION, {
49340
49214
  transactionHash: tx.hash,
49341
49215
  transaction: tx,
49342
49216
  receipt
@@ -49349,7 +49223,7 @@ class BaseProvider extends Provider {
49349
49223
  sendTransaction(signedTransaction) {
49350
49224
  return __awaiter5(this, undefined, undefined, function* () {
49351
49225
  yield this.getNetwork();
49352
- const hexTx = yield Promise.resolve(signedTransaction).then((t) => import_bytes7.hexlify(t));
49226
+ const hexTx = yield Promise.resolve(signedTransaction).then((t) => import_bytes6.hexlify(t));
49353
49227
  const tx = this.formatter.transaction(signedTransaction);
49354
49228
  if (tx.confirmations == null) {
49355
49229
  tx.confirmations = 0;
@@ -49394,7 +49268,7 @@ class BaseProvider extends Provider {
49394
49268
  if (values[key] == null) {
49395
49269
  return;
49396
49270
  }
49397
- tx[key] = Promise.resolve(values[key]).then((v) => v ? import_bytes7.hexlify(v) : null);
49271
+ tx[key] = Promise.resolve(values[key]).then((v) => v ? import_bytes6.hexlify(v) : null);
49398
49272
  });
49399
49273
  return this.formatter.transactionRequest(yield import_properties6.resolveProperties(tx));
49400
49274
  });
@@ -49424,19 +49298,19 @@ class BaseProvider extends Provider {
49424
49298
  _call(transaction, blockTag, attempt) {
49425
49299
  return __awaiter5(this, undefined, undefined, function* () {
49426
49300
  if (attempt >= MAX_CCIP_REDIRECTS) {
49427
- logger10.throwError("CCIP read exceeded maximum redirections", Logger.errors.SERVER_ERROR, {
49301
+ logger9.throwError("CCIP read exceeded maximum redirections", Logger.errors.SERVER_ERROR, {
49428
49302
  redirects: attempt,
49429
49303
  transaction
49430
49304
  });
49431
49305
  }
49432
49306
  const txSender = transaction.to;
49433
49307
  const result = yield this.perform("call", { transaction, blockTag });
49434
- if (attempt >= 0 && blockTag === "latest" && txSender != null && result.substring(0, 10) === "0x556f1830" && import_bytes7.hexDataLength(result) % 32 === 4) {
49308
+ if (attempt >= 0 && blockTag === "latest" && txSender != null && result.substring(0, 10) === "0x556f1830" && import_bytes6.hexDataLength(result) % 32 === 4) {
49435
49309
  try {
49436
- const data = import_bytes7.hexDataSlice(result, 4);
49437
- const sender = import_bytes7.hexDataSlice(data, 0, 32);
49310
+ const data = import_bytes6.hexDataSlice(result, 4);
49311
+ const sender = import_bytes6.hexDataSlice(data, 0, 32);
49438
49312
  if (!BigNumber.from(sender).eq(txSender)) {
49439
- logger10.throwError("CCIP Read sender did not match", Logger.errors.CALL_EXCEPTION, {
49313
+ logger9.throwError("CCIP Read sender did not match", Logger.errors.CALL_EXCEPTION, {
49440
49314
  name: "OffchainLookup",
49441
49315
  signature: "OffchainLookup(address,string[],bytes,bytes4,bytes)",
49442
49316
  transaction,
@@ -49444,13 +49318,13 @@ class BaseProvider extends Provider {
49444
49318
  });
49445
49319
  }
49446
49320
  const urls = [];
49447
- const urlsOffset = BigNumber.from(import_bytes7.hexDataSlice(data, 32, 64)).toNumber();
49448
- const urlsLength = BigNumber.from(import_bytes7.hexDataSlice(data, urlsOffset, urlsOffset + 32)).toNumber();
49449
- const urlsData = import_bytes7.hexDataSlice(data, urlsOffset + 32);
49321
+ const urlsOffset = BigNumber.from(import_bytes6.hexDataSlice(data, 32, 64)).toNumber();
49322
+ const urlsLength = BigNumber.from(import_bytes6.hexDataSlice(data, urlsOffset, urlsOffset + 32)).toNumber();
49323
+ const urlsData = import_bytes6.hexDataSlice(data, urlsOffset + 32);
49450
49324
  for (let u = 0;u < urlsLength; u++) {
49451
49325
  const url = _parseString(urlsData, u * 32);
49452
49326
  if (url == null) {
49453
- logger10.throwError("CCIP Read contained corrupt URL string", Logger.errors.CALL_EXCEPTION, {
49327
+ logger9.throwError("CCIP Read contained corrupt URL string", Logger.errors.CALL_EXCEPTION, {
49454
49328
  name: "OffchainLookup",
49455
49329
  signature: "OffchainLookup(address,string[],bytes,bytes4,bytes)",
49456
49330
  transaction,
@@ -49460,19 +49334,19 @@ class BaseProvider extends Provider {
49460
49334
  urls.push(url);
49461
49335
  }
49462
49336
  const calldata = _parseBytes(data, 64);
49463
- if (!BigNumber.from(import_bytes7.hexDataSlice(data, 100, 128)).isZero()) {
49464
- logger10.throwError("CCIP Read callback selector included junk", Logger.errors.CALL_EXCEPTION, {
49337
+ if (!BigNumber.from(import_bytes6.hexDataSlice(data, 100, 128)).isZero()) {
49338
+ logger9.throwError("CCIP Read callback selector included junk", Logger.errors.CALL_EXCEPTION, {
49465
49339
  name: "OffchainLookup",
49466
49340
  signature: "OffchainLookup(address,string[],bytes,bytes4,bytes)",
49467
49341
  transaction,
49468
49342
  data: result
49469
49343
  });
49470
49344
  }
49471
- const callbackSelector = import_bytes7.hexDataSlice(data, 96, 100);
49345
+ const callbackSelector = import_bytes6.hexDataSlice(data, 96, 100);
49472
49346
  const extraData = _parseBytes(data, 128);
49473
49347
  const ccipResult = yield this.ccipReadFetch(transaction, calldata, urls);
49474
49348
  if (ccipResult == null) {
49475
- logger10.throwError("CCIP Read disabled or provided no URLs", Logger.errors.CALL_EXCEPTION, {
49349
+ logger9.throwError("CCIP Read disabled or provided no URLs", Logger.errors.CALL_EXCEPTION, {
49476
49350
  name: "OffchainLookup",
49477
49351
  signature: "OffchainLookup(address,string[],bytes,bytes4,bytes)",
49478
49352
  transaction,
@@ -49481,7 +49355,7 @@ class BaseProvider extends Provider {
49481
49355
  }
49482
49356
  const tx = {
49483
49357
  to: txSender,
49484
- data: import_bytes7.hexConcat([callbackSelector, encodeBytes([ccipResult, extraData])])
49358
+ data: import_bytes6.hexConcat([callbackSelector, encodeBytes([ccipResult, extraData])])
49485
49359
  };
49486
49360
  return this._call(tx, blockTag, attempt + 1);
49487
49361
  } catch (error) {
@@ -49491,9 +49365,9 @@ class BaseProvider extends Provider {
49491
49365
  }
49492
49366
  }
49493
49367
  try {
49494
- return import_bytes7.hexlify(result);
49368
+ return import_bytes6.hexlify(result);
49495
49369
  } catch (error) {
49496
- return logger10.throwError("bad result from backend", Logger.errors.SERVER_ERROR, {
49370
+ return logger9.throwError("bad result from backend", Logger.errors.SERVER_ERROR, {
49497
49371
  method: "call",
49498
49372
  params: { transaction, blockTag },
49499
49373
  result,
@@ -49523,7 +49397,7 @@ class BaseProvider extends Provider {
49523
49397
  try {
49524
49398
  return BigNumber.from(result);
49525
49399
  } catch (error) {
49526
- return logger10.throwError("bad result from backend", Logger.errors.SERVER_ERROR, {
49400
+ return logger9.throwError("bad result from backend", Logger.errors.SERVER_ERROR, {
49527
49401
  method: "estimateGas",
49528
49402
  params,
49529
49403
  result,
@@ -49536,11 +49410,11 @@ class BaseProvider extends Provider {
49536
49410
  return __awaiter5(this, undefined, undefined, function* () {
49537
49411
  addressOrName = yield addressOrName;
49538
49412
  if (typeof addressOrName !== "string") {
49539
- logger10.throwArgumentError("invalid address or ENS name", "name", addressOrName);
49413
+ logger9.throwArgumentError("invalid address or ENS name", "name", addressOrName);
49540
49414
  }
49541
49415
  const address = yield this.resolveName(addressOrName);
49542
49416
  if (address == null) {
49543
- logger10.throwError("ENS name not configured", Logger.errors.UNSUPPORTED_OPERATION, {
49417
+ logger9.throwError("ENS name not configured", Logger.errors.UNSUPPORTED_OPERATION, {
49544
49418
  operation: `resolveName(${JSON.stringify(addressOrName)})`
49545
49419
  });
49546
49420
  }
@@ -49555,16 +49429,16 @@ class BaseProvider extends Provider {
49555
49429
  const params = {
49556
49430
  includeTransactions: !!includeTransactions
49557
49431
  };
49558
- if (import_bytes7.isHexString(blockHashOrBlockTag, 32)) {
49432
+ if (import_bytes6.isHexString(blockHashOrBlockTag, 32)) {
49559
49433
  params.blockHash = blockHashOrBlockTag;
49560
49434
  } else {
49561
49435
  try {
49562
49436
  params.blockTag = yield this._getBlockTag(blockHashOrBlockTag);
49563
- if (import_bytes7.isHexString(params.blockTag)) {
49437
+ if (import_bytes6.isHexString(params.blockTag)) {
49564
49438
  blockNumber = parseInt(params.blockTag.substring(2), 16);
49565
49439
  }
49566
49440
  } catch (error) {
49567
- logger10.throwArgumentError("invalid block hash or block tag", "blockHashOrBlockTag", blockHashOrBlockTag);
49441
+ logger9.throwArgumentError("invalid block hash or block tag", "blockHashOrBlockTag", blockHashOrBlockTag);
49568
49442
  }
49569
49443
  }
49570
49444
  return import_web.poll(() => __awaiter5(this, undefined, undefined, function* () {
@@ -49696,7 +49570,7 @@ class BaseProvider extends Provider {
49696
49570
  blockTag = yield blockTag;
49697
49571
  if (typeof blockTag === "number" && blockTag < 0) {
49698
49572
  if (blockTag % 1) {
49699
- logger10.throwArgumentError("invalid BlockTag", "blockTag", blockTag);
49573
+ logger9.throwArgumentError("invalid BlockTag", "blockTag", blockTag);
49700
49574
  }
49701
49575
  let blockNumber = yield this._getInternalBlockNumber(100 + 2 * this.pollingInterval);
49702
49576
  blockNumber += blockTag;
@@ -49737,7 +49611,7 @@ class BaseProvider extends Provider {
49737
49611
  }
49738
49612
  const network = yield this.getNetwork();
49739
49613
  if (!network.ensAddress) {
49740
- logger10.throwError("network does not support ENS", Logger.errors.UNSUPPORTED_OPERATION, { operation, network: network.name });
49614
+ logger9.throwError("network does not support ENS", Logger.errors.UNSUPPORTED_OPERATION, { operation, network: network.name });
49741
49615
  }
49742
49616
  try {
49743
49617
  const addrData = yield this.call({
@@ -49755,12 +49629,12 @@ class BaseProvider extends Provider {
49755
49629
  try {
49756
49630
  return Promise.resolve(this.formatter.address(name));
49757
49631
  } catch (error) {
49758
- if (import_bytes7.isHexString(name)) {
49632
+ if (import_bytes6.isHexString(name)) {
49759
49633
  throw error;
49760
49634
  }
49761
49635
  }
49762
49636
  if (typeof name !== "string") {
49763
- logger10.throwArgumentError("invalid ENS name", "name", name);
49637
+ logger9.throwArgumentError("invalid ENS name", "name", name);
49764
49638
  }
49765
49639
  const resolver = yield this.getResolver(name);
49766
49640
  if (!resolver) {
@@ -49792,7 +49666,7 @@ class BaseProvider extends Provider {
49792
49666
  getAvatar(nameOrAddress) {
49793
49667
  return __awaiter5(this, undefined, undefined, function* () {
49794
49668
  let resolver = null;
49795
- if (import_bytes7.isHexString(nameOrAddress)) {
49669
+ if (import_bytes6.isHexString(nameOrAddress)) {
49796
49670
  const address = this.formatter.address(nameOrAddress);
49797
49671
  const node = address.substring(2).toLowerCase() + ".addr.reverse";
49798
49672
  const resolverAddress = yield this._getResolver(node, "getAvatar");
@@ -49836,7 +49710,7 @@ class BaseProvider extends Provider {
49836
49710
  });
49837
49711
  }
49838
49712
  perform(method, params) {
49839
- return logger10.throwError(method + " not implemented", Logger.errors.NOT_IMPLEMENTED, { operation: method });
49713
+ return logger9.throwError(method + " not implemented", Logger.errors.NOT_IMPLEMENTED, { operation: method });
49840
49714
  }
49841
49715
  _startEvent(event) {
49842
49716
  this.polling = this._events.filter((e) => e.pollable()).length > 0;
@@ -49947,7 +49821,7 @@ var import_properties10 = __toESM(require_lib4());
49947
49821
  var import_properties8 = __toESM(require_lib4());
49948
49822
 
49949
49823
  // node_modules/@ethersproject/providers/lib.esm/json-rpc-provider.js
49950
- var import_bytes8 = __toESM(require_lib2());
49824
+ var import_bytes7 = __toESM(require_lib2());
49951
49825
  var import_hash3 = __toESM(require_lib12());
49952
49826
  var import_properties7 = __toESM(require_lib4());
49953
49827
  var import_strings3 = __toESM(require_lib9());
@@ -49980,14 +49854,14 @@ var __awaiter6 = function(thisArg, _arguments, P, generator) {
49980
49854
  step((generator = generator.apply(thisArg, _arguments || [])).next());
49981
49855
  });
49982
49856
  };
49983
- var logger11 = new Logger(version11);
49857
+ var logger10 = new Logger(version10);
49984
49858
  var errorGas = ["call", "estimateGas"];
49985
49859
  function spelunk(value, requireData) {
49986
49860
  if (value == null) {
49987
49861
  return null;
49988
49862
  }
49989
49863
  if (typeof value.message === "string" && value.message.match("reverted")) {
49990
- const data = import_bytes8.isHexString(value.data) ? value.data : null;
49864
+ const data = import_bytes7.isHexString(value.data) ? value.data : null;
49991
49865
  if (!requireData || data) {
49992
49866
  return { message: value.message, data };
49993
49867
  }
@@ -50015,7 +49889,7 @@ function checkError(method, error, params) {
50015
49889
  if (result) {
50016
49890
  return result.data;
50017
49891
  }
50018
- logger11.throwError("missing revert data in call exception; Transaction reverted without a reason string", Logger.errors.CALL_EXCEPTION, {
49892
+ logger10.throwError("missing revert data in call exception; Transaction reverted without a reason string", Logger.errors.CALL_EXCEPTION, {
50019
49893
  data: "0x",
50020
49894
  transaction,
50021
49895
  error
@@ -50027,7 +49901,7 @@ function checkError(method, error, params) {
50027
49901
  result = spelunk(error, false);
50028
49902
  }
50029
49903
  if (result) {
50030
- logger11.throwError("cannot estimate gas; transaction may fail or may require manual gas limit", Logger.errors.UNPREDICTABLE_GAS_LIMIT, {
49904
+ logger10.throwError("cannot estimate gas; transaction may fail or may require manual gas limit", Logger.errors.UNPREDICTABLE_GAS_LIMIT, {
50031
49905
  reason: result.message,
50032
49906
  method,
50033
49907
  transaction,
@@ -50045,35 +49919,35 @@ function checkError(method, error, params) {
50045
49919
  }
50046
49920
  message = (message || "").toLowerCase();
50047
49921
  if (message.match(/insufficient funds|base fee exceeds gas limit|InsufficientFunds/i)) {
50048
- logger11.throwError("insufficient funds for intrinsic transaction cost", Logger.errors.INSUFFICIENT_FUNDS, {
49922
+ logger10.throwError("insufficient funds for intrinsic transaction cost", Logger.errors.INSUFFICIENT_FUNDS, {
50049
49923
  error,
50050
49924
  method,
50051
49925
  transaction
50052
49926
  });
50053
49927
  }
50054
49928
  if (message.match(/nonce (is )?too low/i)) {
50055
- logger11.throwError("nonce has already been used", Logger.errors.NONCE_EXPIRED, {
49929
+ logger10.throwError("nonce has already been used", Logger.errors.NONCE_EXPIRED, {
50056
49930
  error,
50057
49931
  method,
50058
49932
  transaction
50059
49933
  });
50060
49934
  }
50061
49935
  if (message.match(/replacement transaction underpriced|transaction gas price.*too low/i)) {
50062
- logger11.throwError("replacement fee too low", Logger.errors.REPLACEMENT_UNDERPRICED, {
49936
+ logger10.throwError("replacement fee too low", Logger.errors.REPLACEMENT_UNDERPRICED, {
50063
49937
  error,
50064
49938
  method,
50065
49939
  transaction
50066
49940
  });
50067
49941
  }
50068
49942
  if (message.match(/only replay-protected/i)) {
50069
- logger11.throwError("legacy pre-eip-155 transactions not supported", Logger.errors.UNSUPPORTED_OPERATION, {
49943
+ logger10.throwError("legacy pre-eip-155 transactions not supported", Logger.errors.UNSUPPORTED_OPERATION, {
50070
49944
  error,
50071
49945
  method,
50072
49946
  transaction
50073
49947
  });
50074
49948
  }
50075
49949
  if (errorGas.indexOf(method) >= 0 && message.match(/gas required exceeds allowance|always failing transaction|execution reverted|revert/)) {
50076
- logger11.throwError("cannot estimate gas; transaction may fail or may require manual gas limit", Logger.errors.UNPREDICTABLE_GAS_LIMIT, {
49950
+ logger10.throwError("cannot estimate gas; transaction may fail or may require manual gas limit", Logger.errors.UNPREDICTABLE_GAS_LIMIT, {
50077
49951
  error,
50078
49952
  method,
50079
49953
  transaction
@@ -50120,11 +49994,11 @@ class JsonRpcSigner extends Signer {
50120
49994
  import_properties7.defineReadOnly(this, "_index", addressOrIndex);
50121
49995
  import_properties7.defineReadOnly(this, "_address", null);
50122
49996
  } else {
50123
- logger11.throwArgumentError("invalid address or index", "addressOrIndex", addressOrIndex);
49997
+ logger10.throwArgumentError("invalid address or index", "addressOrIndex", addressOrIndex);
50124
49998
  }
50125
49999
  }
50126
50000
  connect(provider) {
50127
- return logger11.throwError("cannot alter JSON-RPC Signer connection", Logger.errors.UNSUPPORTED_OPERATION, {
50001
+ return logger10.throwError("cannot alter JSON-RPC Signer connection", Logger.errors.UNSUPPORTED_OPERATION, {
50128
50002
  operation: "connect"
50129
50003
  });
50130
50004
  }
@@ -50137,7 +50011,7 @@ class JsonRpcSigner extends Signer {
50137
50011
  }
50138
50012
  return this.provider.send("eth_accounts", []).then((accounts) => {
50139
50013
  if (accounts.length <= this._index) {
50140
- logger11.throwError("unknown account #" + this._index, Logger.errors.UNSUPPORTED_OPERATION, {
50014
+ logger10.throwError("unknown account #" + this._index, Logger.errors.UNSUPPORTED_OPERATION, {
50141
50015
  operation: "getAddress"
50142
50016
  });
50143
50017
  }
@@ -50164,7 +50038,7 @@ class JsonRpcSigner extends Signer {
50164
50038
  }
50165
50039
  const address = yield this.provider.resolveName(to);
50166
50040
  if (address == null) {
50167
- logger11.throwArgumentError("provided ENS name resolves to null", "tx.to", to);
50041
+ logger10.throwArgumentError("provided ENS name resolves to null", "tx.to", to);
50168
50042
  }
50169
50043
  return address;
50170
50044
  }));
@@ -50175,7 +50049,7 @@ class JsonRpcSigner extends Signer {
50175
50049
  }).then(({ tx, sender }) => {
50176
50050
  if (tx.from != null) {
50177
50051
  if (tx.from.toLowerCase() !== sender) {
50178
- logger11.throwArgumentError("from address mismatch", "transaction", transaction);
50052
+ logger10.throwArgumentError("from address mismatch", "transaction", transaction);
50179
50053
  }
50180
50054
  } else {
50181
50055
  tx.from = sender;
@@ -50185,7 +50059,7 @@ class JsonRpcSigner extends Signer {
50185
50059
  return hash;
50186
50060
  }, (error) => {
50187
50061
  if (typeof error.message === "string" && error.message.match(/user denied/i)) {
50188
- logger11.throwError("user rejected transaction", Logger.errors.ACTION_REJECTED, {
50062
+ logger10.throwError("user rejected transaction", Logger.errors.ACTION_REJECTED, {
50189
50063
  action: "sendTransaction",
50190
50064
  transaction: tx
50191
50065
  });
@@ -50195,7 +50069,7 @@ class JsonRpcSigner extends Signer {
50195
50069
  });
50196
50070
  }
50197
50071
  signTransaction(transaction) {
50198
- return logger11.throwError("signing transactions is unsupported", Logger.errors.UNSUPPORTED_OPERATION, {
50072
+ return logger10.throwError("signing transactions is unsupported", Logger.errors.UNSUPPORTED_OPERATION, {
50199
50073
  operation: "signTransaction"
50200
50074
  });
50201
50075
  }
@@ -50222,10 +50096,10 @@ class JsonRpcSigner extends Signer {
50222
50096
  const data = typeof message === "string" ? import_strings3.toUtf8Bytes(message) : message;
50223
50097
  const address = yield this.getAddress();
50224
50098
  try {
50225
- return yield this.provider.send("personal_sign", [import_bytes8.hexlify(data), address.toLowerCase()]);
50099
+ return yield this.provider.send("personal_sign", [import_bytes7.hexlify(data), address.toLowerCase()]);
50226
50100
  } catch (error) {
50227
50101
  if (typeof error.message === "string" && error.message.match(/user denied/i)) {
50228
- logger11.throwError("user rejected signing", Logger.errors.ACTION_REJECTED, {
50102
+ logger10.throwError("user rejected signing", Logger.errors.ACTION_REJECTED, {
50229
50103
  action: "signMessage",
50230
50104
  from: address,
50231
50105
  messageData: message
@@ -50240,10 +50114,10 @@ class JsonRpcSigner extends Signer {
50240
50114
  const data = typeof message === "string" ? import_strings3.toUtf8Bytes(message) : message;
50241
50115
  const address = yield this.getAddress();
50242
50116
  try {
50243
- return yield this.provider.send("eth_sign", [address.toLowerCase(), import_bytes8.hexlify(data)]);
50117
+ return yield this.provider.send("eth_sign", [address.toLowerCase(), import_bytes7.hexlify(data)]);
50244
50118
  } catch (error) {
50245
50119
  if (typeof error.message === "string" && error.message.match(/user denied/i)) {
50246
- logger11.throwError("user rejected signing", Logger.errors.ACTION_REJECTED, {
50120
+ logger10.throwError("user rejected signing", Logger.errors.ACTION_REJECTED, {
50247
50121
  action: "_legacySignMessage",
50248
50122
  from: address,
50249
50123
  messageData: message
@@ -50266,7 +50140,7 @@ class JsonRpcSigner extends Signer {
50266
50140
  ]);
50267
50141
  } catch (error) {
50268
50142
  if (typeof error.message === "string" && error.message.match(/user denied/i)) {
50269
- logger11.throwError("user rejected signing", Logger.errors.ACTION_REJECTED, {
50143
+ logger10.throwError("user rejected signing", Logger.errors.ACTION_REJECTED, {
50270
50144
  action: "_signTypedData",
50271
50145
  from: address,
50272
50146
  messageData: { domain: populated.domain, types: types2, value: populated.value }
@@ -50380,14 +50254,14 @@ class JsonRpcProvider extends BaseProvider {
50380
50254
  try {
50381
50255
  return getNetwork2(BigNumber.from(chainId).toNumber());
50382
50256
  } catch (error) {
50383
- return logger11.throwError("could not detect network", Logger.errors.NETWORK_ERROR, {
50257
+ return logger10.throwError("could not detect network", Logger.errors.NETWORK_ERROR, {
50384
50258
  chainId,
50385
50259
  event: "invalidNetwork",
50386
50260
  serverError: error
50387
50261
  });
50388
50262
  }
50389
50263
  }
50390
- return logger11.throwError("could not detect network", Logger.errors.NETWORK_ERROR, {
50264
+ return logger10.throwError("could not detect network", Logger.errors.NETWORK_ERROR, {
50391
50265
  event: "noNetwork"
50392
50266
  });
50393
50267
  });
@@ -50457,7 +50331,7 @@ class JsonRpcProvider extends BaseProvider {
50457
50331
  case "getCode":
50458
50332
  return ["eth_getCode", [getLowerCase(params.address), params.blockTag]];
50459
50333
  case "getStorageAt":
50460
- return ["eth_getStorageAt", [getLowerCase(params.address), import_bytes8.hexZeroPad(params.position, 32), params.blockTag]];
50334
+ return ["eth_getStorageAt", [getLowerCase(params.address), import_bytes7.hexZeroPad(params.position, 32), params.blockTag]];
50461
50335
  case "sendTransaction":
50462
50336
  return ["eth_sendRawTransaction", [params.signedTransaction]];
50463
50337
  case "getBlock":
@@ -50506,7 +50380,7 @@ class JsonRpcProvider extends BaseProvider {
50506
50380
  }
50507
50381
  const args = this.prepareRequest(method, params);
50508
50382
  if (args == null) {
50509
- logger11.throwError(method + " not implemented", Logger.errors.NOT_IMPLEMENTED, { operation: method });
50383
+ logger10.throwError(method + " not implemented", Logger.errors.NOT_IMPLEMENTED, { operation: method });
50510
50384
  }
50511
50385
  try {
50512
50386
  return yield this.send(args[0], args[1]);
@@ -50583,7 +50457,7 @@ class JsonRpcProvider extends BaseProvider {
50583
50457
  if (transaction[key] == null) {
50584
50458
  return;
50585
50459
  }
50586
- const value = import_bytes8.hexValue(BigNumber.from(transaction[key]));
50460
+ const value = import_bytes7.hexValue(BigNumber.from(transaction[key]));
50587
50461
  if (key === "gasLimit") {
50588
50462
  key = "gas";
50589
50463
  }
@@ -50593,7 +50467,7 @@ class JsonRpcProvider extends BaseProvider {
50593
50467
  if (transaction[key] == null) {
50594
50468
  return;
50595
50469
  }
50596
- result[key] = import_bytes8.hexlify(transaction[key]);
50470
+ result[key] = import_bytes7.hexlify(transaction[key]);
50597
50471
  });
50598
50472
  if (transaction.accessList) {
50599
50473
  result["accessList"] = import_transactions4.accessListify(transaction.accessList);
@@ -50610,9 +50484,9 @@ try {
50610
50484
  throw new Error("inject please");
50611
50485
  }
50612
50486
  } catch (error) {
50613
- const logger12 = new Logger(version11);
50487
+ const logger11 = new Logger(version10);
50614
50488
  WS = function() {
50615
- logger12.throwError("WebSockets not supported in this environment", Logger.errors.UNSUPPORTED_OPERATION, {
50489
+ logger11.throwError("WebSockets not supported in this environment", Logger.errors.UNSUPPORTED_OPERATION, {
50616
50490
  operation: "new WebSocket()"
50617
50491
  });
50618
50492
  };
@@ -50646,13 +50520,13 @@ var __awaiter7 = function(thisArg, _arguments, P, generator) {
50646
50520
  step((generator = generator.apply(thisArg, _arguments || [])).next());
50647
50521
  });
50648
50522
  };
50649
- var logger12 = new Logger(version11);
50523
+ var logger11 = new Logger(version10);
50650
50524
  var NextId = 1;
50651
50525
 
50652
50526
  class WebSocketProvider extends JsonRpcProvider {
50653
50527
  constructor(url, network) {
50654
50528
  if (network === "any") {
50655
- logger12.throwError("WebSocketProvider does not support 'any' network yet", Logger.errors.UNSUPPORTED_OPERATION, {
50529
+ logger11.throwError("WebSocketProvider does not support 'any' network yet", Logger.errors.UNSUPPORTED_OPERATION, {
50656
50530
  operation: "network:any"
50657
50531
  });
50658
50532
  }
@@ -50736,12 +50610,12 @@ class WebSocketProvider extends JsonRpcProvider {
50736
50610
  return 0;
50737
50611
  }
50738
50612
  resetEventsBlock(blockNumber) {
50739
- logger12.throwError("cannot reset events block on WebSocketProvider", Logger.errors.UNSUPPORTED_OPERATION, {
50613
+ logger11.throwError("cannot reset events block on WebSocketProvider", Logger.errors.UNSUPPORTED_OPERATION, {
50740
50614
  operation: "resetEventBlock"
50741
50615
  });
50742
50616
  }
50743
50617
  set pollingInterval(value) {
50744
- logger12.throwError("cannot set polling interval on WebSocketProvider", Logger.errors.UNSUPPORTED_OPERATION, {
50618
+ logger11.throwError("cannot set polling interval on WebSocketProvider", Logger.errors.UNSUPPORTED_OPERATION, {
50745
50619
  operation: "setPollingInterval"
50746
50620
  });
50747
50621
  }
@@ -50754,7 +50628,7 @@ class WebSocketProvider extends JsonRpcProvider {
50754
50628
  if (!value) {
50755
50629
  return;
50756
50630
  }
50757
- logger12.throwError("cannot set polling on WebSocketProvider", Logger.errors.UNSUPPORTED_OPERATION, {
50631
+ logger11.throwError("cannot set polling on WebSocketProvider", Logger.errors.UNSUPPORTED_OPERATION, {
50758
50632
  operation: "setPolling"
50759
50633
  });
50760
50634
  }
@@ -50918,7 +50792,7 @@ var __awaiter8 = function(thisArg, _arguments, P, generator) {
50918
50792
  step((generator = generator.apply(thisArg, _arguments || [])).next());
50919
50793
  });
50920
50794
  };
50921
- var logger13 = new Logger(version11);
50795
+ var logger12 = new Logger(version10);
50922
50796
 
50923
50797
  class StaticJsonRpcProvider extends JsonRpcProvider {
50924
50798
  detectNetwork() {
@@ -50930,7 +50804,7 @@ class StaticJsonRpcProvider extends JsonRpcProvider {
50930
50804
  if (network == null) {
50931
50805
  network = yield _super.detectNetwork.call(this);
50932
50806
  if (!network) {
50933
- logger13.throwError("no network detected", Logger.errors.UNKNOWN_ERROR, {});
50807
+ logger12.throwError("no network detected", Logger.errors.UNKNOWN_ERROR, {});
50934
50808
  }
50935
50809
  if (this._network == null) {
50936
50810
  import_properties9.defineReadOnly(this, "_network", network);
@@ -50944,7 +50818,7 @@ class StaticJsonRpcProvider extends JsonRpcProvider {
50944
50818
 
50945
50819
  class UrlJsonRpcProvider extends StaticJsonRpcProvider {
50946
50820
  constructor(network, apiKey) {
50947
- logger13.checkAbstract(new.target, UrlJsonRpcProvider);
50821
+ logger12.checkAbstract(new.target, UrlJsonRpcProvider);
50948
50822
  network = import_properties9.getStatic(new.target, "getNetwork")(network);
50949
50823
  apiKey = import_properties9.getStatic(new.target, "getApiKey")(apiKey);
50950
50824
  const connection = import_properties9.getStatic(new.target, "getUrl")(network, apiKey);
@@ -50958,13 +50832,13 @@ class UrlJsonRpcProvider extends StaticJsonRpcProvider {
50958
50832
  }
50959
50833
  }
50960
50834
  _startPending() {
50961
- logger13.warn("WARNING: API provider does not support pending filters");
50835
+ logger12.warn("WARNING: API provider does not support pending filters");
50962
50836
  }
50963
50837
  isCommunityResource() {
50964
50838
  return false;
50965
50839
  }
50966
50840
  getSigner(address) {
50967
- return logger13.throwError("API provider does not support signing", Logger.errors.UNSUPPORTED_OPERATION, { operation: "getSigner" });
50841
+ return logger12.throwError("API provider does not support signing", Logger.errors.UNSUPPORTED_OPERATION, { operation: "getSigner" });
50968
50842
  }
50969
50843
  listAccounts() {
50970
50844
  return Promise.resolve([]);
@@ -50973,14 +50847,14 @@ class UrlJsonRpcProvider extends StaticJsonRpcProvider {
50973
50847
  return apiKey;
50974
50848
  }
50975
50849
  static getUrl(network, apiKey) {
50976
- return logger13.throwError("not implemented; sub-classes must override getUrl", Logger.errors.NOT_IMPLEMENTED, {
50850
+ return logger12.throwError("not implemented; sub-classes must override getUrl", Logger.errors.NOT_IMPLEMENTED, {
50977
50851
  operation: "getUrl"
50978
50852
  });
50979
50853
  }
50980
50854
  }
50981
50855
 
50982
50856
  // node_modules/@ethersproject/providers/lib.esm/alchemy-provider.js
50983
- var logger14 = new Logger(version11);
50857
+ var logger13 = new Logger(version10);
50984
50858
  var defaultApiKey = "_gg7wSSi0KMBsdKnGVfHDueq6xMB9EkC";
50985
50859
 
50986
50860
  class AlchemyWebSocketProvider extends WebSocketProvider {
@@ -51004,7 +50878,7 @@ class AlchemyProvider extends UrlJsonRpcProvider {
51004
50878
  return defaultApiKey;
51005
50879
  }
51006
50880
  if (apiKey && typeof apiKey !== "string") {
51007
- logger14.throwArgumentError("invalid apiKey", "apiKey", apiKey);
50881
+ logger13.throwArgumentError("invalid apiKey", "apiKey", apiKey);
51008
50882
  }
51009
50883
  return apiKey;
51010
50884
  }
@@ -51036,7 +50910,7 @@ class AlchemyProvider extends UrlJsonRpcProvider {
51036
50910
  host = "opt-goerli.g.alchemy.com/v2/";
51037
50911
  break;
51038
50912
  default:
51039
- logger14.throwArgumentError("unsupported network", "network", arguments[0]);
50913
+ logger13.throwArgumentError("unsupported network", "network", arguments[0]);
51040
50914
  }
51041
50915
  return {
51042
50916
  allowGzip: true,
@@ -51055,7 +50929,7 @@ class AlchemyProvider extends UrlJsonRpcProvider {
51055
50929
  }
51056
50930
 
51057
50931
  // node_modules/@ethersproject/providers/lib.esm/ankr-provider.js
51058
- var logger15 = new Logger(version11);
50932
+ var logger14 = new Logger(version10);
51059
50933
  var defaultApiKey2 = "9f7d929b018cdffb338517efa06f58359e86ff1ffd350bc889738523659e7972";
51060
50934
  function getHost(name) {
51061
50935
  switch (name) {
@@ -51072,7 +50946,7 @@ function getHost(name) {
51072
50946
  case "arbitrum":
51073
50947
  return "rpc.ankr.com/arbitrum/";
51074
50948
  }
51075
- return logger15.throwArgumentError("unsupported network", "name", name);
50949
+ return logger14.throwArgumentError("unsupported network", "name", name);
51076
50950
  }
51077
50951
 
51078
50952
  class AnkrProvider extends UrlJsonRpcProvider {
@@ -51135,12 +51009,12 @@ var __awaiter9 = function(thisArg, _arguments, P, generator) {
51135
51009
  step((generator = generator.apply(thisArg, _arguments || [])).next());
51136
51010
  });
51137
51011
  };
51138
- var logger16 = new Logger(version11);
51012
+ var logger15 = new Logger(version10);
51139
51013
 
51140
51014
  class CloudflareProvider extends UrlJsonRpcProvider {
51141
51015
  static getApiKey(apiKey) {
51142
51016
  if (apiKey != null) {
51143
- logger16.throwArgumentError("apiKey not supported for cloudflare", "apiKey", apiKey);
51017
+ logger15.throwArgumentError("apiKey not supported for cloudflare", "apiKey", apiKey);
51144
51018
  }
51145
51019
  return null;
51146
51020
  }
@@ -51151,7 +51025,7 @@ class CloudflareProvider extends UrlJsonRpcProvider {
51151
51025
  host = "https://cloudflare-eth.com/";
51152
51026
  break;
51153
51027
  default:
51154
- logger16.throwArgumentError("unsupported network", "network", arguments[0]);
51028
+ logger15.throwArgumentError("unsupported network", "network", arguments[0]);
51155
51029
  }
51156
51030
  return host;
51157
51031
  }
@@ -51170,7 +51044,7 @@ class CloudflareProvider extends UrlJsonRpcProvider {
51170
51044
  }
51171
51045
 
51172
51046
  // node_modules/@ethersproject/providers/lib.esm/etherscan-provider.js
51173
- var import_bytes9 = __toESM(require_lib2());
51047
+ var import_bytes8 = __toESM(require_lib2());
51174
51048
  var import_properties11 = __toESM(require_lib4());
51175
51049
  var import_transactions5 = __toESM(require_lib15());
51176
51050
  var import_web3 = __toESM(require_lib23());
@@ -51201,7 +51075,7 @@ var __awaiter10 = function(thisArg, _arguments, P, generator) {
51201
51075
  step((generator = generator.apply(thisArg, _arguments || [])).next());
51202
51076
  });
51203
51077
  };
51204
- var logger17 = new Logger(version11);
51078
+ var logger16 = new Logger(version10);
51205
51079
  function getTransactionPostData(transaction) {
51206
51080
  const result = {};
51207
51081
  for (let key in transaction) {
@@ -51213,13 +51087,13 @@ function getTransactionPostData(transaction) {
51213
51087
  continue;
51214
51088
  }
51215
51089
  if ({ type: true, gasLimit: true, gasPrice: true, maxFeePerGs: true, maxPriorityFeePerGas: true, nonce: true, value: true }[key]) {
51216
- value = import_bytes9.hexValue(import_bytes9.hexlify(value));
51090
+ value = import_bytes8.hexValue(import_bytes8.hexlify(value));
51217
51091
  } else if (key === "accessList") {
51218
51092
  value = "[" + import_transactions5.accessListify(value).map((set) => {
51219
51093
  return `{address:"${set.address}",storageKeys:["${set.storageKeys.join('","')}"]}`;
51220
51094
  }).join(",") + "]";
51221
51095
  } else {
51222
- value = import_bytes9.hexlify(value);
51096
+ value = import_bytes8.hexlify(value);
51223
51097
  }
51224
51098
  result[key] = value;
51225
51099
  }
@@ -51280,10 +51154,10 @@ function checkError2(method, error, transaction) {
51280
51154
  if (data) {
51281
51155
  data = "0x" + data.replace(/^.*0x/i, "");
51282
51156
  }
51283
- if (import_bytes9.isHexString(data)) {
51157
+ if (import_bytes8.isHexString(data)) {
51284
51158
  return data;
51285
51159
  }
51286
- logger17.throwError("missing revert data in call exception", Logger.errors.CALL_EXCEPTION, {
51160
+ logger16.throwError("missing revert data in call exception", Logger.errors.CALL_EXCEPTION, {
51287
51161
  error,
51288
51162
  data: "0x"
51289
51163
  });
@@ -51301,28 +51175,28 @@ function checkError2(method, error, transaction) {
51301
51175
  }
51302
51176
  message = (message || "").toLowerCase();
51303
51177
  if (message.match(/insufficient funds/)) {
51304
- logger17.throwError("insufficient funds for intrinsic transaction cost", Logger.errors.INSUFFICIENT_FUNDS, {
51178
+ logger16.throwError("insufficient funds for intrinsic transaction cost", Logger.errors.INSUFFICIENT_FUNDS, {
51305
51179
  error,
51306
51180
  method,
51307
51181
  transaction
51308
51182
  });
51309
51183
  }
51310
51184
  if (message.match(/same hash was already imported|transaction nonce is too low|nonce too low/)) {
51311
- logger17.throwError("nonce has already been used", Logger.errors.NONCE_EXPIRED, {
51185
+ logger16.throwError("nonce has already been used", Logger.errors.NONCE_EXPIRED, {
51312
51186
  error,
51313
51187
  method,
51314
51188
  transaction
51315
51189
  });
51316
51190
  }
51317
51191
  if (message.match(/another transaction with same nonce/)) {
51318
- logger17.throwError("replacement fee too low", Logger.errors.REPLACEMENT_UNDERPRICED, {
51192
+ logger16.throwError("replacement fee too low", Logger.errors.REPLACEMENT_UNDERPRICED, {
51319
51193
  error,
51320
51194
  method,
51321
51195
  transaction
51322
51196
  });
51323
51197
  }
51324
51198
  if (message.match(/execution failed due to an exception|execution reverted/)) {
51325
- logger17.throwError("cannot estimate gas; transaction may fail or may require manual gas limit", Logger.errors.UNPREDICTABLE_GAS_LIMIT, {
51199
+ logger16.throwError("cannot estimate gas; transaction may fail or may require manual gas limit", Logger.errors.UNPREDICTABLE_GAS_LIMIT, {
51326
51200
  error,
51327
51201
  method,
51328
51202
  transaction
@@ -51359,7 +51233,7 @@ class EtherscanProvider extends BaseProvider {
51359
51233
  return "https://api-goerli-optimistic.etherscan.io";
51360
51234
  default:
51361
51235
  }
51362
- return logger17.throwArgumentError("unsupported network", "network", this.network.name);
51236
+ return logger16.throwArgumentError("unsupported network", "network", this.network.name);
51363
51237
  }
51364
51238
  getUrl(module2, params) {
51365
51239
  const query = Object.keys(params).reduce((accum, key) => {
@@ -51519,12 +51393,12 @@ class EtherscanProvider extends BaseProvider {
51519
51393
  }
51520
51394
  if (params.filter.topics && params.filter.topics.length > 0) {
51521
51395
  if (params.filter.topics.length > 1) {
51522
- logger17.throwError("unsupported topic count", Logger.errors.UNSUPPORTED_OPERATION, { topics: params.filter.topics });
51396
+ logger16.throwError("unsupported topic count", Logger.errors.UNSUPPORTED_OPERATION, { topics: params.filter.topics });
51523
51397
  }
51524
51398
  if (params.filter.topics.length === 1) {
51525
51399
  const topic0 = params.filter.topics[0];
51526
51400
  if (typeof topic0 !== "string" || topic0.length !== 66) {
51527
- logger17.throwError("unsupported topic format", Logger.errors.UNSUPPORTED_OPERATION, { topic0 });
51401
+ logger16.throwError("unsupported topic format", Logger.errors.UNSUPPORTED_OPERATION, { topic0 });
51528
51402
  }
51529
51403
  args.topic0 = topic0;
51530
51404
  }
@@ -51590,7 +51464,7 @@ class EtherscanProvider extends BaseProvider {
51590
51464
  }
51591
51465
 
51592
51466
  // node_modules/@ethersproject/providers/lib.esm/fallback-provider.js
51593
- var import_bytes10 = __toESM(require_lib2());
51467
+ var import_bytes9 = __toESM(require_lib2());
51594
51468
  var import_properties12 = __toESM(require_lib4());
51595
51469
  var import_random2 = __toESM(require_lib21());
51596
51470
  var import_web4 = __toESM(require_lib23());
@@ -51621,7 +51495,7 @@ var __awaiter11 = function(thisArg, _arguments, P, generator) {
51621
51495
  step((generator = generator.apply(thisArg, _arguments || [])).next());
51622
51496
  });
51623
51497
  };
51624
- var logger18 = new Logger(version11);
51498
+ var logger17 = new Logger(version10);
51625
51499
  function now() {
51626
51500
  return new Date().getTime();
51627
51501
  }
@@ -51634,7 +51508,7 @@ function checkNetworks(networks2) {
51634
51508
  }
51635
51509
  if (result) {
51636
51510
  if (!(result.name === network.name && result.chainId === network.chainId && (result.ensAddress === network.ensAddress || result.ensAddress == null && network.ensAddress == null))) {
51637
- logger18.throwArgumentError("provider mismatch", "networks", networks2);
51511
+ logger17.throwArgumentError("provider mismatch", "networks", networks2);
51638
51512
  }
51639
51513
  } else {
51640
51514
  result = network;
@@ -51870,23 +51744,23 @@ function getRunner(config, currentBlockNumber, method, params) {
51870
51744
  case "getBalance":
51871
51745
  case "getTransactionCount":
51872
51746
  case "getCode":
51873
- if (params.blockTag && import_bytes10.isHexString(params.blockTag)) {
51747
+ if (params.blockTag && import_bytes9.isHexString(params.blockTag)) {
51874
51748
  provider = yield waitForSync(config, currentBlockNumber);
51875
51749
  }
51876
51750
  return provider[method](params.address, params.blockTag || "latest");
51877
51751
  case "getStorageAt":
51878
- if (params.blockTag && import_bytes10.isHexString(params.blockTag)) {
51752
+ if (params.blockTag && import_bytes9.isHexString(params.blockTag)) {
51879
51753
  provider = yield waitForSync(config, currentBlockNumber);
51880
51754
  }
51881
51755
  return provider.getStorageAt(params.address, params.position, params.blockTag || "latest");
51882
51756
  case "getBlock":
51883
- if (params.blockTag && import_bytes10.isHexString(params.blockTag)) {
51757
+ if (params.blockTag && import_bytes9.isHexString(params.blockTag)) {
51884
51758
  provider = yield waitForSync(config, currentBlockNumber);
51885
51759
  }
51886
51760
  return provider[params.includeTransactions ? "getBlockWithTransactions" : "getBlock"](params.blockTag || params.blockHash);
51887
51761
  case "call":
51888
51762
  case "estimateGas":
51889
- if (params.blockTag && import_bytes10.isHexString(params.blockTag)) {
51763
+ if (params.blockTag && import_bytes9.isHexString(params.blockTag)) {
51890
51764
  provider = yield waitForSync(config, currentBlockNumber);
51891
51765
  }
51892
51766
  if (method === "call" && params.blockTag) {
@@ -51898,13 +51772,13 @@ function getRunner(config, currentBlockNumber, method, params) {
51898
51772
  return provider[method](params.transactionHash);
51899
51773
  case "getLogs": {
51900
51774
  let filter = params.filter;
51901
- if (filter.fromBlock && import_bytes10.isHexString(filter.fromBlock) || filter.toBlock && import_bytes10.isHexString(filter.toBlock)) {
51775
+ if (filter.fromBlock && import_bytes9.isHexString(filter.fromBlock) || filter.toBlock && import_bytes9.isHexString(filter.toBlock)) {
51902
51776
  provider = yield waitForSync(config, currentBlockNumber);
51903
51777
  }
51904
51778
  return provider.getLogs(filter);
51905
51779
  }
51906
51780
  }
51907
- return logger18.throwError("unknown method error", Logger.errors.UNKNOWN_ERROR, {
51781
+ return logger17.throwError("unknown method error", Logger.errors.UNKNOWN_ERROR, {
51908
51782
  method,
51909
51783
  params
51910
51784
  });
@@ -51914,7 +51788,7 @@ function getRunner(config, currentBlockNumber, method, params) {
51914
51788
  class FallbackProvider extends BaseProvider {
51915
51789
  constructor(providers, quorum) {
51916
51790
  if (providers.length === 0) {
51917
- logger18.throwArgumentError("missing providers", "providers", providers);
51791
+ logger17.throwArgumentError("missing providers", "providers", providers);
51918
51792
  }
51919
51793
  const providerConfigs = providers.map((configOrProvider, index) => {
51920
51794
  if (Provider.isProvider(configOrProvider)) {
@@ -51934,7 +51808,7 @@ class FallbackProvider extends BaseProvider {
51934
51808
  }
51935
51809
  const weight = config.weight;
51936
51810
  if (weight % 1 || weight > 512 || weight < 1) {
51937
- logger18.throwArgumentError("invalid weight; must be integer in [1, 512]", `providers[${index}].weight`, weight);
51811
+ logger17.throwArgumentError("invalid weight; must be integer in [1, 512]", `providers[${index}].weight`, weight);
51938
51812
  }
51939
51813
  return Object.freeze(config);
51940
51814
  });
@@ -51942,7 +51816,7 @@ class FallbackProvider extends BaseProvider {
51942
51816
  if (quorum == null) {
51943
51817
  quorum = total / 2;
51944
51818
  } else if (quorum > total) {
51945
- logger18.throwArgumentError("quorum will always fail; larger than total weight", "quorum", quorum);
51819
+ logger17.throwArgumentError("quorum will always fail; larger than total weight", "quorum", quorum);
51946
51820
  }
51947
51821
  let networkOrReady = checkNetworks(providerConfigs.map((c) => c.provider.network));
51948
51822
  if (networkOrReady == null) {
@@ -52099,7 +51973,7 @@ class FallbackProvider extends BaseProvider {
52099
51973
  }
52100
51974
  props[name] = e[name];
52101
51975
  });
52102
- logger18.throwError(e.reason || e.message, errorCode, props);
51976
+ logger17.throwError(e.reason || e.message, errorCode, props);
52103
51977
  });
52104
51978
  if (configs.filter((c) => !c.done).length === 0) {
52105
51979
  break;
@@ -52111,7 +51985,7 @@ class FallbackProvider extends BaseProvider {
52111
51985
  }
52112
51986
  c.cancelled = true;
52113
51987
  });
52114
- return logger18.throwError("failed to meet quorum", Logger.errors.SERVER_ERROR, {
51988
+ return logger17.throwError("failed to meet quorum", Logger.errors.SERVER_ERROR, {
52115
51989
  method,
52116
51990
  params,
52117
51991
  results: configs.map((c) => exposeDebugConfig(c)),
@@ -52126,7 +52000,7 @@ var IpcProvider = null;
52126
52000
 
52127
52001
  // node_modules/@ethersproject/providers/lib.esm/infura-provider.js
52128
52002
  var import_properties13 = __toESM(require_lib4());
52129
- var logger19 = new Logger(version11);
52003
+ var logger18 = new Logger(version10);
52130
52004
  var defaultProjectId = "84842078b09946638c03157f83405213";
52131
52005
 
52132
52006
  class InfuraWebSocketProvider extends WebSocketProvider {
@@ -52134,7 +52008,7 @@ class InfuraWebSocketProvider extends WebSocketProvider {
52134
52008
  const provider = new InfuraProvider(network, apiKey);
52135
52009
  const connection = provider.connection;
52136
52010
  if (connection.password) {
52137
- logger19.throwError("INFURA WebSocket project secrets unsupported", Logger.errors.UNSUPPORTED_OPERATION, {
52011
+ logger18.throwError("INFURA WebSocket project secrets unsupported", Logger.errors.UNSUPPORTED_OPERATION, {
52138
52012
  operation: "InfuraProvider.getWebSocketProvider()"
52139
52013
  });
52140
52014
  }
@@ -52165,8 +52039,8 @@ class InfuraProvider extends UrlJsonRpcProvider {
52165
52039
  if (typeof apiKey === "string") {
52166
52040
  apiKeyObj.projectId = apiKey;
52167
52041
  } else if (apiKey.projectSecret != null) {
52168
- logger19.assertArgument(typeof apiKey.projectId === "string", "projectSecret requires a projectId", "projectId", apiKey.projectId);
52169
- logger19.assertArgument(typeof apiKey.projectSecret === "string", "invalid projectSecret", "projectSecret", "[REDACTED]");
52042
+ logger18.assertArgument(typeof apiKey.projectId === "string", "projectSecret requires a projectId", "projectId", apiKey.projectId);
52043
+ logger18.assertArgument(typeof apiKey.projectSecret === "string", "invalid projectSecret", "projectSecret", "[REDACTED]");
52170
52044
  apiKeyObj.projectId = apiKey.projectId;
52171
52045
  apiKeyObj.projectSecret = apiKey.projectSecret;
52172
52046
  } else if (apiKey.projectId) {
@@ -52206,7 +52080,7 @@ class InfuraProvider extends UrlJsonRpcProvider {
52206
52080
  host = "arbitrum-goerli.infura.io";
52207
52081
  break;
52208
52082
  default:
52209
- logger19.throwError("unsupported network", Logger.errors.INVALID_ARGUMENT, {
52083
+ logger18.throwError("unsupported network", Logger.errors.INVALID_ARGUMENT, {
52210
52084
  argument: "network",
52211
52085
  value: network
52212
52086
  });
@@ -52299,18 +52173,18 @@ class JsonRpcBatchProvider extends JsonRpcProvider {
52299
52173
  }
52300
52174
 
52301
52175
  // node_modules/@ethersproject/providers/lib.esm/nodesmith-provider.js
52302
- var logger20 = new Logger(version11);
52176
+ var logger19 = new Logger(version10);
52303
52177
  var defaultApiKey3 = "ETHERS_JS_SHARED";
52304
52178
 
52305
52179
  class NodesmithProvider extends UrlJsonRpcProvider {
52306
52180
  static getApiKey(apiKey) {
52307
52181
  if (apiKey && typeof apiKey !== "string") {
52308
- logger20.throwArgumentError("invalid apiKey", "apiKey", apiKey);
52182
+ logger19.throwArgumentError("invalid apiKey", "apiKey", apiKey);
52309
52183
  }
52310
52184
  return apiKey || defaultApiKey3;
52311
52185
  }
52312
52186
  static getUrl(network, apiKey) {
52313
- logger20.warn("NodeSmith will be discontinued on 2019-12-20; please migrate to another platform.");
52187
+ logger19.warn("NodeSmith will be discontinued on 2019-12-20; please migrate to another platform.");
52314
52188
  let host = null;
52315
52189
  switch (network.name) {
52316
52190
  case "homestead":
@@ -52329,14 +52203,14 @@ class NodesmithProvider extends UrlJsonRpcProvider {
52329
52203
  host = "https://ethereum.api.nodesmith.io/v1/kovan/jsonrpc";
52330
52204
  break;
52331
52205
  default:
52332
- logger20.throwArgumentError("unsupported network", "network", arguments[0]);
52206
+ logger19.throwArgumentError("unsupported network", "network", arguments[0]);
52333
52207
  }
52334
52208
  return host + "?apiKey=" + apiKey;
52335
52209
  }
52336
52210
  }
52337
52211
 
52338
52212
  // node_modules/@ethersproject/providers/lib.esm/pocket-provider.js
52339
- var logger21 = new Logger(version11);
52213
+ var logger20 = new Logger(version10);
52340
52214
  var defaultApplicationId = "62e1ad51b37b8e00394bda3b";
52341
52215
 
52342
52216
  class PocketProvider extends UrlJsonRpcProvider {
@@ -52356,7 +52230,7 @@ class PocketProvider extends UrlJsonRpcProvider {
52356
52230
  } else if (apiKey.applicationId) {
52357
52231
  apiKeyObj.applicationId = apiKey.applicationId;
52358
52232
  } else {
52359
- logger21.throwArgumentError("unsupported PocketProvider apiKey", "apiKey", apiKey);
52233
+ logger20.throwArgumentError("unsupported PocketProvider apiKey", "apiKey", apiKey);
52360
52234
  }
52361
52235
  return apiKeyObj;
52362
52236
  }
@@ -52385,7 +52259,7 @@ class PocketProvider extends UrlJsonRpcProvider {
52385
52259
  host = "eth-ropsten.gateway.pokt.network";
52386
52260
  break;
52387
52261
  default:
52388
- logger21.throwError("unsupported network", Logger.errors.INVALID_ARGUMENT, {
52262
+ logger20.throwError("unsupported network", Logger.errors.INVALID_ARGUMENT, {
52389
52263
  argument: "network",
52390
52264
  value: network
52391
52265
  });
@@ -52405,7 +52279,7 @@ class PocketProvider extends UrlJsonRpcProvider {
52405
52279
 
52406
52280
  // node_modules/@ethersproject/providers/lib.esm/web3-provider.js
52407
52281
  var import_properties15 = __toESM(require_lib4());
52408
- var logger22 = new Logger(version11);
52282
+ var logger21 = new Logger(version10);
52409
52283
  var _nextId = 1;
52410
52284
  function buildWeb3LegacyFetcher(provider, sendFunc) {
52411
52285
  const fetcher = "Web3LegacyFetcher";
@@ -52489,7 +52363,7 @@ function buildEip1193Fetcher(provider) {
52489
52363
  class Web3Provider extends JsonRpcProvider {
52490
52364
  constructor(provider, network) {
52491
52365
  if (provider == null) {
52492
- logger22.throwArgumentError("missing provider", "provider", provider);
52366
+ logger21.throwArgumentError("missing provider", "provider", provider);
52493
52367
  }
52494
52368
  let path = null;
52495
52369
  let jsonRpcFetchFunc = null;
@@ -52513,7 +52387,7 @@ class Web3Provider extends JsonRpcProvider {
52513
52387
  } else if (provider.send) {
52514
52388
  jsonRpcFetchFunc = buildWeb3LegacyFetcher(provider, provider.send.bind(provider));
52515
52389
  } else {
52516
- logger22.throwArgumentError("unsupported provider", "provider", provider);
52390
+ logger21.throwArgumentError("unsupported provider", "provider", provider);
52517
52391
  }
52518
52392
  if (!path) {
52519
52393
  path = "unknown:";
@@ -52529,7 +52403,7 @@ class Web3Provider extends JsonRpcProvider {
52529
52403
  }
52530
52404
 
52531
52405
  // node_modules/@ethersproject/providers/lib.esm/index.js
52532
- var logger23 = new Logger(version11);
52406
+ var logger22 = new Logger(version10);
52533
52407
  function getDefaultProvider(network, options) {
52534
52408
  if (network == null) {
52535
52409
  network = "homestead";
@@ -52545,13 +52419,13 @@ function getDefaultProvider(network, options) {
52545
52419
  case "wss":
52546
52420
  return new WebSocketProvider(network);
52547
52421
  default:
52548
- logger23.throwArgumentError("unsupported URL scheme", "network", network);
52422
+ logger22.throwArgumentError("unsupported URL scheme", "network", network);
52549
52423
  }
52550
52424
  }
52551
52425
  }
52552
52426
  const n = getNetwork(network);
52553
52427
  if (!n || !n._defaultProvider) {
52554
- logger23.throwError("unsupported getDefaultProvider network", Logger.errors.NETWORK_ERROR, {
52428
+ logger22.throwError("unsupported getDefaultProvider network", Logger.errors.NETWORK_ERROR, {
52555
52429
  operation: "getDefaultProvider",
52556
52430
  network
52557
52431
  });
@@ -52576,15 +52450,15 @@ var import_hash4 = __toESM(require_lib12());
52576
52450
  var import_properties16 = __toESM(require_lib4());
52577
52451
 
52578
52452
  // node_modules/@ethersproject/wordlists/lib.esm/_version.js
52579
- var version12 = "wordlists/5.7.0";
52453
+ var version11 = "wordlists/5.7.0";
52580
52454
 
52581
52455
  // node_modules/@ethersproject/wordlists/lib.esm/wordlist.js
52582
52456
  var exportWordlist = false;
52583
- var logger24 = new Logger(version12);
52457
+ var logger23 = new Logger(version11);
52584
52458
 
52585
52459
  class Wordlist {
52586
52460
  constructor(locale) {
52587
- logger24.checkAbstract(new.target, Wordlist);
52461
+ logger23.checkAbstract(new.target, Wordlist);
52588
52462
  import_properties16.defineReadOnly(this, "locale", locale);
52589
52463
  }
52590
52464
  split(mnemonic) {
@@ -52661,14 +52535,14 @@ var wordlists = {
52661
52535
  // node_modules/ethers/lib.esm/utils.js
52662
52536
  var exports_utils = {};
52663
52537
  __export(exports_utils, {
52664
- zeroPad: () => import_bytes11.zeroPad,
52538
+ zeroPad: () => import_bytes10.zeroPad,
52665
52539
  verifyTypedData: () => verifyTypedData,
52666
52540
  verifyMessage: () => verifyMessage,
52667
52541
  toUtf8String: () => import_strings4.toUtf8String,
52668
52542
  toUtf8CodePoints: () => import_strings4.toUtf8CodePoints,
52669
52543
  toUtf8Bytes: () => import_strings4.toUtf8Bytes,
52670
- stripZeros: () => import_bytes11.stripZeros,
52671
- splitSignature: () => import_bytes11.splitSignature,
52544
+ stripZeros: () => import_bytes10.stripZeros,
52545
+ splitSignature: () => import_bytes10.splitSignature,
52672
52546
  soliditySha256: () => import_solidity.sha256,
52673
52547
  solidityPack: () => import_solidity.pack,
52674
52548
  solidityKeccak256: () => import_solidity.keccak256,
@@ -52691,29 +52565,29 @@ __export(exports_utils, {
52691
52565
  namehash: () => import_hash5.namehash,
52692
52566
  mnemonicToSeed: () => import_hdnode2.mnemonicToSeed,
52693
52567
  mnemonicToEntropy: () => import_hdnode2.mnemonicToEntropy,
52694
- keccak256: () => import_keccak2563.keccak256,
52695
- joinSignature: () => import_bytes11.joinSignature,
52568
+ keccak256: () => import_keccak2562.keccak256,
52569
+ joinSignature: () => import_bytes10.joinSignature,
52696
52570
  isValidName: () => import_hash5.isValidName,
52697
52571
  isValidMnemonic: () => import_hdnode2.isValidMnemonic,
52698
- isHexString: () => import_bytes11.isHexString,
52699
- isBytesLike: () => import_bytes11.isBytesLike,
52700
- isBytes: () => import_bytes11.isBytes,
52701
- isAddress: () => isAddress,
52572
+ isHexString: () => import_bytes10.isHexString,
52573
+ isBytesLike: () => import_bytes10.isBytesLike,
52574
+ isBytes: () => import_bytes10.isBytes,
52575
+ isAddress: () => import_address5.isAddress,
52702
52576
  id: () => import_hash5.id,
52703
- hexlify: () => import_bytes11.hexlify,
52704
- hexZeroPad: () => import_bytes11.hexZeroPad,
52705
- hexValue: () => import_bytes11.hexValue,
52706
- hexStripZeros: () => import_bytes11.hexStripZeros,
52707
- hexDataSlice: () => import_bytes11.hexDataSlice,
52708
- hexDataLength: () => import_bytes11.hexDataLength,
52709
- hexConcat: () => import_bytes11.hexConcat,
52577
+ hexlify: () => import_bytes10.hexlify,
52578
+ hexZeroPad: () => import_bytes10.hexZeroPad,
52579
+ hexValue: () => import_bytes10.hexValue,
52580
+ hexStripZeros: () => import_bytes10.hexStripZeros,
52581
+ hexDataSlice: () => import_bytes10.hexDataSlice,
52582
+ hexDataLength: () => import_bytes10.hexDataLength,
52583
+ hexConcat: () => import_bytes10.hexConcat,
52710
52584
  hashMessage: () => import_hash5.hashMessage,
52711
52585
  getStatic: () => import_properties17.getStatic,
52712
52586
  getJsonWalletAddress: () => import_json_wallets2.getJsonWalletAddress,
52713
- getIcapAddress: () => getIcapAddress,
52714
- getCreate2Address: () => getCreate2Address,
52715
- getContractAddress: () => getContractAddress,
52716
- getAddress: () => getAddress,
52587
+ getIcapAddress: () => import_address5.getIcapAddress,
52588
+ getCreate2Address: () => import_address5.getCreate2Address,
52589
+ getContractAddress: () => import_address5.getContractAddress,
52590
+ getAddress: () => import_address5.getAddress,
52717
52591
  getAccountPath: () => import_hdnode2.getAccountPath,
52718
52592
  formatUnits: () => import_units.formatUnits,
52719
52593
  formatEther: () => import_units.formatEther,
@@ -52725,7 +52599,7 @@ __export(exports_utils, {
52725
52599
  defaultPath: () => import_hdnode2.defaultPath,
52726
52600
  defaultAbiCoder: () => import_abi2.defaultAbiCoder,
52727
52601
  deepCopy: () => import_properties17.deepCopy,
52728
- concat: () => import_bytes11.concat,
52602
+ concat: () => import_bytes10.concat,
52729
52603
  computePublicKey: () => import_signing_key2.computePublicKey,
52730
52604
  computeHmac: () => import_sha22.computeHmac,
52731
52605
  computeAddress: () => import_transactions6.computeAddress,
@@ -52734,7 +52608,7 @@ __export(exports_utils, {
52734
52608
  checkProperties: () => import_properties17.checkProperties,
52735
52609
  base64: () => base64,
52736
52610
  base58: () => import_basex2.Base58,
52737
- arrayify: () => import_bytes11.arrayify,
52611
+ arrayify: () => import_bytes10.arrayify,
52738
52612
  accessListify: () => import_transactions6.accessListify,
52739
52613
  _toEscapedUtf8String: () => import_strings4._toEscapedUtf8String,
52740
52614
  _fetchData: () => import_web6._fetchData,
@@ -52762,13 +52636,14 @@ __export(exports_utils, {
52762
52636
  AbiCoder: () => import_abi2.AbiCoder
52763
52637
  });
52764
52638
  var import_abi2 = __toESM(require_lib13());
52639
+ var import_address5 = __toESM(require_lib7());
52765
52640
  var base64 = __toESM(require_lib10());
52766
52641
  var import_basex2 = __toESM(require_lib16());
52767
- var import_bytes11 = __toESM(require_lib2());
52642
+ var import_bytes10 = __toESM(require_lib2());
52768
52643
  var import_hash5 = __toESM(require_lib12());
52769
52644
  var import_hdnode2 = __toESM(require_lib20());
52770
52645
  var import_json_wallets2 = __toESM(require_lib22());
52771
- var import_keccak2563 = __toESM(require_lib5());
52646
+ var import_keccak2562 = __toESM(require_lib5());
52772
52647
  var import_sha22 = __toESM(require_lib17());
52773
52648
  var import_solidity = __toESM(require_lib24());
52774
52649
  var import_random3 = __toESM(require_lib21());
@@ -52783,10 +52658,10 @@ var import_sha23 = __toESM(require_lib17());
52783
52658
  var import_strings5 = __toESM(require_lib9());
52784
52659
 
52785
52660
  // node_modules/ethers/lib.esm/_version.js
52786
- var version13 = "ethers/5.7.2";
52661
+ var version12 = "ethers/5.7.2";
52787
52662
 
52788
52663
  // node_modules/ethers/lib.esm/ethers.js
52789
- var logger25 = new Logger(version13);
52664
+ var logger24 = new Logger(version12);
52790
52665
 
52791
52666
  // node_modules/ethers/lib.esm/index.js
52792
52667
  try {
@@ -53763,6 +53638,9 @@ var contractsRegistry_default = {
53763
53638
  merkl: {
53764
53639
  distributor: "0x3Ef3D8bA38EBe18DB133cEc108f4D14CE00Dd9Ae"
53765
53640
  },
53641
+ sparkV1: {
53642
+ pool: "0xC13e21B648A5Ee794902342038FF3aDAB66BE987"
53643
+ },
53766
53644
  cow: {
53767
53645
  gpV2VaultRelayer: "0xC92E8bdf79f0507f65a392b0ab4667716BFE0110",
53768
53646
  cowOrderSigner: "0x23dA9AdE38E4477b23770DeD512fD37b12381FAB"
@@ -53814,7 +53692,8 @@ var contractsRegistry_default = {
53814
53692
  usds: "0xdC035D45d973E3EC169d2276DDab16f1e407384F",
53815
53693
  susds: "0xa3931d71877C0E7a3148CB7Eb4463524FEc27fbD",
53816
53694
  cusdc: "0xcccc62962d17b8914c62d74ffb843d73b2a3cccc",
53817
- stcusdc: "0x88887be419578051ff9f4eb6c858a951921d8888"
53695
+ stcusdc: "0x88887be419578051ff9f4eb6c858a951921d8888",
53696
+ wbtc: "0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599"
53818
53697
  },
53819
53698
  morpho: {
53820
53699
  morphoBlue: "0xBBBBBbbBBb9cC5e90e3b3Af64bdAF62C37EEFFCb"
@@ -53845,6 +53724,9 @@ var contractsRegistry_default = {
53845
53724
  feeLibV1USDT: "0xe171AFcd1E0394b3312e68ca823D5BC87F3Db311",
53846
53725
  stargatePoolmETH: "0x268Ca24DAefF1FaC2ed883c598200CcbB79E931d"
53847
53726
  },
53727
+ syrup: {
53728
+ institutionalUSDC1Vault: "0xC39a5A616F0ad1Ff45077FA2dE3f79ab8eb8b8B9"
53729
+ },
53848
53730
  zodiac: {
53849
53731
  rolesModule: "0x9646fDAD06d3e24444381f44362a3B0eB343D337",
53850
53732
  moduleProxyFactory: "0x000000000000aDdB49795b0f9bA5BC298cDda236",
@@ -54319,8 +54201,8 @@ class MultisendBuilder {
54319
54201
  data
54320
54202
  });
54321
54203
  }
54322
- static new(chainId, version14 = "v1_4_1") {
54323
- return new MultisendBuilder(getAddressOrThrow(chainId, `gnosisSafe.${version14}.multisend`));
54204
+ static new(chainId, version13 = "v1_4_1") {
54205
+ return new MultisendBuilder(getAddressOrThrow(chainId, `gnosisSafe.${version13}.multisend`));
54324
54206
  }
54325
54207
  }
54326
54208
  // src/integrations/gnosis/safe.L2.abi.ts
@@ -58560,6 +58442,7 @@ function invariant(condition, message) {
58560
58442
  var import_decimal = __toESM(require_decimal());
58561
58443
  var import_big = __toESM(require_big());
58562
58444
  var import_toformat = __toESM(require_toFormat());
58445
+ var import_address6 = __toESM(require_lib7());
58563
58446
  function _defineProperties(target, props) {
58564
58447
  for (var i2 = 0;i2 < props.length; i2++) {
58565
58448
  var descriptor = props[i2];
@@ -59119,7 +59002,7 @@ var NativeCurrency = /* @__PURE__ */ function(_BaseCurrency) {
59119
59002
  }(BaseCurrency);
59120
59003
  function validateAndParseAddress(address) {
59121
59004
  try {
59122
- return getAddress(address);
59005
+ return import_address6.getAddress(address);
59123
59006
  } catch (error) {
59124
59007
  throw new Error(address + " is not a valid address.");
59125
59008
  }
@@ -59196,13 +59079,13 @@ var Ether = /* @__PURE__ */ function(_NativeCurrency) {
59196
59079
  return Ether2;
59197
59080
  }(NativeCurrency);
59198
59081
  Ether._etherCache = {};
59199
- var MAX_SAFE_INTEGER2 = /* @__PURE__ */ import_jsbi.default.BigInt(Number.MAX_SAFE_INTEGER);
59082
+ var MAX_SAFE_INTEGER = /* @__PURE__ */ import_jsbi.default.BigInt(Number.MAX_SAFE_INTEGER);
59200
59083
  var ZERO = /* @__PURE__ */ import_jsbi.default.BigInt(0);
59201
59084
  var ONE2 = /* @__PURE__ */ import_jsbi.default.BigInt(1);
59202
59085
  var TWO = /* @__PURE__ */ import_jsbi.default.BigInt(2);
59203
59086
  function sqrt(value) {
59204
59087
  !import_jsbi.default.greaterThanOrEqual(value, ZERO) && invariant(false, "NEGATIVE");
59205
- if (import_jsbi.default.lessThan(value, MAX_SAFE_INTEGER2)) {
59088
+ if (import_jsbi.default.lessThan(value, MAX_SAFE_INTEGER)) {
59206
59089
  return import_jsbi.default.BigInt(Math.floor(Math.sqrt(import_jsbi.default.toNumber(value))));
59207
59090
  }
59208
59091
  var z;
@@ -59219,6 +59102,7 @@ function sqrt(value) {
59219
59102
  // node_modules/@uniswap/v3-sdk/dist/v3-sdk.esm.js
59220
59103
  var import_jsbi2 = __toESM(require_jsbi_umd());
59221
59104
  var import_abi3 = __toESM(require_lib13());
59105
+ var import_address7 = __toESM(require_lib7());
59222
59106
  var import_solidity2 = __toESM(require_lib24());
59223
59107
  // node_modules/@uniswap/v3-periphery/artifacts/contracts/interfaces/IMulticall.sol/IMulticall.json
59224
59108
  var IMulticall_default = {
@@ -63154,7 +63038,7 @@ var Q192 = /* @__PURE__ */ import_jsbi2.default.exponentiate(Q96, /* @__PURE__ *
63154
63038
  function computePoolAddress(_ref) {
63155
63039
  var { factoryAddress, tokenA, tokenB, fee, initCodeHashManualOverride } = _ref;
63156
63040
  var _ref2 = tokenA.sortsBefore(tokenB) ? [tokenA, tokenB] : [tokenB, tokenA], token0 = _ref2[0], token1 = _ref2[1];
63157
- return getCreate2Address(factoryAddress, import_solidity2.keccak256(["bytes"], [import_abi3.defaultAbiCoder.encode(["address", "address", "uint24"], [token0.address, token1.address, fee])]), initCodeHashManualOverride != null ? initCodeHashManualOverride : POOL_INIT_CODE_HASH);
63041
+ return import_address7.getCreate2Address(factoryAddress, import_solidity2.keccak256(["bytes"], [import_abi3.defaultAbiCoder.encode(["address", "address", "uint24"], [token0.address, token1.address, fee])]), initCodeHashManualOverride != null ? initCodeHashManualOverride : POOL_INIT_CODE_HASH);
63158
63042
  }
63159
63043
  var LiquidityMath = /* @__PURE__ */ function() {
63160
63044
  function LiquidityMath2() {}
@@ -64527,8 +64411,9 @@ var import_jsbi3 = __toESM(require_jsbi_umd());
64527
64411
  var import_decimal2 = __toESM(require_decimal());
64528
64412
  var import_big2 = __toESM(require_big());
64529
64413
  var import_toformat2 = __toESM(require_toFormat());
64530
- var import_bytes12 = __toESM(require_lib2());
64531
- var import_keccak2564 = __toESM(require_lib5());
64414
+ var import_address8 = __toESM(require_lib7());
64415
+ var import_bytes11 = __toESM(require_lib2());
64416
+ var import_keccak2563 = __toESM(require_lib5());
64532
64417
  var import_strings6 = __toESM(require_lib9());
64533
64418
  function _defineProperties3(e, r) {
64534
64419
  for (var t = 0;t < r.length; t++) {
@@ -65233,7 +65118,7 @@ var NativeCurrency2 = /* @__PURE__ */ function(_BaseCurrency) {
65233
65118
  }(BaseCurrency3);
65234
65119
  function validateAndParseAddress2(address) {
65235
65120
  try {
65236
- return getAddress(address);
65121
+ return import_address8.getAddress(address);
65237
65122
  } catch (error) {
65238
65123
  throw new Error(address + " is not a valid address.");
65239
65124
  }
@@ -65337,18 +65222,18 @@ function computeZksyncCreate2Address(sender, bytecodeHash, salt, input) {
65337
65222
  if (input === undefined) {
65338
65223
  input = "0x";
65339
65224
  }
65340
- var prefix2 = import_keccak2564.keccak256(import_strings6.toUtf8Bytes("zksyncCreate2"));
65341
- var inputHash = import_keccak2564.keccak256(input);
65342
- var addressBytes = import_keccak2564.keccak256(import_bytes12.concat([prefix2, import_bytes12.hexZeroPad(sender, 32), salt, bytecodeHash, inputHash])).slice(26);
65343
- return getAddress(addressBytes);
65225
+ var prefix2 = import_keccak2563.keccak256(import_strings6.toUtf8Bytes("zksyncCreate2"));
65226
+ var inputHash = import_keccak2563.keccak256(input);
65227
+ var addressBytes = import_keccak2563.keccak256(import_bytes11.concat([prefix2, import_bytes11.hexZeroPad(sender, 32), salt, bytecodeHash, inputHash])).slice(26);
65228
+ return import_address8.getAddress(addressBytes);
65344
65229
  }
65345
- var MAX_SAFE_INTEGER3 = /* @__PURE__ */ import_jsbi3.default.BigInt(Number.MAX_SAFE_INTEGER);
65230
+ var MAX_SAFE_INTEGER2 = /* @__PURE__ */ import_jsbi3.default.BigInt(Number.MAX_SAFE_INTEGER);
65346
65231
  var ZERO3 = /* @__PURE__ */ import_jsbi3.default.BigInt(0);
65347
65232
  var ONE4 = /* @__PURE__ */ import_jsbi3.default.BigInt(1);
65348
65233
  var TWO3 = /* @__PURE__ */ import_jsbi3.default.BigInt(2);
65349
65234
  function sqrt2(value) {
65350
65235
  !import_jsbi3.default.greaterThanOrEqual(value, ZERO3) && invariant(false, "NEGATIVE");
65351
- if (import_jsbi3.default.lessThan(value, MAX_SAFE_INTEGER3)) {
65236
+ if (import_jsbi3.default.lessThan(value, MAX_SAFE_INTEGER2)) {
65352
65237
  return import_jsbi3.default.BigInt(Math.floor(Math.sqrt(import_jsbi3.default.toNumber(value))));
65353
65238
  }
65354
65239
  var z;
@@ -65365,6 +65250,7 @@ function sqrt2(value) {
65365
65250
  // node_modules/@uniswap/v4-sdk/node_modules/@uniswap/v3-sdk/dist/v3-sdk.esm.js
65366
65251
  var import_jsbi4 = __toESM(require_jsbi_umd());
65367
65252
  var import_abi4 = __toESM(require_lib13());
65253
+ var import_address9 = __toESM(require_lib7());
65368
65254
  var import_solidity3 = __toESM(require_lib24());
65369
65255
  function _arrayLikeToArray2(r, a) {
65370
65256
  (a == null || a > r.length) && (a = r.length);
@@ -65816,7 +65702,7 @@ function computePoolAddress2(_ref) {
65816
65702
  case ChainId2.ZKSYNC:
65817
65703
  return computeZksyncCreate2Address(factoryAddress, initCodeHash, salt);
65818
65704
  default:
65819
- return getCreate2Address(factoryAddress, salt, initCodeHash);
65705
+ return import_address9.getCreate2Address(factoryAddress, salt, initCodeHash);
65820
65706
  }
65821
65707
  }
65822
65708
  var FullMath2 = /* @__PURE__ */ function() {
@@ -69671,7 +69557,7 @@ var SwapExactInputSingleCalldataV4 = ({
69671
69557
  hookData = "0x",
69672
69558
  recipient
69673
69559
  }) => {
69674
- const getAddress2 = (currency) => {
69560
+ const getAddress7 = (currency) => {
69675
69561
  return currency.address;
69676
69562
  };
69677
69563
  const commands = exports_ethers.utils.solidityPack(["uint8"], [16 /* V4_SWAP */]);
@@ -69679,15 +69565,15 @@ var SwapExactInputSingleCalldataV4 = ({
69679
69565
  const params = [
69680
69566
  exports_ethers.utils.defaultAbiCoder.encode(["tuple(tuple(address,address,uint24,int24,address),bool,uint128,uint128,bytes)"], [
69681
69567
  [
69682
- [getAddress2(pool.currency0), getAddress2(pool.currency1), pool.fee, pool.tickSpacing, pool.hooks],
69568
+ [getAddress7(pool.currency0), getAddress7(pool.currency1), pool.fee, pool.tickSpacing, pool.hooks],
69683
69569
  zeroForOne,
69684
69570
  amountIn,
69685
69571
  amountOutMinimum,
69686
69572
  hookData
69687
69573
  ]
69688
69574
  ]),
69689
- exports_ethers.utils.defaultAbiCoder.encode(["address", "uint256"], [zeroForOne ? getAddress2(pool.currency0) : getAddress2(pool.currency1), amountIn]),
69690
- exports_ethers.utils.defaultAbiCoder.encode(["address", "uint256"], [zeroForOne ? getAddress2(pool.currency1) : getAddress2(pool.currency0), amountOutMinimum])
69575
+ exports_ethers.utils.defaultAbiCoder.encode(["address", "uint256"], [zeroForOne ? getAddress7(pool.currency0) : getAddress7(pool.currency1), amountIn]),
69576
+ exports_ethers.utils.defaultAbiCoder.encode(["address", "uint256"], [zeroForOne ? getAddress7(pool.currency1) : getAddress7(pool.currency0), amountOutMinimum])
69691
69577
  ];
69692
69578
  const actionsList = [];
69693
69579
  actionsList.push(Actions2.SWAP_EXACT_IN_SINGLE);
@@ -86631,4 +86517,4 @@ var simulateOrThrow = async (env2) => {
86631
86517
  };
86632
86518
  };
86633
86519
 
86634
- //# debugId=A18E1B15C0C199E464756E2164756E21
86520
+ //# debugId=0811B75EDA7480F264756E2164756E21