damm-sdk 1.2.19 → 1.2.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -14496,7 +14496,7 @@ var require_utils2 = __commonJS((exports) => {
14496
14496
  var exports_process = {};
14497
14497
  __export(exports_process, {
14498
14498
  versions: () => versions,
14499
- version: () => version7,
14499
+ version: () => version6,
14500
14500
  umask: () => umask,
14501
14501
  title: () => title,
14502
14502
  removeListener: () => removeListener,
@@ -14553,7 +14553,7 @@ function nextTick(fun) {
14553
14553
  setTimeout(drainQueue, 0);
14554
14554
  }
14555
14555
  function noop() {}
14556
- 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) {
14556
+ 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) {
14557
14557
  return [];
14558
14558
  }, binding = function(name) {
14559
14559
  throw new Error("process.binding is not supported in browser polyfill");
@@ -35385,7 +35385,7 @@ var require_lib14 = __commonJS((exports) => {
35385
35385
  var properties_1 = require_lib4();
35386
35386
  var logger_1 = require_lib();
35387
35387
  var _version_1 = require__version10();
35388
- var logger6 = new logger_1.Logger(_version_1.version);
35388
+ var logger5 = new logger_1.Logger(_version_1.version);
35389
35389
  var _curve = null;
35390
35390
  function getCurve() {
35391
35391
  if (!_curve) {
@@ -35398,7 +35398,7 @@ var require_lib14 = __commonJS((exports) => {
35398
35398
  (0, properties_1.defineReadOnly)(this, "curve", "secp256k1");
35399
35399
  (0, properties_1.defineReadOnly)(this, "privateKey", (0, bytes_1.hexlify)(privateKey));
35400
35400
  if ((0, bytes_1.hexDataLength)(this.privateKey) !== 32) {
35401
- logger6.throwArgumentError("invalid private key", "privateKey", "[[ REDACTED ]]");
35401
+ logger5.throwArgumentError("invalid private key", "privateKey", "[[ REDACTED ]]");
35402
35402
  }
35403
35403
  var keyPair = getCurve().keyFromPrivate((0, bytes_1.arrayify)(this.privateKey));
35404
35404
  (0, properties_1.defineReadOnly)(this, "publicKey", "0x" + keyPair.getPublic(false, "hex"));
@@ -35414,7 +35414,7 @@ var require_lib14 = __commonJS((exports) => {
35414
35414
  var keyPair = getCurve().keyFromPrivate((0, bytes_1.arrayify)(this.privateKey));
35415
35415
  var digestBytes = (0, bytes_1.arrayify)(digest);
35416
35416
  if (digestBytes.length !== 32) {
35417
- logger6.throwArgumentError("bad digest length", "digest", digest);
35417
+ logger5.throwArgumentError("bad digest length", "digest", digest);
35418
35418
  }
35419
35419
  var signature = keyPair.sign(digestBytes, { canonical: true });
35420
35420
  return (0, bytes_1.splitSignature)({
@@ -35459,7 +35459,7 @@ var require_lib14 = __commonJS((exports) => {
35459
35459
  }
35460
35460
  return "0x" + getCurve().keyFromPublic(bytes).getPublic(true, "hex");
35461
35461
  }
35462
- return logger6.throwArgumentError("invalid public or private key", "key", "[REDACTED]");
35462
+ return logger5.throwArgumentError("invalid public or private key", "key", "[REDACTED]");
35463
35463
  }
35464
35464
  exports.computePublicKey = computePublicKey;
35465
35465
  });
@@ -35513,7 +35513,7 @@ var require_lib15 = __commonJS((exports) => {
35513
35513
  var signing_key_1 = require_lib14();
35514
35514
  var logger_1 = require_lib();
35515
35515
  var _version_1 = require__version11();
35516
- var logger6 = new logger_1.Logger(_version_1.version);
35516
+ var logger5 = new logger_1.Logger(_version_1.version);
35517
35517
  var TransactionTypes;
35518
35518
  (function(TransactionTypes2) {
35519
35519
  TransactionTypes2[TransactionTypes2["legacy"] = 0] = "legacy";
@@ -35562,7 +35562,7 @@ var require_lib15 = __commonJS((exports) => {
35562
35562
  function formatNumber(value, name) {
35563
35563
  var result = (0, bytes_1.stripZeros)(bignumber_1.BigNumber.from(value).toHexString());
35564
35564
  if (result.length > 32) {
35565
- logger6.throwArgumentError("invalid length for " + name, "transaction:" + name, value);
35565
+ logger5.throwArgumentError("invalid length for " + name, "transaction:" + name, value);
35566
35566
  }
35567
35567
  return result;
35568
35568
  }
@@ -35571,7 +35571,7 @@ var require_lib15 = __commonJS((exports) => {
35571
35571
  address: (0, address_1.getAddress)(addr),
35572
35572
  storageKeys: (storageKeys || []).map(function(storageKey, index) {
35573
35573
  if ((0, bytes_1.hexDataLength)(storageKey) !== 32) {
35574
- logger6.throwArgumentError("invalid access list storageKey", "accessList[" + addr + ":" + index + "]", storageKey);
35574
+ logger5.throwArgumentError("invalid access list storageKey", "accessList[" + addr + ":" + index + "]", storageKey);
35575
35575
  }
35576
35576
  return storageKey.toLowerCase();
35577
35577
  })
@@ -35582,7 +35582,7 @@ var require_lib15 = __commonJS((exports) => {
35582
35582
  return value.map(function(set, index) {
35583
35583
  if (Array.isArray(set)) {
35584
35584
  if (set.length > 2) {
35585
- logger6.throwArgumentError("access list expected to be [ address, storageKeys[] ]", "value[" + index + "]", set);
35585
+ logger5.throwArgumentError("access list expected to be [ address, storageKeys[] ]", "value[" + index + "]", set);
35586
35586
  }
35587
35587
  return accessSetify(set[0], set[1]);
35588
35588
  }
@@ -35612,7 +35612,7 @@ var require_lib15 = __commonJS((exports) => {
35612
35612
  var gasPrice = bignumber_1.BigNumber.from(transaction.gasPrice);
35613
35613
  var maxFeePerGas = bignumber_1.BigNumber.from(transaction.maxFeePerGas || 0);
35614
35614
  if (!gasPrice.eq(maxFeePerGas)) {
35615
- logger6.throwArgumentError("mismatch EIP-1559 gasPrice != maxFeePerGas", "tx", {
35615
+ logger5.throwArgumentError("mismatch EIP-1559 gasPrice != maxFeePerGas", "tx", {
35616
35616
  gasPrice,
35617
35617
  maxFeePerGas
35618
35618
  });
@@ -35667,12 +35667,12 @@ var require_lib15 = __commonJS((exports) => {
35667
35667
  }
35668
35668
  value = (0, bytes_1.arrayify)((0, bytes_1.hexlify)(value, options));
35669
35669
  if (fieldInfo.length && value.length !== fieldInfo.length && value.length > 0) {
35670
- logger6.throwArgumentError("invalid length for " + fieldInfo.name, "transaction:" + fieldInfo.name, value);
35670
+ logger5.throwArgumentError("invalid length for " + fieldInfo.name, "transaction:" + fieldInfo.name, value);
35671
35671
  }
35672
35672
  if (fieldInfo.maxLength) {
35673
35673
  value = (0, bytes_1.stripZeros)(value);
35674
35674
  if (value.length > fieldInfo.maxLength) {
35675
- logger6.throwArgumentError("invalid length for " + fieldInfo.name, "transaction:" + fieldInfo.name, value);
35675
+ logger5.throwArgumentError("invalid length for " + fieldInfo.name, "transaction:" + fieldInfo.name, value);
35676
35676
  }
35677
35677
  }
35678
35678
  raw.push((0, bytes_1.hexlify)(value));
@@ -35681,7 +35681,7 @@ var require_lib15 = __commonJS((exports) => {
35681
35681
  if (transaction.chainId != null) {
35682
35682
  chainId = transaction.chainId;
35683
35683
  if (typeof chainId !== "number") {
35684
- logger6.throwArgumentError("invalid transaction.chainId", "transaction", transaction);
35684
+ logger5.throwArgumentError("invalid transaction.chainId", "transaction", transaction);
35685
35685
  }
35686
35686
  } else if (signature && !(0, bytes_1.isBytesLike)(signature) && signature.v > 28) {
35687
35687
  chainId = Math.floor((signature.v - 35) / 2);
@@ -35702,10 +35702,10 @@ var require_lib15 = __commonJS((exports) => {
35702
35702
  raw.pop();
35703
35703
  v += chainId * 2 + 8;
35704
35704
  if (sig.v > 28 && sig.v !== v) {
35705
- logger6.throwArgumentError("transaction.chainId/signature.v mismatch", "signature", signature);
35705
+ logger5.throwArgumentError("transaction.chainId/signature.v mismatch", "signature", signature);
35706
35706
  }
35707
35707
  } else if (sig.v !== v) {
35708
- logger6.throwArgumentError("transaction.chainId/signature.v mismatch", "signature", signature);
35708
+ logger5.throwArgumentError("transaction.chainId/signature.v mismatch", "signature", signature);
35709
35709
  }
35710
35710
  raw.push((0, bytes_1.hexlify)(v));
35711
35711
  raw.push((0, bytes_1.stripZeros)((0, bytes_1.arrayify)(sig.r)));
@@ -35715,7 +35715,7 @@ var require_lib15 = __commonJS((exports) => {
35715
35715
  function serialize(transaction, signature) {
35716
35716
  if (transaction.type == null || transaction.type === 0) {
35717
35717
  if (transaction.accessList != null) {
35718
- logger6.throwArgumentError("untyped transactions do not support accessList; include type: 1", "transaction", transaction);
35718
+ logger5.throwArgumentError("untyped transactions do not support accessList; include type: 1", "transaction", transaction);
35719
35719
  }
35720
35720
  return _serialize(transaction, signature);
35721
35721
  }
@@ -35727,7 +35727,7 @@ var require_lib15 = __commonJS((exports) => {
35727
35727
  default:
35728
35728
  break;
35729
35729
  }
35730
- return logger6.throwError("unsupported transaction type: " + transaction.type, logger_1.Logger.errors.UNSUPPORTED_OPERATION, {
35730
+ return logger5.throwError("unsupported transaction type: " + transaction.type, logger_1.Logger.errors.UNSUPPORTED_OPERATION, {
35731
35731
  operation: "serializeTransaction",
35732
35732
  transactionType: transaction.type
35733
35733
  });
@@ -35741,7 +35741,7 @@ var require_lib15 = __commonJS((exports) => {
35741
35741
  }
35742
35742
  tx.v = recid;
35743
35743
  } catch (error) {
35744
- logger6.throwArgumentError("invalid v for transaction type: 1", "v", fields[0]);
35744
+ logger5.throwArgumentError("invalid v for transaction type: 1", "v", fields[0]);
35745
35745
  }
35746
35746
  tx.r = (0, bytes_1.hexZeroPad)(fields[1], 32);
35747
35747
  tx.s = (0, bytes_1.hexZeroPad)(fields[2], 32);
@@ -35753,7 +35753,7 @@ var require_lib15 = __commonJS((exports) => {
35753
35753
  function _parseEip1559(payload) {
35754
35754
  var transaction = RLP.decode(payload.slice(1));
35755
35755
  if (transaction.length !== 9 && transaction.length !== 12) {
35756
- logger6.throwArgumentError("invalid component count for transaction type: 2", "payload", (0, bytes_1.hexlify)(payload));
35756
+ logger5.throwArgumentError("invalid component count for transaction type: 2", "payload", (0, bytes_1.hexlify)(payload));
35757
35757
  }
35758
35758
  var maxPriorityFeePerGas = handleNumber(transaction[2]);
35759
35759
  var maxFeePerGas = handleNumber(transaction[3]);
@@ -35780,7 +35780,7 @@ var require_lib15 = __commonJS((exports) => {
35780
35780
  function _parseEip2930(payload) {
35781
35781
  var transaction = RLP.decode(payload.slice(1));
35782
35782
  if (transaction.length !== 8 && transaction.length !== 11) {
35783
- logger6.throwArgumentError("invalid component count for transaction type: 1", "payload", (0, bytes_1.hexlify)(payload));
35783
+ logger5.throwArgumentError("invalid component count for transaction type: 1", "payload", (0, bytes_1.hexlify)(payload));
35784
35784
  }
35785
35785
  var tx = {
35786
35786
  type: 1,
@@ -35803,7 +35803,7 @@ var require_lib15 = __commonJS((exports) => {
35803
35803
  function _parse(rawTransaction) {
35804
35804
  var transaction = RLP.decode(rawTransaction);
35805
35805
  if (transaction.length !== 9 && transaction.length !== 6) {
35806
- logger6.throwArgumentError("invalid raw transaction", "rawTransaction", rawTransaction);
35806
+ logger5.throwArgumentError("invalid raw transaction", "rawTransaction", rawTransaction);
35807
35807
  }
35808
35808
  var tx = {
35809
35809
  nonce: handleNumber(transaction[0]).toNumber(),
@@ -35862,7 +35862,7 @@ var require_lib15 = __commonJS((exports) => {
35862
35862
  default:
35863
35863
  break;
35864
35864
  }
35865
- return logger6.throwError("unsupported transaction type: " + payload[0], logger_1.Logger.errors.UNSUPPORTED_OPERATION, {
35865
+ return logger5.throwError("unsupported transaction type: " + payload[0], logger_1.Logger.errors.UNSUPPORTED_OPERATION, {
35866
35866
  operation: "parseTransaction",
35867
35867
  transactionType: payload[0]
35868
35868
  });
@@ -35982,7 +35982,7 @@ var require_browser_sha2 = __commonJS((exports) => {
35982
35982
  var types_1 = require_types();
35983
35983
  var logger_1 = require_lib();
35984
35984
  var _version_1 = require__version12();
35985
- var logger7 = new logger_1.Logger(_version_1.version);
35985
+ var logger6 = new logger_1.Logger(_version_1.version);
35986
35986
  function ripemd160(data) {
35987
35987
  return "0x" + hash_js_1.default.ripemd160().update((0, bytes_1.arrayify)(data)).digest("hex");
35988
35988
  }
@@ -35997,7 +35997,7 @@ var require_browser_sha2 = __commonJS((exports) => {
35997
35997
  exports.sha512 = sha512;
35998
35998
  function computeHmac(algorithm, key, data) {
35999
35999
  if (!types_1.SupportedAlgorithm[algorithm]) {
36000
- logger7.throwError("unsupported algorithm " + algorithm, logger_1.Logger.errors.UNSUPPORTED_OPERATION, {
36000
+ logger6.throwError("unsupported algorithm " + algorithm, logger_1.Logger.errors.UNSUPPORTED_OPERATION, {
36001
36001
  operation: "hmac",
36002
36002
  algorithm
36003
36003
  });
@@ -36872,7 +36872,7 @@ var require_lib20 = __commonJS((exports) => {
36872
36872
  var wordlists_1 = require_lib19();
36873
36873
  var logger_1 = require_lib();
36874
36874
  var _version_1 = require__version14();
36875
- var logger7 = new logger_1.Logger(_version_1.version);
36875
+ var logger6 = new logger_1.Logger(_version_1.version);
36876
36876
  var N = bignumber_1.BigNumber.from("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141");
36877
36877
  var MasterSecret = (0, strings_1.toUtf8Bytes)("Bitcoin seed");
36878
36878
  var HardenedBit = 2147483648;
@@ -36895,7 +36895,7 @@ var require_lib20 = __commonJS((exports) => {
36895
36895
  if (typeof wordlist === "string") {
36896
36896
  var words = wordlists_1.wordlists[wordlist];
36897
36897
  if (words == null) {
36898
- logger7.throwArgumentError("unknown locale", "wordlist", wordlist);
36898
+ logger6.throwArgumentError("unknown locale", "wordlist", wordlist);
36899
36899
  }
36900
36900
  return words;
36901
36901
  }
@@ -37050,7 +37050,7 @@ var require_lib20 = __commonJS((exports) => {
37050
37050
  HDNode2.fromExtendedKey = function(extendedKey) {
37051
37051
  var bytes = basex_1.Base58.decode(extendedKey);
37052
37052
  if (bytes.length !== 82 || base58check(bytes.slice(0, 78)) !== extendedKey) {
37053
- logger7.throwArgumentError("invalid extended key", "extendedKey", "[REDACTED]");
37053
+ logger6.throwArgumentError("invalid extended key", "extendedKey", "[REDACTED]");
37054
37054
  }
37055
37055
  var depth = bytes[4];
37056
37056
  var parentFingerprint = (0, bytes_1.hexlify)(bytes.slice(5, 9));
@@ -37068,7 +37068,7 @@ var require_lib20 = __commonJS((exports) => {
37068
37068
  }
37069
37069
  return new HDNode2(_constructorGuard3, (0, bytes_1.hexlify)(key.slice(1)), null, parentFingerprint, chainCode, index, depth, null);
37070
37070
  }
37071
- return logger7.throwArgumentError("invalid extended key", "extendedKey", "[REDACTED]");
37071
+ return logger6.throwArgumentError("invalid extended key", "extendedKey", "[REDACTED]");
37072
37072
  };
37073
37073
  return HDNode2;
37074
37074
  }();
@@ -37083,7 +37083,7 @@ var require_lib20 = __commonJS((exports) => {
37083
37083
  exports.mnemonicToSeed = mnemonicToSeed;
37084
37084
  function mnemonicToEntropy(mnemonic, wordlist) {
37085
37085
  wordlist = getWordlist(wordlist);
37086
- logger7.checkNormalize();
37086
+ logger6.checkNormalize();
37087
37087
  var words = wordlist.split(mnemonic);
37088
37088
  if (words.length % 3 !== 0) {
37089
37089
  throw new Error("invalid mnemonic");
@@ -37151,7 +37151,7 @@ var require_lib20 = __commonJS((exports) => {
37151
37151
  exports.isValidMnemonic = isValidMnemonic;
37152
37152
  function getAccountPath(index) {
37153
37153
  if (typeof index !== "number" || index < 0 || index >= HardenedBit || index % 1) {
37154
- logger7.throwArgumentError("invalid account index", "index", index);
37154
+ logger6.throwArgumentError("invalid account index", "index", index);
37155
37155
  }
37156
37156
  return "m/44'/60'/" + index + "'/0/0";
37157
37157
  }
@@ -37172,7 +37172,7 @@ var require_browser_random = __commonJS((exports) => {
37172
37172
  var bytes_1 = require_lib2();
37173
37173
  var logger_1 = require_lib();
37174
37174
  var _version_1 = require__version15();
37175
- var logger7 = new logger_1.Logger(_version_1.version);
37175
+ var logger6 = new logger_1.Logger(_version_1.version);
37176
37176
  function getGlobal() {
37177
37177
  if (typeof self !== "undefined") {
37178
37178
  return self;
@@ -37188,10 +37188,10 @@ var require_browser_random = __commonJS((exports) => {
37188
37188
  var anyGlobal = getGlobal();
37189
37189
  var crypto2 = anyGlobal.crypto || anyGlobal.msCrypto;
37190
37190
  if (!crypto2 || !crypto2.getRandomValues) {
37191
- logger7.warn("WARNING: Missing strong random number source");
37191
+ logger6.warn("WARNING: Missing strong random number source");
37192
37192
  crypto2 = {
37193
37193
  getRandomValues: function(buffer) {
37194
- return logger7.throwError("no secure random source avaialble", logger_1.Logger.errors.UNSUPPORTED_OPERATION, {
37194
+ return logger6.throwError("no secure random source avaialble", logger_1.Logger.errors.UNSUPPORTED_OPERATION, {
37195
37195
  operation: "crypto.getRandomValues"
37196
37196
  });
37197
37197
  }
@@ -37199,7 +37199,7 @@ var require_browser_random = __commonJS((exports) => {
37199
37199
  }
37200
37200
  function randomBytes(length) {
37201
37201
  if (length <= 0 || length > 1024 || length % 1 || length != length) {
37202
- logger7.throwArgumentError("invalid length", "length", length);
37202
+ logger6.throwArgumentError("invalid length", "length", length);
37203
37203
  }
37204
37204
  var result = new Uint8Array(length);
37205
37205
  crypto2.getRandomValues(result);
@@ -37239,7 +37239,7 @@ var require_lib21 = __commonJS((exports) => {
37239
37239
  } });
37240
37240
  });
37241
37241
 
37242
- // node_modules/aes-js/index.js
37242
+ // node_modules/@ethersproject/json-wallets/node_modules/aes-js/index.js
37243
37243
  var require_aes_js = __commonJS((exports, module) => {
37244
37244
  (function(root) {
37245
37245
  function checkInt2(value) {
@@ -37893,7 +37893,7 @@ var require_crowdsale = __commonJS((exports) => {
37893
37893
  var properties_1 = require_lib4();
37894
37894
  var logger_1 = require_lib();
37895
37895
  var _version_1 = require__version16();
37896
- var logger7 = new logger_1.Logger(_version_1.version);
37896
+ var logger6 = new logger_1.Logger(_version_1.version);
37897
37897
  var utils_1 = require_utils5();
37898
37898
  var CrowdsaleAccount = function(_super) {
37899
37899
  __extends(CrowdsaleAccount2, _super);
@@ -37912,7 +37912,7 @@ var require_crowdsale = __commonJS((exports) => {
37912
37912
  var ethaddr = (0, address_1.getAddress)((0, utils_1.searchPath)(data, "ethaddr"));
37913
37913
  var encseed = (0, utils_1.looseArrayify)((0, utils_1.searchPath)(data, "encseed"));
37914
37914
  if (!encseed || encseed.length % 16 !== 0) {
37915
- logger7.throwArgumentError("invalid encseed", "json", json);
37915
+ logger6.throwArgumentError("invalid encseed", "json", json);
37916
37916
  }
37917
37917
  var key = (0, bytes_1.arrayify)((0, pbkdf2_1.pbkdf2)(password, password, 2000, 32, "sha256")).slice(0, 16);
37918
37918
  var iv = encseed.slice(0, 16);
@@ -38594,7 +38594,7 @@ var require_keystore = __commonJS((exports) => {
38594
38594
  var utils_1 = require_utils5();
38595
38595
  var logger_1 = require_lib();
38596
38596
  var _version_1 = require__version16();
38597
- var logger7 = new logger_1.Logger(_version_1.version);
38597
+ var logger6 = new logger_1.Logger(_version_1.version);
38598
38598
  function hasMnemonic(value) {
38599
38599
  return value != null && value.mnemonic && value.mnemonic.phrase;
38600
38600
  }
@@ -38627,7 +38627,7 @@ var require_keystore = __commonJS((exports) => {
38627
38627
  }
38628
38628
  var privateKey = _decrypt(data, key.slice(0, 16), ciphertext);
38629
38629
  if (!privateKey) {
38630
- logger7.throwError("unsupported cipher", logger_1.Logger.errors.UNSUPPORTED_OPERATION, {
38630
+ logger6.throwError("unsupported cipher", logger_1.Logger.errors.UNSUPPORTED_OPERATION, {
38631
38631
  operation: "decrypt"
38632
38632
  });
38633
38633
  }
@@ -38681,7 +38681,7 @@ var require_keystore = __commonJS((exports) => {
38681
38681
  var kdf = (0, utils_1.searchPath)(data, "crypto/kdf");
38682
38682
  if (kdf && typeof kdf === "string") {
38683
38683
  var throwError = function(name, value) {
38684
- return logger7.throwArgumentError("invalid key-derivation function parameters", name, value);
38684
+ return logger6.throwArgumentError("invalid key-derivation function parameters", name, value);
38685
38685
  };
38686
38686
  if (kdf.toLowerCase() === "scrypt") {
38687
38687
  var salt = (0, utils_1.looseArrayify)((0, utils_1.searchPath)(data, "crypto/kdfparams/salt"));
@@ -38718,7 +38718,7 @@ var require_keystore = __commonJS((exports) => {
38718
38718
  return pbkdf2Func(passwordBytes, salt, count, dkLen, prfFunc);
38719
38719
  }
38720
38720
  }
38721
- return logger7.throwArgumentError("unsupported key-derivation function", "kdf", kdf);
38721
+ return logger6.throwArgumentError("unsupported key-derivation function", "kdf", kdf);
38722
38722
  }
38723
38723
  function decryptSync(json, password) {
38724
38724
  var data = JSON.parse(json);
@@ -39222,7 +39222,7 @@ var require_lib23 = __commonJS((exports) => {
39222
39222
  var strings_1 = require_lib9();
39223
39223
  var logger_1 = require_lib();
39224
39224
  var _version_1 = require__version17();
39225
- var logger9 = new logger_1.Logger(_version_1.version);
39225
+ var logger8 = new logger_1.Logger(_version_1.version);
39226
39226
  var geturl_1 = require_browser_geturl();
39227
39227
  function staller(duration) {
39228
39228
  return new Promise(function(resolve) {
@@ -39253,10 +39253,10 @@ var require_lib23 = __commonJS((exports) => {
39253
39253
  }
39254
39254
  function _fetchData(connection, body, processFunc) {
39255
39255
  var attemptLimit = typeof connection === "object" && connection.throttleLimit != null ? connection.throttleLimit : 12;
39256
- logger9.assertArgument(attemptLimit > 0 && attemptLimit % 1 === 0, "invalid connection throttle limit", "connection.throttleLimit", attemptLimit);
39256
+ logger8.assertArgument(attemptLimit > 0 && attemptLimit % 1 === 0, "invalid connection throttle limit", "connection.throttleLimit", attemptLimit);
39257
39257
  var throttleCallback = typeof connection === "object" ? connection.throttleCallback : null;
39258
39258
  var throttleSlotInterval = typeof connection === "object" && typeof connection.throttleSlotInterval === "number" ? connection.throttleSlotInterval : 100;
39259
- logger9.assertArgument(throttleSlotInterval > 0 && throttleSlotInterval % 1 === 0, "invalid connection throttle slot interval", "connection.throttleSlotInterval", throttleSlotInterval);
39259
+ logger8.assertArgument(throttleSlotInterval > 0 && throttleSlotInterval % 1 === 0, "invalid connection throttle slot interval", "connection.throttleSlotInterval", throttleSlotInterval);
39260
39260
  var errorPassThrough = typeof connection === "object" ? !!connection.errorPassThrough : false;
39261
39261
  var headers = {};
39262
39262
  var url = null;
@@ -39269,7 +39269,7 @@ var require_lib23 = __commonJS((exports) => {
39269
39269
  url = connection;
39270
39270
  } else if (typeof connection === "object") {
39271
39271
  if (connection == null || connection.url == null) {
39272
- logger9.throwArgumentError("missing URL", "connection.url", connection);
39272
+ logger8.throwArgumentError("missing URL", "connection.url", connection);
39273
39273
  }
39274
39274
  url = connection.url;
39275
39275
  if (typeof connection.timeout === "number" && connection.timeout > 0) {
@@ -39286,7 +39286,7 @@ var require_lib23 = __commonJS((exports) => {
39286
39286
  options.allowGzip = !!connection.allowGzip;
39287
39287
  if (connection.user != null && connection.password != null) {
39288
39288
  if (url.substring(0, 6) !== "https:" && connection.allowInsecureAuthentication !== true) {
39289
- logger9.throwError("basic authentication requires a secure https url", logger_1.Logger.errors.INVALID_ARGUMENT, { argument: "url", url, user: connection.user, password: "[REDACTED]" });
39289
+ logger8.throwError("basic authentication requires a secure https url", logger_1.Logger.errors.INVALID_ARGUMENT, { argument: "url", url, user: connection.user, password: "[REDACTED]" });
39290
39290
  }
39291
39291
  var authorization = connection.user + ":" + connection.password;
39292
39292
  headers["authorization"] = {
@@ -39317,7 +39317,7 @@ var require_lib23 = __commonJS((exports) => {
39317
39317
  }
39318
39318
  return Promise.resolve(result);
39319
39319
  } catch (error) {
39320
- logger9.throwError("processing response error", logger_1.Logger.errors.SERVER_ERROR, {
39320
+ logger8.throwError("processing response error", logger_1.Logger.errors.SERVER_ERROR, {
39321
39321
  body: bodyify(dataMatch[1], dataMatch[2]),
39322
39322
  error,
39323
39323
  requestBody: null,
@@ -39351,7 +39351,7 @@ var require_lib23 = __commonJS((exports) => {
39351
39351
  return;
39352
39352
  }
39353
39353
  timer = null;
39354
- reject(logger9.makeError("timeout", logger_1.Logger.errors.TIMEOUT, {
39354
+ reject(logger8.makeError("timeout", logger_1.Logger.errors.TIMEOUT, {
39355
39355
  requestBody: bodyify(options.body, flatHeaders["content-type"]),
39356
39356
  requestMethod: options.method,
39357
39357
  timeout,
@@ -39428,7 +39428,7 @@ var require_lib23 = __commonJS((exports) => {
39428
39428
  response2 = error_1.response;
39429
39429
  if (response2 == null) {
39430
39430
  runningTimeout.cancel();
39431
- logger9.throwError("missing response", logger_1.Logger.errors.SERVER_ERROR, {
39431
+ logger8.throwError("missing response", logger_1.Logger.errors.SERVER_ERROR, {
39432
39432
  requestBody: bodyify(options.body, flatHeaders["content-type"]),
39433
39433
  requestMethod: options.method,
39434
39434
  serverError: error_1,
@@ -39442,7 +39442,7 @@ var require_lib23 = __commonJS((exports) => {
39442
39442
  body_1 = null;
39443
39443
  } else if (!errorPassThrough && (response2.statusCode < 200 || response2.statusCode >= 300)) {
39444
39444
  runningTimeout.cancel();
39445
- logger9.throwError("bad response", logger_1.Logger.errors.SERVER_ERROR, {
39445
+ logger8.throwError("bad response", logger_1.Logger.errors.SERVER_ERROR, {
39446
39446
  status: response2.statusCode,
39447
39447
  headers: response2.headers,
39448
39448
  body: bodyify(body_1, response2.headers ? response2.headers["content-type"] : null),
@@ -39482,7 +39482,7 @@ var require_lib23 = __commonJS((exports) => {
39482
39482
  return [3, 19];
39483
39483
  case 17:
39484
39484
  runningTimeout.cancel();
39485
- logger9.throwError("processing response error", logger_1.Logger.errors.SERVER_ERROR, {
39485
+ logger8.throwError("processing response error", logger_1.Logger.errors.SERVER_ERROR, {
39486
39486
  body: bodyify(body_1, response2.headers ? response2.headers["content-type"] : null),
39487
39487
  error: error_2,
39488
39488
  requestBody: bodyify(options.body, flatHeaders["content-type"]),
@@ -39497,7 +39497,7 @@ var require_lib23 = __commonJS((exports) => {
39497
39497
  attempt++;
39498
39498
  return [3, 1];
39499
39499
  case 20:
39500
- return [2, logger9.throwError("failed response", logger_1.Logger.errors.SERVER_ERROR, {
39500
+ return [2, logger8.throwError("failed response", logger_1.Logger.errors.SERVER_ERROR, {
39501
39501
  requestBody: bodyify(options.body, flatHeaders["content-type"]),
39502
39502
  requestMethod: options.method,
39503
39503
  url
@@ -39516,7 +39516,7 @@ var require_lib23 = __commonJS((exports) => {
39516
39516
  try {
39517
39517
  result = JSON.parse((0, strings_1.toUtf8String)(value));
39518
39518
  } catch (error) {
39519
- logger9.throwError("invalid JSON", logger_1.Logger.errors.SERVER_ERROR, {
39519
+ logger8.throwError("invalid JSON", logger_1.Logger.errors.SERVER_ERROR, {
39520
39520
  body: value,
39521
39521
  error
39522
39522
  });
@@ -39654,7 +39654,7 @@ var require_bech32 = __commonJS((exports, module) => {
39654
39654
  }
39655
39655
  return chk;
39656
39656
  }
39657
- function encode2(prefix, words, LIMIT) {
39657
+ function encode(prefix, words, LIMIT) {
39658
39658
  LIMIT = LIMIT || 90;
39659
39659
  if (prefix.length + 7 + words.length > LIMIT)
39660
39660
  throw new TypeError("Exceeds length limit");
@@ -39779,7 +39779,7 @@ var require_bech32 = __commonJS((exports, module) => {
39779
39779
  module.exports = {
39780
39780
  decodeUnsafe,
39781
39781
  decode,
39782
- encode: encode2,
39782
+ encode,
39783
39783
  toWordsUnsafe,
39784
39784
  toWords,
39785
39785
  fromWordsUnsafe,
@@ -39809,7 +39809,7 @@ var require_lib24 = __commonJS((exports) => {
39809
39809
  var Zeros = "0000000000000000000000000000000000000000000000000000000000000000";
39810
39810
  var logger_1 = require_lib();
39811
39811
  var _version_1 = require__version18();
39812
- var logger25 = new logger_1.Logger(_version_1.version);
39812
+ var logger24 = new logger_1.Logger(_version_1.version);
39813
39813
  function _pack(type, value, isArray2) {
39814
39814
  switch (type) {
39815
39815
  case "address":
@@ -39832,7 +39832,7 @@ var require_lib24 = __commonJS((exports) => {
39832
39832
  if (match) {
39833
39833
  var size2 = parseInt(match[2] || "256");
39834
39834
  if (match[2] && String(size2) !== match[2] || size2 % 8 !== 0 || size2 === 0 || size2 > 256) {
39835
- logger25.throwArgumentError("invalid number type", "type", type);
39835
+ logger24.throwArgumentError("invalid number type", "type", type);
39836
39836
  }
39837
39837
  if (isArray2) {
39838
39838
  size2 = 256;
@@ -39844,10 +39844,10 @@ var require_lib24 = __commonJS((exports) => {
39844
39844
  if (match) {
39845
39845
  var size2 = parseInt(match[1]);
39846
39846
  if (String(size2) !== match[1] || size2 === 0 || size2 > 32) {
39847
- logger25.throwArgumentError("invalid bytes type", "type", type);
39847
+ logger24.throwArgumentError("invalid bytes type", "type", type);
39848
39848
  }
39849
39849
  if ((0, bytes_1.arrayify)(value).byteLength !== size2) {
39850
- logger25.throwArgumentError("invalid value for " + type, "value", value);
39850
+ logger24.throwArgumentError("invalid value for " + type, "value", value);
39851
39851
  }
39852
39852
  if (isArray2) {
39853
39853
  return (0, bytes_1.arrayify)((value + Zeros).substring(0, 66));
@@ -39859,7 +39859,7 @@ var require_lib24 = __commonJS((exports) => {
39859
39859
  var baseType_1 = match[1];
39860
39860
  var count = parseInt(match[2] || String(value.length));
39861
39861
  if (count != value.length) {
39862
- logger25.throwArgumentError("invalid array length for " + type, "value", value);
39862
+ logger24.throwArgumentError("invalid array length for " + type, "value", value);
39863
39863
  }
39864
39864
  var result_1 = [];
39865
39865
  value.forEach(function(value2) {
@@ -39867,11 +39867,11 @@ var require_lib24 = __commonJS((exports) => {
39867
39867
  });
39868
39868
  return (0, bytes_1.concat)(result_1);
39869
39869
  }
39870
- return logger25.throwArgumentError("invalid type", "type", type);
39870
+ return logger24.throwArgumentError("invalid type", "type", type);
39871
39871
  }
39872
39872
  function pack(types2, values) {
39873
39873
  if (types2.length != values.length) {
39874
- logger25.throwArgumentError("wrong number of values; expected ${ types.length }", "values", values);
39874
+ logger24.throwArgumentError("wrong number of values; expected ${ types.length }", "values", values);
39875
39875
  }
39876
39876
  var tight = [];
39877
39877
  types2.forEach(function(type, index) {
@@ -39880,10 +39880,10 @@ var require_lib24 = __commonJS((exports) => {
39880
39880
  return (0, bytes_1.hexlify)((0, bytes_1.concat)(tight));
39881
39881
  }
39882
39882
  exports.pack = pack;
39883
- function keccak2563(types2, values) {
39883
+ function keccak2562(types2, values) {
39884
39884
  return (0, keccak256_1.keccak256)(pack(types2, values));
39885
39885
  }
39886
- exports.keccak256 = keccak2563;
39886
+ exports.keccak256 = keccak2562;
39887
39887
  function sha2562(types2, values) {
39888
39888
  return (0, sha2_1.sha256)(pack(types2, values));
39889
39889
  }
@@ -39904,7 +39904,7 @@ var require_lib25 = __commonJS((exports) => {
39904
39904
  var bignumber_1 = require_lib3();
39905
39905
  var logger_1 = require_lib();
39906
39906
  var _version_1 = require__version19();
39907
- var logger25 = new logger_1.Logger(_version_1.version);
39907
+ var logger24 = new logger_1.Logger(_version_1.version);
39908
39908
  var names = [
39909
39909
  "wei",
39910
39910
  "kwei",
@@ -39917,7 +39917,7 @@ var require_lib25 = __commonJS((exports) => {
39917
39917
  function commify(value) {
39918
39918
  var comps = String(value).split(".");
39919
39919
  if (comps.length > 2 || !comps[0].match(/^-?[0-9]*$/) || comps[1] && !comps[1].match(/^[0-9]*$/) || value === "." || value === "-.") {
39920
- logger25.throwArgumentError("invalid value", "value", value);
39920
+ logger24.throwArgumentError("invalid value", "value", value);
39921
39921
  }
39922
39922
  var whole = comps[0];
39923
39923
  var negative = "";
@@ -39964,7 +39964,7 @@ var require_lib25 = __commonJS((exports) => {
39964
39964
  exports.formatUnits = formatUnits;
39965
39965
  function parseUnits(value, unitName) {
39966
39966
  if (typeof value !== "string") {
39967
- logger25.throwArgumentError("value must be a string", "value", value);
39967
+ logger24.throwArgumentError("value must be a string", "value", value);
39968
39968
  }
39969
39969
  if (typeof unitName === "string") {
39970
39970
  var index = names.indexOf(unitName);
@@ -41223,7 +41223,7 @@ var require_decimal = __commonJS((exports, module) => {
41223
41223
  toExpNeg: -7,
41224
41224
  toExpPos: 21,
41225
41225
  LN10: "2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"
41226
- }, 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 = {};
41226
+ }, 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 = {};
41227
41227
  P.absoluteValue = P.abs = function() {
41228
41228
  var x = new this.constructor(this);
41229
41229
  if (x.s)
@@ -41513,7 +41513,7 @@ var require_decimal = __commonJS((exports, module) => {
41513
41513
  if (!yIsInt) {
41514
41514
  if (sign < 0)
41515
41515
  throw Error(decimalError + "NaN");
41516
- } else if ((k = yn < 0 ? -yn : yn) <= MAX_SAFE_INTEGER2) {
41516
+ } else if ((k = yn < 0 ? -yn : yn) <= MAX_SAFE_INTEGER) {
41517
41517
  r = new Ctor(ONE2);
41518
41518
  e = Math.ceil(pr / LOG_BASE + 4);
41519
41519
  external = false;
@@ -42995,7 +42995,7 @@ var require_lib26 = __commonJS((exports) => {
42995
42995
  var properties_1 = require_lib4();
42996
42996
  var logger_1 = require_lib();
42997
42997
  var _version_1 = require__version20();
42998
- var logger26 = new logger_1.Logger(_version_1.version);
42998
+ var logger25 = new logger_1.Logger(_version_1.version);
42999
42999
  var ForkEvent2 = function(_super) {
43000
43000
  __extends(ForkEvent3, _super);
43001
43001
  function ForkEvent3() {
@@ -43012,7 +43012,7 @@ var require_lib26 = __commonJS((exports) => {
43012
43012
  function BlockForkEvent2(blockHash, expiry) {
43013
43013
  var _this = this;
43014
43014
  if (!(0, bytes_1.isHexString)(blockHash, 32)) {
43015
- logger26.throwArgumentError("invalid blockHash", "blockHash", blockHash);
43015
+ logger25.throwArgumentError("invalid blockHash", "blockHash", blockHash);
43016
43016
  }
43017
43017
  _this = _super.call(this, {
43018
43018
  _isForkEvent: true,
@@ -43030,7 +43030,7 @@ var require_lib26 = __commonJS((exports) => {
43030
43030
  function TransactionForkEvent2(hash, expiry) {
43031
43031
  var _this = this;
43032
43032
  if (!(0, bytes_1.isHexString)(hash, 32)) {
43033
- logger26.throwArgumentError("invalid transaction hash", "hash", hash);
43033
+ logger25.throwArgumentError("invalid transaction hash", "hash", hash);
43034
43034
  }
43035
43035
  _this = _super.call(this, {
43036
43036
  _isForkEvent: true,
@@ -43048,10 +43048,10 @@ var require_lib26 = __commonJS((exports) => {
43048
43048
  function TransactionOrderForkEvent2(beforeHash, afterHash, expiry) {
43049
43049
  var _this = this;
43050
43050
  if (!(0, bytes_1.isHexString)(beforeHash, 32)) {
43051
- logger26.throwArgumentError("invalid transaction hash", "beforeHash", beforeHash);
43051
+ logger25.throwArgumentError("invalid transaction hash", "beforeHash", beforeHash);
43052
43052
  }
43053
43053
  if (!(0, bytes_1.isHexString)(afterHash, 32)) {
43054
- logger26.throwArgumentError("invalid transaction hash", "afterHash", afterHash);
43054
+ logger25.throwArgumentError("invalid transaction hash", "afterHash", afterHash);
43055
43055
  }
43056
43056
  _this = _super.call(this, {
43057
43057
  _isForkEvent: true,
@@ -43068,7 +43068,7 @@ var require_lib26 = __commonJS((exports) => {
43068
43068
  var Provider2 = function() {
43069
43069
  function Provider3() {
43070
43070
  var _newTarget = this.constructor;
43071
- logger26.checkAbstract(_newTarget, Provider3);
43071
+ logger25.checkAbstract(_newTarget, Provider3);
43072
43072
  (0, properties_1.defineReadOnly)(this, "_isProvider", true);
43073
43073
  }
43074
43074
  Provider3.prototype.getFeeData = function() {
@@ -43248,7 +43248,7 @@ var require_lib27 = __commonJS((exports) => {
43248
43248
  var properties_1 = require_lib4();
43249
43249
  var logger_1 = require_lib();
43250
43250
  var _version_1 = require__version21();
43251
- var logger26 = new logger_1.Logger(_version_1.version);
43251
+ var logger25 = new logger_1.Logger(_version_1.version);
43252
43252
  var allowedTransactionKeys4 = [
43253
43253
  "accessList",
43254
43254
  "ccipReadEnabled",
@@ -43273,7 +43273,7 @@ var require_lib27 = __commonJS((exports) => {
43273
43273
  var Signer2 = function() {
43274
43274
  function Signer3() {
43275
43275
  var _newTarget = this.constructor;
43276
- logger26.checkAbstract(_newTarget, Signer3);
43276
+ logger25.checkAbstract(_newTarget, Signer3);
43277
43277
  (0, properties_1.defineReadOnly)(this, "_isSigner", true);
43278
43278
  }
43279
43279
  Signer3.prototype.getBalance = function(blockTag) {
@@ -43413,7 +43413,7 @@ var require_lib27 = __commonJS((exports) => {
43413
43413
  Signer3.prototype.checkTransaction = function(transaction) {
43414
43414
  for (var key in transaction) {
43415
43415
  if (allowedTransactionKeys4.indexOf(key) === -1) {
43416
- logger26.throwArgumentError("invalid transaction key: " + key, "transaction", transaction);
43416
+ logger25.throwArgumentError("invalid transaction key: " + key, "transaction", transaction);
43417
43417
  }
43418
43418
  }
43419
43419
  var tx = (0, properties_1.shallowCopy)(transaction);
@@ -43425,7 +43425,7 @@ var require_lib27 = __commonJS((exports) => {
43425
43425
  this.getAddress()
43426
43426
  ]).then(function(result) {
43427
43427
  if (result[0].toLowerCase() !== result[1].toLowerCase()) {
43428
- logger26.throwArgumentError("from address mismatch", "transaction", transaction);
43428
+ logger25.throwArgumentError("from address mismatch", "transaction", transaction);
43429
43429
  }
43430
43430
  return result[0];
43431
43431
  });
@@ -43456,7 +43456,7 @@ var require_lib27 = __commonJS((exports) => {
43456
43456
  case 1:
43457
43457
  address = _a2.sent();
43458
43458
  if (address == null) {
43459
- logger26.throwArgumentError("provided ENS name resolves to null", "tx.to", to);
43459
+ logger25.throwArgumentError("provided ENS name resolves to null", "tx.to", to);
43460
43460
  }
43461
43461
  return [2, address];
43462
43462
  }
@@ -43467,9 +43467,9 @@ var require_lib27 = __commonJS((exports) => {
43467
43467
  }
43468
43468
  hasEip1559 = tx.maxFeePerGas != null || tx.maxPriorityFeePerGas != null;
43469
43469
  if (tx.gasPrice != null && (tx.type === 2 || hasEip1559)) {
43470
- logger26.throwArgumentError("eip-1559 transaction do not support gasPrice", "transaction", transaction);
43470
+ logger25.throwArgumentError("eip-1559 transaction do not support gasPrice", "transaction", transaction);
43471
43471
  } else if ((tx.type === 0 || tx.type === 1) && hasEip1559) {
43472
- logger26.throwArgumentError("pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas", "transaction", transaction);
43472
+ logger25.throwArgumentError("pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas", "transaction", transaction);
43473
43473
  }
43474
43474
  if (!((tx.type === 2 || tx.type == null) && (tx.maxFeePerGas != null && tx.maxPriorityFeePerGas != null)))
43475
43475
  return [3, 2];
@@ -43504,7 +43504,7 @@ var require_lib27 = __commonJS((exports) => {
43504
43504
  }
43505
43505
  } else if (feeData.gasPrice != null) {
43506
43506
  if (hasEip1559) {
43507
- logger26.throwError("network does not support EIP-1559", logger_1.Logger.errors.UNSUPPORTED_OPERATION, {
43507
+ logger25.throwError("network does not support EIP-1559", logger_1.Logger.errors.UNSUPPORTED_OPERATION, {
43508
43508
  operation: "populateTransaction"
43509
43509
  });
43510
43510
  }
@@ -43513,7 +43513,7 @@ var require_lib27 = __commonJS((exports) => {
43513
43513
  }
43514
43514
  tx.type = 0;
43515
43515
  } else {
43516
- logger26.throwError("failed to get consistent fee data", logger_1.Logger.errors.UNSUPPORTED_OPERATION, {
43516
+ logger25.throwError("failed to get consistent fee data", logger_1.Logger.errors.UNSUPPORTED_OPERATION, {
43517
43517
  operation: "signer.getFeeData"
43518
43518
  });
43519
43519
  }
@@ -43535,7 +43535,7 @@ var require_lib27 = __commonJS((exports) => {
43535
43535
  if (forwardErrors2.indexOf(error.code) >= 0) {
43536
43536
  throw error;
43537
43537
  }
43538
- return logger26.throwError("cannot estimate gas; transaction may fail or may require manual gas limit", logger_1.Logger.errors.UNPREDICTABLE_GAS_LIMIT, {
43538
+ return logger25.throwError("cannot estimate gas; transaction may fail or may require manual gas limit", logger_1.Logger.errors.UNPREDICTABLE_GAS_LIMIT, {
43539
43539
  error,
43540
43540
  tx
43541
43541
  });
@@ -43549,7 +43549,7 @@ var require_lib27 = __commonJS((exports) => {
43549
43549
  this.getChainId()
43550
43550
  ]).then(function(results) {
43551
43551
  if (results[1] !== 0 && results[0] !== results[1]) {
43552
- logger26.throwArgumentError("chainId address mismatch", "transaction", transaction);
43552
+ logger25.throwArgumentError("chainId address mismatch", "transaction", transaction);
43553
43553
  }
43554
43554
  return results[0];
43555
43555
  });
@@ -43563,7 +43563,7 @@ var require_lib27 = __commonJS((exports) => {
43563
43563
  };
43564
43564
  Signer3.prototype._checkProvider = function(operation) {
43565
43565
  if (!this.provider) {
43566
- logger26.throwError("missing provider", logger_1.Logger.errors.UNSUPPORTED_OPERATION, {
43566
+ logger25.throwError("missing provider", logger_1.Logger.errors.UNSUPPORTED_OPERATION, {
43567
43567
  operation: operation || "_checkProvider"
43568
43568
  });
43569
43569
  }
@@ -43587,7 +43587,7 @@ var require_lib27 = __commonJS((exports) => {
43587
43587
  };
43588
43588
  VoidSigner3.prototype._fail = function(message, operation) {
43589
43589
  return Promise.resolve().then(function() {
43590
- logger26.throwError(message, logger_1.Logger.errors.UNSUPPORTED_OPERATION, { operation });
43590
+ logger25.throwError(message, logger_1.Logger.errors.UNSUPPORTED_OPERATION, { operation });
43591
43591
  });
43592
43592
  };
43593
43593
  VoidSigner3.prototype.signMessage = function(message) {
@@ -43756,7 +43756,7 @@ var require_lib28 = __commonJS((exports) => {
43756
43756
  var transactions_1 = require_lib15();
43757
43757
  var logger_1 = require_lib();
43758
43758
  var _version_1 = require__version22();
43759
- var logger26 = new logger_1.Logger(_version_1.version);
43759
+ var logger25 = new logger_1.Logger(_version_1.version);
43760
43760
  function isAccount2(value) {
43761
43761
  return value != null && (0, bytes_1.isHexString)(value.privateKey, 32) && value.address != null;
43762
43762
  }
@@ -43775,7 +43775,7 @@ var require_lib28 = __commonJS((exports) => {
43775
43775
  });
43776
43776
  (0, properties_1.defineReadOnly)(_this, "address", (0, transactions_1.computeAddress)(_this.publicKey));
43777
43777
  if (_this.address !== (0, address_1.getAddress)(privateKey.address)) {
43778
- logger26.throwArgumentError("privateKey/address mismatch", "privateKey", "[REDACTED]");
43778
+ logger25.throwArgumentError("privateKey/address mismatch", "privateKey", "[REDACTED]");
43779
43779
  }
43780
43780
  if (hasMnemonic2(privateKey)) {
43781
43781
  var srcMnemonic_1 = privateKey.mnemonic;
@@ -43789,7 +43789,7 @@ var require_lib28 = __commonJS((exports) => {
43789
43789
  var mnemonic = _this.mnemonic;
43790
43790
  var node = hdnode_1.HDNode.fromMnemonic(mnemonic.phrase, null, mnemonic.locale).derivePath(mnemonic.path);
43791
43791
  if ((0, transactions_1.computeAddress)(node.privateKey) !== _this.address) {
43792
- logger26.throwArgumentError("mnemonic/address mismatch", "privateKey", "[REDACTED]");
43792
+ logger25.throwArgumentError("mnemonic/address mismatch", "privateKey", "[REDACTED]");
43793
43793
  }
43794
43794
  } else {
43795
43795
  (0, properties_1.defineReadOnly)(_this, "_mnemonic", function() {
@@ -43799,7 +43799,7 @@ var require_lib28 = __commonJS((exports) => {
43799
43799
  } else {
43800
43800
  if (signing_key_1.SigningKey.isSigningKey(privateKey)) {
43801
43801
  if (privateKey.curve !== "secp256k1") {
43802
- logger26.throwArgumentError("unsupported curve; must be secp256k1", "privateKey", "[REDACTED]");
43802
+ logger25.throwArgumentError("unsupported curve; must be secp256k1", "privateKey", "[REDACTED]");
43803
43803
  }
43804
43804
  (0, properties_1.defineReadOnly)(_this, "_signingKey", function() {
43805
43805
  return privateKey;
@@ -43821,7 +43821,7 @@ var require_lib28 = __commonJS((exports) => {
43821
43821
  (0, properties_1.defineReadOnly)(_this, "address", (0, transactions_1.computeAddress)(_this.publicKey));
43822
43822
  }
43823
43823
  if (provider && !abstract_provider_1.Provider.isProvider(provider)) {
43824
- logger26.throwArgumentError("invalid provider", "provider", provider);
43824
+ logger25.throwArgumentError("invalid provider", "provider", provider);
43825
43825
  }
43826
43826
  (0, properties_1.defineReadOnly)(_this, "provider", provider || null);
43827
43827
  return _this;
@@ -43858,7 +43858,7 @@ var require_lib28 = __commonJS((exports) => {
43858
43858
  return (0, properties_1.resolveProperties)(transaction).then(function(tx) {
43859
43859
  if (tx.from != null) {
43860
43860
  if ((0, address_1.getAddress)(tx.from) !== _this.address) {
43861
- logger26.throwArgumentError("transaction from address mismatch", "transaction.from", transaction.from);
43861
+ logger25.throwArgumentError("transaction from address mismatch", "transaction.from", transaction.from);
43862
43862
  }
43863
43863
  delete tx.from;
43864
43864
  }
@@ -43882,7 +43882,7 @@ var require_lib28 = __commonJS((exports) => {
43882
43882
  case 0:
43883
43883
  return [4, hash_1._TypedDataEncoder.resolveNames(domain, types3, value, function(name) {
43884
43884
  if (_this.provider == null) {
43885
- logger26.throwError("cannot resolve ENS names without a provider", logger_1.Logger.errors.UNSUPPORTED_OPERATION, {
43885
+ logger25.throwError("cannot resolve ENS names without a provider", logger_1.Logger.errors.UNSUPPORTED_OPERATION, {
43886
43886
  operation: "resolveName",
43887
43887
  value: name
43888
43888
  });
@@ -44712,10 +44712,10 @@ var createCall = (call) => {
44712
44712
  var exports_ethers = {};
44713
44713
  __export(exports_ethers, {
44714
44714
  wordlists: () => wordlists,
44715
- version: () => version13,
44715
+ version: () => version12,
44716
44716
  utils: () => exports_utils,
44717
44717
  providers: () => exports_lib2,
44718
- logger: () => logger25,
44718
+ logger: () => logger24,
44719
44719
  getDefaultProvider: () => getDefaultProvider,
44720
44720
  errors: () => ErrorCode,
44721
44721
  constants: () => exports_lib,
@@ -45290,12 +45290,6 @@ function throwFault(fault, operation, value) {
45290
45290
  }
45291
45291
  return logger.throwError(fault, Logger.errors.NUMERIC_FAULT, params);
45292
45292
  }
45293
- function _base36To16(value) {
45294
- return new BN(value, 36).toString(16);
45295
- }
45296
- function _base16To36(value) {
45297
- return new BN(value, 16).toString(36);
45298
- }
45299
45293
  // node_modules/@ethersproject/bignumber/lib.esm/fixednumber.js
45300
45294
  var import_bytes2 = __toESM(require_lib2(), 1);
45301
45295
  var logger2 = new Logger(version3);
@@ -45993,136 +45987,14 @@ class VoidSigner extends Signer {
45993
45987
  }
45994
45988
  }
45995
45989
 
45996
- // node_modules/@ethersproject/address/lib.esm/index.js
45997
- var import_bytes3 = __toESM(require_lib2(), 1);
45998
- var import_keccak256 = __toESM(require_lib5(), 1);
45999
- var import_rlp = __toESM(require_lib6(), 1);
46000
-
46001
- // node_modules/@ethersproject/address/lib.esm/_version.js
46002
- var version6 = "address/5.7.0";
46003
-
46004
- // node_modules/@ethersproject/address/lib.esm/index.js
46005
- var logger5 = new Logger(version6);
46006
- function getChecksumAddress(address) {
46007
- if (!import_bytes3.isHexString(address, 20)) {
46008
- logger5.throwArgumentError("invalid address", "address", address);
46009
- }
46010
- address = address.toLowerCase();
46011
- const chars = address.substring(2).split("");
46012
- const expanded = new Uint8Array(40);
46013
- for (let i2 = 0;i2 < 40; i2++) {
46014
- expanded[i2] = chars[i2].charCodeAt(0);
46015
- }
46016
- const hashed = import_bytes3.arrayify(import_keccak256.keccak256(expanded));
46017
- for (let i2 = 0;i2 < 40; i2 += 2) {
46018
- if (hashed[i2 >> 1] >> 4 >= 8) {
46019
- chars[i2] = chars[i2].toUpperCase();
46020
- }
46021
- if ((hashed[i2 >> 1] & 15) >= 8) {
46022
- chars[i2 + 1] = chars[i2 + 1].toUpperCase();
46023
- }
46024
- }
46025
- return "0x" + chars.join("");
46026
- }
46027
- var MAX_SAFE_INTEGER = 9007199254740991;
46028
- function log10(x) {
46029
- if (Math.log10) {
46030
- return Math.log10(x);
46031
- }
46032
- return Math.log(x) / Math.LN10;
46033
- }
46034
- var ibanLookup = {};
46035
- for (let i2 = 0;i2 < 10; i2++) {
46036
- ibanLookup[String(i2)] = String(i2);
46037
- }
46038
- for (let i2 = 0;i2 < 26; i2++) {
46039
- ibanLookup[String.fromCharCode(65 + i2)] = String(10 + i2);
46040
- }
46041
- var safeDigits = Math.floor(log10(MAX_SAFE_INTEGER));
46042
- function ibanChecksum(address) {
46043
- address = address.toUpperCase();
46044
- address = address.substring(4) + address.substring(0, 2) + "00";
46045
- let expanded = address.split("").map((c) => {
46046
- return ibanLookup[c];
46047
- }).join("");
46048
- while (expanded.length >= safeDigits) {
46049
- let block = expanded.substring(0, safeDigits);
46050
- expanded = parseInt(block, 10) % 97 + expanded.substring(block.length);
46051
- }
46052
- let checksum = String(98 - parseInt(expanded, 10) % 97);
46053
- while (checksum.length < 2) {
46054
- checksum = "0" + checksum;
46055
- }
46056
- return checksum;
46057
- }
46058
- function getAddress(address) {
46059
- let result = null;
46060
- if (typeof address !== "string") {
46061
- logger5.throwArgumentError("invalid address", "address", address);
46062
- }
46063
- if (address.match(/^(0x)?[0-9a-fA-F]{40}$/)) {
46064
- if (address.substring(0, 2) !== "0x") {
46065
- address = "0x" + address;
46066
- }
46067
- result = getChecksumAddress(address);
46068
- if (address.match(/([A-F].*[a-f])|([a-f].*[A-F])/) && result !== address) {
46069
- logger5.throwArgumentError("bad address checksum", "address", address);
46070
- }
46071
- } else if (address.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)) {
46072
- if (address.substring(2, 4) !== ibanChecksum(address)) {
46073
- logger5.throwArgumentError("bad icap checksum", "address", address);
46074
- }
46075
- result = _base36To16(address.substring(4));
46076
- while (result.length < 40) {
46077
- result = "0" + result;
46078
- }
46079
- result = getChecksumAddress("0x" + result);
46080
- } else {
46081
- logger5.throwArgumentError("invalid address", "address", address);
46082
- }
46083
- return result;
46084
- }
46085
- function isAddress(address) {
46086
- try {
46087
- getAddress(address);
46088
- return true;
46089
- } catch (error) {}
46090
- return false;
46091
- }
46092
- function getIcapAddress(address) {
46093
- let base36 = _base16To36(getAddress(address).substring(2)).toUpperCase();
46094
- while (base36.length < 30) {
46095
- base36 = "0" + base36;
46096
- }
46097
- return "XE" + ibanChecksum("XE00" + base36) + base36;
46098
- }
46099
- function getContractAddress(transaction) {
46100
- let from2 = null;
46101
- try {
46102
- from2 = getAddress(transaction.from);
46103
- } catch (error) {
46104
- logger5.throwArgumentError("missing from address", "transaction", transaction);
46105
- }
46106
- const nonce = import_bytes3.stripZeros(import_bytes3.arrayify(BigNumber.from(transaction.nonce).toHexString()));
46107
- return getAddress(import_bytes3.hexDataSlice(import_keccak256.keccak256(import_rlp.encode([from2, nonce])), 12));
46108
- }
46109
- function getCreate2Address(from2, salt, initCodeHash) {
46110
- if (import_bytes3.hexDataLength(salt) !== 32) {
46111
- logger5.throwArgumentError("salt must be 32 bytes", "salt", salt);
46112
- }
46113
- if (import_bytes3.hexDataLength(initCodeHash) !== 32) {
46114
- logger5.throwArgumentError("initCodeHash must be 32 bytes", "initCodeHash", initCodeHash);
46115
- }
46116
- return getAddress(import_bytes3.hexDataSlice(import_keccak256.keccak256(import_bytes3.concat(["0xff", getAddress(from2), salt, initCodeHash])), 12));
46117
- }
46118
-
46119
45990
  // node_modules/@ethersproject/contracts/lib.esm/index.js
46120
- var import_bytes4 = __toESM(require_lib2(), 1);
45991
+ var import_address2 = __toESM(require_lib7(), 1);
45992
+ var import_bytes3 = __toESM(require_lib2(), 1);
46121
45993
  var import_properties3 = __toESM(require_lib4(), 1);
46122
45994
  var import_transactions = __toESM(require_lib15(), 1);
46123
45995
 
46124
45996
  // node_modules/@ethersproject/contracts/lib.esm/_version.js
46125
- var version8 = "contracts/5.7.0";
45997
+ var version7 = "contracts/5.7.0";
46126
45998
 
46127
45999
  // node_modules/@ethersproject/contracts/lib.esm/index.js
46128
46000
  var __awaiter3 = function(thisArg, _arguments, P, generator) {
@@ -46152,7 +46024,7 @@ var __awaiter3 = function(thisArg, _arguments, P, generator) {
46152
46024
  step((generator = generator.apply(thisArg, _arguments || [])).next());
46153
46025
  });
46154
46026
  };
46155
- var logger6 = new Logger(version8);
46027
+ var logger5 = new Logger(version7);
46156
46028
  var allowedTransactionKeys2 = {
46157
46029
  chainId: true,
46158
46030
  data: true,
@@ -46173,19 +46045,19 @@ function resolveName(resolver, nameOrPromise) {
46173
46045
  return __awaiter3(this, undefined, undefined, function* () {
46174
46046
  const name = yield nameOrPromise;
46175
46047
  if (typeof name !== "string") {
46176
- logger6.throwArgumentError("invalid address or ENS name", "name", name);
46048
+ logger5.throwArgumentError("invalid address or ENS name", "name", name);
46177
46049
  }
46178
46050
  try {
46179
- return getAddress(name);
46051
+ return import_address2.getAddress(name);
46180
46052
  } catch (error) {}
46181
46053
  if (!resolver) {
46182
- logger6.throwError("a provider or signer is needed to resolve ENS names", Logger.errors.UNSUPPORTED_OPERATION, {
46054
+ logger5.throwError("a provider or signer is needed to resolve ENS names", Logger.errors.UNSUPPORTED_OPERATION, {
46183
46055
  operation: "resolveName"
46184
46056
  });
46185
46057
  }
46186
46058
  const address = yield resolver.resolveName(name);
46187
46059
  if (address == null) {
46188
- logger6.throwArgumentError("resolver or addr is not configured for ENS name", "name", name);
46060
+ logger5.throwArgumentError("resolver or addr is not configured for ENS name", "name", name);
46189
46061
  }
46190
46062
  return address;
46191
46063
  });
@@ -46205,7 +46077,7 @@ function resolveAddresses(resolver, value, paramType) {
46205
46077
  }
46206
46078
  if (paramType.baseType === "array") {
46207
46079
  if (!Array.isArray(value)) {
46208
- return Promise.reject(logger6.makeError("invalid value for array", Logger.errors.INVALID_ARGUMENT, {
46080
+ return Promise.reject(logger5.makeError("invalid value for array", Logger.errors.INVALID_ARGUMENT, {
46209
46081
  argument: "value",
46210
46082
  value
46211
46083
  }));
@@ -46221,15 +46093,15 @@ function populateTransaction(contract, fragment, args) {
46221
46093
  if (args.length === fragment.inputs.length + 1 && typeof args[args.length - 1] === "object") {
46222
46094
  overrides = import_properties3.shallowCopy(args.pop());
46223
46095
  }
46224
- logger6.checkArgumentCount(args.length, fragment.inputs.length, "passed to contract");
46096
+ logger5.checkArgumentCount(args.length, fragment.inputs.length, "passed to contract");
46225
46097
  if (contract.signer) {
46226
46098
  if (overrides.from) {
46227
46099
  overrides.from = import_properties3.resolveProperties({
46228
46100
  override: resolveName(contract.signer, overrides.from),
46229
46101
  signer: contract.signer.getAddress()
46230
46102
  }).then((check) => __awaiter3(this, undefined, undefined, function* () {
46231
- if (getAddress(check.signer) !== check.override) {
46232
- logger6.throwError("Contract with a Signer cannot override from", Logger.errors.UNSUPPORTED_OPERATION, {
46103
+ if (import_address2.getAddress(check.signer) !== check.override) {
46104
+ logger5.throwError("Contract with a Signer cannot override from", Logger.errors.UNSUPPORTED_OPERATION, {
46233
46105
  operation: "overrides.from"
46234
46106
  });
46235
46107
  }
@@ -46278,7 +46150,7 @@ function populateTransaction(contract, fragment, args) {
46278
46150
  }
46279
46151
  if (tx.gasLimit == null && fragment.gas != null) {
46280
46152
  let intrinsic = 21000;
46281
- const bytes = import_bytes4.arrayify(data);
46153
+ const bytes = import_bytes3.arrayify(data);
46282
46154
  for (let i2 = 0;i2 < bytes.length; i2++) {
46283
46155
  intrinsic += 4;
46284
46156
  if (bytes[i2]) {
@@ -46290,7 +46162,7 @@ function populateTransaction(contract, fragment, args) {
46290
46162
  if (ro.value) {
46291
46163
  const roValue = BigNumber.from(ro.value);
46292
46164
  if (!roValue.isZero() && !fragment.payable) {
46293
- logger6.throwError("non-payable method cannot override value", Logger.errors.UNSUPPORTED_OPERATION, {
46165
+ logger5.throwError("non-payable method cannot override value", Logger.errors.UNSUPPORTED_OPERATION, {
46294
46166
  operation: "overrides.value",
46295
46167
  value: overrides.value
46296
46168
  });
@@ -46316,7 +46188,7 @@ function populateTransaction(contract, fragment, args) {
46316
46188
  delete overrides.ccipReadEnabled;
46317
46189
  const leftovers = Object.keys(overrides).filter((key) => overrides[key] != null);
46318
46190
  if (leftovers.length) {
46319
- logger6.throwError(`cannot override ${leftovers.map((l) => JSON.stringify(l)).join(",")}`, Logger.errors.UNSUPPORTED_OPERATION, {
46191
+ logger5.throwError(`cannot override ${leftovers.map((l) => JSON.stringify(l)).join(",")}`, Logger.errors.UNSUPPORTED_OPERATION, {
46320
46192
  operation: "overrides",
46321
46193
  overrides: leftovers
46322
46194
  });
@@ -46334,7 +46206,7 @@ function buildEstimate(contract, fragment) {
46334
46206
  return function(...args) {
46335
46207
  return __awaiter3(this, undefined, undefined, function* () {
46336
46208
  if (!signerOrProvider) {
46337
- logger6.throwError("estimate require a provider or signer", Logger.errors.UNSUPPORTED_OPERATION, {
46209
+ logger5.throwError("estimate require a provider or signer", Logger.errors.UNSUPPORTED_OPERATION, {
46338
46210
  operation: "estimateGas"
46339
46211
  });
46340
46212
  }
@@ -46418,7 +46290,7 @@ function buildSend(contract, fragment) {
46418
46290
  return function(...args) {
46419
46291
  return __awaiter3(this, undefined, undefined, function* () {
46420
46292
  if (!contract.signer) {
46421
- logger6.throwError("sending a transaction requires a signer", Logger.errors.UNSUPPORTED_OPERATION, {
46293
+ logger5.throwError("sending a transaction requires a signer", Logger.errors.UNSUPPORTED_OPERATION, {
46422
46294
  operation: "sendTransaction"
46423
46295
  });
46424
46296
  }
@@ -46509,7 +46381,7 @@ class FragmentRunningEvent extends RunningEvent {
46509
46381
  let topic = contractInterface.getEventTopic(fragment);
46510
46382
  if (topics) {
46511
46383
  if (topic !== topics[0]) {
46512
- logger6.throwArgumentError("topic mismatch", "topics", topics);
46384
+ logger5.throwArgumentError("topic mismatch", "topics", topics);
46513
46385
  }
46514
46386
  filter.topics = topics.slice();
46515
46387
  } else {
@@ -46578,7 +46450,7 @@ class BaseContract {
46578
46450
  import_properties3.defineReadOnly(this, "provider", signerOrProvider);
46579
46451
  import_properties3.defineReadOnly(this, "signer", null);
46580
46452
  } else {
46581
- logger6.throwArgumentError("invalid signer or provider", "signerOrProvider", signerOrProvider);
46453
+ logger5.throwArgumentError("invalid signer or provider", "signerOrProvider", signerOrProvider);
46582
46454
  }
46583
46455
  import_properties3.defineReadOnly(this, "callStatic", {});
46584
46456
  import_properties3.defineReadOnly(this, "estimateGas", {});
@@ -46605,23 +46477,23 @@ class BaseContract {
46605
46477
  if (filters.length === 1) {
46606
46478
  import_properties3.defineReadOnly(this.filters, name, this.filters[filters[0]]);
46607
46479
  } else {
46608
- logger6.warn(`Duplicate definition of ${name} (${filters.join(", ")})`);
46480
+ logger5.warn(`Duplicate definition of ${name} (${filters.join(", ")})`);
46609
46481
  }
46610
46482
  });
46611
46483
  }
46612
46484
  import_properties3.defineReadOnly(this, "_runningEvents", {});
46613
46485
  import_properties3.defineReadOnly(this, "_wrappedEmits", {});
46614
46486
  if (addressOrName == null) {
46615
- logger6.throwArgumentError("invalid contract address or ENS name", "addressOrName", addressOrName);
46487
+ logger5.throwArgumentError("invalid contract address or ENS name", "addressOrName", addressOrName);
46616
46488
  }
46617
46489
  import_properties3.defineReadOnly(this, "address", addressOrName);
46618
46490
  if (this.provider) {
46619
46491
  import_properties3.defineReadOnly(this, "resolvedAddress", resolveName(this.provider, addressOrName));
46620
46492
  } else {
46621
46493
  try {
46622
- import_properties3.defineReadOnly(this, "resolvedAddress", Promise.resolve(getAddress(addressOrName)));
46494
+ import_properties3.defineReadOnly(this, "resolvedAddress", Promise.resolve(import_address2.getAddress(addressOrName)));
46623
46495
  } catch (error) {
46624
- logger6.throwError("provider is required to use ENS name as contract address", Logger.errors.UNSUPPORTED_OPERATION, {
46496
+ logger5.throwError("provider is required to use ENS name as contract address", Logger.errors.UNSUPPORTED_OPERATION, {
46625
46497
  operation: "new Contract"
46626
46498
  });
46627
46499
  }
@@ -46632,7 +46504,7 @@ class BaseContract {
46632
46504
  Object.keys(this.interface.functions).forEach((signature) => {
46633
46505
  const fragment = this.interface.functions[signature];
46634
46506
  if (uniqueSignatures[signature]) {
46635
- logger6.warn(`Duplicate ABI entry for ${JSON.stringify(signature)}`);
46507
+ logger5.warn(`Duplicate ABI entry for ${JSON.stringify(signature)}`);
46636
46508
  return;
46637
46509
  }
46638
46510
  uniqueSignatures[signature] = true;
@@ -46686,7 +46558,7 @@ class BaseContract {
46686
46558
  });
46687
46559
  }
46688
46560
  static getContractAddress(transaction) {
46689
- return getContractAddress(transaction);
46561
+ return import_address2.getContractAddress(transaction);
46690
46562
  }
46691
46563
  static getInterface(contractInterface) {
46692
46564
  if (import_abi.Interface.isInterface(contractInterface)) {
@@ -46706,7 +46578,7 @@ class BaseContract {
46706
46578
  } else {
46707
46579
  this._deployedPromise = this.provider.getCode(this.address, blockTag).then((code2) => {
46708
46580
  if (code2 === "0x") {
46709
- logger6.throwError("contract not deployed", Logger.errors.UNSUPPORTED_OPERATION, {
46581
+ logger5.throwError("contract not deployed", Logger.errors.UNSUPPORTED_OPERATION, {
46710
46582
  contractAddress: this.address,
46711
46583
  operation: "getDeployed"
46712
46584
  });
@@ -46719,14 +46591,14 @@ class BaseContract {
46719
46591
  }
46720
46592
  fallback(overrides) {
46721
46593
  if (!this.signer) {
46722
- logger6.throwError("sending a transactions require a signer", Logger.errors.UNSUPPORTED_OPERATION, { operation: "sendTransaction(fallback)" });
46594
+ logger5.throwError("sending a transactions require a signer", Logger.errors.UNSUPPORTED_OPERATION, { operation: "sendTransaction(fallback)" });
46723
46595
  }
46724
46596
  const tx = import_properties3.shallowCopy(overrides || {});
46725
46597
  ["from", "to"].forEach(function(key) {
46726
46598
  if (tx[key] == null) {
46727
46599
  return;
46728
46600
  }
46729
- logger6.throwError("cannot override " + key, Logger.errors.UNSUPPORTED_OPERATION, { operation: key });
46601
+ logger5.throwError("cannot override " + key, Logger.errors.UNSUPPORTED_OPERATION, { operation: key });
46730
46602
  });
46731
46603
  tx.to = this.resolvedAddress;
46732
46604
  return this.deployed().then(() => {
@@ -46819,7 +46691,7 @@ class BaseContract {
46819
46691
  }
46820
46692
  _addEventListener(runningEvent, listener, once3) {
46821
46693
  if (!this.provider) {
46822
- logger6.throwError("events require a provider or a signer with a provider", Logger.errors.UNSUPPORTED_OPERATION, { operation: "once" });
46694
+ logger5.throwError("events require a provider or a signer with a provider", Logger.errors.UNSUPPORTED_OPERATION, { operation: "once" });
46823
46695
  }
46824
46696
  runningEvent.addListener(listener, once3);
46825
46697
  this._runningEvents[runningEvent.tag] = runningEvent;
@@ -46850,9 +46722,9 @@ class BaseContract {
46850
46722
  queryFilter(event, fromBlockOrBlockhash, toBlock) {
46851
46723
  const runningEvent = this._getRunningEvent(event);
46852
46724
  const filter = import_properties3.shallowCopy(runningEvent.filter);
46853
- if (typeof fromBlockOrBlockhash === "string" && import_bytes4.isHexString(fromBlockOrBlockhash, 32)) {
46725
+ if (typeof fromBlockOrBlockhash === "string" && import_bytes3.isHexString(fromBlockOrBlockhash, 32)) {
46854
46726
  if (toBlock != null) {
46855
- logger6.throwArgumentError("cannot specify toBlock with blockhash", "toBlock", toBlock);
46727
+ logger5.throwArgumentError("cannot specify toBlock with blockhash", "toBlock", toBlock);
46856
46728
  }
46857
46729
  filter.blockHash = fromBlockOrBlockhash;
46858
46730
  } else {
@@ -46945,8 +46817,8 @@ class ContractFactory {
46945
46817
  let bytecodeHex = null;
46946
46818
  if (typeof bytecode === "string") {
46947
46819
  bytecodeHex = bytecode;
46948
- } else if (import_bytes4.isBytes(bytecode)) {
46949
- bytecodeHex = import_bytes4.hexlify(bytecode);
46820
+ } else if (import_bytes3.isBytes(bytecode)) {
46821
+ bytecodeHex = import_bytes3.hexlify(bytecode);
46950
46822
  } else if (bytecode && typeof bytecode.object === "string") {
46951
46823
  bytecodeHex = bytecode.object;
46952
46824
  } else {
@@ -46955,11 +46827,11 @@ class ContractFactory {
46955
46827
  if (bytecodeHex.substring(0, 2) !== "0x") {
46956
46828
  bytecodeHex = "0x" + bytecodeHex;
46957
46829
  }
46958
- if (!import_bytes4.isHexString(bytecodeHex) || bytecodeHex.length % 2) {
46959
- logger6.throwArgumentError("invalid bytecode", "bytecode", bytecode);
46830
+ if (!import_bytes3.isHexString(bytecodeHex) || bytecodeHex.length % 2) {
46831
+ logger5.throwArgumentError("invalid bytecode", "bytecode", bytecode);
46960
46832
  }
46961
46833
  if (signer && !Signer.isSigner(signer)) {
46962
- logger6.throwArgumentError("invalid signer", "signer", signer);
46834
+ logger5.throwArgumentError("invalid signer", "signer", signer);
46963
46835
  }
46964
46836
  import_properties3.defineReadOnly(this, "bytecode", bytecodeHex);
46965
46837
  import_properties3.defineReadOnly(this, "interface", import_properties3.getStatic(new.target, "getInterface")(contractInterface));
@@ -46979,19 +46851,19 @@ class ContractFactory {
46979
46851
  if (tx[key] == null) {
46980
46852
  return;
46981
46853
  }
46982
- logger6.throwError("cannot override " + key, Logger.errors.UNSUPPORTED_OPERATION, { operation: key });
46854
+ logger5.throwError("cannot override " + key, Logger.errors.UNSUPPORTED_OPERATION, { operation: key });
46983
46855
  });
46984
46856
  if (tx.value) {
46985
46857
  const value = BigNumber.from(tx.value);
46986
46858
  if (!value.isZero() && !this.interface.deploy.payable) {
46987
- logger6.throwError("non-payable constructor cannot override value", Logger.errors.UNSUPPORTED_OPERATION, {
46859
+ logger5.throwError("non-payable constructor cannot override value", Logger.errors.UNSUPPORTED_OPERATION, {
46988
46860
  operation: "overrides.value",
46989
46861
  value: tx.value
46990
46862
  });
46991
46863
  }
46992
46864
  }
46993
- logger6.checkArgumentCount(args.length, this.interface.deploy.inputs.length, " in Contract constructor");
46994
- tx.data = import_bytes4.hexlify(import_bytes4.concat([
46865
+ logger5.checkArgumentCount(args.length, this.interface.deploy.inputs.length, " in Contract constructor");
46866
+ tx.data = import_bytes3.hexlify(import_bytes3.concat([
46995
46867
  this.bytecode,
46996
46868
  this.interface.encodeDeploy(args)
46997
46869
  ]));
@@ -47003,7 +46875,7 @@ class ContractFactory {
47003
46875
  if (args.length === this.interface.deploy.inputs.length + 1) {
47004
46876
  overrides = args.pop();
47005
46877
  }
47006
- logger6.checkArgumentCount(args.length, this.interface.deploy.inputs.length, " in Contract constructor");
46878
+ logger5.checkArgumentCount(args.length, this.interface.deploy.inputs.length, " in Contract constructor");
47007
46879
  const params = yield resolveAddresses(this.signer, args, this.interface.deploy.inputs);
47008
46880
  params.push(overrides);
47009
46881
  const unsignedTx = this.getDeployTransaction(...params);
@@ -47023,7 +46895,7 @@ class ContractFactory {
47023
46895
  }
47024
46896
  static fromSolidity(compilerOutput, signer) {
47025
46897
  if (compilerOutput == null) {
47026
- logger6.throwError("missing compiler output", Logger.errors.MISSING_ARGUMENT, { argument: "compilerOutput" });
46898
+ logger5.throwError("missing compiler output", Logger.errors.MISSING_ARGUMENT, { argument: "compilerOutput" });
47027
46899
  }
47028
46900
  if (typeof compilerOutput === "string") {
47029
46901
  compilerOutput = JSON.parse(compilerOutput);
@@ -47041,7 +46913,7 @@ class ContractFactory {
47041
46913
  return Contract.getInterface(contractInterface);
47042
46914
  }
47043
46915
  static getContractAddress(tx) {
47044
- return getContractAddress(tx);
46916
+ return import_address2.getContractAddress(tx);
47045
46917
  }
47046
46918
  static getContract(address, contractInterface, signer) {
47047
46919
  return new Contract(address, contractInterface, signer);
@@ -47049,10 +46921,11 @@ class ContractFactory {
47049
46921
  }
47050
46922
 
47051
46923
  // node_modules/@ethersproject/wallet/lib.esm/index.js
47052
- var import_bytes5 = __toESM(require_lib2(), 1);
46924
+ var import_address3 = __toESM(require_lib7(), 1);
46925
+ var import_bytes4 = __toESM(require_lib2(), 1);
47053
46926
  var import_hash = __toESM(require_lib12(), 1);
47054
46927
  var import_hdnode = __toESM(require_lib20(), 1);
47055
- var import_keccak2562 = __toESM(require_lib5(), 1);
46928
+ var import_keccak256 = __toESM(require_lib5(), 1);
47056
46929
  var import_properties4 = __toESM(require_lib4(), 1);
47057
46930
  var import_random = __toESM(require_lib21(), 1);
47058
46931
  var import_signing_key = __toESM(require_lib14(), 1);
@@ -47060,7 +46933,7 @@ var import_json_wallets = __toESM(require_lib22(), 1);
47060
46933
  var import_transactions2 = __toESM(require_lib15(), 1);
47061
46934
 
47062
46935
  // node_modules/@ethersproject/wallet/lib.esm/_version.js
47063
- var version9 = "wallet/5.7.0";
46936
+ var version8 = "wallet/5.7.0";
47064
46937
 
47065
46938
  // node_modules/@ethersproject/wallet/lib.esm/index.js
47066
46939
  var __awaiter4 = function(thisArg, _arguments, P, generator) {
@@ -47090,9 +46963,9 @@ var __awaiter4 = function(thisArg, _arguments, P, generator) {
47090
46963
  step((generator = generator.apply(thisArg, _arguments || [])).next());
47091
46964
  });
47092
46965
  };
47093
- var logger7 = new Logger(version9);
46966
+ var logger6 = new Logger(version8);
47094
46967
  function isAccount(value) {
47095
- return value != null && import_bytes5.isHexString(value.privateKey, 32) && value.address != null;
46968
+ return value != null && import_bytes4.isHexString(value.privateKey, 32) && value.address != null;
47096
46969
  }
47097
46970
  function hasMnemonic(value) {
47098
46971
  const mnemonic = value.mnemonic;
@@ -47106,8 +46979,8 @@ class Wallet extends Signer {
47106
46979
  const signingKey = new import_signing_key.SigningKey(privateKey.privateKey);
47107
46980
  import_properties4.defineReadOnly(this, "_signingKey", () => signingKey);
47108
46981
  import_properties4.defineReadOnly(this, "address", import_transactions2.computeAddress(this.publicKey));
47109
- if (this.address !== getAddress(privateKey.address)) {
47110
- logger7.throwArgumentError("privateKey/address mismatch", "privateKey", "[REDACTED]");
46982
+ if (this.address !== import_address3.getAddress(privateKey.address)) {
46983
+ logger6.throwArgumentError("privateKey/address mismatch", "privateKey", "[REDACTED]");
47111
46984
  }
47112
46985
  if (hasMnemonic(privateKey)) {
47113
46986
  const srcMnemonic = privateKey.mnemonic;
@@ -47119,7 +46992,7 @@ class Wallet extends Signer {
47119
46992
  const mnemonic = this.mnemonic;
47120
46993
  const node = import_hdnode.HDNode.fromMnemonic(mnemonic.phrase, null, mnemonic.locale).derivePath(mnemonic.path);
47121
46994
  if (import_transactions2.computeAddress(node.privateKey) !== this.address) {
47122
- logger7.throwArgumentError("mnemonic/address mismatch", "privateKey", "[REDACTED]");
46995
+ logger6.throwArgumentError("mnemonic/address mismatch", "privateKey", "[REDACTED]");
47123
46996
  }
47124
46997
  } else {
47125
46998
  import_properties4.defineReadOnly(this, "_mnemonic", () => null);
@@ -47127,7 +47000,7 @@ class Wallet extends Signer {
47127
47000
  } else {
47128
47001
  if (import_signing_key.SigningKey.isSigningKey(privateKey)) {
47129
47002
  if (privateKey.curve !== "secp256k1") {
47130
- logger7.throwArgumentError("unsupported curve; must be secp256k1", "privateKey", "[REDACTED]");
47003
+ logger6.throwArgumentError("unsupported curve; must be secp256k1", "privateKey", "[REDACTED]");
47131
47004
  }
47132
47005
  import_properties4.defineReadOnly(this, "_signingKey", () => privateKey);
47133
47006
  } else {
@@ -47143,7 +47016,7 @@ class Wallet extends Signer {
47143
47016
  import_properties4.defineReadOnly(this, "address", import_transactions2.computeAddress(this.publicKey));
47144
47017
  }
47145
47018
  if (provider && !Provider.isProvider(provider)) {
47146
- logger7.throwArgumentError("invalid provider", "provider", provider);
47019
+ logger6.throwArgumentError("invalid provider", "provider", provider);
47147
47020
  }
47148
47021
  import_properties4.defineReadOnly(this, "provider", provider || null);
47149
47022
  }
@@ -47165,32 +47038,32 @@ class Wallet extends Signer {
47165
47038
  signTransaction(transaction) {
47166
47039
  return import_properties4.resolveProperties(transaction).then((tx) => {
47167
47040
  if (tx.from != null) {
47168
- if (getAddress(tx.from) !== this.address) {
47169
- logger7.throwArgumentError("transaction from address mismatch", "transaction.from", transaction.from);
47041
+ if (import_address3.getAddress(tx.from) !== this.address) {
47042
+ logger6.throwArgumentError("transaction from address mismatch", "transaction.from", transaction.from);
47170
47043
  }
47171
47044
  delete tx.from;
47172
47045
  }
47173
- const signature = this._signingKey().signDigest(import_keccak2562.keccak256(import_transactions2.serialize(tx)));
47046
+ const signature = this._signingKey().signDigest(import_keccak256.keccak256(import_transactions2.serialize(tx)));
47174
47047
  return import_transactions2.serialize(tx, signature);
47175
47048
  });
47176
47049
  }
47177
47050
  signMessage(message) {
47178
47051
  return __awaiter4(this, undefined, undefined, function* () {
47179
- return import_bytes5.joinSignature(this._signingKey().signDigest(import_hash.hashMessage(message)));
47052
+ return import_bytes4.joinSignature(this._signingKey().signDigest(import_hash.hashMessage(message)));
47180
47053
  });
47181
47054
  }
47182
47055
  _signTypedData(domain, types2, value) {
47183
47056
  return __awaiter4(this, undefined, undefined, function* () {
47184
47057
  const populated = yield import_hash._TypedDataEncoder.resolveNames(domain, types2, value, (name) => {
47185
47058
  if (this.provider == null) {
47186
- logger7.throwError("cannot resolve ENS names without a provider", Logger.errors.UNSUPPORTED_OPERATION, {
47059
+ logger6.throwError("cannot resolve ENS names without a provider", Logger.errors.UNSUPPORTED_OPERATION, {
47187
47060
  operation: "resolveName",
47188
47061
  value: name
47189
47062
  });
47190
47063
  }
47191
47064
  return this.provider.resolveName(name);
47192
47065
  });
47193
- return import_bytes5.joinSignature(this._signingKey().signDigest(import_hash._TypedDataEncoder.hash(populated.domain, types2, populated.value)));
47066
+ return import_bytes4.joinSignature(this._signingKey().signDigest(import_hash._TypedDataEncoder.hash(populated.domain, types2, populated.value)));
47194
47067
  });
47195
47068
  }
47196
47069
  encrypt(password, options, progressCallback) {
@@ -47212,7 +47085,7 @@ class Wallet extends Signer {
47212
47085
  options = {};
47213
47086
  }
47214
47087
  if (options.extraEntropy) {
47215
- entropy = import_bytes5.arrayify(import_bytes5.hexDataSlice(import_keccak2562.keccak256(import_bytes5.concat([entropy, options.extraEntropy])), 0, 16));
47088
+ entropy = import_bytes4.arrayify(import_bytes4.hexDataSlice(import_keccak256.keccak256(import_bytes4.concat([entropy, options.extraEntropy])), 0, 16));
47216
47089
  }
47217
47090
  const mnemonic = import_hdnode.entropyToMnemonic(entropy, options.locale);
47218
47091
  return Wallet.fromMnemonic(mnemonic, options.path, options.locale);
@@ -47303,10 +47176,10 @@ __export(exports_lib2, {
47303
47176
  });
47304
47177
 
47305
47178
  // node_modules/@ethersproject/networks/lib.esm/_version.js
47306
- var version10 = "networks/5.7.1";
47179
+ var version9 = "networks/5.7.1";
47307
47180
 
47308
47181
  // node_modules/@ethersproject/networks/lib.esm/index.js
47309
- var logger8 = new Logger(version10);
47182
+ var logger7 = new Logger(version9);
47310
47183
  function isRenetworkable(value) {
47311
47184
  return value && typeof value.renetwork === "function";
47312
47185
  }
@@ -47501,12 +47374,12 @@ function getNetwork(network) {
47501
47374
  const standard = networks[network.name];
47502
47375
  if (!standard) {
47503
47376
  if (typeof network.chainId !== "number") {
47504
- logger8.throwArgumentError("invalid network chainId", "network", network);
47377
+ logger7.throwArgumentError("invalid network chainId", "network", network);
47505
47378
  }
47506
47379
  return network;
47507
47380
  }
47508
47381
  if (network.chainId !== 0 && network.chainId !== standard.chainId) {
47509
- logger8.throwArgumentError("network chainId mismatch", "network", network);
47382
+ logger7.throwArgumentError("network chainId mismatch", "network", network);
47510
47383
  }
47511
47384
  let defaultProvider = network._defaultProvider || null;
47512
47385
  if (defaultProvider == null && standard._defaultProvider) {
@@ -47527,7 +47400,7 @@ function getNetwork(network) {
47527
47400
  // node_modules/@ethersproject/providers/lib.esm/base-provider.js
47528
47401
  var import_base64 = __toESM(require_lib10(), 1);
47529
47402
  var import_basex = __toESM(require_lib16(), 1);
47530
- var import_bytes7 = __toESM(require_lib2(), 1);
47403
+ var import_bytes6 = __toESM(require_lib2(), 1);
47531
47404
  var import_hash2 = __toESM(require_lib12(), 1);
47532
47405
  var import_properties6 = __toESM(require_lib4(), 1);
47533
47406
  var import_sha2 = __toESM(require_lib17(), 1);
@@ -47536,13 +47409,14 @@ var import_web = __toESM(require_lib23(), 1);
47536
47409
  var import_bech32 = __toESM(require_bech32(), 1);
47537
47410
 
47538
47411
  // node_modules/@ethersproject/providers/lib.esm/_version.js
47539
- var version11 = "providers/5.7.2";
47412
+ var version10 = "providers/5.7.2";
47540
47413
 
47541
47414
  // node_modules/@ethersproject/providers/lib.esm/formatter.js
47542
- var import_bytes6 = __toESM(require_lib2(), 1);
47415
+ var import_address4 = __toESM(require_lib7(), 1);
47416
+ var import_bytes5 = __toESM(require_lib2(), 1);
47543
47417
  var import_properties5 = __toESM(require_lib4(), 1);
47544
47418
  var import_transactions3 = __toESM(require_lib15(), 1);
47545
- var logger9 = new Logger(version11);
47419
+ var logger8 = new Logger(version10);
47546
47420
 
47547
47421
  class Formatter {
47548
47422
  constructor() {
@@ -47699,11 +47573,11 @@ class Formatter {
47699
47573
  if (!strict && value.substring(0, 2) !== "0x") {
47700
47574
  value = "0x" + value;
47701
47575
  }
47702
- if (import_bytes6.isHexString(value)) {
47576
+ if (import_bytes5.isHexString(value)) {
47703
47577
  return value.toLowerCase();
47704
47578
  }
47705
47579
  }
47706
- return logger9.throwArgumentError("invalid hash", "value", value);
47580
+ return logger8.throwArgumentError("invalid hash", "value", value);
47707
47581
  }
47708
47582
  data(value, strict) {
47709
47583
  const result = this.hex(value, strict);
@@ -47713,17 +47587,17 @@ class Formatter {
47713
47587
  return result;
47714
47588
  }
47715
47589
  address(value) {
47716
- return getAddress(value);
47590
+ return import_address4.getAddress(value);
47717
47591
  }
47718
47592
  callAddress(value) {
47719
- if (!import_bytes6.isHexString(value, 32)) {
47593
+ if (!import_bytes5.isHexString(value, 32)) {
47720
47594
  return null;
47721
47595
  }
47722
- const address = getAddress(import_bytes6.hexDataSlice(value, 12));
47596
+ const address = import_address4.getAddress(import_bytes5.hexDataSlice(value, 12));
47723
47597
  return address === AddressZero ? null : address;
47724
47598
  }
47725
47599
  contractAddress(value) {
47726
- return getContractAddress(value);
47600
+ return import_address4.getContractAddress(value);
47727
47601
  }
47728
47602
  blockTag(blockTag) {
47729
47603
  if (blockTag == null) {
@@ -47741,15 +47615,15 @@ class Formatter {
47741
47615
  case "finalized":
47742
47616
  return blockTag;
47743
47617
  }
47744
- if (typeof blockTag === "number" || import_bytes6.isHexString(blockTag)) {
47745
- return import_bytes6.hexValue(blockTag);
47618
+ if (typeof blockTag === "number" || import_bytes5.isHexString(blockTag)) {
47619
+ return import_bytes5.hexValue(blockTag);
47746
47620
  }
47747
47621
  throw new Error("invalid blockTag");
47748
47622
  }
47749
47623
  hash(value, strict) {
47750
47624
  const result = this.hex(value, strict);
47751
- if (import_bytes6.hexDataLength(result) !== 32) {
47752
- return logger9.throwArgumentError("invalid hash", "value", value);
47625
+ if (import_bytes5.hexDataLength(result) !== 32) {
47626
+ return logger8.throwArgumentError("invalid hash", "value", value);
47753
47627
  }
47754
47628
  return result;
47755
47629
  }
@@ -47764,10 +47638,10 @@ class Formatter {
47764
47638
  return null;
47765
47639
  }
47766
47640
  uint256(value) {
47767
- if (!import_bytes6.isHexString(value)) {
47641
+ if (!import_bytes5.isHexString(value)) {
47768
47642
  throw new Error("invalid uint256");
47769
47643
  }
47770
- return import_bytes6.hexZeroPad(value, 32);
47644
+ return import_bytes5.hexZeroPad(value, 32);
47771
47645
  }
47772
47646
  _block(value, format2) {
47773
47647
  if (value.author != null && value.miner == null) {
@@ -47806,7 +47680,7 @@ class Formatter {
47806
47680
  const result = Formatter.check(this.formats.transaction, transaction);
47807
47681
  if (transaction.chainId != null) {
47808
47682
  let chainId = transaction.chainId;
47809
- if (import_bytes6.isHexString(chainId)) {
47683
+ if (import_bytes5.isHexString(chainId)) {
47810
47684
  chainId = BigNumber.from(chainId).toNumber();
47811
47685
  }
47812
47686
  result.chainId = chainId;
@@ -47815,7 +47689,7 @@ class Formatter {
47815
47689
  if (chainId == null && result.v == null) {
47816
47690
  chainId = transaction.chainId;
47817
47691
  }
47818
- if (import_bytes6.isHexString(chainId)) {
47692
+ if (import_bytes5.isHexString(chainId)) {
47819
47693
  chainId = BigNumber.from(chainId).toNumber();
47820
47694
  }
47821
47695
  if (typeof chainId !== "number" && result.v != null) {
@@ -47848,15 +47722,15 @@ class Formatter {
47848
47722
  const value2 = BigNumber.from(result.root).toNumber();
47849
47723
  if (value2 === 0 || value2 === 1) {
47850
47724
  if (result.status != null && result.status !== value2) {
47851
- logger9.throwArgumentError("alt-root-status/status mismatch", "value", { root: result.root, status: result.status });
47725
+ logger8.throwArgumentError("alt-root-status/status mismatch", "value", { root: result.root, status: result.status });
47852
47726
  }
47853
47727
  result.status = value2;
47854
47728
  delete result.root;
47855
47729
  } else {
47856
- logger9.throwArgumentError("invalid alt-root-status", "value.root", result.root);
47730
+ logger8.throwArgumentError("invalid alt-root-status", "value.root", result.root);
47857
47731
  }
47858
47732
  } else if (result.root.length !== 66) {
47859
- logger9.throwArgumentError("invalid root hash", "value.root", result.root);
47733
+ logger8.throwArgumentError("invalid root hash", "value.root", result.root);
47860
47734
  }
47861
47735
  }
47862
47736
  if (result.status != null) {
@@ -47977,14 +47851,14 @@ var __awaiter5 = function(thisArg, _arguments, P, generator) {
47977
47851
  step((generator = generator.apply(thisArg, _arguments || [])).next());
47978
47852
  });
47979
47853
  };
47980
- var logger10 = new Logger(version11);
47854
+ var logger9 = new Logger(version10);
47981
47855
  var MAX_CCIP_REDIRECTS = 10;
47982
47856
  function checkTopic(topic) {
47983
47857
  if (topic == null) {
47984
47858
  return "null";
47985
47859
  }
47986
- if (import_bytes7.hexDataLength(topic) !== 32) {
47987
- logger10.throwArgumentError("invalid topic", "topic", topic);
47860
+ if (import_bytes6.hexDataLength(topic) !== 32) {
47861
+ logger9.throwArgumentError("invalid topic", "topic", topic);
47988
47862
  }
47989
47863
  return topic.toLowerCase();
47990
47864
  }
@@ -48024,7 +47898,7 @@ function deserializeTopics(data) {
48024
47898
  function getEventTag2(eventName) {
48025
47899
  if (typeof eventName === "string") {
48026
47900
  eventName = eventName.toLowerCase();
48027
- if (import_bytes7.hexDataLength(eventName) === 32) {
47901
+ if (import_bytes6.hexDataLength(eventName) === 32) {
48028
47902
  return "tx:" + eventName;
48029
47903
  }
48030
47904
  if (eventName.indexOf(":") === -1) {
@@ -48033,7 +47907,7 @@ function getEventTag2(eventName) {
48033
47907
  } else if (Array.isArray(eventName)) {
48034
47908
  return "filter:*:" + serializeTopics(eventName);
48035
47909
  } else if (ForkEvent.isForkEvent(eventName)) {
48036
- logger10.warn("not implemented");
47910
+ logger9.warn("not implemented");
48037
47911
  throw new Error("not implemented");
48038
47912
  } else if (eventName && typeof eventName === "object") {
48039
47913
  return "filter:" + (eventName.address || "*") + ":" + serializeTopics(eventName.topics || []);
@@ -48106,10 +47980,10 @@ var coinInfos = {
48106
47980
  "700": { symbol: "xdai", ilk: "eth" }
48107
47981
  };
48108
47982
  function bytes32ify(value) {
48109
- return import_bytes7.hexZeroPad(BigNumber.from(value).toHexString(), 32);
47983
+ return import_bytes6.hexZeroPad(BigNumber.from(value).toHexString(), 32);
48110
47984
  }
48111
47985
  function base58Encode(data) {
48112
- return import_basex.Base58.encode(import_bytes7.concat([data, import_bytes7.hexDataSlice(import_sha2.sha256(import_sha2.sha256(data)), 0, 4)]));
47986
+ return import_basex.Base58.encode(import_bytes6.concat([data, import_bytes6.hexDataSlice(import_sha2.sha256(import_sha2.sha256(data)), 0, 4)]));
48113
47987
  }
48114
47988
  var matcherIpfs = new RegExp("^(ipfs)://(.*)$", "i");
48115
47989
  var matchers = [
@@ -48128,9 +48002,9 @@ function _parseBytes(result, start) {
48128
48002
  if (result === "0x") {
48129
48003
  return null;
48130
48004
  }
48131
- const offset = BigNumber.from(import_bytes7.hexDataSlice(result, start, start + 32)).toNumber();
48132
- const length = BigNumber.from(import_bytes7.hexDataSlice(result, offset, offset + 32)).toNumber();
48133
- return import_bytes7.hexDataSlice(result, offset + 32, offset + 32 + length);
48005
+ const offset = BigNumber.from(import_bytes6.hexDataSlice(result, start, start + 32)).toNumber();
48006
+ const length = BigNumber.from(import_bytes6.hexDataSlice(result, offset, offset + 32)).toNumber();
48007
+ return import_bytes6.hexDataSlice(result, offset + 32, offset + 32 + length);
48134
48008
  }
48135
48009
  function getIpfsLink(link) {
48136
48010
  if (link.match(/^ipfs:\/\/ipfs\//i)) {
@@ -48138,12 +48012,12 @@ function getIpfsLink(link) {
48138
48012
  } else if (link.match(/^ipfs:\/\//i)) {
48139
48013
  link = link.substring(7);
48140
48014
  } else {
48141
- logger10.throwArgumentError("unsupported IPFS format", "link", link);
48015
+ logger9.throwArgumentError("unsupported IPFS format", "link", link);
48142
48016
  }
48143
48017
  return `https://gateway.ipfs.io/ipfs/${link}`;
48144
48018
  }
48145
48019
  function numPad(value) {
48146
- const result = import_bytes7.arrayify(value);
48020
+ const result = import_bytes6.arrayify(value);
48147
48021
  if (result.length > 32) {
48148
48022
  throw new Error("internal; should not happen");
48149
48023
  }
@@ -48167,13 +48041,13 @@ function encodeBytes(datas) {
48167
48041
  byteCount += 32;
48168
48042
  }
48169
48043
  for (let i2 = 0;i2 < datas.length; i2++) {
48170
- const data = import_bytes7.arrayify(datas[i2]);
48044
+ const data = import_bytes6.arrayify(datas[i2]);
48171
48045
  result[i2] = numPad(byteCount);
48172
48046
  result.push(numPad(data.length));
48173
48047
  result.push(bytesPad(data));
48174
48048
  byteCount += 32 + Math.ceil(data.length / 32) * 32;
48175
48049
  }
48176
- return import_bytes7.hexConcat(result);
48050
+ return import_bytes6.hexConcat(result);
48177
48051
  }
48178
48052
 
48179
48053
  class Resolver {
@@ -48205,17 +48079,17 @@ class Resolver {
48205
48079
  const tx = {
48206
48080
  to: this.address,
48207
48081
  ccipReadEnabled: true,
48208
- data: import_bytes7.hexConcat([selector, import_hash2.namehash(this.name), parameters || "0x"])
48082
+ data: import_bytes6.hexConcat([selector, import_hash2.namehash(this.name), parameters || "0x"])
48209
48083
  };
48210
48084
  let parseBytes = false;
48211
48085
  if (yield this.supportsWildcard()) {
48212
48086
  parseBytes = true;
48213
- tx.data = import_bytes7.hexConcat(["0x9061b923", encodeBytes([import_hash2.dnsEncode(this.name), tx.data])]);
48087
+ tx.data = import_bytes6.hexConcat(["0x9061b923", encodeBytes([import_hash2.dnsEncode(this.name), tx.data])]);
48214
48088
  }
48215
48089
  try {
48216
48090
  let result = yield this.provider.call(tx);
48217
- if (import_bytes7.arrayify(result).length % 32 === 4) {
48218
- logger10.throwError("resolver threw error", Logger.errors.CALL_EXCEPTION, {
48091
+ if (import_bytes6.arrayify(result).length % 32 === 4) {
48092
+ logger9.throwError("resolver threw error", Logger.errors.CALL_EXCEPTION, {
48219
48093
  transaction: tx,
48220
48094
  data: result
48221
48095
  });
@@ -48244,20 +48118,20 @@ class Resolver {
48244
48118
  _getAddress(coinType, hexBytes) {
48245
48119
  const coinInfo = coinInfos[String(coinType)];
48246
48120
  if (coinInfo == null) {
48247
- logger10.throwError(`unsupported coin type: ${coinType}`, Logger.errors.UNSUPPORTED_OPERATION, {
48121
+ logger9.throwError(`unsupported coin type: ${coinType}`, Logger.errors.UNSUPPORTED_OPERATION, {
48248
48122
  operation: `getAddress(${coinType})`
48249
48123
  });
48250
48124
  }
48251
48125
  if (coinInfo.ilk === "eth") {
48252
48126
  return this.provider.formatter.address(hexBytes);
48253
48127
  }
48254
- const bytes = import_bytes7.arrayify(hexBytes);
48128
+ const bytes = import_bytes6.arrayify(hexBytes);
48255
48129
  if (coinInfo.p2pkh != null) {
48256
48130
  const p2pkh = hexBytes.match(/^0x76a9([0-9a-f][0-9a-f])([0-9a-f]*)88ac$/);
48257
48131
  if (p2pkh) {
48258
48132
  const length = parseInt(p2pkh[1], 16);
48259
48133
  if (p2pkh[2].length === length * 2 && length >= 1 && length <= 75) {
48260
- return base58Encode(import_bytes7.concat([[coinInfo.p2pkh], "0x" + p2pkh[2]]));
48134
+ return base58Encode(import_bytes6.concat([[coinInfo.p2pkh], "0x" + p2pkh[2]]));
48261
48135
  }
48262
48136
  }
48263
48137
  }
@@ -48266,23 +48140,23 @@ class Resolver {
48266
48140
  if (p2sh) {
48267
48141
  const length = parseInt(p2sh[1], 16);
48268
48142
  if (p2sh[2].length === length * 2 && length >= 1 && length <= 75) {
48269
- return base58Encode(import_bytes7.concat([[coinInfo.p2sh], "0x" + p2sh[2]]));
48143
+ return base58Encode(import_bytes6.concat([[coinInfo.p2sh], "0x" + p2sh[2]]));
48270
48144
  }
48271
48145
  }
48272
48146
  }
48273
48147
  if (coinInfo.prefix != null) {
48274
48148
  const length = bytes[1];
48275
- let version12 = bytes[0];
48276
- if (version12 === 0) {
48149
+ let version11 = bytes[0];
48150
+ if (version11 === 0) {
48277
48151
  if (length !== 20 && length !== 32) {
48278
- version12 = -1;
48152
+ version11 = -1;
48279
48153
  }
48280
48154
  } else {
48281
- version12 = -1;
48155
+ version11 = -1;
48282
48156
  }
48283
- if (version12 >= 0 && bytes.length === 2 + length && length >= 1 && length <= 75) {
48157
+ if (version11 >= 0 && bytes.length === 2 + length && length >= 1 && length <= 75) {
48284
48158
  const words = import_bech32.default.toWords(bytes.slice(2));
48285
- words.unshift(version12);
48159
+ words.unshift(version11);
48286
48160
  return import_bech32.default.encode(coinInfo.prefix, words);
48287
48161
  }
48288
48162
  }
@@ -48313,7 +48187,7 @@ class Resolver {
48313
48187
  }
48314
48188
  const address = this._getAddress(coinType, hexBytes);
48315
48189
  if (address == null) {
48316
- logger10.throwError(`invalid or unsupported coin data`, Logger.errors.UNSUPPORTED_OPERATION, {
48190
+ logger9.throwError(`invalid or unsupported coin data`, Logger.errors.UNSUPPORTED_OPERATION, {
48317
48191
  operation: `getAddress(${coinType})`,
48318
48192
  coinType,
48319
48193
  data: hexBytes
@@ -48356,11 +48230,11 @@ class Resolver {
48356
48230
  return null;
48357
48231
  }
48358
48232
  const addr = yield this.provider.formatter.address(comps[0]);
48359
- const tokenId = import_bytes7.hexZeroPad(BigNumber.from(comps[1]).toHexString(), 32);
48233
+ const tokenId = import_bytes6.hexZeroPad(BigNumber.from(comps[1]).toHexString(), 32);
48360
48234
  if (scheme === "erc721") {
48361
48235
  const tokenOwner = this.provider.formatter.callAddress(yield this.provider.call({
48362
48236
  to: addr,
48363
- data: import_bytes7.hexConcat(["0x6352211e", tokenId])
48237
+ data: import_bytes6.hexConcat(["0x6352211e", tokenId])
48364
48238
  }));
48365
48239
  if (owner !== tokenOwner) {
48366
48240
  return null;
@@ -48369,7 +48243,7 @@ class Resolver {
48369
48243
  } else if (scheme === "erc1155") {
48370
48244
  const balance = BigNumber.from(yield this.provider.call({
48371
48245
  to: addr,
48372
- data: import_bytes7.hexConcat(["0x00fdd58e", import_bytes7.hexZeroPad(owner, 32), tokenId])
48246
+ data: import_bytes6.hexConcat(["0x00fdd58e", import_bytes6.hexZeroPad(owner, 32), tokenId])
48373
48247
  }));
48374
48248
  if (balance.isZero()) {
48375
48249
  return null;
@@ -48378,7 +48252,7 @@ class Resolver {
48378
48252
  }
48379
48253
  const tx = {
48380
48254
  to: this.provider.formatter.address(comps[0]),
48381
- data: import_bytes7.hexConcat([selector, tokenId])
48255
+ data: import_bytes6.hexConcat([selector, tokenId])
48382
48256
  };
48383
48257
  let metadataUrl = _parseString(yield this.provider.call(tx), 0);
48384
48258
  if (metadataUrl == null) {
@@ -48453,7 +48327,7 @@ class Resolver {
48453
48327
  return "sia://" + hash;
48454
48328
  }
48455
48329
  }
48456
- return logger10.throwError(`invalid or unsupported content hash data`, Logger.errors.UNSUPPORTED_OPERATION, {
48330
+ return logger9.throwError(`invalid or unsupported content hash data`, Logger.errors.UNSUPPORTED_OPERATION, {
48457
48331
  operation: "getContentHash()",
48458
48332
  data: hexBytes
48459
48333
  });
@@ -48462,11 +48336,11 @@ class Resolver {
48462
48336
  getText(key) {
48463
48337
  return __awaiter5(this, undefined, undefined, function* () {
48464
48338
  let keyBytes = import_strings2.toUtf8Bytes(key);
48465
- keyBytes = import_bytes7.concat([bytes32ify(64), bytes32ify(keyBytes.length), keyBytes]);
48339
+ keyBytes = import_bytes6.concat([bytes32ify(64), bytes32ify(keyBytes.length), keyBytes]);
48466
48340
  if (keyBytes.length % 32 !== 0) {
48467
- keyBytes = import_bytes7.concat([keyBytes, import_bytes7.hexZeroPad("0x", 32 - key.length % 32)]);
48341
+ keyBytes = import_bytes6.concat([keyBytes, import_bytes6.hexZeroPad("0x", 32 - key.length % 32)]);
48468
48342
  }
48469
- const hexBytes = yield this._fetchBytes("0x59d1d43c", import_bytes7.hexlify(keyBytes));
48343
+ const hexBytes = yield this._fetchBytes("0x59d1d43c", import_bytes6.hexlify(keyBytes));
48470
48344
  if (hexBytes == null || hexBytes === "0x") {
48471
48345
  return null;
48472
48346
  }
@@ -48498,7 +48372,7 @@ class BaseProvider extends Provider {
48498
48372
  import_properties6.defineReadOnly(this, "_network", knownNetwork);
48499
48373
  this.emit("network", knownNetwork, null);
48500
48374
  } else {
48501
- logger10.throwArgumentError("invalid network", "network", network);
48375
+ logger9.throwArgumentError("invalid network", "network", network);
48502
48376
  }
48503
48377
  }
48504
48378
  this._maxInternalBlockNumber = -1024;
@@ -48520,7 +48394,7 @@ class BaseProvider extends Provider {
48520
48394
  network = yield this.detectNetwork();
48521
48395
  }
48522
48396
  if (!network) {
48523
- logger10.throwError("no network detected", Logger.errors.UNKNOWN_ERROR, {});
48397
+ logger9.throwError("no network detected", Logger.errors.UNKNOWN_ERROR, {});
48524
48398
  }
48525
48399
  if (this._network == null) {
48526
48400
  if (this.anyNetwork) {
@@ -48576,11 +48450,11 @@ class BaseProvider extends Provider {
48576
48450
  }
48577
48451
  const errorMessage = result.message || "unknown error";
48578
48452
  if (result.status >= 400 && result.status < 500) {
48579
- return logger10.throwError(`response not found during CCIP fetch: ${errorMessage}`, Logger.errors.SERVER_ERROR, { url, errorMessage });
48453
+ return logger9.throwError(`response not found during CCIP fetch: ${errorMessage}`, Logger.errors.SERVER_ERROR, { url, errorMessage });
48580
48454
  }
48581
48455
  errorMessages.push(errorMessage);
48582
48456
  }
48583
- return logger10.throwError(`error encountered during CCIP fetch: ${errorMessages.map((m) => JSON.stringify(m)).join(", ")}`, Logger.errors.SERVER_ERROR, {
48457
+ return logger9.throwError(`error encountered during CCIP fetch: ${errorMessages.map((m) => JSON.stringify(m)).join(", ")}`, Logger.errors.SERVER_ERROR, {
48584
48458
  urls,
48585
48459
  errorMessages
48586
48460
  });
@@ -48655,8 +48529,8 @@ class BaseProvider extends Provider {
48655
48529
  this._emitted.block = blockNumber - 1;
48656
48530
  }
48657
48531
  if (Math.abs(this._emitted.block - blockNumber) > 1000) {
48658
- logger10.warn(`network block skew detected; skipping block events (emitted=${this._emitted.block} blockNumber${blockNumber})`);
48659
- this.emit("error", logger10.makeError("network block skew detected", Logger.errors.NETWORK_ERROR, {
48532
+ logger9.warn(`network block skew detected; skipping block events (emitted=${this._emitted.block} blockNumber${blockNumber})`);
48533
+ this.emit("error", logger9.makeError("network block skew detected", Logger.errors.NETWORK_ERROR, {
48660
48534
  blockNumber,
48661
48535
  event: "blockSkew",
48662
48536
  previousBlockNumber: this._emitted.block
@@ -48761,7 +48635,7 @@ class BaseProvider extends Provider {
48761
48635
  }
48762
48636
  detectNetwork() {
48763
48637
  return __awaiter5(this, undefined, undefined, function* () {
48764
- return logger10.throwError("provider does not support network detection", Logger.errors.UNSUPPORTED_OPERATION, {
48638
+ return logger9.throwError("provider does not support network detection", Logger.errors.UNSUPPORTED_OPERATION, {
48765
48639
  operation: "provider.detectNetwork"
48766
48640
  });
48767
48641
  });
@@ -48784,7 +48658,7 @@ class BaseProvider extends Provider {
48784
48658
  yield stall(0);
48785
48659
  return this._network;
48786
48660
  }
48787
- const error = logger10.makeError("underlying network changed", Logger.errors.NETWORK_ERROR, {
48661
+ const error = logger9.makeError("underlying network changed", Logger.errors.NETWORK_ERROR, {
48788
48662
  event: "changed",
48789
48663
  network,
48790
48664
  detectedNetwork: currentNetwork
@@ -48951,7 +48825,7 @@ class BaseProvider extends Provider {
48951
48825
  } else if (tx.data === "0x" && tx.from === tx.to && tx.value.isZero()) {
48952
48826
  reason = "cancelled";
48953
48827
  }
48954
- reject(logger10.makeError("transaction was replaced", Logger.errors.TRANSACTION_REPLACED, {
48828
+ reject(logger9.makeError("transaction was replaced", Logger.errors.TRANSACTION_REPLACED, {
48955
48829
  cancelled: reason === "replaced" || reason === "cancelled",
48956
48830
  reason,
48957
48831
  replacement: this._wrapTransaction(tx),
@@ -48988,7 +48862,7 @@ class BaseProvider extends Provider {
48988
48862
  if (alreadyDone()) {
48989
48863
  return;
48990
48864
  }
48991
- reject(logger10.makeError("timeout exceeded", Logger.errors.TIMEOUT, { timeout }));
48865
+ reject(logger9.makeError("timeout exceeded", Logger.errors.TIMEOUT, { timeout }));
48992
48866
  }, timeout);
48993
48867
  if (timer.unref) {
48994
48868
  timer.unref();
@@ -49012,7 +48886,7 @@ class BaseProvider extends Provider {
49012
48886
  try {
49013
48887
  return BigNumber.from(result);
49014
48888
  } catch (error) {
49015
- return logger10.throwError("bad result from backend", Logger.errors.SERVER_ERROR, {
48889
+ return logger9.throwError("bad result from backend", Logger.errors.SERVER_ERROR, {
49016
48890
  method: "getGasPrice",
49017
48891
  result,
49018
48892
  error
@@ -49031,7 +48905,7 @@ class BaseProvider extends Provider {
49031
48905
  try {
49032
48906
  return BigNumber.from(result);
49033
48907
  } catch (error) {
49034
- return logger10.throwError("bad result from backend", Logger.errors.SERVER_ERROR, {
48908
+ return logger9.throwError("bad result from backend", Logger.errors.SERVER_ERROR, {
49035
48909
  method: "getBalance",
49036
48910
  params,
49037
48911
  result,
@@ -49051,7 +48925,7 @@ class BaseProvider extends Provider {
49051
48925
  try {
49052
48926
  return BigNumber.from(result).toNumber();
49053
48927
  } catch (error) {
49054
- return logger10.throwError("bad result from backend", Logger.errors.SERVER_ERROR, {
48928
+ return logger9.throwError("bad result from backend", Logger.errors.SERVER_ERROR, {
49055
48929
  method: "getTransactionCount",
49056
48930
  params,
49057
48931
  result,
@@ -49069,9 +48943,9 @@ class BaseProvider extends Provider {
49069
48943
  });
49070
48944
  const result = yield this.perform("getCode", params);
49071
48945
  try {
49072
- return import_bytes7.hexlify(result);
48946
+ return import_bytes6.hexlify(result);
49073
48947
  } catch (error) {
49074
- return logger10.throwError("bad result from backend", Logger.errors.SERVER_ERROR, {
48948
+ return logger9.throwError("bad result from backend", Logger.errors.SERVER_ERROR, {
49075
48949
  method: "getCode",
49076
48950
  params,
49077
48951
  result,
@@ -49086,13 +48960,13 @@ class BaseProvider extends Provider {
49086
48960
  const params = yield import_properties6.resolveProperties({
49087
48961
  address: this._getAddress(addressOrName),
49088
48962
  blockTag: this._getBlockTag(blockTag),
49089
- position: Promise.resolve(position).then((p) => import_bytes7.hexValue(p))
48963
+ position: Promise.resolve(position).then((p) => import_bytes6.hexValue(p))
49090
48964
  });
49091
48965
  const result = yield this.perform("getStorageAt", params);
49092
48966
  try {
49093
- return import_bytes7.hexlify(result);
48967
+ return import_bytes6.hexlify(result);
49094
48968
  } catch (error) {
49095
- return logger10.throwError("bad result from backend", Logger.errors.SERVER_ERROR, {
48969
+ return logger9.throwError("bad result from backend", Logger.errors.SERVER_ERROR, {
49096
48970
  method: "getStorageAt",
49097
48971
  params,
49098
48972
  result,
@@ -49102,12 +48976,12 @@ class BaseProvider extends Provider {
49102
48976
  });
49103
48977
  }
49104
48978
  _wrapTransaction(tx, hash, startBlock) {
49105
- if (hash != null && import_bytes7.hexDataLength(hash) !== 32) {
48979
+ if (hash != null && import_bytes6.hexDataLength(hash) !== 32) {
49106
48980
  throw new Error("invalid response - sendTransaction");
49107
48981
  }
49108
48982
  const result = tx;
49109
48983
  if (hash != null && tx.hash !== hash) {
49110
- logger10.throwError("Transaction hash mismatch from Provider.sendTransaction.", Logger.errors.UNKNOWN_ERROR, { expectedHash: tx.hash, returnedHash: hash });
48984
+ logger9.throwError("Transaction hash mismatch from Provider.sendTransaction.", Logger.errors.UNKNOWN_ERROR, { expectedHash: tx.hash, returnedHash: hash });
49111
48985
  }
49112
48986
  result.wait = (confirms, timeout) => __awaiter5(this, undefined, undefined, function* () {
49113
48987
  if (confirms == null) {
@@ -49133,7 +49007,7 @@ class BaseProvider extends Provider {
49133
49007
  }
49134
49008
  this._emitted["t:" + tx.hash] = receipt.blockNumber;
49135
49009
  if (receipt.status === 0) {
49136
- logger10.throwError("transaction failed", Logger.errors.CALL_EXCEPTION, {
49010
+ logger9.throwError("transaction failed", Logger.errors.CALL_EXCEPTION, {
49137
49011
  transactionHash: tx.hash,
49138
49012
  transaction: tx,
49139
49013
  receipt
@@ -49146,7 +49020,7 @@ class BaseProvider extends Provider {
49146
49020
  sendTransaction(signedTransaction) {
49147
49021
  return __awaiter5(this, undefined, undefined, function* () {
49148
49022
  yield this.getNetwork();
49149
- const hexTx = yield Promise.resolve(signedTransaction).then((t) => import_bytes7.hexlify(t));
49023
+ const hexTx = yield Promise.resolve(signedTransaction).then((t) => import_bytes6.hexlify(t));
49150
49024
  const tx = this.formatter.transaction(signedTransaction);
49151
49025
  if (tx.confirmations == null) {
49152
49026
  tx.confirmations = 0;
@@ -49191,7 +49065,7 @@ class BaseProvider extends Provider {
49191
49065
  if (values[key] == null) {
49192
49066
  return;
49193
49067
  }
49194
- tx[key] = Promise.resolve(values[key]).then((v) => v ? import_bytes7.hexlify(v) : null);
49068
+ tx[key] = Promise.resolve(values[key]).then((v) => v ? import_bytes6.hexlify(v) : null);
49195
49069
  });
49196
49070
  return this.formatter.transactionRequest(yield import_properties6.resolveProperties(tx));
49197
49071
  });
@@ -49221,19 +49095,19 @@ class BaseProvider extends Provider {
49221
49095
  _call(transaction, blockTag, attempt) {
49222
49096
  return __awaiter5(this, undefined, undefined, function* () {
49223
49097
  if (attempt >= MAX_CCIP_REDIRECTS) {
49224
- logger10.throwError("CCIP read exceeded maximum redirections", Logger.errors.SERVER_ERROR, {
49098
+ logger9.throwError("CCIP read exceeded maximum redirections", Logger.errors.SERVER_ERROR, {
49225
49099
  redirects: attempt,
49226
49100
  transaction
49227
49101
  });
49228
49102
  }
49229
49103
  const txSender = transaction.to;
49230
49104
  const result = yield this.perform("call", { transaction, blockTag });
49231
- if (attempt >= 0 && blockTag === "latest" && txSender != null && result.substring(0, 10) === "0x556f1830" && import_bytes7.hexDataLength(result) % 32 === 4) {
49105
+ if (attempt >= 0 && blockTag === "latest" && txSender != null && result.substring(0, 10) === "0x556f1830" && import_bytes6.hexDataLength(result) % 32 === 4) {
49232
49106
  try {
49233
- const data = import_bytes7.hexDataSlice(result, 4);
49234
- const sender = import_bytes7.hexDataSlice(data, 0, 32);
49107
+ const data = import_bytes6.hexDataSlice(result, 4);
49108
+ const sender = import_bytes6.hexDataSlice(data, 0, 32);
49235
49109
  if (!BigNumber.from(sender).eq(txSender)) {
49236
- logger10.throwError("CCIP Read sender did not match", Logger.errors.CALL_EXCEPTION, {
49110
+ logger9.throwError("CCIP Read sender did not match", Logger.errors.CALL_EXCEPTION, {
49237
49111
  name: "OffchainLookup",
49238
49112
  signature: "OffchainLookup(address,string[],bytes,bytes4,bytes)",
49239
49113
  transaction,
@@ -49241,13 +49115,13 @@ class BaseProvider extends Provider {
49241
49115
  });
49242
49116
  }
49243
49117
  const urls = [];
49244
- const urlsOffset = BigNumber.from(import_bytes7.hexDataSlice(data, 32, 64)).toNumber();
49245
- const urlsLength = BigNumber.from(import_bytes7.hexDataSlice(data, urlsOffset, urlsOffset + 32)).toNumber();
49246
- const urlsData = import_bytes7.hexDataSlice(data, urlsOffset + 32);
49118
+ const urlsOffset = BigNumber.from(import_bytes6.hexDataSlice(data, 32, 64)).toNumber();
49119
+ const urlsLength = BigNumber.from(import_bytes6.hexDataSlice(data, urlsOffset, urlsOffset + 32)).toNumber();
49120
+ const urlsData = import_bytes6.hexDataSlice(data, urlsOffset + 32);
49247
49121
  for (let u = 0;u < urlsLength; u++) {
49248
49122
  const url = _parseString(urlsData, u * 32);
49249
49123
  if (url == null) {
49250
- logger10.throwError("CCIP Read contained corrupt URL string", Logger.errors.CALL_EXCEPTION, {
49124
+ logger9.throwError("CCIP Read contained corrupt URL string", Logger.errors.CALL_EXCEPTION, {
49251
49125
  name: "OffchainLookup",
49252
49126
  signature: "OffchainLookup(address,string[],bytes,bytes4,bytes)",
49253
49127
  transaction,
@@ -49257,19 +49131,19 @@ class BaseProvider extends Provider {
49257
49131
  urls.push(url);
49258
49132
  }
49259
49133
  const calldata = _parseBytes(data, 64);
49260
- if (!BigNumber.from(import_bytes7.hexDataSlice(data, 100, 128)).isZero()) {
49261
- logger10.throwError("CCIP Read callback selector included junk", Logger.errors.CALL_EXCEPTION, {
49134
+ if (!BigNumber.from(import_bytes6.hexDataSlice(data, 100, 128)).isZero()) {
49135
+ logger9.throwError("CCIP Read callback selector included junk", Logger.errors.CALL_EXCEPTION, {
49262
49136
  name: "OffchainLookup",
49263
49137
  signature: "OffchainLookup(address,string[],bytes,bytes4,bytes)",
49264
49138
  transaction,
49265
49139
  data: result
49266
49140
  });
49267
49141
  }
49268
- const callbackSelector = import_bytes7.hexDataSlice(data, 96, 100);
49142
+ const callbackSelector = import_bytes6.hexDataSlice(data, 96, 100);
49269
49143
  const extraData = _parseBytes(data, 128);
49270
49144
  const ccipResult = yield this.ccipReadFetch(transaction, calldata, urls);
49271
49145
  if (ccipResult == null) {
49272
- logger10.throwError("CCIP Read disabled or provided no URLs", Logger.errors.CALL_EXCEPTION, {
49146
+ logger9.throwError("CCIP Read disabled or provided no URLs", Logger.errors.CALL_EXCEPTION, {
49273
49147
  name: "OffchainLookup",
49274
49148
  signature: "OffchainLookup(address,string[],bytes,bytes4,bytes)",
49275
49149
  transaction,
@@ -49278,7 +49152,7 @@ class BaseProvider extends Provider {
49278
49152
  }
49279
49153
  const tx = {
49280
49154
  to: txSender,
49281
- data: import_bytes7.hexConcat([callbackSelector, encodeBytes([ccipResult, extraData])])
49155
+ data: import_bytes6.hexConcat([callbackSelector, encodeBytes([ccipResult, extraData])])
49282
49156
  };
49283
49157
  return this._call(tx, blockTag, attempt + 1);
49284
49158
  } catch (error) {
@@ -49288,9 +49162,9 @@ class BaseProvider extends Provider {
49288
49162
  }
49289
49163
  }
49290
49164
  try {
49291
- return import_bytes7.hexlify(result);
49165
+ return import_bytes6.hexlify(result);
49292
49166
  } catch (error) {
49293
- return logger10.throwError("bad result from backend", Logger.errors.SERVER_ERROR, {
49167
+ return logger9.throwError("bad result from backend", Logger.errors.SERVER_ERROR, {
49294
49168
  method: "call",
49295
49169
  params: { transaction, blockTag },
49296
49170
  result,
@@ -49320,7 +49194,7 @@ class BaseProvider extends Provider {
49320
49194
  try {
49321
49195
  return BigNumber.from(result);
49322
49196
  } catch (error) {
49323
- return logger10.throwError("bad result from backend", Logger.errors.SERVER_ERROR, {
49197
+ return logger9.throwError("bad result from backend", Logger.errors.SERVER_ERROR, {
49324
49198
  method: "estimateGas",
49325
49199
  params,
49326
49200
  result,
@@ -49333,11 +49207,11 @@ class BaseProvider extends Provider {
49333
49207
  return __awaiter5(this, undefined, undefined, function* () {
49334
49208
  addressOrName = yield addressOrName;
49335
49209
  if (typeof addressOrName !== "string") {
49336
- logger10.throwArgumentError("invalid address or ENS name", "name", addressOrName);
49210
+ logger9.throwArgumentError("invalid address or ENS name", "name", addressOrName);
49337
49211
  }
49338
49212
  const address = yield this.resolveName(addressOrName);
49339
49213
  if (address == null) {
49340
- logger10.throwError("ENS name not configured", Logger.errors.UNSUPPORTED_OPERATION, {
49214
+ logger9.throwError("ENS name not configured", Logger.errors.UNSUPPORTED_OPERATION, {
49341
49215
  operation: `resolveName(${JSON.stringify(addressOrName)})`
49342
49216
  });
49343
49217
  }
@@ -49352,16 +49226,16 @@ class BaseProvider extends Provider {
49352
49226
  const params = {
49353
49227
  includeTransactions: !!includeTransactions
49354
49228
  };
49355
- if (import_bytes7.isHexString(blockHashOrBlockTag, 32)) {
49229
+ if (import_bytes6.isHexString(blockHashOrBlockTag, 32)) {
49356
49230
  params.blockHash = blockHashOrBlockTag;
49357
49231
  } else {
49358
49232
  try {
49359
49233
  params.blockTag = yield this._getBlockTag(blockHashOrBlockTag);
49360
- if (import_bytes7.isHexString(params.blockTag)) {
49234
+ if (import_bytes6.isHexString(params.blockTag)) {
49361
49235
  blockNumber = parseInt(params.blockTag.substring(2), 16);
49362
49236
  }
49363
49237
  } catch (error) {
49364
- logger10.throwArgumentError("invalid block hash or block tag", "blockHashOrBlockTag", blockHashOrBlockTag);
49238
+ logger9.throwArgumentError("invalid block hash or block tag", "blockHashOrBlockTag", blockHashOrBlockTag);
49365
49239
  }
49366
49240
  }
49367
49241
  return import_web.poll(() => __awaiter5(this, undefined, undefined, function* () {
@@ -49493,7 +49367,7 @@ class BaseProvider extends Provider {
49493
49367
  blockTag = yield blockTag;
49494
49368
  if (typeof blockTag === "number" && blockTag < 0) {
49495
49369
  if (blockTag % 1) {
49496
- logger10.throwArgumentError("invalid BlockTag", "blockTag", blockTag);
49370
+ logger9.throwArgumentError("invalid BlockTag", "blockTag", blockTag);
49497
49371
  }
49498
49372
  let blockNumber = yield this._getInternalBlockNumber(100 + 2 * this.pollingInterval);
49499
49373
  blockNumber += blockTag;
@@ -49534,7 +49408,7 @@ class BaseProvider extends Provider {
49534
49408
  }
49535
49409
  const network = yield this.getNetwork();
49536
49410
  if (!network.ensAddress) {
49537
- logger10.throwError("network does not support ENS", Logger.errors.UNSUPPORTED_OPERATION, { operation, network: network.name });
49411
+ logger9.throwError("network does not support ENS", Logger.errors.UNSUPPORTED_OPERATION, { operation, network: network.name });
49538
49412
  }
49539
49413
  try {
49540
49414
  const addrData = yield this.call({
@@ -49552,12 +49426,12 @@ class BaseProvider extends Provider {
49552
49426
  try {
49553
49427
  return Promise.resolve(this.formatter.address(name));
49554
49428
  } catch (error) {
49555
- if (import_bytes7.isHexString(name)) {
49429
+ if (import_bytes6.isHexString(name)) {
49556
49430
  throw error;
49557
49431
  }
49558
49432
  }
49559
49433
  if (typeof name !== "string") {
49560
- logger10.throwArgumentError("invalid ENS name", "name", name);
49434
+ logger9.throwArgumentError("invalid ENS name", "name", name);
49561
49435
  }
49562
49436
  const resolver = yield this.getResolver(name);
49563
49437
  if (!resolver) {
@@ -49589,7 +49463,7 @@ class BaseProvider extends Provider {
49589
49463
  getAvatar(nameOrAddress) {
49590
49464
  return __awaiter5(this, undefined, undefined, function* () {
49591
49465
  let resolver = null;
49592
- if (import_bytes7.isHexString(nameOrAddress)) {
49466
+ if (import_bytes6.isHexString(nameOrAddress)) {
49593
49467
  const address = this.formatter.address(nameOrAddress);
49594
49468
  const node = address.substring(2).toLowerCase() + ".addr.reverse";
49595
49469
  const resolverAddress = yield this._getResolver(node, "getAvatar");
@@ -49633,7 +49507,7 @@ class BaseProvider extends Provider {
49633
49507
  });
49634
49508
  }
49635
49509
  perform(method, params) {
49636
- return logger10.throwError(method + " not implemented", Logger.errors.NOT_IMPLEMENTED, { operation: method });
49510
+ return logger9.throwError(method + " not implemented", Logger.errors.NOT_IMPLEMENTED, { operation: method });
49637
49511
  }
49638
49512
  _startEvent(event) {
49639
49513
  this.polling = this._events.filter((e) => e.pollable()).length > 0;
@@ -49744,7 +49618,7 @@ var import_properties10 = __toESM(require_lib4(), 1);
49744
49618
  var import_properties8 = __toESM(require_lib4(), 1);
49745
49619
 
49746
49620
  // node_modules/@ethersproject/providers/lib.esm/json-rpc-provider.js
49747
- var import_bytes8 = __toESM(require_lib2(), 1);
49621
+ var import_bytes7 = __toESM(require_lib2(), 1);
49748
49622
  var import_hash3 = __toESM(require_lib12(), 1);
49749
49623
  var import_properties7 = __toESM(require_lib4(), 1);
49750
49624
  var import_strings3 = __toESM(require_lib9(), 1);
@@ -49777,14 +49651,14 @@ var __awaiter6 = function(thisArg, _arguments, P, generator) {
49777
49651
  step((generator = generator.apply(thisArg, _arguments || [])).next());
49778
49652
  });
49779
49653
  };
49780
- var logger11 = new Logger(version11);
49654
+ var logger10 = new Logger(version10);
49781
49655
  var errorGas = ["call", "estimateGas"];
49782
49656
  function spelunk(value, requireData) {
49783
49657
  if (value == null) {
49784
49658
  return null;
49785
49659
  }
49786
49660
  if (typeof value.message === "string" && value.message.match("reverted")) {
49787
- const data = import_bytes8.isHexString(value.data) ? value.data : null;
49661
+ const data = import_bytes7.isHexString(value.data) ? value.data : null;
49788
49662
  if (!requireData || data) {
49789
49663
  return { message: value.message, data };
49790
49664
  }
@@ -49812,7 +49686,7 @@ function checkError(method, error, params) {
49812
49686
  if (result) {
49813
49687
  return result.data;
49814
49688
  }
49815
- logger11.throwError("missing revert data in call exception; Transaction reverted without a reason string", Logger.errors.CALL_EXCEPTION, {
49689
+ logger10.throwError("missing revert data in call exception; Transaction reverted without a reason string", Logger.errors.CALL_EXCEPTION, {
49816
49690
  data: "0x",
49817
49691
  transaction,
49818
49692
  error
@@ -49824,7 +49698,7 @@ function checkError(method, error, params) {
49824
49698
  result = spelunk(error, false);
49825
49699
  }
49826
49700
  if (result) {
49827
- logger11.throwError("cannot estimate gas; transaction may fail or may require manual gas limit", Logger.errors.UNPREDICTABLE_GAS_LIMIT, {
49701
+ logger10.throwError("cannot estimate gas; transaction may fail or may require manual gas limit", Logger.errors.UNPREDICTABLE_GAS_LIMIT, {
49828
49702
  reason: result.message,
49829
49703
  method,
49830
49704
  transaction,
@@ -49842,35 +49716,35 @@ function checkError(method, error, params) {
49842
49716
  }
49843
49717
  message = (message || "").toLowerCase();
49844
49718
  if (message.match(/insufficient funds|base fee exceeds gas limit|InsufficientFunds/i)) {
49845
- logger11.throwError("insufficient funds for intrinsic transaction cost", Logger.errors.INSUFFICIENT_FUNDS, {
49719
+ logger10.throwError("insufficient funds for intrinsic transaction cost", Logger.errors.INSUFFICIENT_FUNDS, {
49846
49720
  error,
49847
49721
  method,
49848
49722
  transaction
49849
49723
  });
49850
49724
  }
49851
49725
  if (message.match(/nonce (is )?too low/i)) {
49852
- logger11.throwError("nonce has already been used", Logger.errors.NONCE_EXPIRED, {
49726
+ logger10.throwError("nonce has already been used", Logger.errors.NONCE_EXPIRED, {
49853
49727
  error,
49854
49728
  method,
49855
49729
  transaction
49856
49730
  });
49857
49731
  }
49858
49732
  if (message.match(/replacement transaction underpriced|transaction gas price.*too low/i)) {
49859
- logger11.throwError("replacement fee too low", Logger.errors.REPLACEMENT_UNDERPRICED, {
49733
+ logger10.throwError("replacement fee too low", Logger.errors.REPLACEMENT_UNDERPRICED, {
49860
49734
  error,
49861
49735
  method,
49862
49736
  transaction
49863
49737
  });
49864
49738
  }
49865
49739
  if (message.match(/only replay-protected/i)) {
49866
- logger11.throwError("legacy pre-eip-155 transactions not supported", Logger.errors.UNSUPPORTED_OPERATION, {
49740
+ logger10.throwError("legacy pre-eip-155 transactions not supported", Logger.errors.UNSUPPORTED_OPERATION, {
49867
49741
  error,
49868
49742
  method,
49869
49743
  transaction
49870
49744
  });
49871
49745
  }
49872
49746
  if (errorGas.indexOf(method) >= 0 && message.match(/gas required exceeds allowance|always failing transaction|execution reverted|revert/)) {
49873
- logger11.throwError("cannot estimate gas; transaction may fail or may require manual gas limit", Logger.errors.UNPREDICTABLE_GAS_LIMIT, {
49747
+ logger10.throwError("cannot estimate gas; transaction may fail or may require manual gas limit", Logger.errors.UNPREDICTABLE_GAS_LIMIT, {
49874
49748
  error,
49875
49749
  method,
49876
49750
  transaction
@@ -49917,11 +49791,11 @@ class JsonRpcSigner extends Signer {
49917
49791
  import_properties7.defineReadOnly(this, "_index", addressOrIndex);
49918
49792
  import_properties7.defineReadOnly(this, "_address", null);
49919
49793
  } else {
49920
- logger11.throwArgumentError("invalid address or index", "addressOrIndex", addressOrIndex);
49794
+ logger10.throwArgumentError("invalid address or index", "addressOrIndex", addressOrIndex);
49921
49795
  }
49922
49796
  }
49923
49797
  connect(provider) {
49924
- return logger11.throwError("cannot alter JSON-RPC Signer connection", Logger.errors.UNSUPPORTED_OPERATION, {
49798
+ return logger10.throwError("cannot alter JSON-RPC Signer connection", Logger.errors.UNSUPPORTED_OPERATION, {
49925
49799
  operation: "connect"
49926
49800
  });
49927
49801
  }
@@ -49934,7 +49808,7 @@ class JsonRpcSigner extends Signer {
49934
49808
  }
49935
49809
  return this.provider.send("eth_accounts", []).then((accounts) => {
49936
49810
  if (accounts.length <= this._index) {
49937
- logger11.throwError("unknown account #" + this._index, Logger.errors.UNSUPPORTED_OPERATION, {
49811
+ logger10.throwError("unknown account #" + this._index, Logger.errors.UNSUPPORTED_OPERATION, {
49938
49812
  operation: "getAddress"
49939
49813
  });
49940
49814
  }
@@ -49961,7 +49835,7 @@ class JsonRpcSigner extends Signer {
49961
49835
  }
49962
49836
  const address = yield this.provider.resolveName(to);
49963
49837
  if (address == null) {
49964
- logger11.throwArgumentError("provided ENS name resolves to null", "tx.to", to);
49838
+ logger10.throwArgumentError("provided ENS name resolves to null", "tx.to", to);
49965
49839
  }
49966
49840
  return address;
49967
49841
  }));
@@ -49972,7 +49846,7 @@ class JsonRpcSigner extends Signer {
49972
49846
  }).then(({ tx, sender }) => {
49973
49847
  if (tx.from != null) {
49974
49848
  if (tx.from.toLowerCase() !== sender) {
49975
- logger11.throwArgumentError("from address mismatch", "transaction", transaction);
49849
+ logger10.throwArgumentError("from address mismatch", "transaction", transaction);
49976
49850
  }
49977
49851
  } else {
49978
49852
  tx.from = sender;
@@ -49982,7 +49856,7 @@ class JsonRpcSigner extends Signer {
49982
49856
  return hash;
49983
49857
  }, (error) => {
49984
49858
  if (typeof error.message === "string" && error.message.match(/user denied/i)) {
49985
- logger11.throwError("user rejected transaction", Logger.errors.ACTION_REJECTED, {
49859
+ logger10.throwError("user rejected transaction", Logger.errors.ACTION_REJECTED, {
49986
49860
  action: "sendTransaction",
49987
49861
  transaction: tx
49988
49862
  });
@@ -49992,7 +49866,7 @@ class JsonRpcSigner extends Signer {
49992
49866
  });
49993
49867
  }
49994
49868
  signTransaction(transaction) {
49995
- return logger11.throwError("signing transactions is unsupported", Logger.errors.UNSUPPORTED_OPERATION, {
49869
+ return logger10.throwError("signing transactions is unsupported", Logger.errors.UNSUPPORTED_OPERATION, {
49996
49870
  operation: "signTransaction"
49997
49871
  });
49998
49872
  }
@@ -50019,10 +49893,10 @@ class JsonRpcSigner extends Signer {
50019
49893
  const data = typeof message === "string" ? import_strings3.toUtf8Bytes(message) : message;
50020
49894
  const address = yield this.getAddress();
50021
49895
  try {
50022
- return yield this.provider.send("personal_sign", [import_bytes8.hexlify(data), address.toLowerCase()]);
49896
+ return yield this.provider.send("personal_sign", [import_bytes7.hexlify(data), address.toLowerCase()]);
50023
49897
  } catch (error) {
50024
49898
  if (typeof error.message === "string" && error.message.match(/user denied/i)) {
50025
- logger11.throwError("user rejected signing", Logger.errors.ACTION_REJECTED, {
49899
+ logger10.throwError("user rejected signing", Logger.errors.ACTION_REJECTED, {
50026
49900
  action: "signMessage",
50027
49901
  from: address,
50028
49902
  messageData: message
@@ -50037,10 +49911,10 @@ class JsonRpcSigner extends Signer {
50037
49911
  const data = typeof message === "string" ? import_strings3.toUtf8Bytes(message) : message;
50038
49912
  const address = yield this.getAddress();
50039
49913
  try {
50040
- return yield this.provider.send("eth_sign", [address.toLowerCase(), import_bytes8.hexlify(data)]);
49914
+ return yield this.provider.send("eth_sign", [address.toLowerCase(), import_bytes7.hexlify(data)]);
50041
49915
  } catch (error) {
50042
49916
  if (typeof error.message === "string" && error.message.match(/user denied/i)) {
50043
- logger11.throwError("user rejected signing", Logger.errors.ACTION_REJECTED, {
49917
+ logger10.throwError("user rejected signing", Logger.errors.ACTION_REJECTED, {
50044
49918
  action: "_legacySignMessage",
50045
49919
  from: address,
50046
49920
  messageData: message
@@ -50063,7 +49937,7 @@ class JsonRpcSigner extends Signer {
50063
49937
  ]);
50064
49938
  } catch (error) {
50065
49939
  if (typeof error.message === "string" && error.message.match(/user denied/i)) {
50066
- logger11.throwError("user rejected signing", Logger.errors.ACTION_REJECTED, {
49940
+ logger10.throwError("user rejected signing", Logger.errors.ACTION_REJECTED, {
50067
49941
  action: "_signTypedData",
50068
49942
  from: address,
50069
49943
  messageData: { domain: populated.domain, types: types2, value: populated.value }
@@ -50177,14 +50051,14 @@ class JsonRpcProvider extends BaseProvider {
50177
50051
  try {
50178
50052
  return getNetwork2(BigNumber.from(chainId).toNumber());
50179
50053
  } catch (error) {
50180
- return logger11.throwError("could not detect network", Logger.errors.NETWORK_ERROR, {
50054
+ return logger10.throwError("could not detect network", Logger.errors.NETWORK_ERROR, {
50181
50055
  chainId,
50182
50056
  event: "invalidNetwork",
50183
50057
  serverError: error
50184
50058
  });
50185
50059
  }
50186
50060
  }
50187
- return logger11.throwError("could not detect network", Logger.errors.NETWORK_ERROR, {
50061
+ return logger10.throwError("could not detect network", Logger.errors.NETWORK_ERROR, {
50188
50062
  event: "noNetwork"
50189
50063
  });
50190
50064
  });
@@ -50254,7 +50128,7 @@ class JsonRpcProvider extends BaseProvider {
50254
50128
  case "getCode":
50255
50129
  return ["eth_getCode", [getLowerCase(params.address), params.blockTag]];
50256
50130
  case "getStorageAt":
50257
- return ["eth_getStorageAt", [getLowerCase(params.address), import_bytes8.hexZeroPad(params.position, 32), params.blockTag]];
50131
+ return ["eth_getStorageAt", [getLowerCase(params.address), import_bytes7.hexZeroPad(params.position, 32), params.blockTag]];
50258
50132
  case "sendTransaction":
50259
50133
  return ["eth_sendRawTransaction", [params.signedTransaction]];
50260
50134
  case "getBlock":
@@ -50303,7 +50177,7 @@ class JsonRpcProvider extends BaseProvider {
50303
50177
  }
50304
50178
  const args = this.prepareRequest(method, params);
50305
50179
  if (args == null) {
50306
- logger11.throwError(method + " not implemented", Logger.errors.NOT_IMPLEMENTED, { operation: method });
50180
+ logger10.throwError(method + " not implemented", Logger.errors.NOT_IMPLEMENTED, { operation: method });
50307
50181
  }
50308
50182
  try {
50309
50183
  return yield this.send(args[0], args[1]);
@@ -50380,7 +50254,7 @@ class JsonRpcProvider extends BaseProvider {
50380
50254
  if (transaction[key] == null) {
50381
50255
  return;
50382
50256
  }
50383
- const value = import_bytes8.hexValue(BigNumber.from(transaction[key]));
50257
+ const value = import_bytes7.hexValue(BigNumber.from(transaction[key]));
50384
50258
  if (key === "gasLimit") {
50385
50259
  key = "gas";
50386
50260
  }
@@ -50390,7 +50264,7 @@ class JsonRpcProvider extends BaseProvider {
50390
50264
  if (transaction[key] == null) {
50391
50265
  return;
50392
50266
  }
50393
- result[key] = import_bytes8.hexlify(transaction[key]);
50267
+ result[key] = import_bytes7.hexlify(transaction[key]);
50394
50268
  });
50395
50269
  if (transaction.accessList) {
50396
50270
  result["accessList"] = import_transactions4.accessListify(transaction.accessList);
@@ -50407,9 +50281,9 @@ try {
50407
50281
  throw new Error("inject please");
50408
50282
  }
50409
50283
  } catch (error) {
50410
- const logger12 = new Logger(version11);
50284
+ const logger11 = new Logger(version10);
50411
50285
  WS = function() {
50412
- logger12.throwError("WebSockets not supported in this environment", Logger.errors.UNSUPPORTED_OPERATION, {
50286
+ logger11.throwError("WebSockets not supported in this environment", Logger.errors.UNSUPPORTED_OPERATION, {
50413
50287
  operation: "new WebSocket()"
50414
50288
  });
50415
50289
  };
@@ -50443,13 +50317,13 @@ var __awaiter7 = function(thisArg, _arguments, P, generator) {
50443
50317
  step((generator = generator.apply(thisArg, _arguments || [])).next());
50444
50318
  });
50445
50319
  };
50446
- var logger12 = new Logger(version11);
50320
+ var logger11 = new Logger(version10);
50447
50321
  var NextId = 1;
50448
50322
 
50449
50323
  class WebSocketProvider extends JsonRpcProvider {
50450
50324
  constructor(url, network) {
50451
50325
  if (network === "any") {
50452
- logger12.throwError("WebSocketProvider does not support 'any' network yet", Logger.errors.UNSUPPORTED_OPERATION, {
50326
+ logger11.throwError("WebSocketProvider does not support 'any' network yet", Logger.errors.UNSUPPORTED_OPERATION, {
50453
50327
  operation: "network:any"
50454
50328
  });
50455
50329
  }
@@ -50533,12 +50407,12 @@ class WebSocketProvider extends JsonRpcProvider {
50533
50407
  return 0;
50534
50408
  }
50535
50409
  resetEventsBlock(blockNumber) {
50536
- logger12.throwError("cannot reset events block on WebSocketProvider", Logger.errors.UNSUPPORTED_OPERATION, {
50410
+ logger11.throwError("cannot reset events block on WebSocketProvider", Logger.errors.UNSUPPORTED_OPERATION, {
50537
50411
  operation: "resetEventBlock"
50538
50412
  });
50539
50413
  }
50540
50414
  set pollingInterval(value) {
50541
- logger12.throwError("cannot set polling interval on WebSocketProvider", Logger.errors.UNSUPPORTED_OPERATION, {
50415
+ logger11.throwError("cannot set polling interval on WebSocketProvider", Logger.errors.UNSUPPORTED_OPERATION, {
50542
50416
  operation: "setPollingInterval"
50543
50417
  });
50544
50418
  }
@@ -50551,7 +50425,7 @@ class WebSocketProvider extends JsonRpcProvider {
50551
50425
  if (!value) {
50552
50426
  return;
50553
50427
  }
50554
- logger12.throwError("cannot set polling on WebSocketProvider", Logger.errors.UNSUPPORTED_OPERATION, {
50428
+ logger11.throwError("cannot set polling on WebSocketProvider", Logger.errors.UNSUPPORTED_OPERATION, {
50555
50429
  operation: "setPolling"
50556
50430
  });
50557
50431
  }
@@ -50715,7 +50589,7 @@ var __awaiter8 = function(thisArg, _arguments, P, generator) {
50715
50589
  step((generator = generator.apply(thisArg, _arguments || [])).next());
50716
50590
  });
50717
50591
  };
50718
- var logger13 = new Logger(version11);
50592
+ var logger12 = new Logger(version10);
50719
50593
 
50720
50594
  class StaticJsonRpcProvider extends JsonRpcProvider {
50721
50595
  detectNetwork() {
@@ -50727,7 +50601,7 @@ class StaticJsonRpcProvider extends JsonRpcProvider {
50727
50601
  if (network == null) {
50728
50602
  network = yield _super.detectNetwork.call(this);
50729
50603
  if (!network) {
50730
- logger13.throwError("no network detected", Logger.errors.UNKNOWN_ERROR, {});
50604
+ logger12.throwError("no network detected", Logger.errors.UNKNOWN_ERROR, {});
50731
50605
  }
50732
50606
  if (this._network == null) {
50733
50607
  import_properties9.defineReadOnly(this, "_network", network);
@@ -50741,7 +50615,7 @@ class StaticJsonRpcProvider extends JsonRpcProvider {
50741
50615
 
50742
50616
  class UrlJsonRpcProvider extends StaticJsonRpcProvider {
50743
50617
  constructor(network, apiKey) {
50744
- logger13.checkAbstract(new.target, UrlJsonRpcProvider);
50618
+ logger12.checkAbstract(new.target, UrlJsonRpcProvider);
50745
50619
  network = import_properties9.getStatic(new.target, "getNetwork")(network);
50746
50620
  apiKey = import_properties9.getStatic(new.target, "getApiKey")(apiKey);
50747
50621
  const connection = import_properties9.getStatic(new.target, "getUrl")(network, apiKey);
@@ -50755,13 +50629,13 @@ class UrlJsonRpcProvider extends StaticJsonRpcProvider {
50755
50629
  }
50756
50630
  }
50757
50631
  _startPending() {
50758
- logger13.warn("WARNING: API provider does not support pending filters");
50632
+ logger12.warn("WARNING: API provider does not support pending filters");
50759
50633
  }
50760
50634
  isCommunityResource() {
50761
50635
  return false;
50762
50636
  }
50763
50637
  getSigner(address) {
50764
- return logger13.throwError("API provider does not support signing", Logger.errors.UNSUPPORTED_OPERATION, { operation: "getSigner" });
50638
+ return logger12.throwError("API provider does not support signing", Logger.errors.UNSUPPORTED_OPERATION, { operation: "getSigner" });
50765
50639
  }
50766
50640
  listAccounts() {
50767
50641
  return Promise.resolve([]);
@@ -50770,14 +50644,14 @@ class UrlJsonRpcProvider extends StaticJsonRpcProvider {
50770
50644
  return apiKey;
50771
50645
  }
50772
50646
  static getUrl(network, apiKey) {
50773
- return logger13.throwError("not implemented; sub-classes must override getUrl", Logger.errors.NOT_IMPLEMENTED, {
50647
+ return logger12.throwError("not implemented; sub-classes must override getUrl", Logger.errors.NOT_IMPLEMENTED, {
50774
50648
  operation: "getUrl"
50775
50649
  });
50776
50650
  }
50777
50651
  }
50778
50652
 
50779
50653
  // node_modules/@ethersproject/providers/lib.esm/alchemy-provider.js
50780
- var logger14 = new Logger(version11);
50654
+ var logger13 = new Logger(version10);
50781
50655
  var defaultApiKey = "_gg7wSSi0KMBsdKnGVfHDueq6xMB9EkC";
50782
50656
 
50783
50657
  class AlchemyWebSocketProvider extends WebSocketProvider {
@@ -50801,7 +50675,7 @@ class AlchemyProvider extends UrlJsonRpcProvider {
50801
50675
  return defaultApiKey;
50802
50676
  }
50803
50677
  if (apiKey && typeof apiKey !== "string") {
50804
- logger14.throwArgumentError("invalid apiKey", "apiKey", apiKey);
50678
+ logger13.throwArgumentError("invalid apiKey", "apiKey", apiKey);
50805
50679
  }
50806
50680
  return apiKey;
50807
50681
  }
@@ -50833,7 +50707,7 @@ class AlchemyProvider extends UrlJsonRpcProvider {
50833
50707
  host = "opt-goerli.g.alchemy.com/v2/";
50834
50708
  break;
50835
50709
  default:
50836
- logger14.throwArgumentError("unsupported network", "network", arguments[0]);
50710
+ logger13.throwArgumentError("unsupported network", "network", arguments[0]);
50837
50711
  }
50838
50712
  return {
50839
50713
  allowGzip: true,
@@ -50852,7 +50726,7 @@ class AlchemyProvider extends UrlJsonRpcProvider {
50852
50726
  }
50853
50727
 
50854
50728
  // node_modules/@ethersproject/providers/lib.esm/ankr-provider.js
50855
- var logger15 = new Logger(version11);
50729
+ var logger14 = new Logger(version10);
50856
50730
  var defaultApiKey2 = "9f7d929b018cdffb338517efa06f58359e86ff1ffd350bc889738523659e7972";
50857
50731
  function getHost(name) {
50858
50732
  switch (name) {
@@ -50869,7 +50743,7 @@ function getHost(name) {
50869
50743
  case "arbitrum":
50870
50744
  return "rpc.ankr.com/arbitrum/";
50871
50745
  }
50872
- return logger15.throwArgumentError("unsupported network", "name", name);
50746
+ return logger14.throwArgumentError("unsupported network", "name", name);
50873
50747
  }
50874
50748
 
50875
50749
  class AnkrProvider extends UrlJsonRpcProvider {
@@ -50932,12 +50806,12 @@ var __awaiter9 = function(thisArg, _arguments, P, generator) {
50932
50806
  step((generator = generator.apply(thisArg, _arguments || [])).next());
50933
50807
  });
50934
50808
  };
50935
- var logger16 = new Logger(version11);
50809
+ var logger15 = new Logger(version10);
50936
50810
 
50937
50811
  class CloudflareProvider extends UrlJsonRpcProvider {
50938
50812
  static getApiKey(apiKey) {
50939
50813
  if (apiKey != null) {
50940
- logger16.throwArgumentError("apiKey not supported for cloudflare", "apiKey", apiKey);
50814
+ logger15.throwArgumentError("apiKey not supported for cloudflare", "apiKey", apiKey);
50941
50815
  }
50942
50816
  return null;
50943
50817
  }
@@ -50948,7 +50822,7 @@ class CloudflareProvider extends UrlJsonRpcProvider {
50948
50822
  host = "https://cloudflare-eth.com/";
50949
50823
  break;
50950
50824
  default:
50951
- logger16.throwArgumentError("unsupported network", "network", arguments[0]);
50825
+ logger15.throwArgumentError("unsupported network", "network", arguments[0]);
50952
50826
  }
50953
50827
  return host;
50954
50828
  }
@@ -50967,7 +50841,7 @@ class CloudflareProvider extends UrlJsonRpcProvider {
50967
50841
  }
50968
50842
 
50969
50843
  // node_modules/@ethersproject/providers/lib.esm/etherscan-provider.js
50970
- var import_bytes9 = __toESM(require_lib2(), 1);
50844
+ var import_bytes8 = __toESM(require_lib2(), 1);
50971
50845
  var import_properties11 = __toESM(require_lib4(), 1);
50972
50846
  var import_transactions5 = __toESM(require_lib15(), 1);
50973
50847
  var import_web3 = __toESM(require_lib23(), 1);
@@ -50998,7 +50872,7 @@ var __awaiter10 = function(thisArg, _arguments, P, generator) {
50998
50872
  step((generator = generator.apply(thisArg, _arguments || [])).next());
50999
50873
  });
51000
50874
  };
51001
- var logger17 = new Logger(version11);
50875
+ var logger16 = new Logger(version10);
51002
50876
  function getTransactionPostData(transaction) {
51003
50877
  const result = {};
51004
50878
  for (let key in transaction) {
@@ -51010,13 +50884,13 @@ function getTransactionPostData(transaction) {
51010
50884
  continue;
51011
50885
  }
51012
50886
  if ({ type: true, gasLimit: true, gasPrice: true, maxFeePerGs: true, maxPriorityFeePerGas: true, nonce: true, value: true }[key]) {
51013
- value = import_bytes9.hexValue(import_bytes9.hexlify(value));
50887
+ value = import_bytes8.hexValue(import_bytes8.hexlify(value));
51014
50888
  } else if (key === "accessList") {
51015
50889
  value = "[" + import_transactions5.accessListify(value).map((set) => {
51016
50890
  return `{address:"${set.address}",storageKeys:["${set.storageKeys.join('","')}"]}`;
51017
50891
  }).join(",") + "]";
51018
50892
  } else {
51019
- value = import_bytes9.hexlify(value);
50893
+ value = import_bytes8.hexlify(value);
51020
50894
  }
51021
50895
  result[key] = value;
51022
50896
  }
@@ -51077,10 +50951,10 @@ function checkError2(method, error, transaction) {
51077
50951
  if (data) {
51078
50952
  data = "0x" + data.replace(/^.*0x/i, "");
51079
50953
  }
51080
- if (import_bytes9.isHexString(data)) {
50954
+ if (import_bytes8.isHexString(data)) {
51081
50955
  return data;
51082
50956
  }
51083
- logger17.throwError("missing revert data in call exception", Logger.errors.CALL_EXCEPTION, {
50957
+ logger16.throwError("missing revert data in call exception", Logger.errors.CALL_EXCEPTION, {
51084
50958
  error,
51085
50959
  data: "0x"
51086
50960
  });
@@ -51098,28 +50972,28 @@ function checkError2(method, error, transaction) {
51098
50972
  }
51099
50973
  message = (message || "").toLowerCase();
51100
50974
  if (message.match(/insufficient funds/)) {
51101
- logger17.throwError("insufficient funds for intrinsic transaction cost", Logger.errors.INSUFFICIENT_FUNDS, {
50975
+ logger16.throwError("insufficient funds for intrinsic transaction cost", Logger.errors.INSUFFICIENT_FUNDS, {
51102
50976
  error,
51103
50977
  method,
51104
50978
  transaction
51105
50979
  });
51106
50980
  }
51107
50981
  if (message.match(/same hash was already imported|transaction nonce is too low|nonce too low/)) {
51108
- logger17.throwError("nonce has already been used", Logger.errors.NONCE_EXPIRED, {
50982
+ logger16.throwError("nonce has already been used", Logger.errors.NONCE_EXPIRED, {
51109
50983
  error,
51110
50984
  method,
51111
50985
  transaction
51112
50986
  });
51113
50987
  }
51114
50988
  if (message.match(/another transaction with same nonce/)) {
51115
- logger17.throwError("replacement fee too low", Logger.errors.REPLACEMENT_UNDERPRICED, {
50989
+ logger16.throwError("replacement fee too low", Logger.errors.REPLACEMENT_UNDERPRICED, {
51116
50990
  error,
51117
50991
  method,
51118
50992
  transaction
51119
50993
  });
51120
50994
  }
51121
50995
  if (message.match(/execution failed due to an exception|execution reverted/)) {
51122
- logger17.throwError("cannot estimate gas; transaction may fail or may require manual gas limit", Logger.errors.UNPREDICTABLE_GAS_LIMIT, {
50996
+ logger16.throwError("cannot estimate gas; transaction may fail or may require manual gas limit", Logger.errors.UNPREDICTABLE_GAS_LIMIT, {
51123
50997
  error,
51124
50998
  method,
51125
50999
  transaction
@@ -51156,7 +51030,7 @@ class EtherscanProvider extends BaseProvider {
51156
51030
  return "https://api-goerli-optimistic.etherscan.io";
51157
51031
  default:
51158
51032
  }
51159
- return logger17.throwArgumentError("unsupported network", "network", this.network.name);
51033
+ return logger16.throwArgumentError("unsupported network", "network", this.network.name);
51160
51034
  }
51161
51035
  getUrl(module, params) {
51162
51036
  const query = Object.keys(params).reduce((accum, key) => {
@@ -51316,12 +51190,12 @@ class EtherscanProvider extends BaseProvider {
51316
51190
  }
51317
51191
  if (params.filter.topics && params.filter.topics.length > 0) {
51318
51192
  if (params.filter.topics.length > 1) {
51319
- logger17.throwError("unsupported topic count", Logger.errors.UNSUPPORTED_OPERATION, { topics: params.filter.topics });
51193
+ logger16.throwError("unsupported topic count", Logger.errors.UNSUPPORTED_OPERATION, { topics: params.filter.topics });
51320
51194
  }
51321
51195
  if (params.filter.topics.length === 1) {
51322
51196
  const topic0 = params.filter.topics[0];
51323
51197
  if (typeof topic0 !== "string" || topic0.length !== 66) {
51324
- logger17.throwError("unsupported topic format", Logger.errors.UNSUPPORTED_OPERATION, { topic0 });
51198
+ logger16.throwError("unsupported topic format", Logger.errors.UNSUPPORTED_OPERATION, { topic0 });
51325
51199
  }
51326
51200
  args.topic0 = topic0;
51327
51201
  }
@@ -51387,7 +51261,7 @@ class EtherscanProvider extends BaseProvider {
51387
51261
  }
51388
51262
 
51389
51263
  // node_modules/@ethersproject/providers/lib.esm/fallback-provider.js
51390
- var import_bytes10 = __toESM(require_lib2(), 1);
51264
+ var import_bytes9 = __toESM(require_lib2(), 1);
51391
51265
  var import_properties12 = __toESM(require_lib4(), 1);
51392
51266
  var import_random2 = __toESM(require_lib21(), 1);
51393
51267
  var import_web4 = __toESM(require_lib23(), 1);
@@ -51418,7 +51292,7 @@ var __awaiter11 = function(thisArg, _arguments, P, generator) {
51418
51292
  step((generator = generator.apply(thisArg, _arguments || [])).next());
51419
51293
  });
51420
51294
  };
51421
- var logger18 = new Logger(version11);
51295
+ var logger17 = new Logger(version10);
51422
51296
  function now() {
51423
51297
  return new Date().getTime();
51424
51298
  }
@@ -51431,7 +51305,7 @@ function checkNetworks(networks2) {
51431
51305
  }
51432
51306
  if (result) {
51433
51307
  if (!(result.name === network.name && result.chainId === network.chainId && (result.ensAddress === network.ensAddress || result.ensAddress == null && network.ensAddress == null))) {
51434
- logger18.throwArgumentError("provider mismatch", "networks", networks2);
51308
+ logger17.throwArgumentError("provider mismatch", "networks", networks2);
51435
51309
  }
51436
51310
  } else {
51437
51311
  result = network;
@@ -51667,23 +51541,23 @@ function getRunner(config, currentBlockNumber, method, params) {
51667
51541
  case "getBalance":
51668
51542
  case "getTransactionCount":
51669
51543
  case "getCode":
51670
- if (params.blockTag && import_bytes10.isHexString(params.blockTag)) {
51544
+ if (params.blockTag && import_bytes9.isHexString(params.blockTag)) {
51671
51545
  provider = yield waitForSync(config, currentBlockNumber);
51672
51546
  }
51673
51547
  return provider[method](params.address, params.blockTag || "latest");
51674
51548
  case "getStorageAt":
51675
- if (params.blockTag && import_bytes10.isHexString(params.blockTag)) {
51549
+ if (params.blockTag && import_bytes9.isHexString(params.blockTag)) {
51676
51550
  provider = yield waitForSync(config, currentBlockNumber);
51677
51551
  }
51678
51552
  return provider.getStorageAt(params.address, params.position, params.blockTag || "latest");
51679
51553
  case "getBlock":
51680
- if (params.blockTag && import_bytes10.isHexString(params.blockTag)) {
51554
+ if (params.blockTag && import_bytes9.isHexString(params.blockTag)) {
51681
51555
  provider = yield waitForSync(config, currentBlockNumber);
51682
51556
  }
51683
51557
  return provider[params.includeTransactions ? "getBlockWithTransactions" : "getBlock"](params.blockTag || params.blockHash);
51684
51558
  case "call":
51685
51559
  case "estimateGas":
51686
- if (params.blockTag && import_bytes10.isHexString(params.blockTag)) {
51560
+ if (params.blockTag && import_bytes9.isHexString(params.blockTag)) {
51687
51561
  provider = yield waitForSync(config, currentBlockNumber);
51688
51562
  }
51689
51563
  if (method === "call" && params.blockTag) {
@@ -51695,13 +51569,13 @@ function getRunner(config, currentBlockNumber, method, params) {
51695
51569
  return provider[method](params.transactionHash);
51696
51570
  case "getLogs": {
51697
51571
  let filter = params.filter;
51698
- if (filter.fromBlock && import_bytes10.isHexString(filter.fromBlock) || filter.toBlock && import_bytes10.isHexString(filter.toBlock)) {
51572
+ if (filter.fromBlock && import_bytes9.isHexString(filter.fromBlock) || filter.toBlock && import_bytes9.isHexString(filter.toBlock)) {
51699
51573
  provider = yield waitForSync(config, currentBlockNumber);
51700
51574
  }
51701
51575
  return provider.getLogs(filter);
51702
51576
  }
51703
51577
  }
51704
- return logger18.throwError("unknown method error", Logger.errors.UNKNOWN_ERROR, {
51578
+ return logger17.throwError("unknown method error", Logger.errors.UNKNOWN_ERROR, {
51705
51579
  method,
51706
51580
  params
51707
51581
  });
@@ -51711,7 +51585,7 @@ function getRunner(config, currentBlockNumber, method, params) {
51711
51585
  class FallbackProvider extends BaseProvider {
51712
51586
  constructor(providers, quorum) {
51713
51587
  if (providers.length === 0) {
51714
- logger18.throwArgumentError("missing providers", "providers", providers);
51588
+ logger17.throwArgumentError("missing providers", "providers", providers);
51715
51589
  }
51716
51590
  const providerConfigs = providers.map((configOrProvider, index) => {
51717
51591
  if (Provider.isProvider(configOrProvider)) {
@@ -51731,7 +51605,7 @@ class FallbackProvider extends BaseProvider {
51731
51605
  }
51732
51606
  const weight = config.weight;
51733
51607
  if (weight % 1 || weight > 512 || weight < 1) {
51734
- logger18.throwArgumentError("invalid weight; must be integer in [1, 512]", `providers[${index}].weight`, weight);
51608
+ logger17.throwArgumentError("invalid weight; must be integer in [1, 512]", `providers[${index}].weight`, weight);
51735
51609
  }
51736
51610
  return Object.freeze(config);
51737
51611
  });
@@ -51739,7 +51613,7 @@ class FallbackProvider extends BaseProvider {
51739
51613
  if (quorum == null) {
51740
51614
  quorum = total / 2;
51741
51615
  } else if (quorum > total) {
51742
- logger18.throwArgumentError("quorum will always fail; larger than total weight", "quorum", quorum);
51616
+ logger17.throwArgumentError("quorum will always fail; larger than total weight", "quorum", quorum);
51743
51617
  }
51744
51618
  let networkOrReady = checkNetworks(providerConfigs.map((c) => c.provider.network));
51745
51619
  if (networkOrReady == null) {
@@ -51896,7 +51770,7 @@ class FallbackProvider extends BaseProvider {
51896
51770
  }
51897
51771
  props[name] = e[name];
51898
51772
  });
51899
- logger18.throwError(e.reason || e.message, errorCode, props);
51773
+ logger17.throwError(e.reason || e.message, errorCode, props);
51900
51774
  });
51901
51775
  if (configs.filter((c) => !c.done).length === 0) {
51902
51776
  break;
@@ -51908,7 +51782,7 @@ class FallbackProvider extends BaseProvider {
51908
51782
  }
51909
51783
  c.cancelled = true;
51910
51784
  });
51911
- return logger18.throwError("failed to meet quorum", Logger.errors.SERVER_ERROR, {
51785
+ return logger17.throwError("failed to meet quorum", Logger.errors.SERVER_ERROR, {
51912
51786
  method,
51913
51787
  params,
51914
51788
  results: configs.map((c) => exposeDebugConfig(c)),
@@ -51923,7 +51797,7 @@ var IpcProvider = null;
51923
51797
 
51924
51798
  // node_modules/@ethersproject/providers/lib.esm/infura-provider.js
51925
51799
  var import_properties13 = __toESM(require_lib4(), 1);
51926
- var logger19 = new Logger(version11);
51800
+ var logger18 = new Logger(version10);
51927
51801
  var defaultProjectId = "84842078b09946638c03157f83405213";
51928
51802
 
51929
51803
  class InfuraWebSocketProvider extends WebSocketProvider {
@@ -51931,7 +51805,7 @@ class InfuraWebSocketProvider extends WebSocketProvider {
51931
51805
  const provider = new InfuraProvider(network, apiKey);
51932
51806
  const connection = provider.connection;
51933
51807
  if (connection.password) {
51934
- logger19.throwError("INFURA WebSocket project secrets unsupported", Logger.errors.UNSUPPORTED_OPERATION, {
51808
+ logger18.throwError("INFURA WebSocket project secrets unsupported", Logger.errors.UNSUPPORTED_OPERATION, {
51935
51809
  operation: "InfuraProvider.getWebSocketProvider()"
51936
51810
  });
51937
51811
  }
@@ -51962,8 +51836,8 @@ class InfuraProvider extends UrlJsonRpcProvider {
51962
51836
  if (typeof apiKey === "string") {
51963
51837
  apiKeyObj.projectId = apiKey;
51964
51838
  } else if (apiKey.projectSecret != null) {
51965
- logger19.assertArgument(typeof apiKey.projectId === "string", "projectSecret requires a projectId", "projectId", apiKey.projectId);
51966
- logger19.assertArgument(typeof apiKey.projectSecret === "string", "invalid projectSecret", "projectSecret", "[REDACTED]");
51839
+ logger18.assertArgument(typeof apiKey.projectId === "string", "projectSecret requires a projectId", "projectId", apiKey.projectId);
51840
+ logger18.assertArgument(typeof apiKey.projectSecret === "string", "invalid projectSecret", "projectSecret", "[REDACTED]");
51967
51841
  apiKeyObj.projectId = apiKey.projectId;
51968
51842
  apiKeyObj.projectSecret = apiKey.projectSecret;
51969
51843
  } else if (apiKey.projectId) {
@@ -52003,7 +51877,7 @@ class InfuraProvider extends UrlJsonRpcProvider {
52003
51877
  host = "arbitrum-goerli.infura.io";
52004
51878
  break;
52005
51879
  default:
52006
- logger19.throwError("unsupported network", Logger.errors.INVALID_ARGUMENT, {
51880
+ logger18.throwError("unsupported network", Logger.errors.INVALID_ARGUMENT, {
52007
51881
  argument: "network",
52008
51882
  value: network
52009
51883
  });
@@ -52096,18 +51970,18 @@ class JsonRpcBatchProvider extends JsonRpcProvider {
52096
51970
  }
52097
51971
 
52098
51972
  // node_modules/@ethersproject/providers/lib.esm/nodesmith-provider.js
52099
- var logger20 = new Logger(version11);
51973
+ var logger19 = new Logger(version10);
52100
51974
  var defaultApiKey3 = "ETHERS_JS_SHARED";
52101
51975
 
52102
51976
  class NodesmithProvider extends UrlJsonRpcProvider {
52103
51977
  static getApiKey(apiKey) {
52104
51978
  if (apiKey && typeof apiKey !== "string") {
52105
- logger20.throwArgumentError("invalid apiKey", "apiKey", apiKey);
51979
+ logger19.throwArgumentError("invalid apiKey", "apiKey", apiKey);
52106
51980
  }
52107
51981
  return apiKey || defaultApiKey3;
52108
51982
  }
52109
51983
  static getUrl(network, apiKey) {
52110
- logger20.warn("NodeSmith will be discontinued on 2019-12-20; please migrate to another platform.");
51984
+ logger19.warn("NodeSmith will be discontinued on 2019-12-20; please migrate to another platform.");
52111
51985
  let host = null;
52112
51986
  switch (network.name) {
52113
51987
  case "homestead":
@@ -52126,14 +52000,14 @@ class NodesmithProvider extends UrlJsonRpcProvider {
52126
52000
  host = "https://ethereum.api.nodesmith.io/v1/kovan/jsonrpc";
52127
52001
  break;
52128
52002
  default:
52129
- logger20.throwArgumentError("unsupported network", "network", arguments[0]);
52003
+ logger19.throwArgumentError("unsupported network", "network", arguments[0]);
52130
52004
  }
52131
52005
  return host + "?apiKey=" + apiKey;
52132
52006
  }
52133
52007
  }
52134
52008
 
52135
52009
  // node_modules/@ethersproject/providers/lib.esm/pocket-provider.js
52136
- var logger21 = new Logger(version11);
52010
+ var logger20 = new Logger(version10);
52137
52011
  var defaultApplicationId = "62e1ad51b37b8e00394bda3b";
52138
52012
 
52139
52013
  class PocketProvider extends UrlJsonRpcProvider {
@@ -52153,7 +52027,7 @@ class PocketProvider extends UrlJsonRpcProvider {
52153
52027
  } else if (apiKey.applicationId) {
52154
52028
  apiKeyObj.applicationId = apiKey.applicationId;
52155
52029
  } else {
52156
- logger21.throwArgumentError("unsupported PocketProvider apiKey", "apiKey", apiKey);
52030
+ logger20.throwArgumentError("unsupported PocketProvider apiKey", "apiKey", apiKey);
52157
52031
  }
52158
52032
  return apiKeyObj;
52159
52033
  }
@@ -52182,7 +52056,7 @@ class PocketProvider extends UrlJsonRpcProvider {
52182
52056
  host = "eth-ropsten.gateway.pokt.network";
52183
52057
  break;
52184
52058
  default:
52185
- logger21.throwError("unsupported network", Logger.errors.INVALID_ARGUMENT, {
52059
+ logger20.throwError("unsupported network", Logger.errors.INVALID_ARGUMENT, {
52186
52060
  argument: "network",
52187
52061
  value: network
52188
52062
  });
@@ -52202,7 +52076,7 @@ class PocketProvider extends UrlJsonRpcProvider {
52202
52076
 
52203
52077
  // node_modules/@ethersproject/providers/lib.esm/web3-provider.js
52204
52078
  var import_properties15 = __toESM(require_lib4(), 1);
52205
- var logger22 = new Logger(version11);
52079
+ var logger21 = new Logger(version10);
52206
52080
  var _nextId = 1;
52207
52081
  function buildWeb3LegacyFetcher(provider, sendFunc) {
52208
52082
  const fetcher = "Web3LegacyFetcher";
@@ -52286,7 +52160,7 @@ function buildEip1193Fetcher(provider) {
52286
52160
  class Web3Provider extends JsonRpcProvider {
52287
52161
  constructor(provider, network) {
52288
52162
  if (provider == null) {
52289
- logger22.throwArgumentError("missing provider", "provider", provider);
52163
+ logger21.throwArgumentError("missing provider", "provider", provider);
52290
52164
  }
52291
52165
  let path = null;
52292
52166
  let jsonRpcFetchFunc = null;
@@ -52310,7 +52184,7 @@ class Web3Provider extends JsonRpcProvider {
52310
52184
  } else if (provider.send) {
52311
52185
  jsonRpcFetchFunc = buildWeb3LegacyFetcher(provider, provider.send.bind(provider));
52312
52186
  } else {
52313
- logger22.throwArgumentError("unsupported provider", "provider", provider);
52187
+ logger21.throwArgumentError("unsupported provider", "provider", provider);
52314
52188
  }
52315
52189
  if (!path) {
52316
52190
  path = "unknown:";
@@ -52326,7 +52200,7 @@ class Web3Provider extends JsonRpcProvider {
52326
52200
  }
52327
52201
 
52328
52202
  // node_modules/@ethersproject/providers/lib.esm/index.js
52329
- var logger23 = new Logger(version11);
52203
+ var logger22 = new Logger(version10);
52330
52204
  function getDefaultProvider(network, options) {
52331
52205
  if (network == null) {
52332
52206
  network = "homestead";
@@ -52342,13 +52216,13 @@ function getDefaultProvider(network, options) {
52342
52216
  case "wss":
52343
52217
  return new WebSocketProvider(network);
52344
52218
  default:
52345
- logger23.throwArgumentError("unsupported URL scheme", "network", network);
52219
+ logger22.throwArgumentError("unsupported URL scheme", "network", network);
52346
52220
  }
52347
52221
  }
52348
52222
  }
52349
52223
  const n = getNetwork(network);
52350
52224
  if (!n || !n._defaultProvider) {
52351
- logger23.throwError("unsupported getDefaultProvider network", Logger.errors.NETWORK_ERROR, {
52225
+ logger22.throwError("unsupported getDefaultProvider network", Logger.errors.NETWORK_ERROR, {
52352
52226
  operation: "getDefaultProvider",
52353
52227
  network
52354
52228
  });
@@ -52373,15 +52247,15 @@ var import_hash4 = __toESM(require_lib12(), 1);
52373
52247
  var import_properties16 = __toESM(require_lib4(), 1);
52374
52248
 
52375
52249
  // node_modules/@ethersproject/wordlists/lib.esm/_version.js
52376
- var version12 = "wordlists/5.7.0";
52250
+ var version11 = "wordlists/5.7.0";
52377
52251
 
52378
52252
  // node_modules/@ethersproject/wordlists/lib.esm/wordlist.js
52379
52253
  var exportWordlist = false;
52380
- var logger24 = new Logger(version12);
52254
+ var logger23 = new Logger(version11);
52381
52255
 
52382
52256
  class Wordlist {
52383
52257
  constructor(locale) {
52384
- logger24.checkAbstract(new.target, Wordlist);
52258
+ logger23.checkAbstract(new.target, Wordlist);
52385
52259
  import_properties16.defineReadOnly(this, "locale", locale);
52386
52260
  }
52387
52261
  split(mnemonic) {
@@ -52458,14 +52332,14 @@ var wordlists = {
52458
52332
  // node_modules/ethers/lib.esm/utils.js
52459
52333
  var exports_utils = {};
52460
52334
  __export(exports_utils, {
52461
- zeroPad: () => import_bytes11.zeroPad,
52335
+ zeroPad: () => import_bytes10.zeroPad,
52462
52336
  verifyTypedData: () => verifyTypedData,
52463
52337
  verifyMessage: () => verifyMessage,
52464
52338
  toUtf8String: () => import_strings4.toUtf8String,
52465
52339
  toUtf8CodePoints: () => import_strings4.toUtf8CodePoints,
52466
52340
  toUtf8Bytes: () => import_strings4.toUtf8Bytes,
52467
- stripZeros: () => import_bytes11.stripZeros,
52468
- splitSignature: () => import_bytes11.splitSignature,
52341
+ stripZeros: () => import_bytes10.stripZeros,
52342
+ splitSignature: () => import_bytes10.splitSignature,
52469
52343
  soliditySha256: () => import_solidity.sha256,
52470
52344
  solidityPack: () => import_solidity.pack,
52471
52345
  solidityKeccak256: () => import_solidity.keccak256,
@@ -52488,29 +52362,29 @@ __export(exports_utils, {
52488
52362
  namehash: () => import_hash5.namehash,
52489
52363
  mnemonicToSeed: () => import_hdnode2.mnemonicToSeed,
52490
52364
  mnemonicToEntropy: () => import_hdnode2.mnemonicToEntropy,
52491
- keccak256: () => import_keccak2563.keccak256,
52492
- joinSignature: () => import_bytes11.joinSignature,
52365
+ keccak256: () => import_keccak2562.keccak256,
52366
+ joinSignature: () => import_bytes10.joinSignature,
52493
52367
  isValidName: () => import_hash5.isValidName,
52494
52368
  isValidMnemonic: () => import_hdnode2.isValidMnemonic,
52495
- isHexString: () => import_bytes11.isHexString,
52496
- isBytesLike: () => import_bytes11.isBytesLike,
52497
- isBytes: () => import_bytes11.isBytes,
52498
- isAddress: () => isAddress,
52369
+ isHexString: () => import_bytes10.isHexString,
52370
+ isBytesLike: () => import_bytes10.isBytesLike,
52371
+ isBytes: () => import_bytes10.isBytes,
52372
+ isAddress: () => import_address5.isAddress,
52499
52373
  id: () => import_hash5.id,
52500
- hexlify: () => import_bytes11.hexlify,
52501
- hexZeroPad: () => import_bytes11.hexZeroPad,
52502
- hexValue: () => import_bytes11.hexValue,
52503
- hexStripZeros: () => import_bytes11.hexStripZeros,
52504
- hexDataSlice: () => import_bytes11.hexDataSlice,
52505
- hexDataLength: () => import_bytes11.hexDataLength,
52506
- hexConcat: () => import_bytes11.hexConcat,
52374
+ hexlify: () => import_bytes10.hexlify,
52375
+ hexZeroPad: () => import_bytes10.hexZeroPad,
52376
+ hexValue: () => import_bytes10.hexValue,
52377
+ hexStripZeros: () => import_bytes10.hexStripZeros,
52378
+ hexDataSlice: () => import_bytes10.hexDataSlice,
52379
+ hexDataLength: () => import_bytes10.hexDataLength,
52380
+ hexConcat: () => import_bytes10.hexConcat,
52507
52381
  hashMessage: () => import_hash5.hashMessage,
52508
52382
  getStatic: () => import_properties17.getStatic,
52509
52383
  getJsonWalletAddress: () => import_json_wallets2.getJsonWalletAddress,
52510
- getIcapAddress: () => getIcapAddress,
52511
- getCreate2Address: () => getCreate2Address,
52512
- getContractAddress: () => getContractAddress,
52513
- getAddress: () => getAddress,
52384
+ getIcapAddress: () => import_address5.getIcapAddress,
52385
+ getCreate2Address: () => import_address5.getCreate2Address,
52386
+ getContractAddress: () => import_address5.getContractAddress,
52387
+ getAddress: () => import_address5.getAddress,
52514
52388
  getAccountPath: () => import_hdnode2.getAccountPath,
52515
52389
  formatUnits: () => import_units.formatUnits,
52516
52390
  formatEther: () => import_units.formatEther,
@@ -52522,7 +52396,7 @@ __export(exports_utils, {
52522
52396
  defaultPath: () => import_hdnode2.defaultPath,
52523
52397
  defaultAbiCoder: () => import_abi2.defaultAbiCoder,
52524
52398
  deepCopy: () => import_properties17.deepCopy,
52525
- concat: () => import_bytes11.concat,
52399
+ concat: () => import_bytes10.concat,
52526
52400
  computePublicKey: () => import_signing_key2.computePublicKey,
52527
52401
  computeHmac: () => import_sha22.computeHmac,
52528
52402
  computeAddress: () => import_transactions6.computeAddress,
@@ -52531,7 +52405,7 @@ __export(exports_utils, {
52531
52405
  checkProperties: () => import_properties17.checkProperties,
52532
52406
  base64: () => base64,
52533
52407
  base58: () => import_basex2.Base58,
52534
- arrayify: () => import_bytes11.arrayify,
52408
+ arrayify: () => import_bytes10.arrayify,
52535
52409
  accessListify: () => import_transactions6.accessListify,
52536
52410
  _toEscapedUtf8String: () => import_strings4._toEscapedUtf8String,
52537
52411
  _fetchData: () => import_web6._fetchData,
@@ -52559,13 +52433,14 @@ __export(exports_utils, {
52559
52433
  AbiCoder: () => import_abi2.AbiCoder
52560
52434
  });
52561
52435
  var import_abi2 = __toESM(require_lib13(), 1);
52436
+ var import_address5 = __toESM(require_lib7(), 1);
52562
52437
  var base64 = __toESM(require_lib10(), 1);
52563
52438
  var import_basex2 = __toESM(require_lib16(), 1);
52564
- var import_bytes11 = __toESM(require_lib2(), 1);
52439
+ var import_bytes10 = __toESM(require_lib2(), 1);
52565
52440
  var import_hash5 = __toESM(require_lib12(), 1);
52566
52441
  var import_hdnode2 = __toESM(require_lib20(), 1);
52567
52442
  var import_json_wallets2 = __toESM(require_lib22(), 1);
52568
- var import_keccak2563 = __toESM(require_lib5(), 1);
52443
+ var import_keccak2562 = __toESM(require_lib5(), 1);
52569
52444
  var import_sha22 = __toESM(require_lib17(), 1);
52570
52445
  var import_solidity = __toESM(require_lib24(), 1);
52571
52446
  var import_random3 = __toESM(require_lib21(), 1);
@@ -52580,10 +52455,10 @@ var import_sha23 = __toESM(require_lib17(), 1);
52580
52455
  var import_strings5 = __toESM(require_lib9(), 1);
52581
52456
 
52582
52457
  // node_modules/ethers/lib.esm/_version.js
52583
- var version13 = "ethers/5.7.2";
52458
+ var version12 = "ethers/5.7.2";
52584
52459
 
52585
52460
  // node_modules/ethers/lib.esm/ethers.js
52586
- var logger25 = new Logger(version13);
52461
+ var logger24 = new Logger(version12);
52587
52462
 
52588
52463
  // node_modules/ethers/lib.esm/index.js
52589
52464
  try {
@@ -53617,8 +53492,6 @@ var contractsRegistry_default = {
53617
53492
  dai: "0x6B175474E89094C44Da98b954EedeAC495271d0F",
53618
53493
  usds: "0xdC035D45d973E3EC169d2276DDab16f1e407384F",
53619
53494
  susds: "0xa3931d71877C0E7a3148CB7Eb4463524FEc27fbD",
53620
- cusdc: "0xcccc62962d17b8914c62d74ffb843d73b2a3cccc",
53621
- stcusdc: "0x88887be419578051ff9f4eb6c858a951921d8888",
53622
53495
  wbtc: "0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599",
53623
53496
  weeth: "0xCd5fE23C85820F7B72D0926FC9b05b43E359b7ee",
53624
53497
  cbbtc: "0xcbB7C0000aB88B473b1f5aFd9ef808440eed33Bf",
@@ -53634,7 +53507,10 @@ var contractsRegistry_default = {
53634
53507
  ethplus: "0xE72B141DF173b999AE7c1aDcbF60Cc9833Ce56a8",
53635
53508
  iusd: "0x48f9e38f3070AD8945DFEae3FA70987722E3D89c",
53636
53509
  siusd: "0xDBDC1Ef57537E34680B898E1FEBD3D68c7389bCB",
53637
- liusd: "0x66bCF6151D5558AfB47c38B20663589843156078"
53510
+ liusd: "0x66bCF6151D5558AfB47c38B20663589843156078",
53511
+ cUSD: "0xcccc62962d17b8914c62d74ffb843d73b2a3cccc",
53512
+ stcUSD: "0x88887be419578051ff9f4eb6c858a951921d8888",
53513
+ eeth: "0x35fA164735182de50811E8e2E824cFb9B6118ac2"
53638
53514
  },
53639
53515
  morpho: {
53640
53516
  morphoBlue: "0xBBBBBbbBBb9cC5e90e3b3Af64bdAF62C37EEFFCb"
@@ -53644,6 +53520,11 @@ var contractsRegistry_default = {
53644
53520
  wsteth: "0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0",
53645
53521
  withdrawalQueue: "0x889edC2eDab5f40e902b864aD4d7AdE8E412F9B1"
53646
53522
  },
53523
+ etherFi: {
53524
+ liquidityPool: "0xcfC6d9Bd7411962Bfe7145451A7EF71A24b6A7A2",
53525
+ withdrawAdapter: "0xFbfe6b9cEe0E555Bad7e2E7309EFFC75200cBE38",
53526
+ withdrawRequestNft: "0x7d5706f6ef3F89B3951E23e557CDFBC3239D4E2c"
53527
+ },
53647
53528
  cctp: {
53648
53529
  tokenMessengerV2: "0x28b5a0e9C621a5BadaA536219b3a228C8168cf5d",
53649
53530
  messageTransmitterV2: "0x81D40F21F12A8F0E3252Bccb954D722d4c464B64"
@@ -54172,8 +54053,8 @@ class MultisendBuilder {
54172
54053
  data
54173
54054
  });
54174
54055
  }
54175
- static new(chainId, version14 = "v1_4_1") {
54176
- return new MultisendBuilder(getAddressOrThrow(chainId, `gnosisSafe.${version14}.multisend`));
54056
+ static new(chainId, version13 = "v1_4_1") {
54057
+ return new MultisendBuilder(getAddressOrThrow(chainId, `gnosisSafe.${version13}.multisend`));
54177
54058
  }
54178
54059
  }
54179
54060
  // src/integrations/gnosis/safe.L2.abi.ts
@@ -58413,6 +58294,7 @@ function invariant(condition, message) {
58413
58294
  var import_decimal = __toESM(require_decimal(), 1);
58414
58295
  var import_big = __toESM(require_big(), 1);
58415
58296
  var import_toformat = __toESM(require_toFormat(), 1);
58297
+ var import_address6 = __toESM(require_lib7(), 1);
58416
58298
  function _defineProperties(target, props) {
58417
58299
  for (var i2 = 0;i2 < props.length; i2++) {
58418
58300
  var descriptor = props[i2];
@@ -58972,7 +58854,7 @@ var NativeCurrency = /* @__PURE__ */ function(_BaseCurrency) {
58972
58854
  }(BaseCurrency);
58973
58855
  function validateAndParseAddress(address) {
58974
58856
  try {
58975
- return getAddress(address);
58857
+ return import_address6.getAddress(address);
58976
58858
  } catch (error) {
58977
58859
  throw new Error(address + " is not a valid address.");
58978
58860
  }
@@ -59049,13 +58931,13 @@ var Ether = /* @__PURE__ */ function(_NativeCurrency) {
59049
58931
  return Ether2;
59050
58932
  }(NativeCurrency);
59051
58933
  Ether._etherCache = {};
59052
- var MAX_SAFE_INTEGER2 = /* @__PURE__ */ import_jsbi.default.BigInt(Number.MAX_SAFE_INTEGER);
58934
+ var MAX_SAFE_INTEGER = /* @__PURE__ */ import_jsbi.default.BigInt(Number.MAX_SAFE_INTEGER);
59053
58935
  var ZERO = /* @__PURE__ */ import_jsbi.default.BigInt(0);
59054
58936
  var ONE2 = /* @__PURE__ */ import_jsbi.default.BigInt(1);
59055
58937
  var TWO = /* @__PURE__ */ import_jsbi.default.BigInt(2);
59056
58938
  function sqrt(value) {
59057
58939
  !import_jsbi.default.greaterThanOrEqual(value, ZERO) && invariant(false, "NEGATIVE");
59058
- if (import_jsbi.default.lessThan(value, MAX_SAFE_INTEGER2)) {
58940
+ if (import_jsbi.default.lessThan(value, MAX_SAFE_INTEGER)) {
59059
58941
  return import_jsbi.default.BigInt(Math.floor(Math.sqrt(import_jsbi.default.toNumber(value))));
59060
58942
  }
59061
58943
  var z;
@@ -59072,6 +58954,7 @@ function sqrt(value) {
59072
58954
  // node_modules/@uniswap/v3-sdk/dist/v3-sdk.esm.js
59073
58955
  var import_jsbi2 = __toESM(require_jsbi_umd(), 1);
59074
58956
  var import_abi3 = __toESM(require_lib13(), 1);
58957
+ var import_address7 = __toESM(require_lib7(), 1);
59075
58958
  var import_solidity2 = __toESM(require_lib24(), 1);
59076
58959
  // node_modules/@uniswap/v3-periphery/artifacts/contracts/interfaces/IMulticall.sol/IMulticall.json
59077
58960
  var IMulticall_default = {
@@ -63007,7 +62890,7 @@ var Q192 = /* @__PURE__ */ import_jsbi2.default.exponentiate(Q96, /* @__PURE__ *
63007
62890
  function computePoolAddress(_ref) {
63008
62891
  var { factoryAddress, tokenA, tokenB, fee, initCodeHashManualOverride } = _ref;
63009
62892
  var _ref2 = tokenA.sortsBefore(tokenB) ? [tokenA, tokenB] : [tokenB, tokenA], token0 = _ref2[0], token1 = _ref2[1];
63010
- 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);
62893
+ 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);
63011
62894
  }
63012
62895
  var LiquidityMath = /* @__PURE__ */ function() {
63013
62896
  function LiquidityMath2() {}
@@ -64380,8 +64263,9 @@ var import_jsbi3 = __toESM(require_jsbi_umd(), 1);
64380
64263
  var import_decimal2 = __toESM(require_decimal(), 1);
64381
64264
  var import_big2 = __toESM(require_big(), 1);
64382
64265
  var import_toformat2 = __toESM(require_toFormat(), 1);
64383
- var import_bytes12 = __toESM(require_lib2(), 1);
64384
- var import_keccak2564 = __toESM(require_lib5(), 1);
64266
+ var import_address8 = __toESM(require_lib7(), 1);
64267
+ var import_bytes11 = __toESM(require_lib2(), 1);
64268
+ var import_keccak2563 = __toESM(require_lib5(), 1);
64385
64269
  var import_strings6 = __toESM(require_lib9(), 1);
64386
64270
  function _defineProperties3(e, r) {
64387
64271
  for (var t = 0;t < r.length; t++) {
@@ -65086,7 +64970,7 @@ var NativeCurrency2 = /* @__PURE__ */ function(_BaseCurrency) {
65086
64970
  }(BaseCurrency3);
65087
64971
  function validateAndParseAddress2(address) {
65088
64972
  try {
65089
- return getAddress(address);
64973
+ return import_address8.getAddress(address);
65090
64974
  } catch (error) {
65091
64975
  throw new Error(address + " is not a valid address.");
65092
64976
  }
@@ -65190,18 +65074,18 @@ function computeZksyncCreate2Address(sender, bytecodeHash, salt, input) {
65190
65074
  if (input === undefined) {
65191
65075
  input = "0x";
65192
65076
  }
65193
- var prefix2 = import_keccak2564.keccak256(import_strings6.toUtf8Bytes("zksyncCreate2"));
65194
- var inputHash = import_keccak2564.keccak256(input);
65195
- var addressBytes = import_keccak2564.keccak256(import_bytes12.concat([prefix2, import_bytes12.hexZeroPad(sender, 32), salt, bytecodeHash, inputHash])).slice(26);
65196
- return getAddress(addressBytes);
65077
+ var prefix2 = import_keccak2563.keccak256(import_strings6.toUtf8Bytes("zksyncCreate2"));
65078
+ var inputHash = import_keccak2563.keccak256(input);
65079
+ var addressBytes = import_keccak2563.keccak256(import_bytes11.concat([prefix2, import_bytes11.hexZeroPad(sender, 32), salt, bytecodeHash, inputHash])).slice(26);
65080
+ return import_address8.getAddress(addressBytes);
65197
65081
  }
65198
- var MAX_SAFE_INTEGER3 = /* @__PURE__ */ import_jsbi3.default.BigInt(Number.MAX_SAFE_INTEGER);
65082
+ var MAX_SAFE_INTEGER2 = /* @__PURE__ */ import_jsbi3.default.BigInt(Number.MAX_SAFE_INTEGER);
65199
65083
  var ZERO3 = /* @__PURE__ */ import_jsbi3.default.BigInt(0);
65200
65084
  var ONE4 = /* @__PURE__ */ import_jsbi3.default.BigInt(1);
65201
65085
  var TWO3 = /* @__PURE__ */ import_jsbi3.default.BigInt(2);
65202
65086
  function sqrt2(value) {
65203
65087
  !import_jsbi3.default.greaterThanOrEqual(value, ZERO3) && invariant(false, "NEGATIVE");
65204
- if (import_jsbi3.default.lessThan(value, MAX_SAFE_INTEGER3)) {
65088
+ if (import_jsbi3.default.lessThan(value, MAX_SAFE_INTEGER2)) {
65205
65089
  return import_jsbi3.default.BigInt(Math.floor(Math.sqrt(import_jsbi3.default.toNumber(value))));
65206
65090
  }
65207
65091
  var z;
@@ -65218,6 +65102,7 @@ function sqrt2(value) {
65218
65102
  // node_modules/@uniswap/v4-sdk/node_modules/@uniswap/v3-sdk/dist/v3-sdk.esm.js
65219
65103
  var import_jsbi4 = __toESM(require_jsbi_umd(), 1);
65220
65104
  var import_abi4 = __toESM(require_lib13(), 1);
65105
+ var import_address9 = __toESM(require_lib7(), 1);
65221
65106
  var import_solidity3 = __toESM(require_lib24(), 1);
65222
65107
  function _arrayLikeToArray2(r, a) {
65223
65108
  (a == null || a > r.length) && (a = r.length);
@@ -65669,7 +65554,7 @@ function computePoolAddress2(_ref) {
65669
65554
  case ChainId2.ZKSYNC:
65670
65555
  return computeZksyncCreate2Address(factoryAddress, initCodeHash, salt);
65671
65556
  default:
65672
- return getCreate2Address(factoryAddress, salt, initCodeHash);
65557
+ return import_address9.getCreate2Address(factoryAddress, salt, initCodeHash);
65673
65558
  }
65674
65559
  }
65675
65560
  var FullMath2 = /* @__PURE__ */ function() {
@@ -69524,7 +69409,7 @@ var SwapExactInputSingleCalldataV4 = ({
69524
69409
  hookData = "0x",
69525
69410
  recipient
69526
69411
  }) => {
69527
- const getAddress2 = (currency) => {
69412
+ const getAddress7 = (currency) => {
69528
69413
  return currency.address;
69529
69414
  };
69530
69415
  const commands = exports_ethers.utils.solidityPack(["uint8"], [16 /* V4_SWAP */]);
@@ -69532,15 +69417,15 @@ var SwapExactInputSingleCalldataV4 = ({
69532
69417
  const params = [
69533
69418
  exports_ethers.utils.defaultAbiCoder.encode(["tuple(tuple(address,address,uint24,int24,address),bool,uint128,uint128,bytes)"], [
69534
69419
  [
69535
- [getAddress2(pool.currency0), getAddress2(pool.currency1), pool.fee, pool.tickSpacing, pool.hooks],
69420
+ [getAddress7(pool.currency0), getAddress7(pool.currency1), pool.fee, pool.tickSpacing, pool.hooks],
69536
69421
  zeroForOne,
69537
69422
  amountIn,
69538
69423
  amountOutMinimum,
69539
69424
  hookData
69540
69425
  ]
69541
69426
  ]),
69542
- exports_ethers.utils.defaultAbiCoder.encode(["address", "uint256"], [zeroForOne ? getAddress2(pool.currency0) : getAddress2(pool.currency1), amountIn]),
69543
- exports_ethers.utils.defaultAbiCoder.encode(["address", "uint256"], [zeroForOne ? getAddress2(pool.currency1) : getAddress2(pool.currency0), amountOutMinimum])
69427
+ exports_ethers.utils.defaultAbiCoder.encode(["address", "uint256"], [zeroForOne ? getAddress7(pool.currency0) : getAddress7(pool.currency1), amountIn]),
69428
+ exports_ethers.utils.defaultAbiCoder.encode(["address", "uint256"], [zeroForOne ? getAddress7(pool.currency1) : getAddress7(pool.currency0), amountOutMinimum])
69544
69429
  ];
69545
69430
  const actionsList = [];
69546
69431
  actionsList.push(Actions2.SWAP_EXACT_IN_SINGLE);
@@ -76966,6 +76851,53 @@ var revokeFromVaultWhitelistTrx = ({
76966
76851
  });
76967
76852
  };
76968
76853
  var OPTIN_PROXY_CREATION_BYTECODE = "0x60c060405260405161154038038061154083398101604081905261002291610490565b61002c85856100a8565b8161003782826101b8565b5050828260405161004790610454565b6001600160a01b0390921682526020820152604001604051809103905ff080158015610075573d5f803e3d5ffd5b506001600160a01b031660805261009361008e60805190565b610216565b5050506001600160a01b031660a052506105f7565b5f6001600160a01b03831661011e57816001600160a01b03166345f55b3c6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156100f3573d5f803e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610117919061057b565b90506101b2565b6001600160a01b03821663f3c665f7610135610262565b856040518363ffffffff1660e01b8152600401610153929190610594565b602060405180830381865afa15801561016e573d5f803e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061019291906105ae565b6101af5760405163474245d760e11b815260040160405180910390fd5b50815b92915050565b6101c18261027f565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a280511561020a5761020582826102e5565b505050565b610212610358565b5050565b7f7e644d79422f17c01e4894b5f4f588d331ebfa28653d42ae832dc59e38c9798f61023f610379565b8260405161024e929190610594565b60405180910390a161025f81610398565b50565b5f61027a5f5f80516020611520833981519152610389565b905090565b806001600160a01b03163b5f036102b45780604051634c9c8ce360e01b81526004016102ab91906105cd565b60405180910390fd5b805f805160206115208339815191525b80546001600160a01b0319166001600160a01b039290921691909117905550565b60605f80846001600160a01b03168460405161030191906105e1565b5f60405180830381855af49150503d805f8114610339576040519150601f19603f3d011682016040523d82523d5f602084013e61033e565b606091505b50909250905061034f8583836103d5565b95945050505050565b34156103775760405163b398979f60e01b815260040160405180910390fd5b565b5f5f805160206115008339815191525b546001600160a01b0316919050565b6001600160a01b0381166103c1575f604051633173bdd160e11b81526004016102ab91906105cd565b805f805160206115008339815191526102c4565b6060826103ea576103e58261042b565b610424565b815115801561040157506001600160a01b0384163b155b156104215783604051639996b31560e01b81526004016102ab91906105cd565b50805b9392505050565b80511561043b5780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b61095180610baf83390190565b80516001600160a01b0381168114610477575f80fd5b919050565b634e487b7160e01b5f52604160045260245ffd5b5f805f805f60a086880312156104a4575f80fd5b6104ad86610461565b94506104bb60208701610461565b93506104c960408701610461565b6060870151608088015191945092506001600160401b038111156104eb575f80fd5b8601601f810188136104fb575f80fd5b80516001600160401b038111156105145761051461047c565b604051601f8201601f19908116603f011681016001600160401b03811182821017156105425761054261047c565b6040528181528282016020018a1015610559575f80fd5b8160208401602083015e5f602083830101528093505050509295509295909350565b5f6020828403121561058b575f80fd5b61042482610461565b6001600160a01b0392831681529116602082015260400190565b5f602082840312156105be575f80fd5b81518015158114610424575f80fd5b6001600160a01b0391909116815260200190565b5f82518060208501845e5f920191825250919050565b60805160a05161059361061c5f395f81816038015260f401525f607201526105935ff3fe60806040526004361061001d575f3560e01c806306433b1b14610027575b610025610070565b005b348015610032575f80fd5b5061005a7f000000000000000000000000000000000000000000000000000000000000000081565b60405161006791906103eb565b60405180910390f35b7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031633036101c2575f356001600160e01b03191663278f794360e11b146100d2576040516334ad5dbb60e21b815260040160405180910390fd5b5f806100e136600481846103ff565b8101906100ee919061043a565b915091507f00000000000000000000000000000000000000000000000000000000000000006001600160a01b031663f3c665f76101296101cc565b6040516001600160e01b031960e084901b1681526001600160a01b0391821660048201529085166024820152604401602060405180830381865afa158015610173573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101979190610508565b6101b45760405163474245d760e11b815260040160405180910390fd5b6101be82826101f0565b5050565b6101ca61024a565b565b5f6101eb5f8051602061053e833981519152546001600160a01b031690565b905090565b6101f98261025a565b6040516001600160a01b038316907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b905f90a28051156102425761023d82826102bd565b505050565b6101be61032f565b6101ca6102556101cc565b61034e565b806001600160a01b03163b5f0361028f5780604051634c9c8ce360e01b815260040161028691906103eb565b60405180910390fd5b5f8051602061053e83398151915280546001600160a01b0319166001600160a01b0392909216919091179055565b60605f80846001600160a01b0316846040516102d99190610527565b5f60405180830381855af49150503d805f8114610311576040519150601f19603f3d011682016040523d82523d5f602084013e610316565b606091505b509150915061032685838361036c565b95945050505050565b34156101ca5760405163b398979f60e01b815260040160405180910390fd5b365f80375f80365f845af43d5f803e808015610368573d5ff35b3d5ffd5b6060826103815761037c826103c2565b6103bb565b815115801561039857506001600160a01b0384163b155b156103b85783604051639996b31560e01b815260040161028691906103eb565b50805b9392505050565b8051156103d25780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b6001600160a01b0391909116815260200190565b5f808585111561040d575f80fd5b83861115610419575f80fd5b5050820193919092039150565b634e487b7160e01b5f52604160045260245ffd5b5f806040838503121561044b575f80fd5b82356001600160a01b0381168114610461575f80fd5b915060208301356001600160401b0381111561047b575f80fd5b8301601f8101851361048b575f80fd5b80356001600160401b038111156104a4576104a4610426565b604051601f8201601f19908116603f011681016001600160401b03811182821017156104d2576104d2610426565b6040528181528282016020018710156104e9575f80fd5b816020840160208301375f602083830101528093505050509250929050565b5f60208284031215610518575f80fd5b815180151581146103bb575f80fd5b5f82518060208501845e5f92019182525091905056fe360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbca264697066735822122054a7e97969c29f5ce4c21e7feeef7fb958d11e31d8152e7ae4ea8a848a71848c64736f6c634300081a0033608060405234801561000f575f80fd5b5060405161095138038061095183398101604081905261002e91610158565b81806001600160a01b03811661005e57604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b61006781610109565b5050620151808110156100925760405163013ccc8d60e01b8152620151806004820152602401610055565b62278d008111156100bb57604051630b94129b60e31b815262278d006004820152602401610055565b5f1960018190556003556005819055604080518281525f60208201527fa580b4a9812995ffed1b336481c3f3bfeb3414df9f587a9d73856bab25aa4eee910160405180910390a1505061018f565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f8060408385031215610169575f80fd5b82516001600160a01b038116811461017f575f80fd5b6020939093015192949293505050565b6107b58061019c5f395ff3fe6080604052600436106100b7575f3560e01c8063033f8dbc146100bb5780634125ff90146100e3578063432efade146100f9578063554f94db1461011a578063657081b31461012e5780636a42b8f81461014d578063715018a6146101625780638b677b03146101765780638da5cb5b146101a25780639623609d146101b65780639f81aed7146101c9578063a36f141c146101df578063ad3cb1cc146101f4578063f2fde38b14610231578063f6b12cf914610250575b5f80fd5b3480156100c6575f80fd5b506100d060045481565b6040519081526020015b60405180910390f35b3480156100ee575f80fd5b506100d062278d0081565b348015610104575f80fd5b506101186101133660046105a6565b610265565b005b348015610125575f80fd5b50610118610326565b348015610139575f80fd5b506101186101483660046105d1565b6103a8565b348015610158575f80fd5b506100d060055481565b34801561016d575f80fd5b50610118610420565b348015610181575f80fd5b50600254610195906001600160a01b031681565b6040516100da91906105f3565b3480156101ad575f80fd5b50610195610433565b6101186101c436600461061b565b610441565b3480156101d4575f80fd5b506100d06201518081565b3480156101ea575f80fd5b506100d060035481565b3480156101ff575f80fd5b50610224604051806040016040528060058152602001640352e302e360dc1b81525081565b6040516100da919061071d565b34801561023c575f80fd5b5061011861024b3660046105d1565b6104e8565b34801561025b575f80fd5b506100d060015481565b61026d610525565b6201518081101561029b5760405163013ccc8d60e01b81526201518060048201526024015b60405180910390fd5b62278d008111156102c457604051630b94129b60e31b815262278d006004820152602401610292565b60048190556005546102d6904261072f565b60038190556005546004546040805192835260208301919091528101919091527fab7d3921ca5710b1f874b995128f2d434b8b28080cc90e5b7ae542d01a41dd6e9060600160405180910390a150565b61032e610525565b60035442101561035157604051634040f3a760e01b815260040160405180910390fd5b7fa580b4a9812995ffed1b336481c3f3bfeb3414df9f587a9d73856bab25aa4eee60045460055460405161038f929190918252602082015260400190565b60405180910390a1600480546005555f90555f19600355565b6103b0610525565b600280546001600160a01b0319166001600160a01b0383161790556005546103d8904261072f565b60018190556002546040519182526001600160a01b0316907fb995d606597d17deae0e0b28f4668c00c67c22d7bed7b95db2a5ac7f1b96aa2b9060200160405180910390a250565b610428610525565b6104315f610557565b565b5f546001600160a01b031690565b610449610525565b60015442101561046c57604051634040f3a760e01b815260040160405180910390fd5b60025460405163278f794360e11b81526001600160a01b0380861692634f1ef2869234926104a09216908690600401610754565b5f604051808303818588803b1580156104b7575f80fd5b505af11580156104c9573d5f803e3d5ffd5b5050600280546001600160a01b031916905550505f1960015550505050565b6104f0610525565b6001600160a01b038116610519575f604051631e4fbdf760e01b815260040161029291906105f3565b61052281610557565b50565b3361052e610433565b6001600160a01b031614610431573360405163118cdaa760e01b815260040161029291906105f3565b5f80546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b5f602082840312156105b6575f80fd5b5035919050565b6001600160a01b0381168114610522575f80fd5b5f602082840312156105e1575f80fd5b81356105ec816105bd565b9392505050565b6001600160a01b0391909116815260200190565b634e487b7160e01b5f52604160045260245ffd5b5f805f6060848603121561062d575f80fd5b8335610638816105bd565b92506020840135610648816105bd565b915060408401356001600160401b03811115610662575f80fd5b8401601f81018613610672575f80fd5b80356001600160401b0381111561068b5761068b610607565b604051601f8201601f19908116603f011681016001600160401b03811182821017156106b9576106b9610607565b6040528181528282016020018810156106d0575f80fd5b816020840160208301375f602083830101528093505050509250925092565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f6105ec60208301846106ef565b8082018082111561074e57634e487b7160e01b5f52601160045260245ffd5b92915050565b6001600160a01b03831681526040602082018190525f90610777908301846106ef565b94935050505056fea2646970667358221220e27ebccd00d28ef8e1c57bfd0e4ffadef9ac6d95a3f3cc646f6f86755492f76564736f6c634300081a0033b53127684a568b3173ae13b9f8a6016e243e63b6e8ee1178d6a717850b5d6103360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc";
76854
+ var PauseVaultCalldata = () => {
76855
+ return vaultInterface.encodeFunctionData("pause", []);
76856
+ };
76857
+ var pauseVaultTrx = ({ vault }) => {
76858
+ return createCall({
76859
+ operation: 0,
76860
+ to: vault,
76861
+ value: 0n,
76862
+ data: PauseVaultCalldata()
76863
+ });
76864
+ };
76865
+ var UnpauseVaultCalldata = () => {
76866
+ return vaultInterface.encodeFunctionData("unpause", []);
76867
+ };
76868
+ var unpauseVaultTrx = ({ vault }) => {
76869
+ return createCall({
76870
+ operation: 0,
76871
+ to: vault,
76872
+ value: 0n,
76873
+ data: UnpauseVaultCalldata()
76874
+ });
76875
+ };
76876
+ var InitiateClosingCalldata = () => {
76877
+ return vaultInterface.encodeFunctionData("initiateClosing", []);
76878
+ };
76879
+ var initiateVaultClosingTrx = ({ vault }) => {
76880
+ return createCall({
76881
+ operation: 0,
76882
+ to: vault,
76883
+ value: 0n,
76884
+ data: InitiateClosingCalldata()
76885
+ });
76886
+ };
76887
+ var CloseVaultCalldata = ({ newTotalAssets }) => {
76888
+ return vaultInterface.encodeFunctionData("close", [newTotalAssets]);
76889
+ };
76890
+ var closeVaultTrx = ({
76891
+ vault,
76892
+ newTotalAssets
76893
+ }) => {
76894
+ return createCall({
76895
+ operation: 0,
76896
+ to: vault,
76897
+ value: 0n,
76898
+ data: CloseVaultCalldata({ newTotalAssets })
76899
+ });
76900
+ };
76969
76901
  var calculateDeterministicVaultAddress = ({
76970
76902
  factoryAddress,
76971
76903
  registry,
@@ -86512,6 +86444,7 @@ export {
86512
86444
  withdrawCollateralMorphoBlueTrx,
86513
86445
  updateTotalAssetsLifespanTrx,
86514
86446
  updateOrderTrx,
86447
+ unpauseVaultTrx,
86515
86448
  uniswapV4SwapTrx,
86516
86449
  uniswapV4FinalizeActions,
86517
86450
  uniswapV4AddTakePair,
@@ -86564,6 +86497,7 @@ export {
86564
86497
  repayMorphoBlueTrx,
86565
86498
  redeemMorphoVaultTrx,
86566
86499
  receiveMessageFromCctpTrx,
86500
+ pauseVaultTrx,
86567
86501
  merklClaimTrx,
86568
86502
  merklClaimCalldata,
86569
86503
  merkl_distributor_abi_default as merklAbi,
@@ -86571,6 +86505,7 @@ export {
86571
86505
  vault_abi_default as lagoonV1VaultAbi,
86572
86506
  silo_abi_default as lagoonV1SiloAbi,
86573
86507
  factory_abi_default as lagoonV1FactoryAbi,
86508
+ initiateVaultClosingTrx,
86574
86509
  gnosisTrx,
86575
86510
  getGnosisTrxSimulationResult,
86576
86511
  getAddressOrThrow,
@@ -86588,6 +86523,7 @@ export {
86588
86523
  createVaultProxyTrx,
86589
86524
  createOrderTrx,
86590
86525
  createCall,
86526
+ closeVaultTrx,
86591
86527
  claimFundingFeesTrx,
86592
86528
  cancelOrderTrx,
86593
86529
  calculateDeterministicVaultAddress,
@@ -86611,6 +86547,7 @@ export {
86611
86547
  WithdrawCollateralMorphoBlueCalldata,
86612
86548
  UpdateTotalAssetsLifespanCalldata,
86613
86549
  UpdateOrderCalldata,
86550
+ UnpauseVaultCalldata,
86614
86551
  UniswapV4Token,
86615
86552
  swap_router_abi_default as UniswapV4RouterAbi,
86616
86553
  position_manager_abi_default2 as UniswapV4PositionManagerAbi,
@@ -86675,6 +86612,7 @@ export {
86675
86612
  QuoteSendTrx,
86676
86613
  QuoteSendCalldata,
86677
86614
  permit2_abi_default as Permit2Abi,
86615
+ PauseVaultCalldata,
86678
86616
  PERMIT2_ADDRESS_CANONICAL,
86679
86617
  OrderType,
86680
86618
  oft_adapter_abi_default as OFTAdapterAbi,
@@ -86683,6 +86621,7 @@ export {
86683
86621
  morpho_vault_abi_default as MorphoVaultAbi,
86684
86622
  morpho_blue_abi_default as MorphoBlueAbi,
86685
86623
  lendle_pool_abi_default as LendlePoolAbi,
86624
+ InitiateClosingCalldata,
86686
86625
  GMX_EXCHANGE_ROUTER_ARB,
86687
86626
  exchange_router_abi_default as GMXExchangeRouterAbi,
86688
86627
  erc721_abi_default2 as Erc721Abi,
@@ -86698,6 +86637,7 @@ export {
86698
86637
  CreateVaultProxyCalldata,
86699
86638
  CreateOrderCalldata,
86700
86639
  Commands,
86640
+ CloseVaultCalldata,
86701
86641
  ClaimFundingFeesCalldata,
86702
86642
  token_messenger_v2_abi_default as CctpTokenMessengerV2Abi,
86703
86643
  message_transmitter_v2_abi_default as CctpMessageTransmitterV2Abi,
@@ -86714,4 +86654,4 @@ export {
86714
86654
  aave_pool_abi_default as AaveL1PoolAbi
86715
86655
  };
86716
86656
 
86717
- //# debugId=534A99E1CC696CF164756E2164756E21
86657
+ //# debugId=10E96F322DA9069164756E2164756E21