damm-sdk 1.1.28-alpha.7 → 1.1.28-alpha.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -14489,7 +14489,7 @@ var require_utils2 = __commonJS((exports2) => {
14489
14489
  var exports_process = {};
14490
14490
  __export(exports_process, {
14491
14491
  versions: () => versions,
14492
- version: () => version6,
14492
+ version: () => version7,
14493
14493
  umask: () => umask,
14494
14494
  title: () => title,
14495
14495
  removeListener: () => removeListener,
@@ -14546,7 +14546,7 @@ function nextTick(fun) {
14546
14546
  setTimeout(drainQueue, 0);
14547
14547
  }
14548
14548
  function noop() {}
14549
- var queue, draining = false, currentQueue, queueIndex = -1, title = "browser", browser = true, env, argv, version6 = "", versions, on, addListener, once, off, removeListener, removeAllListeners, emit, prependListener, prependOnceListener, listeners = function(name) {
14549
+ var queue, draining = false, currentQueue, queueIndex = -1, title = "browser", browser = true, env, argv, version7 = "", versions, on, addListener, once, off, removeListener, removeAllListeners, emit, prependListener, prependOnceListener, listeners = function(name) {
14550
14550
  return [];
14551
14551
  }, binding = function(name) {
14552
14552
  throw new Error("process.binding is not supported in browser polyfill");
@@ -35378,7 +35378,7 @@ var require_lib14 = __commonJS((exports2) => {
35378
35378
  var properties_1 = require_lib4();
35379
35379
  var logger_1 = require_lib();
35380
35380
  var _version_1 = require__version10();
35381
- var logger5 = new logger_1.Logger(_version_1.version);
35381
+ var logger6 = new logger_1.Logger(_version_1.version);
35382
35382
  var _curve = null;
35383
35383
  function getCurve() {
35384
35384
  if (!_curve) {
@@ -35391,7 +35391,7 @@ var require_lib14 = __commonJS((exports2) => {
35391
35391
  (0, properties_1.defineReadOnly)(this, "curve", "secp256k1");
35392
35392
  (0, properties_1.defineReadOnly)(this, "privateKey", (0, bytes_1.hexlify)(privateKey));
35393
35393
  if ((0, bytes_1.hexDataLength)(this.privateKey) !== 32) {
35394
- logger5.throwArgumentError("invalid private key", "privateKey", "[[ REDACTED ]]");
35394
+ logger6.throwArgumentError("invalid private key", "privateKey", "[[ REDACTED ]]");
35395
35395
  }
35396
35396
  var keyPair = getCurve().keyFromPrivate((0, bytes_1.arrayify)(this.privateKey));
35397
35397
  (0, properties_1.defineReadOnly)(this, "publicKey", "0x" + keyPair.getPublic(false, "hex"));
@@ -35407,7 +35407,7 @@ var require_lib14 = __commonJS((exports2) => {
35407
35407
  var keyPair = getCurve().keyFromPrivate((0, bytes_1.arrayify)(this.privateKey));
35408
35408
  var digestBytes = (0, bytes_1.arrayify)(digest);
35409
35409
  if (digestBytes.length !== 32) {
35410
- logger5.throwArgumentError("bad digest length", "digest", digest);
35410
+ logger6.throwArgumentError("bad digest length", "digest", digest);
35411
35411
  }
35412
35412
  var signature = keyPair.sign(digestBytes, { canonical: true });
35413
35413
  return (0, bytes_1.splitSignature)({
@@ -35452,7 +35452,7 @@ var require_lib14 = __commonJS((exports2) => {
35452
35452
  }
35453
35453
  return "0x" + getCurve().keyFromPublic(bytes).getPublic(true, "hex");
35454
35454
  }
35455
- return logger5.throwArgumentError("invalid public or private key", "key", "[REDACTED]");
35455
+ return logger6.throwArgumentError("invalid public or private key", "key", "[REDACTED]");
35456
35456
  }
35457
35457
  exports2.computePublicKey = computePublicKey;
35458
35458
  });
@@ -35506,7 +35506,7 @@ var require_lib15 = __commonJS((exports2) => {
35506
35506
  var signing_key_1 = require_lib14();
35507
35507
  var logger_1 = require_lib();
35508
35508
  var _version_1 = require__version11();
35509
- var logger5 = new logger_1.Logger(_version_1.version);
35509
+ var logger6 = new logger_1.Logger(_version_1.version);
35510
35510
  var TransactionTypes;
35511
35511
  (function(TransactionTypes2) {
35512
35512
  TransactionTypes2[TransactionTypes2["legacy"] = 0] = "legacy";
@@ -35555,7 +35555,7 @@ var require_lib15 = __commonJS((exports2) => {
35555
35555
  function formatNumber(value, name) {
35556
35556
  var result = (0, bytes_1.stripZeros)(bignumber_1.BigNumber.from(value).toHexString());
35557
35557
  if (result.length > 32) {
35558
- logger5.throwArgumentError("invalid length for " + name, "transaction:" + name, value);
35558
+ logger6.throwArgumentError("invalid length for " + name, "transaction:" + name, value);
35559
35559
  }
35560
35560
  return result;
35561
35561
  }
@@ -35564,7 +35564,7 @@ var require_lib15 = __commonJS((exports2) => {
35564
35564
  address: (0, address_1.getAddress)(addr),
35565
35565
  storageKeys: (storageKeys || []).map(function(storageKey, index) {
35566
35566
  if ((0, bytes_1.hexDataLength)(storageKey) !== 32) {
35567
- logger5.throwArgumentError("invalid access list storageKey", "accessList[" + addr + ":" + index + "]", storageKey);
35567
+ logger6.throwArgumentError("invalid access list storageKey", "accessList[" + addr + ":" + index + "]", storageKey);
35568
35568
  }
35569
35569
  return storageKey.toLowerCase();
35570
35570
  })
@@ -35575,7 +35575,7 @@ var require_lib15 = __commonJS((exports2) => {
35575
35575
  return value.map(function(set, index) {
35576
35576
  if (Array.isArray(set)) {
35577
35577
  if (set.length > 2) {
35578
- logger5.throwArgumentError("access list expected to be [ address, storageKeys[] ]", "value[" + index + "]", set);
35578
+ logger6.throwArgumentError("access list expected to be [ address, storageKeys[] ]", "value[" + index + "]", set);
35579
35579
  }
35580
35580
  return accessSetify(set[0], set[1]);
35581
35581
  }
@@ -35605,7 +35605,7 @@ var require_lib15 = __commonJS((exports2) => {
35605
35605
  var gasPrice = bignumber_1.BigNumber.from(transaction.gasPrice);
35606
35606
  var maxFeePerGas = bignumber_1.BigNumber.from(transaction.maxFeePerGas || 0);
35607
35607
  if (!gasPrice.eq(maxFeePerGas)) {
35608
- logger5.throwArgumentError("mismatch EIP-1559 gasPrice != maxFeePerGas", "tx", {
35608
+ logger6.throwArgumentError("mismatch EIP-1559 gasPrice != maxFeePerGas", "tx", {
35609
35609
  gasPrice,
35610
35610
  maxFeePerGas
35611
35611
  });
@@ -35660,12 +35660,12 @@ var require_lib15 = __commonJS((exports2) => {
35660
35660
  }
35661
35661
  value = (0, bytes_1.arrayify)((0, bytes_1.hexlify)(value, options));
35662
35662
  if (fieldInfo.length && value.length !== fieldInfo.length && value.length > 0) {
35663
- logger5.throwArgumentError("invalid length for " + fieldInfo.name, "transaction:" + fieldInfo.name, value);
35663
+ logger6.throwArgumentError("invalid length for " + fieldInfo.name, "transaction:" + fieldInfo.name, value);
35664
35664
  }
35665
35665
  if (fieldInfo.maxLength) {
35666
35666
  value = (0, bytes_1.stripZeros)(value);
35667
35667
  if (value.length > fieldInfo.maxLength) {
35668
- logger5.throwArgumentError("invalid length for " + fieldInfo.name, "transaction:" + fieldInfo.name, value);
35668
+ logger6.throwArgumentError("invalid length for " + fieldInfo.name, "transaction:" + fieldInfo.name, value);
35669
35669
  }
35670
35670
  }
35671
35671
  raw.push((0, bytes_1.hexlify)(value));
@@ -35674,7 +35674,7 @@ var require_lib15 = __commonJS((exports2) => {
35674
35674
  if (transaction.chainId != null) {
35675
35675
  chainId = transaction.chainId;
35676
35676
  if (typeof chainId !== "number") {
35677
- logger5.throwArgumentError("invalid transaction.chainId", "transaction", transaction);
35677
+ logger6.throwArgumentError("invalid transaction.chainId", "transaction", transaction);
35678
35678
  }
35679
35679
  } else if (signature && !(0, bytes_1.isBytesLike)(signature) && signature.v > 28) {
35680
35680
  chainId = Math.floor((signature.v - 35) / 2);
@@ -35695,10 +35695,10 @@ var require_lib15 = __commonJS((exports2) => {
35695
35695
  raw.pop();
35696
35696
  v += chainId * 2 + 8;
35697
35697
  if (sig.v > 28 && sig.v !== v) {
35698
- logger5.throwArgumentError("transaction.chainId/signature.v mismatch", "signature", signature);
35698
+ logger6.throwArgumentError("transaction.chainId/signature.v mismatch", "signature", signature);
35699
35699
  }
35700
35700
  } else if (sig.v !== v) {
35701
- logger5.throwArgumentError("transaction.chainId/signature.v mismatch", "signature", signature);
35701
+ logger6.throwArgumentError("transaction.chainId/signature.v mismatch", "signature", signature);
35702
35702
  }
35703
35703
  raw.push((0, bytes_1.hexlify)(v));
35704
35704
  raw.push((0, bytes_1.stripZeros)((0, bytes_1.arrayify)(sig.r)));
@@ -35708,7 +35708,7 @@ var require_lib15 = __commonJS((exports2) => {
35708
35708
  function serialize(transaction, signature) {
35709
35709
  if (transaction.type == null || transaction.type === 0) {
35710
35710
  if (transaction.accessList != null) {
35711
- logger5.throwArgumentError("untyped transactions do not support accessList; include type: 1", "transaction", transaction);
35711
+ logger6.throwArgumentError("untyped transactions do not support accessList; include type: 1", "transaction", transaction);
35712
35712
  }
35713
35713
  return _serialize(transaction, signature);
35714
35714
  }
@@ -35720,7 +35720,7 @@ var require_lib15 = __commonJS((exports2) => {
35720
35720
  default:
35721
35721
  break;
35722
35722
  }
35723
- return logger5.throwError("unsupported transaction type: " + transaction.type, logger_1.Logger.errors.UNSUPPORTED_OPERATION, {
35723
+ return logger6.throwError("unsupported transaction type: " + transaction.type, logger_1.Logger.errors.UNSUPPORTED_OPERATION, {
35724
35724
  operation: "serializeTransaction",
35725
35725
  transactionType: transaction.type
35726
35726
  });
@@ -35734,7 +35734,7 @@ var require_lib15 = __commonJS((exports2) => {
35734
35734
  }
35735
35735
  tx.v = recid;
35736
35736
  } catch (error) {
35737
- logger5.throwArgumentError("invalid v for transaction type: 1", "v", fields[0]);
35737
+ logger6.throwArgumentError("invalid v for transaction type: 1", "v", fields[0]);
35738
35738
  }
35739
35739
  tx.r = (0, bytes_1.hexZeroPad)(fields[1], 32);
35740
35740
  tx.s = (0, bytes_1.hexZeroPad)(fields[2], 32);
@@ -35746,7 +35746,7 @@ var require_lib15 = __commonJS((exports2) => {
35746
35746
  function _parseEip1559(payload) {
35747
35747
  var transaction = RLP.decode(payload.slice(1));
35748
35748
  if (transaction.length !== 9 && transaction.length !== 12) {
35749
- logger5.throwArgumentError("invalid component count for transaction type: 2", "payload", (0, bytes_1.hexlify)(payload));
35749
+ logger6.throwArgumentError("invalid component count for transaction type: 2", "payload", (0, bytes_1.hexlify)(payload));
35750
35750
  }
35751
35751
  var maxPriorityFeePerGas = handleNumber(transaction[2]);
35752
35752
  var maxFeePerGas = handleNumber(transaction[3]);
@@ -35773,7 +35773,7 @@ var require_lib15 = __commonJS((exports2) => {
35773
35773
  function _parseEip2930(payload) {
35774
35774
  var transaction = RLP.decode(payload.slice(1));
35775
35775
  if (transaction.length !== 8 && transaction.length !== 11) {
35776
- logger5.throwArgumentError("invalid component count for transaction type: 1", "payload", (0, bytes_1.hexlify)(payload));
35776
+ logger6.throwArgumentError("invalid component count for transaction type: 1", "payload", (0, bytes_1.hexlify)(payload));
35777
35777
  }
35778
35778
  var tx = {
35779
35779
  type: 1,
@@ -35796,7 +35796,7 @@ var require_lib15 = __commonJS((exports2) => {
35796
35796
  function _parse(rawTransaction) {
35797
35797
  var transaction = RLP.decode(rawTransaction);
35798
35798
  if (transaction.length !== 9 && transaction.length !== 6) {
35799
- logger5.throwArgumentError("invalid raw transaction", "rawTransaction", rawTransaction);
35799
+ logger6.throwArgumentError("invalid raw transaction", "rawTransaction", rawTransaction);
35800
35800
  }
35801
35801
  var tx = {
35802
35802
  nonce: handleNumber(transaction[0]).toNumber(),
@@ -35855,7 +35855,7 @@ var require_lib15 = __commonJS((exports2) => {
35855
35855
  default:
35856
35856
  break;
35857
35857
  }
35858
- return logger5.throwError("unsupported transaction type: " + payload[0], logger_1.Logger.errors.UNSUPPORTED_OPERATION, {
35858
+ return logger6.throwError("unsupported transaction type: " + payload[0], logger_1.Logger.errors.UNSUPPORTED_OPERATION, {
35859
35859
  operation: "parseTransaction",
35860
35860
  transactionType: payload[0]
35861
35861
  });
@@ -35975,7 +35975,7 @@ var require_browser_sha2 = __commonJS((exports2) => {
35975
35975
  var types_1 = require_types();
35976
35976
  var logger_1 = require_lib();
35977
35977
  var _version_1 = require__version12();
35978
- var logger6 = new logger_1.Logger(_version_1.version);
35978
+ var logger7 = new logger_1.Logger(_version_1.version);
35979
35979
  function ripemd160(data) {
35980
35980
  return "0x" + hash_js_1.default.ripemd160().update((0, bytes_1.arrayify)(data)).digest("hex");
35981
35981
  }
@@ -35990,7 +35990,7 @@ var require_browser_sha2 = __commonJS((exports2) => {
35990
35990
  exports2.sha512 = sha512;
35991
35991
  function computeHmac(algorithm, key, data) {
35992
35992
  if (!types_1.SupportedAlgorithm[algorithm]) {
35993
- logger6.throwError("unsupported algorithm " + algorithm, logger_1.Logger.errors.UNSUPPORTED_OPERATION, {
35993
+ logger7.throwError("unsupported algorithm " + algorithm, logger_1.Logger.errors.UNSUPPORTED_OPERATION, {
35994
35994
  operation: "hmac",
35995
35995
  algorithm
35996
35996
  });
@@ -36865,7 +36865,7 @@ var require_lib20 = __commonJS((exports2) => {
36865
36865
  var wordlists_1 = require_lib19();
36866
36866
  var logger_1 = require_lib();
36867
36867
  var _version_1 = require__version14();
36868
- var logger6 = new logger_1.Logger(_version_1.version);
36868
+ var logger7 = new logger_1.Logger(_version_1.version);
36869
36869
  var N = bignumber_1.BigNumber.from("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141");
36870
36870
  var MasterSecret = (0, strings_1.toUtf8Bytes)("Bitcoin seed");
36871
36871
  var HardenedBit = 2147483648;
@@ -36888,7 +36888,7 @@ var require_lib20 = __commonJS((exports2) => {
36888
36888
  if (typeof wordlist === "string") {
36889
36889
  var words = wordlists_1.wordlists[wordlist];
36890
36890
  if (words == null) {
36891
- logger6.throwArgumentError("unknown locale", "wordlist", wordlist);
36891
+ logger7.throwArgumentError("unknown locale", "wordlist", wordlist);
36892
36892
  }
36893
36893
  return words;
36894
36894
  }
@@ -37043,7 +37043,7 @@ var require_lib20 = __commonJS((exports2) => {
37043
37043
  HDNode2.fromExtendedKey = function(extendedKey) {
37044
37044
  var bytes = basex_1.Base58.decode(extendedKey);
37045
37045
  if (bytes.length !== 82 || base58check(bytes.slice(0, 78)) !== extendedKey) {
37046
- logger6.throwArgumentError("invalid extended key", "extendedKey", "[REDACTED]");
37046
+ logger7.throwArgumentError("invalid extended key", "extendedKey", "[REDACTED]");
37047
37047
  }
37048
37048
  var depth = bytes[4];
37049
37049
  var parentFingerprint = (0, bytes_1.hexlify)(bytes.slice(5, 9));
@@ -37061,7 +37061,7 @@ var require_lib20 = __commonJS((exports2) => {
37061
37061
  }
37062
37062
  return new HDNode2(_constructorGuard3, (0, bytes_1.hexlify)(key.slice(1)), null, parentFingerprint, chainCode, index, depth, null);
37063
37063
  }
37064
- return logger6.throwArgumentError("invalid extended key", "extendedKey", "[REDACTED]");
37064
+ return logger7.throwArgumentError("invalid extended key", "extendedKey", "[REDACTED]");
37065
37065
  };
37066
37066
  return HDNode2;
37067
37067
  }();
@@ -37076,7 +37076,7 @@ var require_lib20 = __commonJS((exports2) => {
37076
37076
  exports2.mnemonicToSeed = mnemonicToSeed;
37077
37077
  function mnemonicToEntropy(mnemonic, wordlist) {
37078
37078
  wordlist = getWordlist(wordlist);
37079
- logger6.checkNormalize();
37079
+ logger7.checkNormalize();
37080
37080
  var words = wordlist.split(mnemonic);
37081
37081
  if (words.length % 3 !== 0) {
37082
37082
  throw new Error("invalid mnemonic");
@@ -37144,7 +37144,7 @@ var require_lib20 = __commonJS((exports2) => {
37144
37144
  exports2.isValidMnemonic = isValidMnemonic;
37145
37145
  function getAccountPath(index) {
37146
37146
  if (typeof index !== "number" || index < 0 || index >= HardenedBit || index % 1) {
37147
- logger6.throwArgumentError("invalid account index", "index", index);
37147
+ logger7.throwArgumentError("invalid account index", "index", index);
37148
37148
  }
37149
37149
  return "m/44'/60'/" + index + "'/0/0";
37150
37150
  }
@@ -37165,7 +37165,7 @@ var require_browser_random = __commonJS((exports2) => {
37165
37165
  var bytes_1 = require_lib2();
37166
37166
  var logger_1 = require_lib();
37167
37167
  var _version_1 = require__version15();
37168
- var logger6 = new logger_1.Logger(_version_1.version);
37168
+ var logger7 = new logger_1.Logger(_version_1.version);
37169
37169
  function getGlobal() {
37170
37170
  if (typeof self !== "undefined") {
37171
37171
  return self;
@@ -37181,10 +37181,10 @@ var require_browser_random = __commonJS((exports2) => {
37181
37181
  var anyGlobal = getGlobal();
37182
37182
  var crypto2 = anyGlobal.crypto || anyGlobal.msCrypto;
37183
37183
  if (!crypto2 || !crypto2.getRandomValues) {
37184
- logger6.warn("WARNING: Missing strong random number source");
37184
+ logger7.warn("WARNING: Missing strong random number source");
37185
37185
  crypto2 = {
37186
37186
  getRandomValues: function(buffer) {
37187
- return logger6.throwError("no secure random source avaialble", logger_1.Logger.errors.UNSUPPORTED_OPERATION, {
37187
+ return logger7.throwError("no secure random source avaialble", logger_1.Logger.errors.UNSUPPORTED_OPERATION, {
37188
37188
  operation: "crypto.getRandomValues"
37189
37189
  });
37190
37190
  }
@@ -37192,7 +37192,7 @@ var require_browser_random = __commonJS((exports2) => {
37192
37192
  }
37193
37193
  function randomBytes(length) {
37194
37194
  if (length <= 0 || length > 1024 || length % 1 || length != length) {
37195
- logger6.throwArgumentError("invalid length", "length", length);
37195
+ logger7.throwArgumentError("invalid length", "length", length);
37196
37196
  }
37197
37197
  var result = new Uint8Array(length);
37198
37198
  crypto2.getRandomValues(result);
@@ -37886,7 +37886,7 @@ var require_crowdsale = __commonJS((exports2) => {
37886
37886
  var properties_1 = require_lib4();
37887
37887
  var logger_1 = require_lib();
37888
37888
  var _version_1 = require__version16();
37889
- var logger6 = new logger_1.Logger(_version_1.version);
37889
+ var logger7 = new logger_1.Logger(_version_1.version);
37890
37890
  var utils_1 = require_utils5();
37891
37891
  var CrowdsaleAccount = function(_super) {
37892
37892
  __extends(CrowdsaleAccount2, _super);
@@ -37905,7 +37905,7 @@ var require_crowdsale = __commonJS((exports2) => {
37905
37905
  var ethaddr = (0, address_1.getAddress)((0, utils_1.searchPath)(data, "ethaddr"));
37906
37906
  var encseed = (0, utils_1.looseArrayify)((0, utils_1.searchPath)(data, "encseed"));
37907
37907
  if (!encseed || encseed.length % 16 !== 0) {
37908
- logger6.throwArgumentError("invalid encseed", "json", json);
37908
+ logger7.throwArgumentError("invalid encseed", "json", json);
37909
37909
  }
37910
37910
  var key = (0, bytes_1.arrayify)((0, pbkdf2_1.pbkdf2)(password, password, 2000, 32, "sha256")).slice(0, 16);
37911
37911
  var iv = encseed.slice(0, 16);
@@ -38587,7 +38587,7 @@ var require_keystore = __commonJS((exports2) => {
38587
38587
  var utils_1 = require_utils5();
38588
38588
  var logger_1 = require_lib();
38589
38589
  var _version_1 = require__version16();
38590
- var logger6 = new logger_1.Logger(_version_1.version);
38590
+ var logger7 = new logger_1.Logger(_version_1.version);
38591
38591
  function hasMnemonic(value) {
38592
38592
  return value != null && value.mnemonic && value.mnemonic.phrase;
38593
38593
  }
@@ -38620,7 +38620,7 @@ var require_keystore = __commonJS((exports2) => {
38620
38620
  }
38621
38621
  var privateKey = _decrypt(data, key.slice(0, 16), ciphertext);
38622
38622
  if (!privateKey) {
38623
- logger6.throwError("unsupported cipher", logger_1.Logger.errors.UNSUPPORTED_OPERATION, {
38623
+ logger7.throwError("unsupported cipher", logger_1.Logger.errors.UNSUPPORTED_OPERATION, {
38624
38624
  operation: "decrypt"
38625
38625
  });
38626
38626
  }
@@ -38674,7 +38674,7 @@ var require_keystore = __commonJS((exports2) => {
38674
38674
  var kdf = (0, utils_1.searchPath)(data, "crypto/kdf");
38675
38675
  if (kdf && typeof kdf === "string") {
38676
38676
  var throwError = function(name, value) {
38677
- return logger6.throwArgumentError("invalid key-derivation function parameters", name, value);
38677
+ return logger7.throwArgumentError("invalid key-derivation function parameters", name, value);
38678
38678
  };
38679
38679
  if (kdf.toLowerCase() === "scrypt") {
38680
38680
  var salt = (0, utils_1.looseArrayify)((0, utils_1.searchPath)(data, "crypto/kdfparams/salt"));
@@ -38711,7 +38711,7 @@ var require_keystore = __commonJS((exports2) => {
38711
38711
  return pbkdf2Func(passwordBytes, salt, count, dkLen, prfFunc);
38712
38712
  }
38713
38713
  }
38714
- return logger6.throwArgumentError("unsupported key-derivation function", "kdf", kdf);
38714
+ return logger7.throwArgumentError("unsupported key-derivation function", "kdf", kdf);
38715
38715
  }
38716
38716
  function decryptSync(json, password) {
38717
38717
  var data = JSON.parse(json);
@@ -39215,7 +39215,7 @@ var require_lib23 = __commonJS((exports2) => {
39215
39215
  var strings_1 = require_lib9();
39216
39216
  var logger_1 = require_lib();
39217
39217
  var _version_1 = require__version17();
39218
- var logger8 = new logger_1.Logger(_version_1.version);
39218
+ var logger9 = new logger_1.Logger(_version_1.version);
39219
39219
  var geturl_1 = require_browser_geturl();
39220
39220
  function staller(duration) {
39221
39221
  return new Promise(function(resolve) {
@@ -39246,10 +39246,10 @@ var require_lib23 = __commonJS((exports2) => {
39246
39246
  }
39247
39247
  function _fetchData(connection, body, processFunc) {
39248
39248
  var attemptLimit = typeof connection === "object" && connection.throttleLimit != null ? connection.throttleLimit : 12;
39249
- logger8.assertArgument(attemptLimit > 0 && attemptLimit % 1 === 0, "invalid connection throttle limit", "connection.throttleLimit", attemptLimit);
39249
+ logger9.assertArgument(attemptLimit > 0 && attemptLimit % 1 === 0, "invalid connection throttle limit", "connection.throttleLimit", attemptLimit);
39250
39250
  var throttleCallback = typeof connection === "object" ? connection.throttleCallback : null;
39251
39251
  var throttleSlotInterval = typeof connection === "object" && typeof connection.throttleSlotInterval === "number" ? connection.throttleSlotInterval : 100;
39252
- logger8.assertArgument(throttleSlotInterval > 0 && throttleSlotInterval % 1 === 0, "invalid connection throttle slot interval", "connection.throttleSlotInterval", throttleSlotInterval);
39252
+ logger9.assertArgument(throttleSlotInterval > 0 && throttleSlotInterval % 1 === 0, "invalid connection throttle slot interval", "connection.throttleSlotInterval", throttleSlotInterval);
39253
39253
  var errorPassThrough = typeof connection === "object" ? !!connection.errorPassThrough : false;
39254
39254
  var headers = {};
39255
39255
  var url = null;
@@ -39262,7 +39262,7 @@ var require_lib23 = __commonJS((exports2) => {
39262
39262
  url = connection;
39263
39263
  } else if (typeof connection === "object") {
39264
39264
  if (connection == null || connection.url == null) {
39265
- logger8.throwArgumentError("missing URL", "connection.url", connection);
39265
+ logger9.throwArgumentError("missing URL", "connection.url", connection);
39266
39266
  }
39267
39267
  url = connection.url;
39268
39268
  if (typeof connection.timeout === "number" && connection.timeout > 0) {
@@ -39279,7 +39279,7 @@ var require_lib23 = __commonJS((exports2) => {
39279
39279
  options.allowGzip = !!connection.allowGzip;
39280
39280
  if (connection.user != null && connection.password != null) {
39281
39281
  if (url.substring(0, 6) !== "https:" && connection.allowInsecureAuthentication !== true) {
39282
- logger8.throwError("basic authentication requires a secure https url", logger_1.Logger.errors.INVALID_ARGUMENT, { argument: "url", url, user: connection.user, password: "[REDACTED]" });
39282
+ logger9.throwError("basic authentication requires a secure https url", logger_1.Logger.errors.INVALID_ARGUMENT, { argument: "url", url, user: connection.user, password: "[REDACTED]" });
39283
39283
  }
39284
39284
  var authorization = connection.user + ":" + connection.password;
39285
39285
  headers["authorization"] = {
@@ -39310,7 +39310,7 @@ var require_lib23 = __commonJS((exports2) => {
39310
39310
  }
39311
39311
  return Promise.resolve(result);
39312
39312
  } catch (error) {
39313
- logger8.throwError("processing response error", logger_1.Logger.errors.SERVER_ERROR, {
39313
+ logger9.throwError("processing response error", logger_1.Logger.errors.SERVER_ERROR, {
39314
39314
  body: bodyify(dataMatch[1], dataMatch[2]),
39315
39315
  error,
39316
39316
  requestBody: null,
@@ -39344,7 +39344,7 @@ var require_lib23 = __commonJS((exports2) => {
39344
39344
  return;
39345
39345
  }
39346
39346
  timer = null;
39347
- reject(logger8.makeError("timeout", logger_1.Logger.errors.TIMEOUT, {
39347
+ reject(logger9.makeError("timeout", logger_1.Logger.errors.TIMEOUT, {
39348
39348
  requestBody: bodyify(options.body, flatHeaders["content-type"]),
39349
39349
  requestMethod: options.method,
39350
39350
  timeout,
@@ -39421,7 +39421,7 @@ var require_lib23 = __commonJS((exports2) => {
39421
39421
  response2 = error_1.response;
39422
39422
  if (response2 == null) {
39423
39423
  runningTimeout.cancel();
39424
- logger8.throwError("missing response", logger_1.Logger.errors.SERVER_ERROR, {
39424
+ logger9.throwError("missing response", logger_1.Logger.errors.SERVER_ERROR, {
39425
39425
  requestBody: bodyify(options.body, flatHeaders["content-type"]),
39426
39426
  requestMethod: options.method,
39427
39427
  serverError: error_1,
@@ -39435,7 +39435,7 @@ var require_lib23 = __commonJS((exports2) => {
39435
39435
  body_1 = null;
39436
39436
  } else if (!errorPassThrough && (response2.statusCode < 200 || response2.statusCode >= 300)) {
39437
39437
  runningTimeout.cancel();
39438
- logger8.throwError("bad response", logger_1.Logger.errors.SERVER_ERROR, {
39438
+ logger9.throwError("bad response", logger_1.Logger.errors.SERVER_ERROR, {
39439
39439
  status: response2.statusCode,
39440
39440
  headers: response2.headers,
39441
39441
  body: bodyify(body_1, response2.headers ? response2.headers["content-type"] : null),
@@ -39475,7 +39475,7 @@ var require_lib23 = __commonJS((exports2) => {
39475
39475
  return [3, 19];
39476
39476
  case 17:
39477
39477
  runningTimeout.cancel();
39478
- logger8.throwError("processing response error", logger_1.Logger.errors.SERVER_ERROR, {
39478
+ logger9.throwError("processing response error", logger_1.Logger.errors.SERVER_ERROR, {
39479
39479
  body: bodyify(body_1, response2.headers ? response2.headers["content-type"] : null),
39480
39480
  error: error_2,
39481
39481
  requestBody: bodyify(options.body, flatHeaders["content-type"]),
@@ -39490,7 +39490,7 @@ var require_lib23 = __commonJS((exports2) => {
39490
39490
  attempt++;
39491
39491
  return [3, 1];
39492
39492
  case 20:
39493
- return [2, logger8.throwError("failed response", logger_1.Logger.errors.SERVER_ERROR, {
39493
+ return [2, logger9.throwError("failed response", logger_1.Logger.errors.SERVER_ERROR, {
39494
39494
  requestBody: bodyify(options.body, flatHeaders["content-type"]),
39495
39495
  requestMethod: options.method,
39496
39496
  url
@@ -39509,7 +39509,7 @@ var require_lib23 = __commonJS((exports2) => {
39509
39509
  try {
39510
39510
  result = JSON.parse((0, strings_1.toUtf8String)(value));
39511
39511
  } catch (error) {
39512
- logger8.throwError("invalid JSON", logger_1.Logger.errors.SERVER_ERROR, {
39512
+ logger9.throwError("invalid JSON", logger_1.Logger.errors.SERVER_ERROR, {
39513
39513
  body: value,
39514
39514
  error
39515
39515
  });
@@ -39647,7 +39647,7 @@ var require_bech32 = __commonJS((exports2, module2) => {
39647
39647
  }
39648
39648
  return chk;
39649
39649
  }
39650
- function encode(prefix, words, LIMIT) {
39650
+ function encode2(prefix, words, LIMIT) {
39651
39651
  LIMIT = LIMIT || 90;
39652
39652
  if (prefix.length + 7 + words.length > LIMIT)
39653
39653
  throw new TypeError("Exceeds length limit");
@@ -39772,7 +39772,7 @@ var require_bech32 = __commonJS((exports2, module2) => {
39772
39772
  module2.exports = {
39773
39773
  decodeUnsafe,
39774
39774
  decode,
39775
- encode,
39775
+ encode: encode2,
39776
39776
  toWordsUnsafe,
39777
39777
  toWords,
39778
39778
  fromWordsUnsafe,
@@ -39802,7 +39802,7 @@ var require_lib24 = __commonJS((exports2) => {
39802
39802
  var Zeros = "0000000000000000000000000000000000000000000000000000000000000000";
39803
39803
  var logger_1 = require_lib();
39804
39804
  var _version_1 = require__version18();
39805
- var logger24 = new logger_1.Logger(_version_1.version);
39805
+ var logger25 = new logger_1.Logger(_version_1.version);
39806
39806
  function _pack(type, value, isArray2) {
39807
39807
  switch (type) {
39808
39808
  case "address":
@@ -39825,7 +39825,7 @@ var require_lib24 = __commonJS((exports2) => {
39825
39825
  if (match) {
39826
39826
  var size2 = parseInt(match[2] || "256");
39827
39827
  if (match[2] && String(size2) !== match[2] || size2 % 8 !== 0 || size2 === 0 || size2 > 256) {
39828
- logger24.throwArgumentError("invalid number type", "type", type);
39828
+ logger25.throwArgumentError("invalid number type", "type", type);
39829
39829
  }
39830
39830
  if (isArray2) {
39831
39831
  size2 = 256;
@@ -39837,10 +39837,10 @@ var require_lib24 = __commonJS((exports2) => {
39837
39837
  if (match) {
39838
39838
  var size2 = parseInt(match[1]);
39839
39839
  if (String(size2) !== match[1] || size2 === 0 || size2 > 32) {
39840
- logger24.throwArgumentError("invalid bytes type", "type", type);
39840
+ logger25.throwArgumentError("invalid bytes type", "type", type);
39841
39841
  }
39842
39842
  if ((0, bytes_1.arrayify)(value).byteLength !== size2) {
39843
- logger24.throwArgumentError("invalid value for " + type, "value", value);
39843
+ logger25.throwArgumentError("invalid value for " + type, "value", value);
39844
39844
  }
39845
39845
  if (isArray2) {
39846
39846
  return (0, bytes_1.arrayify)((value + Zeros).substring(0, 66));
@@ -39852,7 +39852,7 @@ var require_lib24 = __commonJS((exports2) => {
39852
39852
  var baseType_1 = match[1];
39853
39853
  var count = parseInt(match[2] || String(value.length));
39854
39854
  if (count != value.length) {
39855
- logger24.throwArgumentError("invalid array length for " + type, "value", value);
39855
+ logger25.throwArgumentError("invalid array length for " + type, "value", value);
39856
39856
  }
39857
39857
  var result_1 = [];
39858
39858
  value.forEach(function(value2) {
@@ -39860,11 +39860,11 @@ var require_lib24 = __commonJS((exports2) => {
39860
39860
  });
39861
39861
  return (0, bytes_1.concat)(result_1);
39862
39862
  }
39863
- return logger24.throwArgumentError("invalid type", "type", type);
39863
+ return logger25.throwArgumentError("invalid type", "type", type);
39864
39864
  }
39865
39865
  function pack(types2, values) {
39866
39866
  if (types2.length != values.length) {
39867
- logger24.throwArgumentError("wrong number of values; expected ${ types.length }", "values", values);
39867
+ logger25.throwArgumentError("wrong number of values; expected ${ types.length }", "values", values);
39868
39868
  }
39869
39869
  var tight = [];
39870
39870
  types2.forEach(function(type, index) {
@@ -39873,10 +39873,10 @@ var require_lib24 = __commonJS((exports2) => {
39873
39873
  return (0, bytes_1.hexlify)((0, bytes_1.concat)(tight));
39874
39874
  }
39875
39875
  exports2.pack = pack;
39876
- function keccak2562(types2, values) {
39876
+ function keccak2563(types2, values) {
39877
39877
  return (0, keccak256_1.keccak256)(pack(types2, values));
39878
39878
  }
39879
- exports2.keccak256 = keccak2562;
39879
+ exports2.keccak256 = keccak2563;
39880
39880
  function sha2562(types2, values) {
39881
39881
  return (0, sha2_1.sha256)(pack(types2, values));
39882
39882
  }
@@ -39897,7 +39897,7 @@ var require_lib25 = __commonJS((exports2) => {
39897
39897
  var bignumber_1 = require_lib3();
39898
39898
  var logger_1 = require_lib();
39899
39899
  var _version_1 = require__version19();
39900
- var logger24 = new logger_1.Logger(_version_1.version);
39900
+ var logger25 = new logger_1.Logger(_version_1.version);
39901
39901
  var names = [
39902
39902
  "wei",
39903
39903
  "kwei",
@@ -39910,7 +39910,7 @@ var require_lib25 = __commonJS((exports2) => {
39910
39910
  function commify(value) {
39911
39911
  var comps = String(value).split(".");
39912
39912
  if (comps.length > 2 || !comps[0].match(/^-?[0-9]*$/) || comps[1] && !comps[1].match(/^[0-9]*$/) || value === "." || value === "-.") {
39913
- logger24.throwArgumentError("invalid value", "value", value);
39913
+ logger25.throwArgumentError("invalid value", "value", value);
39914
39914
  }
39915
39915
  var whole = comps[0];
39916
39916
  var negative = "";
@@ -39957,7 +39957,7 @@ var require_lib25 = __commonJS((exports2) => {
39957
39957
  exports2.formatUnits = formatUnits;
39958
39958
  function parseUnits(value, unitName) {
39959
39959
  if (typeof value !== "string") {
39960
- logger24.throwArgumentError("value must be a string", "value", value);
39960
+ logger25.throwArgumentError("value must be a string", "value", value);
39961
39961
  }
39962
39962
  if (typeof unitName === "string") {
39963
39963
  var index = names.indexOf(unitName);
@@ -41216,7 +41216,7 @@ var require_decimal = __commonJS((exports2, module2) => {
41216
41216
  toExpNeg: -7,
41217
41217
  toExpPos: 21,
41218
41218
  LN10: "2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"
41219
- }, external = true, decimalError = "[DecimalError] ", invalidArgument = decimalError + "Invalid argument: ", exponentOutOfRange = decimalError + "Exponent out of range: ", mathfloor = Math.floor, mathpow = Math.pow, isDecimal = /^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i, ONE2, BASE = 1e7, LOG_BASE = 7, MAX_SAFE_INTEGER = 9007199254740991, MAX_E = mathfloor(MAX_SAFE_INTEGER / LOG_BASE), P = {};
41219
+ }, external = true, decimalError = "[DecimalError] ", invalidArgument = decimalError + "Invalid argument: ", exponentOutOfRange = decimalError + "Exponent out of range: ", mathfloor = Math.floor, mathpow = Math.pow, isDecimal = /^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i, ONE2, BASE = 1e7, LOG_BASE = 7, MAX_SAFE_INTEGER2 = 9007199254740991, MAX_E = mathfloor(MAX_SAFE_INTEGER2 / LOG_BASE), P = {};
41220
41220
  P.absoluteValue = P.abs = function() {
41221
41221
  var x = new this.constructor(this);
41222
41222
  if (x.s)
@@ -41506,7 +41506,7 @@ var require_decimal = __commonJS((exports2, module2) => {
41506
41506
  if (!yIsInt) {
41507
41507
  if (sign < 0)
41508
41508
  throw Error(decimalError + "NaN");
41509
- } else if ((k = yn < 0 ? -yn : yn) <= MAX_SAFE_INTEGER) {
41509
+ } else if ((k = yn < 0 ? -yn : yn) <= MAX_SAFE_INTEGER2) {
41510
41510
  r = new Ctor(ONE2);
41511
41511
  e = Math.ceil(pr / LOG_BASE + 4);
41512
41512
  external = false;
@@ -42988,7 +42988,7 @@ var require_lib26 = __commonJS((exports2) => {
42988
42988
  var properties_1 = require_lib4();
42989
42989
  var logger_1 = require_lib();
42990
42990
  var _version_1 = require__version20();
42991
- var logger25 = new logger_1.Logger(_version_1.version);
42991
+ var logger26 = new logger_1.Logger(_version_1.version);
42992
42992
  var ForkEvent2 = function(_super) {
42993
42993
  __extends(ForkEvent3, _super);
42994
42994
  function ForkEvent3() {
@@ -43005,7 +43005,7 @@ var require_lib26 = __commonJS((exports2) => {
43005
43005
  function BlockForkEvent2(blockHash, expiry) {
43006
43006
  var _this = this;
43007
43007
  if (!(0, bytes_1.isHexString)(blockHash, 32)) {
43008
- logger25.throwArgumentError("invalid blockHash", "blockHash", blockHash);
43008
+ logger26.throwArgumentError("invalid blockHash", "blockHash", blockHash);
43009
43009
  }
43010
43010
  _this = _super.call(this, {
43011
43011
  _isForkEvent: true,
@@ -43023,7 +43023,7 @@ var require_lib26 = __commonJS((exports2) => {
43023
43023
  function TransactionForkEvent2(hash, expiry) {
43024
43024
  var _this = this;
43025
43025
  if (!(0, bytes_1.isHexString)(hash, 32)) {
43026
- logger25.throwArgumentError("invalid transaction hash", "hash", hash);
43026
+ logger26.throwArgumentError("invalid transaction hash", "hash", hash);
43027
43027
  }
43028
43028
  _this = _super.call(this, {
43029
43029
  _isForkEvent: true,
@@ -43041,10 +43041,10 @@ var require_lib26 = __commonJS((exports2) => {
43041
43041
  function TransactionOrderForkEvent2(beforeHash, afterHash, expiry) {
43042
43042
  var _this = this;
43043
43043
  if (!(0, bytes_1.isHexString)(beforeHash, 32)) {
43044
- logger25.throwArgumentError("invalid transaction hash", "beforeHash", beforeHash);
43044
+ logger26.throwArgumentError("invalid transaction hash", "beforeHash", beforeHash);
43045
43045
  }
43046
43046
  if (!(0, bytes_1.isHexString)(afterHash, 32)) {
43047
- logger25.throwArgumentError("invalid transaction hash", "afterHash", afterHash);
43047
+ logger26.throwArgumentError("invalid transaction hash", "afterHash", afterHash);
43048
43048
  }
43049
43049
  _this = _super.call(this, {
43050
43050
  _isForkEvent: true,
@@ -43061,7 +43061,7 @@ var require_lib26 = __commonJS((exports2) => {
43061
43061
  var Provider2 = function() {
43062
43062
  function Provider3() {
43063
43063
  var _newTarget = this.constructor;
43064
- logger25.checkAbstract(_newTarget, Provider3);
43064
+ logger26.checkAbstract(_newTarget, Provider3);
43065
43065
  (0, properties_1.defineReadOnly)(this, "_isProvider", true);
43066
43066
  }
43067
43067
  Provider3.prototype.getFeeData = function() {
@@ -43241,7 +43241,7 @@ var require_lib27 = __commonJS((exports2) => {
43241
43241
  var properties_1 = require_lib4();
43242
43242
  var logger_1 = require_lib();
43243
43243
  var _version_1 = require__version21();
43244
- var logger25 = new logger_1.Logger(_version_1.version);
43244
+ var logger26 = new logger_1.Logger(_version_1.version);
43245
43245
  var allowedTransactionKeys4 = [
43246
43246
  "accessList",
43247
43247
  "ccipReadEnabled",
@@ -43266,7 +43266,7 @@ var require_lib27 = __commonJS((exports2) => {
43266
43266
  var Signer2 = function() {
43267
43267
  function Signer3() {
43268
43268
  var _newTarget = this.constructor;
43269
- logger25.checkAbstract(_newTarget, Signer3);
43269
+ logger26.checkAbstract(_newTarget, Signer3);
43270
43270
  (0, properties_1.defineReadOnly)(this, "_isSigner", true);
43271
43271
  }
43272
43272
  Signer3.prototype.getBalance = function(blockTag) {
@@ -43406,7 +43406,7 @@ var require_lib27 = __commonJS((exports2) => {
43406
43406
  Signer3.prototype.checkTransaction = function(transaction) {
43407
43407
  for (var key in transaction) {
43408
43408
  if (allowedTransactionKeys4.indexOf(key) === -1) {
43409
- logger25.throwArgumentError("invalid transaction key: " + key, "transaction", transaction);
43409
+ logger26.throwArgumentError("invalid transaction key: " + key, "transaction", transaction);
43410
43410
  }
43411
43411
  }
43412
43412
  var tx = (0, properties_1.shallowCopy)(transaction);
@@ -43418,7 +43418,7 @@ var require_lib27 = __commonJS((exports2) => {
43418
43418
  this.getAddress()
43419
43419
  ]).then(function(result) {
43420
43420
  if (result[0].toLowerCase() !== result[1].toLowerCase()) {
43421
- logger25.throwArgumentError("from address mismatch", "transaction", transaction);
43421
+ logger26.throwArgumentError("from address mismatch", "transaction", transaction);
43422
43422
  }
43423
43423
  return result[0];
43424
43424
  });
@@ -43449,7 +43449,7 @@ var require_lib27 = __commonJS((exports2) => {
43449
43449
  case 1:
43450
43450
  address = _a2.sent();
43451
43451
  if (address == null) {
43452
- logger25.throwArgumentError("provided ENS name resolves to null", "tx.to", to);
43452
+ logger26.throwArgumentError("provided ENS name resolves to null", "tx.to", to);
43453
43453
  }
43454
43454
  return [2, address];
43455
43455
  }
@@ -43460,9 +43460,9 @@ var require_lib27 = __commonJS((exports2) => {
43460
43460
  }
43461
43461
  hasEip1559 = tx.maxFeePerGas != null || tx.maxPriorityFeePerGas != null;
43462
43462
  if (tx.gasPrice != null && (tx.type === 2 || hasEip1559)) {
43463
- logger25.throwArgumentError("eip-1559 transaction do not support gasPrice", "transaction", transaction);
43463
+ logger26.throwArgumentError("eip-1559 transaction do not support gasPrice", "transaction", transaction);
43464
43464
  } else if ((tx.type === 0 || tx.type === 1) && hasEip1559) {
43465
- logger25.throwArgumentError("pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas", "transaction", transaction);
43465
+ logger26.throwArgumentError("pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas", "transaction", transaction);
43466
43466
  }
43467
43467
  if (!((tx.type === 2 || tx.type == null) && (tx.maxFeePerGas != null && tx.maxPriorityFeePerGas != null)))
43468
43468
  return [3, 2];
@@ -43497,7 +43497,7 @@ var require_lib27 = __commonJS((exports2) => {
43497
43497
  }
43498
43498
  } else if (feeData.gasPrice != null) {
43499
43499
  if (hasEip1559) {
43500
- logger25.throwError("network does not support EIP-1559", logger_1.Logger.errors.UNSUPPORTED_OPERATION, {
43500
+ logger26.throwError("network does not support EIP-1559", logger_1.Logger.errors.UNSUPPORTED_OPERATION, {
43501
43501
  operation: "populateTransaction"
43502
43502
  });
43503
43503
  }
@@ -43506,7 +43506,7 @@ var require_lib27 = __commonJS((exports2) => {
43506
43506
  }
43507
43507
  tx.type = 0;
43508
43508
  } else {
43509
- logger25.throwError("failed to get consistent fee data", logger_1.Logger.errors.UNSUPPORTED_OPERATION, {
43509
+ logger26.throwError("failed to get consistent fee data", logger_1.Logger.errors.UNSUPPORTED_OPERATION, {
43510
43510
  operation: "signer.getFeeData"
43511
43511
  });
43512
43512
  }
@@ -43528,7 +43528,7 @@ var require_lib27 = __commonJS((exports2) => {
43528
43528
  if (forwardErrors2.indexOf(error.code) >= 0) {
43529
43529
  throw error;
43530
43530
  }
43531
- return logger25.throwError("cannot estimate gas; transaction may fail or may require manual gas limit", logger_1.Logger.errors.UNPREDICTABLE_GAS_LIMIT, {
43531
+ return logger26.throwError("cannot estimate gas; transaction may fail or may require manual gas limit", logger_1.Logger.errors.UNPREDICTABLE_GAS_LIMIT, {
43532
43532
  error,
43533
43533
  tx
43534
43534
  });
@@ -43542,7 +43542,7 @@ var require_lib27 = __commonJS((exports2) => {
43542
43542
  this.getChainId()
43543
43543
  ]).then(function(results) {
43544
43544
  if (results[1] !== 0 && results[0] !== results[1]) {
43545
- logger25.throwArgumentError("chainId address mismatch", "transaction", transaction);
43545
+ logger26.throwArgumentError("chainId address mismatch", "transaction", transaction);
43546
43546
  }
43547
43547
  return results[0];
43548
43548
  });
@@ -43556,7 +43556,7 @@ var require_lib27 = __commonJS((exports2) => {
43556
43556
  };
43557
43557
  Signer3.prototype._checkProvider = function(operation) {
43558
43558
  if (!this.provider) {
43559
- logger25.throwError("missing provider", logger_1.Logger.errors.UNSUPPORTED_OPERATION, {
43559
+ logger26.throwError("missing provider", logger_1.Logger.errors.UNSUPPORTED_OPERATION, {
43560
43560
  operation: operation || "_checkProvider"
43561
43561
  });
43562
43562
  }
@@ -43580,7 +43580,7 @@ var require_lib27 = __commonJS((exports2) => {
43580
43580
  };
43581
43581
  VoidSigner3.prototype._fail = function(message, operation) {
43582
43582
  return Promise.resolve().then(function() {
43583
- logger25.throwError(message, logger_1.Logger.errors.UNSUPPORTED_OPERATION, { operation });
43583
+ logger26.throwError(message, logger_1.Logger.errors.UNSUPPORTED_OPERATION, { operation });
43584
43584
  });
43585
43585
  };
43586
43586
  VoidSigner3.prototype.signMessage = function(message) {
@@ -43749,7 +43749,7 @@ var require_lib28 = __commonJS((exports2) => {
43749
43749
  var transactions_1 = require_lib15();
43750
43750
  var logger_1 = require_lib();
43751
43751
  var _version_1 = require__version22();
43752
- var logger25 = new logger_1.Logger(_version_1.version);
43752
+ var logger26 = new logger_1.Logger(_version_1.version);
43753
43753
  function isAccount2(value) {
43754
43754
  return value != null && (0, bytes_1.isHexString)(value.privateKey, 32) && value.address != null;
43755
43755
  }
@@ -43768,7 +43768,7 @@ var require_lib28 = __commonJS((exports2) => {
43768
43768
  });
43769
43769
  (0, properties_1.defineReadOnly)(_this, "address", (0, transactions_1.computeAddress)(_this.publicKey));
43770
43770
  if (_this.address !== (0, address_1.getAddress)(privateKey.address)) {
43771
- logger25.throwArgumentError("privateKey/address mismatch", "privateKey", "[REDACTED]");
43771
+ logger26.throwArgumentError("privateKey/address mismatch", "privateKey", "[REDACTED]");
43772
43772
  }
43773
43773
  if (hasMnemonic2(privateKey)) {
43774
43774
  var srcMnemonic_1 = privateKey.mnemonic;
@@ -43782,7 +43782,7 @@ var require_lib28 = __commonJS((exports2) => {
43782
43782
  var mnemonic = _this.mnemonic;
43783
43783
  var node = hdnode_1.HDNode.fromMnemonic(mnemonic.phrase, null, mnemonic.locale).derivePath(mnemonic.path);
43784
43784
  if ((0, transactions_1.computeAddress)(node.privateKey) !== _this.address) {
43785
- logger25.throwArgumentError("mnemonic/address mismatch", "privateKey", "[REDACTED]");
43785
+ logger26.throwArgumentError("mnemonic/address mismatch", "privateKey", "[REDACTED]");
43786
43786
  }
43787
43787
  } else {
43788
43788
  (0, properties_1.defineReadOnly)(_this, "_mnemonic", function() {
@@ -43792,7 +43792,7 @@ var require_lib28 = __commonJS((exports2) => {
43792
43792
  } else {
43793
43793
  if (signing_key_1.SigningKey.isSigningKey(privateKey)) {
43794
43794
  if (privateKey.curve !== "secp256k1") {
43795
- logger25.throwArgumentError("unsupported curve; must be secp256k1", "privateKey", "[REDACTED]");
43795
+ logger26.throwArgumentError("unsupported curve; must be secp256k1", "privateKey", "[REDACTED]");
43796
43796
  }
43797
43797
  (0, properties_1.defineReadOnly)(_this, "_signingKey", function() {
43798
43798
  return privateKey;
@@ -43814,7 +43814,7 @@ var require_lib28 = __commonJS((exports2) => {
43814
43814
  (0, properties_1.defineReadOnly)(_this, "address", (0, transactions_1.computeAddress)(_this.publicKey));
43815
43815
  }
43816
43816
  if (provider && !abstract_provider_1.Provider.isProvider(provider)) {
43817
- logger25.throwArgumentError("invalid provider", "provider", provider);
43817
+ logger26.throwArgumentError("invalid provider", "provider", provider);
43818
43818
  }
43819
43819
  (0, properties_1.defineReadOnly)(_this, "provider", provider || null);
43820
43820
  return _this;
@@ -43851,7 +43851,7 @@ var require_lib28 = __commonJS((exports2) => {
43851
43851
  return (0, properties_1.resolveProperties)(transaction).then(function(tx) {
43852
43852
  if (tx.from != null) {
43853
43853
  if ((0, address_1.getAddress)(tx.from) !== _this.address) {
43854
- logger25.throwArgumentError("transaction from address mismatch", "transaction.from", transaction.from);
43854
+ logger26.throwArgumentError("transaction from address mismatch", "transaction.from", transaction.from);
43855
43855
  }
43856
43856
  delete tx.from;
43857
43857
  }
@@ -43875,7 +43875,7 @@ var require_lib28 = __commonJS((exports2) => {
43875
43875
  case 0:
43876
43876
  return [4, hash_1._TypedDataEncoder.resolveNames(domain, types3, value, function(name) {
43877
43877
  if (_this.provider == null) {
43878
- logger25.throwError("cannot resolve ENS names without a provider", logger_1.Logger.errors.UNSUPPORTED_OPERATION, {
43878
+ logger26.throwError("cannot resolve ENS names without a provider", logger_1.Logger.errors.UNSUPPORTED_OPERATION, {
43879
43879
  operation: "resolveName",
43880
43880
  value: name
43881
43881
  });
@@ -45053,6 +45053,8 @@ var erc721_abi_default = [
45053
45053
  type: "function"
45054
45054
  }
45055
45055
  ];
45056
+ // node_modules/viem/_esm/constants/address.js
45057
+ var zeroAddress = "0x0000000000000000000000000000000000000000";
45056
45058
  // node_modules/viem/_esm/index.js
45057
45059
  init_number();
45058
45060
  init_toHex();
@@ -45076,10 +45078,10 @@ var createCall = (call) => {
45076
45078
  var exports_ethers = {};
45077
45079
  __export(exports_ethers, {
45078
45080
  wordlists: () => wordlists,
45079
- version: () => version12,
45081
+ version: () => version13,
45080
45082
  utils: () => exports_utils,
45081
45083
  providers: () => exports_lib2,
45082
- logger: () => logger24,
45084
+ logger: () => logger25,
45083
45085
  getDefaultProvider: () => getDefaultProvider,
45084
45086
  errors: () => ErrorCode,
45085
45087
  constants: () => exports_lib,
@@ -45654,6 +45656,12 @@ function throwFault(fault, operation, value) {
45654
45656
  }
45655
45657
  return logger.throwError(fault, Logger.errors.NUMERIC_FAULT, params);
45656
45658
  }
45659
+ function _base36To16(value) {
45660
+ return new BN(value, 36).toString(16);
45661
+ }
45662
+ function _base16To36(value) {
45663
+ return new BN(value, 16).toString(36);
45664
+ }
45657
45665
  // node_modules/@ethersproject/bignumber/lib.esm/fixednumber.js
45658
45666
  var import_bytes2 = __toESM(require_lib2());
45659
45667
  var logger2 = new Logger(version3);
@@ -46351,14 +46359,136 @@ class VoidSigner extends Signer {
46351
46359
  }
46352
46360
  }
46353
46361
 
46354
- // node_modules/@ethersproject/contracts/lib.esm/index.js
46355
- var import_address = __toESM(require_lib7());
46362
+ // node_modules/@ethersproject/address/lib.esm/index.js
46356
46363
  var import_bytes3 = __toESM(require_lib2());
46364
+ var import_keccak256 = __toESM(require_lib5());
46365
+ var import_rlp = __toESM(require_lib6());
46366
+
46367
+ // node_modules/@ethersproject/address/lib.esm/_version.js
46368
+ var version6 = "address/5.7.0";
46369
+
46370
+ // node_modules/@ethersproject/address/lib.esm/index.js
46371
+ var logger5 = new Logger(version6);
46372
+ function getChecksumAddress(address) {
46373
+ if (!import_bytes3.isHexString(address, 20)) {
46374
+ logger5.throwArgumentError("invalid address", "address", address);
46375
+ }
46376
+ address = address.toLowerCase();
46377
+ const chars = address.substring(2).split("");
46378
+ const expanded = new Uint8Array(40);
46379
+ for (let i2 = 0;i2 < 40; i2++) {
46380
+ expanded[i2] = chars[i2].charCodeAt(0);
46381
+ }
46382
+ const hashed = import_bytes3.arrayify(import_keccak256.keccak256(expanded));
46383
+ for (let i2 = 0;i2 < 40; i2 += 2) {
46384
+ if (hashed[i2 >> 1] >> 4 >= 8) {
46385
+ chars[i2] = chars[i2].toUpperCase();
46386
+ }
46387
+ if ((hashed[i2 >> 1] & 15) >= 8) {
46388
+ chars[i2 + 1] = chars[i2 + 1].toUpperCase();
46389
+ }
46390
+ }
46391
+ return "0x" + chars.join("");
46392
+ }
46393
+ var MAX_SAFE_INTEGER = 9007199254740991;
46394
+ function log10(x) {
46395
+ if (Math.log10) {
46396
+ return Math.log10(x);
46397
+ }
46398
+ return Math.log(x) / Math.LN10;
46399
+ }
46400
+ var ibanLookup = {};
46401
+ for (let i2 = 0;i2 < 10; i2++) {
46402
+ ibanLookup[String(i2)] = String(i2);
46403
+ }
46404
+ for (let i2 = 0;i2 < 26; i2++) {
46405
+ ibanLookup[String.fromCharCode(65 + i2)] = String(10 + i2);
46406
+ }
46407
+ var safeDigits = Math.floor(log10(MAX_SAFE_INTEGER));
46408
+ function ibanChecksum(address) {
46409
+ address = address.toUpperCase();
46410
+ address = address.substring(4) + address.substring(0, 2) + "00";
46411
+ let expanded = address.split("").map((c) => {
46412
+ return ibanLookup[c];
46413
+ }).join("");
46414
+ while (expanded.length >= safeDigits) {
46415
+ let block = expanded.substring(0, safeDigits);
46416
+ expanded = parseInt(block, 10) % 97 + expanded.substring(block.length);
46417
+ }
46418
+ let checksum = String(98 - parseInt(expanded, 10) % 97);
46419
+ while (checksum.length < 2) {
46420
+ checksum = "0" + checksum;
46421
+ }
46422
+ return checksum;
46423
+ }
46424
+ function getAddress(address) {
46425
+ let result = null;
46426
+ if (typeof address !== "string") {
46427
+ logger5.throwArgumentError("invalid address", "address", address);
46428
+ }
46429
+ if (address.match(/^(0x)?[0-9a-fA-F]{40}$/)) {
46430
+ if (address.substring(0, 2) !== "0x") {
46431
+ address = "0x" + address;
46432
+ }
46433
+ result = getChecksumAddress(address);
46434
+ if (address.match(/([A-F].*[a-f])|([a-f].*[A-F])/) && result !== address) {
46435
+ logger5.throwArgumentError("bad address checksum", "address", address);
46436
+ }
46437
+ } else if (address.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)) {
46438
+ if (address.substring(2, 4) !== ibanChecksum(address)) {
46439
+ logger5.throwArgumentError("bad icap checksum", "address", address);
46440
+ }
46441
+ result = _base36To16(address.substring(4));
46442
+ while (result.length < 40) {
46443
+ result = "0" + result;
46444
+ }
46445
+ result = getChecksumAddress("0x" + result);
46446
+ } else {
46447
+ logger5.throwArgumentError("invalid address", "address", address);
46448
+ }
46449
+ return result;
46450
+ }
46451
+ function isAddress(address) {
46452
+ try {
46453
+ getAddress(address);
46454
+ return true;
46455
+ } catch (error) {}
46456
+ return false;
46457
+ }
46458
+ function getIcapAddress(address) {
46459
+ let base36 = _base16To36(getAddress(address).substring(2)).toUpperCase();
46460
+ while (base36.length < 30) {
46461
+ base36 = "0" + base36;
46462
+ }
46463
+ return "XE" + ibanChecksum("XE00" + base36) + base36;
46464
+ }
46465
+ function getContractAddress(transaction) {
46466
+ let from2 = null;
46467
+ try {
46468
+ from2 = getAddress(transaction.from);
46469
+ } catch (error) {
46470
+ logger5.throwArgumentError("missing from address", "transaction", transaction);
46471
+ }
46472
+ const nonce = import_bytes3.stripZeros(import_bytes3.arrayify(BigNumber.from(transaction.nonce).toHexString()));
46473
+ return getAddress(import_bytes3.hexDataSlice(import_keccak256.keccak256(import_rlp.encode([from2, nonce])), 12));
46474
+ }
46475
+ function getCreate2Address(from2, salt, initCodeHash) {
46476
+ if (import_bytes3.hexDataLength(salt) !== 32) {
46477
+ logger5.throwArgumentError("salt must be 32 bytes", "salt", salt);
46478
+ }
46479
+ if (import_bytes3.hexDataLength(initCodeHash) !== 32) {
46480
+ logger5.throwArgumentError("initCodeHash must be 32 bytes", "initCodeHash", initCodeHash);
46481
+ }
46482
+ return getAddress(import_bytes3.hexDataSlice(import_keccak256.keccak256(import_bytes3.concat(["0xff", getAddress(from2), salt, initCodeHash])), 12));
46483
+ }
46484
+
46485
+ // node_modules/@ethersproject/contracts/lib.esm/index.js
46486
+ var import_bytes4 = __toESM(require_lib2());
46357
46487
  var import_properties3 = __toESM(require_lib4());
46358
46488
  var import_transactions = __toESM(require_lib15());
46359
46489
 
46360
46490
  // node_modules/@ethersproject/contracts/lib.esm/_version.js
46361
- var version7 = "contracts/5.7.0";
46491
+ var version8 = "contracts/5.7.0";
46362
46492
 
46363
46493
  // node_modules/@ethersproject/contracts/lib.esm/index.js
46364
46494
  var __awaiter3 = function(thisArg, _arguments, P, generator) {
@@ -46388,7 +46518,7 @@ var __awaiter3 = function(thisArg, _arguments, P, generator) {
46388
46518
  step((generator = generator.apply(thisArg, _arguments || [])).next());
46389
46519
  });
46390
46520
  };
46391
- var logger5 = new Logger(version7);
46521
+ var logger6 = new Logger(version8);
46392
46522
  var allowedTransactionKeys2 = {
46393
46523
  chainId: true,
46394
46524
  data: true,
@@ -46409,19 +46539,19 @@ function resolveName(resolver, nameOrPromise) {
46409
46539
  return __awaiter3(this, undefined, undefined, function* () {
46410
46540
  const name = yield nameOrPromise;
46411
46541
  if (typeof name !== "string") {
46412
- logger5.throwArgumentError("invalid address or ENS name", "name", name);
46542
+ logger6.throwArgumentError("invalid address or ENS name", "name", name);
46413
46543
  }
46414
46544
  try {
46415
- return import_address.getAddress(name);
46545
+ return getAddress(name);
46416
46546
  } catch (error) {}
46417
46547
  if (!resolver) {
46418
- logger5.throwError("a provider or signer is needed to resolve ENS names", Logger.errors.UNSUPPORTED_OPERATION, {
46548
+ logger6.throwError("a provider or signer is needed to resolve ENS names", Logger.errors.UNSUPPORTED_OPERATION, {
46419
46549
  operation: "resolveName"
46420
46550
  });
46421
46551
  }
46422
46552
  const address = yield resolver.resolveName(name);
46423
46553
  if (address == null) {
46424
- logger5.throwArgumentError("resolver or addr is not configured for ENS name", "name", name);
46554
+ logger6.throwArgumentError("resolver or addr is not configured for ENS name", "name", name);
46425
46555
  }
46426
46556
  return address;
46427
46557
  });
@@ -46441,7 +46571,7 @@ function resolveAddresses(resolver, value, paramType) {
46441
46571
  }
46442
46572
  if (paramType.baseType === "array") {
46443
46573
  if (!Array.isArray(value)) {
46444
- return Promise.reject(logger5.makeError("invalid value for array", Logger.errors.INVALID_ARGUMENT, {
46574
+ return Promise.reject(logger6.makeError("invalid value for array", Logger.errors.INVALID_ARGUMENT, {
46445
46575
  argument: "value",
46446
46576
  value
46447
46577
  }));
@@ -46457,15 +46587,15 @@ function populateTransaction(contract, fragment, args) {
46457
46587
  if (args.length === fragment.inputs.length + 1 && typeof args[args.length - 1] === "object") {
46458
46588
  overrides = import_properties3.shallowCopy(args.pop());
46459
46589
  }
46460
- logger5.checkArgumentCount(args.length, fragment.inputs.length, "passed to contract");
46590
+ logger6.checkArgumentCount(args.length, fragment.inputs.length, "passed to contract");
46461
46591
  if (contract.signer) {
46462
46592
  if (overrides.from) {
46463
46593
  overrides.from = import_properties3.resolveProperties({
46464
46594
  override: resolveName(contract.signer, overrides.from),
46465
46595
  signer: contract.signer.getAddress()
46466
46596
  }).then((check) => __awaiter3(this, undefined, undefined, function* () {
46467
- if (import_address.getAddress(check.signer) !== check.override) {
46468
- logger5.throwError("Contract with a Signer cannot override from", Logger.errors.UNSUPPORTED_OPERATION, {
46597
+ if (getAddress(check.signer) !== check.override) {
46598
+ logger6.throwError("Contract with a Signer cannot override from", Logger.errors.UNSUPPORTED_OPERATION, {
46469
46599
  operation: "overrides.from"
46470
46600
  });
46471
46601
  }
@@ -46514,7 +46644,7 @@ function populateTransaction(contract, fragment, args) {
46514
46644
  }
46515
46645
  if (tx.gasLimit == null && fragment.gas != null) {
46516
46646
  let intrinsic = 21000;
46517
- const bytes = import_bytes3.arrayify(data);
46647
+ const bytes = import_bytes4.arrayify(data);
46518
46648
  for (let i2 = 0;i2 < bytes.length; i2++) {
46519
46649
  intrinsic += 4;
46520
46650
  if (bytes[i2]) {
@@ -46526,7 +46656,7 @@ function populateTransaction(contract, fragment, args) {
46526
46656
  if (ro.value) {
46527
46657
  const roValue = BigNumber.from(ro.value);
46528
46658
  if (!roValue.isZero() && !fragment.payable) {
46529
- logger5.throwError("non-payable method cannot override value", Logger.errors.UNSUPPORTED_OPERATION, {
46659
+ logger6.throwError("non-payable method cannot override value", Logger.errors.UNSUPPORTED_OPERATION, {
46530
46660
  operation: "overrides.value",
46531
46661
  value: overrides.value
46532
46662
  });
@@ -46552,7 +46682,7 @@ function populateTransaction(contract, fragment, args) {
46552
46682
  delete overrides.ccipReadEnabled;
46553
46683
  const leftovers = Object.keys(overrides).filter((key) => overrides[key] != null);
46554
46684
  if (leftovers.length) {
46555
- logger5.throwError(`cannot override ${leftovers.map((l) => JSON.stringify(l)).join(",")}`, Logger.errors.UNSUPPORTED_OPERATION, {
46685
+ logger6.throwError(`cannot override ${leftovers.map((l) => JSON.stringify(l)).join(",")}`, Logger.errors.UNSUPPORTED_OPERATION, {
46556
46686
  operation: "overrides",
46557
46687
  overrides: leftovers
46558
46688
  });
@@ -46570,7 +46700,7 @@ function buildEstimate(contract, fragment) {
46570
46700
  return function(...args) {
46571
46701
  return __awaiter3(this, undefined, undefined, function* () {
46572
46702
  if (!signerOrProvider) {
46573
- logger5.throwError("estimate require a provider or signer", Logger.errors.UNSUPPORTED_OPERATION, {
46703
+ logger6.throwError("estimate require a provider or signer", Logger.errors.UNSUPPORTED_OPERATION, {
46574
46704
  operation: "estimateGas"
46575
46705
  });
46576
46706
  }
@@ -46654,7 +46784,7 @@ function buildSend(contract, fragment) {
46654
46784
  return function(...args) {
46655
46785
  return __awaiter3(this, undefined, undefined, function* () {
46656
46786
  if (!contract.signer) {
46657
- logger5.throwError("sending a transaction requires a signer", Logger.errors.UNSUPPORTED_OPERATION, {
46787
+ logger6.throwError("sending a transaction requires a signer", Logger.errors.UNSUPPORTED_OPERATION, {
46658
46788
  operation: "sendTransaction"
46659
46789
  });
46660
46790
  }
@@ -46745,7 +46875,7 @@ class FragmentRunningEvent extends RunningEvent {
46745
46875
  let topic = contractInterface.getEventTopic(fragment);
46746
46876
  if (topics) {
46747
46877
  if (topic !== topics[0]) {
46748
- logger5.throwArgumentError("topic mismatch", "topics", topics);
46878
+ logger6.throwArgumentError("topic mismatch", "topics", topics);
46749
46879
  }
46750
46880
  filter.topics = topics.slice();
46751
46881
  } else {
@@ -46814,7 +46944,7 @@ class BaseContract {
46814
46944
  import_properties3.defineReadOnly(this, "provider", signerOrProvider);
46815
46945
  import_properties3.defineReadOnly(this, "signer", null);
46816
46946
  } else {
46817
- logger5.throwArgumentError("invalid signer or provider", "signerOrProvider", signerOrProvider);
46947
+ logger6.throwArgumentError("invalid signer or provider", "signerOrProvider", signerOrProvider);
46818
46948
  }
46819
46949
  import_properties3.defineReadOnly(this, "callStatic", {});
46820
46950
  import_properties3.defineReadOnly(this, "estimateGas", {});
@@ -46841,23 +46971,23 @@ class BaseContract {
46841
46971
  if (filters.length === 1) {
46842
46972
  import_properties3.defineReadOnly(this.filters, name, this.filters[filters[0]]);
46843
46973
  } else {
46844
- logger5.warn(`Duplicate definition of ${name} (${filters.join(", ")})`);
46974
+ logger6.warn(`Duplicate definition of ${name} (${filters.join(", ")})`);
46845
46975
  }
46846
46976
  });
46847
46977
  }
46848
46978
  import_properties3.defineReadOnly(this, "_runningEvents", {});
46849
46979
  import_properties3.defineReadOnly(this, "_wrappedEmits", {});
46850
46980
  if (addressOrName == null) {
46851
- logger5.throwArgumentError("invalid contract address or ENS name", "addressOrName", addressOrName);
46981
+ logger6.throwArgumentError("invalid contract address or ENS name", "addressOrName", addressOrName);
46852
46982
  }
46853
46983
  import_properties3.defineReadOnly(this, "address", addressOrName);
46854
46984
  if (this.provider) {
46855
46985
  import_properties3.defineReadOnly(this, "resolvedAddress", resolveName(this.provider, addressOrName));
46856
46986
  } else {
46857
46987
  try {
46858
- import_properties3.defineReadOnly(this, "resolvedAddress", Promise.resolve(import_address.getAddress(addressOrName)));
46988
+ import_properties3.defineReadOnly(this, "resolvedAddress", Promise.resolve(getAddress(addressOrName)));
46859
46989
  } catch (error) {
46860
- logger5.throwError("provider is required to use ENS name as contract address", Logger.errors.UNSUPPORTED_OPERATION, {
46990
+ logger6.throwError("provider is required to use ENS name as contract address", Logger.errors.UNSUPPORTED_OPERATION, {
46861
46991
  operation: "new Contract"
46862
46992
  });
46863
46993
  }
@@ -46868,7 +46998,7 @@ class BaseContract {
46868
46998
  Object.keys(this.interface.functions).forEach((signature) => {
46869
46999
  const fragment = this.interface.functions[signature];
46870
47000
  if (uniqueSignatures[signature]) {
46871
- logger5.warn(`Duplicate ABI entry for ${JSON.stringify(signature)}`);
47001
+ logger6.warn(`Duplicate ABI entry for ${JSON.stringify(signature)}`);
46872
47002
  return;
46873
47003
  }
46874
47004
  uniqueSignatures[signature] = true;
@@ -46922,7 +47052,7 @@ class BaseContract {
46922
47052
  });
46923
47053
  }
46924
47054
  static getContractAddress(transaction) {
46925
- return import_address.getContractAddress(transaction);
47055
+ return getContractAddress(transaction);
46926
47056
  }
46927
47057
  static getInterface(contractInterface) {
46928
47058
  if (import_abi.Interface.isInterface(contractInterface)) {
@@ -46942,7 +47072,7 @@ class BaseContract {
46942
47072
  } else {
46943
47073
  this._deployedPromise = this.provider.getCode(this.address, blockTag).then((code2) => {
46944
47074
  if (code2 === "0x") {
46945
- logger5.throwError("contract not deployed", Logger.errors.UNSUPPORTED_OPERATION, {
47075
+ logger6.throwError("contract not deployed", Logger.errors.UNSUPPORTED_OPERATION, {
46946
47076
  contractAddress: this.address,
46947
47077
  operation: "getDeployed"
46948
47078
  });
@@ -46955,14 +47085,14 @@ class BaseContract {
46955
47085
  }
46956
47086
  fallback(overrides) {
46957
47087
  if (!this.signer) {
46958
- logger5.throwError("sending a transactions require a signer", Logger.errors.UNSUPPORTED_OPERATION, { operation: "sendTransaction(fallback)" });
47088
+ logger6.throwError("sending a transactions require a signer", Logger.errors.UNSUPPORTED_OPERATION, { operation: "sendTransaction(fallback)" });
46959
47089
  }
46960
47090
  const tx = import_properties3.shallowCopy(overrides || {});
46961
47091
  ["from", "to"].forEach(function(key) {
46962
47092
  if (tx[key] == null) {
46963
47093
  return;
46964
47094
  }
46965
- logger5.throwError("cannot override " + key, Logger.errors.UNSUPPORTED_OPERATION, { operation: key });
47095
+ logger6.throwError("cannot override " + key, Logger.errors.UNSUPPORTED_OPERATION, { operation: key });
46966
47096
  });
46967
47097
  tx.to = this.resolvedAddress;
46968
47098
  return this.deployed().then(() => {
@@ -47055,7 +47185,7 @@ class BaseContract {
47055
47185
  }
47056
47186
  _addEventListener(runningEvent, listener, once3) {
47057
47187
  if (!this.provider) {
47058
- logger5.throwError("events require a provider or a signer with a provider", Logger.errors.UNSUPPORTED_OPERATION, { operation: "once" });
47188
+ logger6.throwError("events require a provider or a signer with a provider", Logger.errors.UNSUPPORTED_OPERATION, { operation: "once" });
47059
47189
  }
47060
47190
  runningEvent.addListener(listener, once3);
47061
47191
  this._runningEvents[runningEvent.tag] = runningEvent;
@@ -47086,9 +47216,9 @@ class BaseContract {
47086
47216
  queryFilter(event, fromBlockOrBlockhash, toBlock) {
47087
47217
  const runningEvent = this._getRunningEvent(event);
47088
47218
  const filter = import_properties3.shallowCopy(runningEvent.filter);
47089
- if (typeof fromBlockOrBlockhash === "string" && import_bytes3.isHexString(fromBlockOrBlockhash, 32)) {
47219
+ if (typeof fromBlockOrBlockhash === "string" && import_bytes4.isHexString(fromBlockOrBlockhash, 32)) {
47090
47220
  if (toBlock != null) {
47091
- logger5.throwArgumentError("cannot specify toBlock with blockhash", "toBlock", toBlock);
47221
+ logger6.throwArgumentError("cannot specify toBlock with blockhash", "toBlock", toBlock);
47092
47222
  }
47093
47223
  filter.blockHash = fromBlockOrBlockhash;
47094
47224
  } else {
@@ -47181,8 +47311,8 @@ class ContractFactory {
47181
47311
  let bytecodeHex = null;
47182
47312
  if (typeof bytecode === "string") {
47183
47313
  bytecodeHex = bytecode;
47184
- } else if (import_bytes3.isBytes(bytecode)) {
47185
- bytecodeHex = import_bytes3.hexlify(bytecode);
47314
+ } else if (import_bytes4.isBytes(bytecode)) {
47315
+ bytecodeHex = import_bytes4.hexlify(bytecode);
47186
47316
  } else if (bytecode && typeof bytecode.object === "string") {
47187
47317
  bytecodeHex = bytecode.object;
47188
47318
  } else {
@@ -47191,11 +47321,11 @@ class ContractFactory {
47191
47321
  if (bytecodeHex.substring(0, 2) !== "0x") {
47192
47322
  bytecodeHex = "0x" + bytecodeHex;
47193
47323
  }
47194
- if (!import_bytes3.isHexString(bytecodeHex) || bytecodeHex.length % 2) {
47195
- logger5.throwArgumentError("invalid bytecode", "bytecode", bytecode);
47324
+ if (!import_bytes4.isHexString(bytecodeHex) || bytecodeHex.length % 2) {
47325
+ logger6.throwArgumentError("invalid bytecode", "bytecode", bytecode);
47196
47326
  }
47197
47327
  if (signer && !Signer.isSigner(signer)) {
47198
- logger5.throwArgumentError("invalid signer", "signer", signer);
47328
+ logger6.throwArgumentError("invalid signer", "signer", signer);
47199
47329
  }
47200
47330
  import_properties3.defineReadOnly(this, "bytecode", bytecodeHex);
47201
47331
  import_properties3.defineReadOnly(this, "interface", import_properties3.getStatic(new.target, "getInterface")(contractInterface));
@@ -47215,19 +47345,19 @@ class ContractFactory {
47215
47345
  if (tx[key] == null) {
47216
47346
  return;
47217
47347
  }
47218
- logger5.throwError("cannot override " + key, Logger.errors.UNSUPPORTED_OPERATION, { operation: key });
47348
+ logger6.throwError("cannot override " + key, Logger.errors.UNSUPPORTED_OPERATION, { operation: key });
47219
47349
  });
47220
47350
  if (tx.value) {
47221
47351
  const value = BigNumber.from(tx.value);
47222
47352
  if (!value.isZero() && !this.interface.deploy.payable) {
47223
- logger5.throwError("non-payable constructor cannot override value", Logger.errors.UNSUPPORTED_OPERATION, {
47353
+ logger6.throwError("non-payable constructor cannot override value", Logger.errors.UNSUPPORTED_OPERATION, {
47224
47354
  operation: "overrides.value",
47225
47355
  value: tx.value
47226
47356
  });
47227
47357
  }
47228
47358
  }
47229
- logger5.checkArgumentCount(args.length, this.interface.deploy.inputs.length, " in Contract constructor");
47230
- tx.data = import_bytes3.hexlify(import_bytes3.concat([
47359
+ logger6.checkArgumentCount(args.length, this.interface.deploy.inputs.length, " in Contract constructor");
47360
+ tx.data = import_bytes4.hexlify(import_bytes4.concat([
47231
47361
  this.bytecode,
47232
47362
  this.interface.encodeDeploy(args)
47233
47363
  ]));
@@ -47239,7 +47369,7 @@ class ContractFactory {
47239
47369
  if (args.length === this.interface.deploy.inputs.length + 1) {
47240
47370
  overrides = args.pop();
47241
47371
  }
47242
- logger5.checkArgumentCount(args.length, this.interface.deploy.inputs.length, " in Contract constructor");
47372
+ logger6.checkArgumentCount(args.length, this.interface.deploy.inputs.length, " in Contract constructor");
47243
47373
  const params = yield resolveAddresses(this.signer, args, this.interface.deploy.inputs);
47244
47374
  params.push(overrides);
47245
47375
  const unsignedTx = this.getDeployTransaction(...params);
@@ -47259,7 +47389,7 @@ class ContractFactory {
47259
47389
  }
47260
47390
  static fromSolidity(compilerOutput, signer) {
47261
47391
  if (compilerOutput == null) {
47262
- logger5.throwError("missing compiler output", Logger.errors.MISSING_ARGUMENT, { argument: "compilerOutput" });
47392
+ logger6.throwError("missing compiler output", Logger.errors.MISSING_ARGUMENT, { argument: "compilerOutput" });
47263
47393
  }
47264
47394
  if (typeof compilerOutput === "string") {
47265
47395
  compilerOutput = JSON.parse(compilerOutput);
@@ -47277,7 +47407,7 @@ class ContractFactory {
47277
47407
  return Contract.getInterface(contractInterface);
47278
47408
  }
47279
47409
  static getContractAddress(tx) {
47280
- return import_address.getContractAddress(tx);
47410
+ return getContractAddress(tx);
47281
47411
  }
47282
47412
  static getContract(address, contractInterface, signer) {
47283
47413
  return new Contract(address, contractInterface, signer);
@@ -47285,11 +47415,10 @@ class ContractFactory {
47285
47415
  }
47286
47416
 
47287
47417
  // node_modules/@ethersproject/wallet/lib.esm/index.js
47288
- var import_address2 = __toESM(require_lib7());
47289
- var import_bytes4 = __toESM(require_lib2());
47418
+ var import_bytes5 = __toESM(require_lib2());
47290
47419
  var import_hash = __toESM(require_lib12());
47291
47420
  var import_hdnode = __toESM(require_lib20());
47292
- var import_keccak256 = __toESM(require_lib5());
47421
+ var import_keccak2562 = __toESM(require_lib5());
47293
47422
  var import_properties4 = __toESM(require_lib4());
47294
47423
  var import_random = __toESM(require_lib21());
47295
47424
  var import_signing_key = __toESM(require_lib14());
@@ -47297,7 +47426,7 @@ var import_json_wallets = __toESM(require_lib22());
47297
47426
  var import_transactions2 = __toESM(require_lib15());
47298
47427
 
47299
47428
  // node_modules/@ethersproject/wallet/lib.esm/_version.js
47300
- var version8 = "wallet/5.7.0";
47429
+ var version9 = "wallet/5.7.0";
47301
47430
 
47302
47431
  // node_modules/@ethersproject/wallet/lib.esm/index.js
47303
47432
  var __awaiter4 = function(thisArg, _arguments, P, generator) {
@@ -47327,9 +47456,9 @@ var __awaiter4 = function(thisArg, _arguments, P, generator) {
47327
47456
  step((generator = generator.apply(thisArg, _arguments || [])).next());
47328
47457
  });
47329
47458
  };
47330
- var logger6 = new Logger(version8);
47459
+ var logger7 = new Logger(version9);
47331
47460
  function isAccount(value) {
47332
- return value != null && import_bytes4.isHexString(value.privateKey, 32) && value.address != null;
47461
+ return value != null && import_bytes5.isHexString(value.privateKey, 32) && value.address != null;
47333
47462
  }
47334
47463
  function hasMnemonic(value) {
47335
47464
  const mnemonic = value.mnemonic;
@@ -47343,8 +47472,8 @@ class Wallet extends Signer {
47343
47472
  const signingKey = new import_signing_key.SigningKey(privateKey.privateKey);
47344
47473
  import_properties4.defineReadOnly(this, "_signingKey", () => signingKey);
47345
47474
  import_properties4.defineReadOnly(this, "address", import_transactions2.computeAddress(this.publicKey));
47346
- if (this.address !== import_address2.getAddress(privateKey.address)) {
47347
- logger6.throwArgumentError("privateKey/address mismatch", "privateKey", "[REDACTED]");
47475
+ if (this.address !== getAddress(privateKey.address)) {
47476
+ logger7.throwArgumentError("privateKey/address mismatch", "privateKey", "[REDACTED]");
47348
47477
  }
47349
47478
  if (hasMnemonic(privateKey)) {
47350
47479
  const srcMnemonic = privateKey.mnemonic;
@@ -47356,7 +47485,7 @@ class Wallet extends Signer {
47356
47485
  const mnemonic = this.mnemonic;
47357
47486
  const node = import_hdnode.HDNode.fromMnemonic(mnemonic.phrase, null, mnemonic.locale).derivePath(mnemonic.path);
47358
47487
  if (import_transactions2.computeAddress(node.privateKey) !== this.address) {
47359
- logger6.throwArgumentError("mnemonic/address mismatch", "privateKey", "[REDACTED]");
47488
+ logger7.throwArgumentError("mnemonic/address mismatch", "privateKey", "[REDACTED]");
47360
47489
  }
47361
47490
  } else {
47362
47491
  import_properties4.defineReadOnly(this, "_mnemonic", () => null);
@@ -47364,7 +47493,7 @@ class Wallet extends Signer {
47364
47493
  } else {
47365
47494
  if (import_signing_key.SigningKey.isSigningKey(privateKey)) {
47366
47495
  if (privateKey.curve !== "secp256k1") {
47367
- logger6.throwArgumentError("unsupported curve; must be secp256k1", "privateKey", "[REDACTED]");
47496
+ logger7.throwArgumentError("unsupported curve; must be secp256k1", "privateKey", "[REDACTED]");
47368
47497
  }
47369
47498
  import_properties4.defineReadOnly(this, "_signingKey", () => privateKey);
47370
47499
  } else {
@@ -47380,7 +47509,7 @@ class Wallet extends Signer {
47380
47509
  import_properties4.defineReadOnly(this, "address", import_transactions2.computeAddress(this.publicKey));
47381
47510
  }
47382
47511
  if (provider && !Provider.isProvider(provider)) {
47383
- logger6.throwArgumentError("invalid provider", "provider", provider);
47512
+ logger7.throwArgumentError("invalid provider", "provider", provider);
47384
47513
  }
47385
47514
  import_properties4.defineReadOnly(this, "provider", provider || null);
47386
47515
  }
@@ -47402,32 +47531,32 @@ class Wallet extends Signer {
47402
47531
  signTransaction(transaction) {
47403
47532
  return import_properties4.resolveProperties(transaction).then((tx) => {
47404
47533
  if (tx.from != null) {
47405
- if (import_address2.getAddress(tx.from) !== this.address) {
47406
- logger6.throwArgumentError("transaction from address mismatch", "transaction.from", transaction.from);
47534
+ if (getAddress(tx.from) !== this.address) {
47535
+ logger7.throwArgumentError("transaction from address mismatch", "transaction.from", transaction.from);
47407
47536
  }
47408
47537
  delete tx.from;
47409
47538
  }
47410
- const signature = this._signingKey().signDigest(import_keccak256.keccak256(import_transactions2.serialize(tx)));
47539
+ const signature = this._signingKey().signDigest(import_keccak2562.keccak256(import_transactions2.serialize(tx)));
47411
47540
  return import_transactions2.serialize(tx, signature);
47412
47541
  });
47413
47542
  }
47414
47543
  signMessage(message) {
47415
47544
  return __awaiter4(this, undefined, undefined, function* () {
47416
- return import_bytes4.joinSignature(this._signingKey().signDigest(import_hash.hashMessage(message)));
47545
+ return import_bytes5.joinSignature(this._signingKey().signDigest(import_hash.hashMessage(message)));
47417
47546
  });
47418
47547
  }
47419
47548
  _signTypedData(domain, types2, value) {
47420
47549
  return __awaiter4(this, undefined, undefined, function* () {
47421
47550
  const populated = yield import_hash._TypedDataEncoder.resolveNames(domain, types2, value, (name) => {
47422
47551
  if (this.provider == null) {
47423
- logger6.throwError("cannot resolve ENS names without a provider", Logger.errors.UNSUPPORTED_OPERATION, {
47552
+ logger7.throwError("cannot resolve ENS names without a provider", Logger.errors.UNSUPPORTED_OPERATION, {
47424
47553
  operation: "resolveName",
47425
47554
  value: name
47426
47555
  });
47427
47556
  }
47428
47557
  return this.provider.resolveName(name);
47429
47558
  });
47430
- return import_bytes4.joinSignature(this._signingKey().signDigest(import_hash._TypedDataEncoder.hash(populated.domain, types2, populated.value)));
47559
+ return import_bytes5.joinSignature(this._signingKey().signDigest(import_hash._TypedDataEncoder.hash(populated.domain, types2, populated.value)));
47431
47560
  });
47432
47561
  }
47433
47562
  encrypt(password, options, progressCallback) {
@@ -47449,7 +47578,7 @@ class Wallet extends Signer {
47449
47578
  options = {};
47450
47579
  }
47451
47580
  if (options.extraEntropy) {
47452
- entropy = import_bytes4.arrayify(import_bytes4.hexDataSlice(import_keccak256.keccak256(import_bytes4.concat([entropy, options.extraEntropy])), 0, 16));
47581
+ entropy = import_bytes5.arrayify(import_bytes5.hexDataSlice(import_keccak2562.keccak256(import_bytes5.concat([entropy, options.extraEntropy])), 0, 16));
47453
47582
  }
47454
47583
  const mnemonic = import_hdnode.entropyToMnemonic(entropy, options.locale);
47455
47584
  return Wallet.fromMnemonic(mnemonic, options.path, options.locale);
@@ -47540,10 +47669,10 @@ __export(exports_lib2, {
47540
47669
  });
47541
47670
 
47542
47671
  // node_modules/@ethersproject/networks/lib.esm/_version.js
47543
- var version9 = "networks/5.7.1";
47672
+ var version10 = "networks/5.7.1";
47544
47673
 
47545
47674
  // node_modules/@ethersproject/networks/lib.esm/index.js
47546
- var logger7 = new Logger(version9);
47675
+ var logger8 = new Logger(version10);
47547
47676
  function isRenetworkable(value) {
47548
47677
  return value && typeof value.renetwork === "function";
47549
47678
  }
@@ -47738,12 +47867,12 @@ function getNetwork(network) {
47738
47867
  const standard = networks[network.name];
47739
47868
  if (!standard) {
47740
47869
  if (typeof network.chainId !== "number") {
47741
- logger7.throwArgumentError("invalid network chainId", "network", network);
47870
+ logger8.throwArgumentError("invalid network chainId", "network", network);
47742
47871
  }
47743
47872
  return network;
47744
47873
  }
47745
47874
  if (network.chainId !== 0 && network.chainId !== standard.chainId) {
47746
- logger7.throwArgumentError("network chainId mismatch", "network", network);
47875
+ logger8.throwArgumentError("network chainId mismatch", "network", network);
47747
47876
  }
47748
47877
  let defaultProvider = network._defaultProvider || null;
47749
47878
  if (defaultProvider == null && standard._defaultProvider) {
@@ -47764,7 +47893,7 @@ function getNetwork(network) {
47764
47893
  // node_modules/@ethersproject/providers/lib.esm/base-provider.js
47765
47894
  var import_base64 = __toESM(require_lib10());
47766
47895
  var import_basex = __toESM(require_lib16());
47767
- var import_bytes6 = __toESM(require_lib2());
47896
+ var import_bytes7 = __toESM(require_lib2());
47768
47897
  var import_hash2 = __toESM(require_lib12());
47769
47898
  var import_properties6 = __toESM(require_lib4());
47770
47899
  var import_sha2 = __toESM(require_lib17());
@@ -47773,14 +47902,13 @@ var import_web = __toESM(require_lib23());
47773
47902
  var import_bech32 = __toESM(require_bech32());
47774
47903
 
47775
47904
  // node_modules/@ethersproject/providers/lib.esm/_version.js
47776
- var version10 = "providers/5.7.2";
47905
+ var version11 = "providers/5.7.2";
47777
47906
 
47778
47907
  // node_modules/@ethersproject/providers/lib.esm/formatter.js
47779
- var import_address3 = __toESM(require_lib7());
47780
- var import_bytes5 = __toESM(require_lib2());
47908
+ var import_bytes6 = __toESM(require_lib2());
47781
47909
  var import_properties5 = __toESM(require_lib4());
47782
47910
  var import_transactions3 = __toESM(require_lib15());
47783
- var logger8 = new Logger(version10);
47911
+ var logger9 = new Logger(version11);
47784
47912
 
47785
47913
  class Formatter {
47786
47914
  constructor() {
@@ -47937,11 +48065,11 @@ class Formatter {
47937
48065
  if (!strict && value.substring(0, 2) !== "0x") {
47938
48066
  value = "0x" + value;
47939
48067
  }
47940
- if (import_bytes5.isHexString(value)) {
48068
+ if (import_bytes6.isHexString(value)) {
47941
48069
  return value.toLowerCase();
47942
48070
  }
47943
48071
  }
47944
- return logger8.throwArgumentError("invalid hash", "value", value);
48072
+ return logger9.throwArgumentError("invalid hash", "value", value);
47945
48073
  }
47946
48074
  data(value, strict) {
47947
48075
  const result = this.hex(value, strict);
@@ -47951,17 +48079,17 @@ class Formatter {
47951
48079
  return result;
47952
48080
  }
47953
48081
  address(value) {
47954
- return import_address3.getAddress(value);
48082
+ return getAddress(value);
47955
48083
  }
47956
48084
  callAddress(value) {
47957
- if (!import_bytes5.isHexString(value, 32)) {
48085
+ if (!import_bytes6.isHexString(value, 32)) {
47958
48086
  return null;
47959
48087
  }
47960
- const address = import_address3.getAddress(import_bytes5.hexDataSlice(value, 12));
48088
+ const address = getAddress(import_bytes6.hexDataSlice(value, 12));
47961
48089
  return address === AddressZero ? null : address;
47962
48090
  }
47963
48091
  contractAddress(value) {
47964
- return import_address3.getContractAddress(value);
48092
+ return getContractAddress(value);
47965
48093
  }
47966
48094
  blockTag(blockTag) {
47967
48095
  if (blockTag == null) {
@@ -47979,15 +48107,15 @@ class Formatter {
47979
48107
  case "finalized":
47980
48108
  return blockTag;
47981
48109
  }
47982
- if (typeof blockTag === "number" || import_bytes5.isHexString(blockTag)) {
47983
- return import_bytes5.hexValue(blockTag);
48110
+ if (typeof blockTag === "number" || import_bytes6.isHexString(blockTag)) {
48111
+ return import_bytes6.hexValue(blockTag);
47984
48112
  }
47985
48113
  throw new Error("invalid blockTag");
47986
48114
  }
47987
48115
  hash(value, strict) {
47988
48116
  const result = this.hex(value, strict);
47989
- if (import_bytes5.hexDataLength(result) !== 32) {
47990
- return logger8.throwArgumentError("invalid hash", "value", value);
48117
+ if (import_bytes6.hexDataLength(result) !== 32) {
48118
+ return logger9.throwArgumentError("invalid hash", "value", value);
47991
48119
  }
47992
48120
  return result;
47993
48121
  }
@@ -48002,10 +48130,10 @@ class Formatter {
48002
48130
  return null;
48003
48131
  }
48004
48132
  uint256(value) {
48005
- if (!import_bytes5.isHexString(value)) {
48133
+ if (!import_bytes6.isHexString(value)) {
48006
48134
  throw new Error("invalid uint256");
48007
48135
  }
48008
- return import_bytes5.hexZeroPad(value, 32);
48136
+ return import_bytes6.hexZeroPad(value, 32);
48009
48137
  }
48010
48138
  _block(value, format2) {
48011
48139
  if (value.author != null && value.miner == null) {
@@ -48044,7 +48172,7 @@ class Formatter {
48044
48172
  const result = Formatter.check(this.formats.transaction, transaction);
48045
48173
  if (transaction.chainId != null) {
48046
48174
  let chainId = transaction.chainId;
48047
- if (import_bytes5.isHexString(chainId)) {
48175
+ if (import_bytes6.isHexString(chainId)) {
48048
48176
  chainId = BigNumber.from(chainId).toNumber();
48049
48177
  }
48050
48178
  result.chainId = chainId;
@@ -48053,7 +48181,7 @@ class Formatter {
48053
48181
  if (chainId == null && result.v == null) {
48054
48182
  chainId = transaction.chainId;
48055
48183
  }
48056
- if (import_bytes5.isHexString(chainId)) {
48184
+ if (import_bytes6.isHexString(chainId)) {
48057
48185
  chainId = BigNumber.from(chainId).toNumber();
48058
48186
  }
48059
48187
  if (typeof chainId !== "number" && result.v != null) {
@@ -48086,15 +48214,15 @@ class Formatter {
48086
48214
  const value2 = BigNumber.from(result.root).toNumber();
48087
48215
  if (value2 === 0 || value2 === 1) {
48088
48216
  if (result.status != null && result.status !== value2) {
48089
- logger8.throwArgumentError("alt-root-status/status mismatch", "value", { root: result.root, status: result.status });
48217
+ logger9.throwArgumentError("alt-root-status/status mismatch", "value", { root: result.root, status: result.status });
48090
48218
  }
48091
48219
  result.status = value2;
48092
48220
  delete result.root;
48093
48221
  } else {
48094
- logger8.throwArgumentError("invalid alt-root-status", "value.root", result.root);
48222
+ logger9.throwArgumentError("invalid alt-root-status", "value.root", result.root);
48095
48223
  }
48096
48224
  } else if (result.root.length !== 66) {
48097
- logger8.throwArgumentError("invalid root hash", "value.root", result.root);
48225
+ logger9.throwArgumentError("invalid root hash", "value.root", result.root);
48098
48226
  }
48099
48227
  }
48100
48228
  if (result.status != null) {
@@ -48215,14 +48343,14 @@ var __awaiter5 = function(thisArg, _arguments, P, generator) {
48215
48343
  step((generator = generator.apply(thisArg, _arguments || [])).next());
48216
48344
  });
48217
48345
  };
48218
- var logger9 = new Logger(version10);
48346
+ var logger10 = new Logger(version11);
48219
48347
  var MAX_CCIP_REDIRECTS = 10;
48220
48348
  function checkTopic(topic) {
48221
48349
  if (topic == null) {
48222
48350
  return "null";
48223
48351
  }
48224
- if (import_bytes6.hexDataLength(topic) !== 32) {
48225
- logger9.throwArgumentError("invalid topic", "topic", topic);
48352
+ if (import_bytes7.hexDataLength(topic) !== 32) {
48353
+ logger10.throwArgumentError("invalid topic", "topic", topic);
48226
48354
  }
48227
48355
  return topic.toLowerCase();
48228
48356
  }
@@ -48262,7 +48390,7 @@ function deserializeTopics(data) {
48262
48390
  function getEventTag2(eventName) {
48263
48391
  if (typeof eventName === "string") {
48264
48392
  eventName = eventName.toLowerCase();
48265
- if (import_bytes6.hexDataLength(eventName) === 32) {
48393
+ if (import_bytes7.hexDataLength(eventName) === 32) {
48266
48394
  return "tx:" + eventName;
48267
48395
  }
48268
48396
  if (eventName.indexOf(":") === -1) {
@@ -48271,7 +48399,7 @@ function getEventTag2(eventName) {
48271
48399
  } else if (Array.isArray(eventName)) {
48272
48400
  return "filter:*:" + serializeTopics(eventName);
48273
48401
  } else if (ForkEvent.isForkEvent(eventName)) {
48274
- logger9.warn("not implemented");
48402
+ logger10.warn("not implemented");
48275
48403
  throw new Error("not implemented");
48276
48404
  } else if (eventName && typeof eventName === "object") {
48277
48405
  return "filter:" + (eventName.address || "*") + ":" + serializeTopics(eventName.topics || []);
@@ -48344,10 +48472,10 @@ var coinInfos = {
48344
48472
  "700": { symbol: "xdai", ilk: "eth" }
48345
48473
  };
48346
48474
  function bytes32ify(value) {
48347
- return import_bytes6.hexZeroPad(BigNumber.from(value).toHexString(), 32);
48475
+ return import_bytes7.hexZeroPad(BigNumber.from(value).toHexString(), 32);
48348
48476
  }
48349
48477
  function base58Encode(data) {
48350
- return import_basex.Base58.encode(import_bytes6.concat([data, import_bytes6.hexDataSlice(import_sha2.sha256(import_sha2.sha256(data)), 0, 4)]));
48478
+ return import_basex.Base58.encode(import_bytes7.concat([data, import_bytes7.hexDataSlice(import_sha2.sha256(import_sha2.sha256(data)), 0, 4)]));
48351
48479
  }
48352
48480
  var matcherIpfs = new RegExp("^(ipfs)://(.*)$", "i");
48353
48481
  var matchers = [
@@ -48366,9 +48494,9 @@ function _parseBytes(result, start) {
48366
48494
  if (result === "0x") {
48367
48495
  return null;
48368
48496
  }
48369
- const offset = BigNumber.from(import_bytes6.hexDataSlice(result, start, start + 32)).toNumber();
48370
- const length = BigNumber.from(import_bytes6.hexDataSlice(result, offset, offset + 32)).toNumber();
48371
- return import_bytes6.hexDataSlice(result, offset + 32, offset + 32 + length);
48497
+ const offset = BigNumber.from(import_bytes7.hexDataSlice(result, start, start + 32)).toNumber();
48498
+ const length = BigNumber.from(import_bytes7.hexDataSlice(result, offset, offset + 32)).toNumber();
48499
+ return import_bytes7.hexDataSlice(result, offset + 32, offset + 32 + length);
48372
48500
  }
48373
48501
  function getIpfsLink(link) {
48374
48502
  if (link.match(/^ipfs:\/\/ipfs\//i)) {
@@ -48376,12 +48504,12 @@ function getIpfsLink(link) {
48376
48504
  } else if (link.match(/^ipfs:\/\//i)) {
48377
48505
  link = link.substring(7);
48378
48506
  } else {
48379
- logger9.throwArgumentError("unsupported IPFS format", "link", link);
48507
+ logger10.throwArgumentError("unsupported IPFS format", "link", link);
48380
48508
  }
48381
48509
  return `https://gateway.ipfs.io/ipfs/${link}`;
48382
48510
  }
48383
48511
  function numPad(value) {
48384
- const result = import_bytes6.arrayify(value);
48512
+ const result = import_bytes7.arrayify(value);
48385
48513
  if (result.length > 32) {
48386
48514
  throw new Error("internal; should not happen");
48387
48515
  }
@@ -48405,13 +48533,13 @@ function encodeBytes(datas) {
48405
48533
  byteCount += 32;
48406
48534
  }
48407
48535
  for (let i2 = 0;i2 < datas.length; i2++) {
48408
- const data = import_bytes6.arrayify(datas[i2]);
48536
+ const data = import_bytes7.arrayify(datas[i2]);
48409
48537
  result[i2] = numPad(byteCount);
48410
48538
  result.push(numPad(data.length));
48411
48539
  result.push(bytesPad(data));
48412
48540
  byteCount += 32 + Math.ceil(data.length / 32) * 32;
48413
48541
  }
48414
- return import_bytes6.hexConcat(result);
48542
+ return import_bytes7.hexConcat(result);
48415
48543
  }
48416
48544
 
48417
48545
  class Resolver {
@@ -48443,17 +48571,17 @@ class Resolver {
48443
48571
  const tx = {
48444
48572
  to: this.address,
48445
48573
  ccipReadEnabled: true,
48446
- data: import_bytes6.hexConcat([selector, import_hash2.namehash(this.name), parameters || "0x"])
48574
+ data: import_bytes7.hexConcat([selector, import_hash2.namehash(this.name), parameters || "0x"])
48447
48575
  };
48448
48576
  let parseBytes = false;
48449
48577
  if (yield this.supportsWildcard()) {
48450
48578
  parseBytes = true;
48451
- tx.data = import_bytes6.hexConcat(["0x9061b923", encodeBytes([import_hash2.dnsEncode(this.name), tx.data])]);
48579
+ tx.data = import_bytes7.hexConcat(["0x9061b923", encodeBytes([import_hash2.dnsEncode(this.name), tx.data])]);
48452
48580
  }
48453
48581
  try {
48454
48582
  let result = yield this.provider.call(tx);
48455
- if (import_bytes6.arrayify(result).length % 32 === 4) {
48456
- logger9.throwError("resolver threw error", Logger.errors.CALL_EXCEPTION, {
48583
+ if (import_bytes7.arrayify(result).length % 32 === 4) {
48584
+ logger10.throwError("resolver threw error", Logger.errors.CALL_EXCEPTION, {
48457
48585
  transaction: tx,
48458
48586
  data: result
48459
48587
  });
@@ -48482,20 +48610,20 @@ class Resolver {
48482
48610
  _getAddress(coinType, hexBytes) {
48483
48611
  const coinInfo = coinInfos[String(coinType)];
48484
48612
  if (coinInfo == null) {
48485
- logger9.throwError(`unsupported coin type: ${coinType}`, Logger.errors.UNSUPPORTED_OPERATION, {
48613
+ logger10.throwError(`unsupported coin type: ${coinType}`, Logger.errors.UNSUPPORTED_OPERATION, {
48486
48614
  operation: `getAddress(${coinType})`
48487
48615
  });
48488
48616
  }
48489
48617
  if (coinInfo.ilk === "eth") {
48490
48618
  return this.provider.formatter.address(hexBytes);
48491
48619
  }
48492
- const bytes = import_bytes6.arrayify(hexBytes);
48620
+ const bytes = import_bytes7.arrayify(hexBytes);
48493
48621
  if (coinInfo.p2pkh != null) {
48494
48622
  const p2pkh = hexBytes.match(/^0x76a9([0-9a-f][0-9a-f])([0-9a-f]*)88ac$/);
48495
48623
  if (p2pkh) {
48496
48624
  const length = parseInt(p2pkh[1], 16);
48497
48625
  if (p2pkh[2].length === length * 2 && length >= 1 && length <= 75) {
48498
- return base58Encode(import_bytes6.concat([[coinInfo.p2pkh], "0x" + p2pkh[2]]));
48626
+ return base58Encode(import_bytes7.concat([[coinInfo.p2pkh], "0x" + p2pkh[2]]));
48499
48627
  }
48500
48628
  }
48501
48629
  }
@@ -48504,23 +48632,23 @@ class Resolver {
48504
48632
  if (p2sh) {
48505
48633
  const length = parseInt(p2sh[1], 16);
48506
48634
  if (p2sh[2].length === length * 2 && length >= 1 && length <= 75) {
48507
- return base58Encode(import_bytes6.concat([[coinInfo.p2sh], "0x" + p2sh[2]]));
48635
+ return base58Encode(import_bytes7.concat([[coinInfo.p2sh], "0x" + p2sh[2]]));
48508
48636
  }
48509
48637
  }
48510
48638
  }
48511
48639
  if (coinInfo.prefix != null) {
48512
48640
  const length = bytes[1];
48513
- let version11 = bytes[0];
48514
- if (version11 === 0) {
48641
+ let version12 = bytes[0];
48642
+ if (version12 === 0) {
48515
48643
  if (length !== 20 && length !== 32) {
48516
- version11 = -1;
48644
+ version12 = -1;
48517
48645
  }
48518
48646
  } else {
48519
- version11 = -1;
48647
+ version12 = -1;
48520
48648
  }
48521
- if (version11 >= 0 && bytes.length === 2 + length && length >= 1 && length <= 75) {
48649
+ if (version12 >= 0 && bytes.length === 2 + length && length >= 1 && length <= 75) {
48522
48650
  const words = import_bech32.default.toWords(bytes.slice(2));
48523
- words.unshift(version11);
48651
+ words.unshift(version12);
48524
48652
  return import_bech32.default.encode(coinInfo.prefix, words);
48525
48653
  }
48526
48654
  }
@@ -48551,7 +48679,7 @@ class Resolver {
48551
48679
  }
48552
48680
  const address = this._getAddress(coinType, hexBytes);
48553
48681
  if (address == null) {
48554
- logger9.throwError(`invalid or unsupported coin data`, Logger.errors.UNSUPPORTED_OPERATION, {
48682
+ logger10.throwError(`invalid or unsupported coin data`, Logger.errors.UNSUPPORTED_OPERATION, {
48555
48683
  operation: `getAddress(${coinType})`,
48556
48684
  coinType,
48557
48685
  data: hexBytes
@@ -48594,11 +48722,11 @@ class Resolver {
48594
48722
  return null;
48595
48723
  }
48596
48724
  const addr = yield this.provider.formatter.address(comps[0]);
48597
- const tokenId = import_bytes6.hexZeroPad(BigNumber.from(comps[1]).toHexString(), 32);
48725
+ const tokenId = import_bytes7.hexZeroPad(BigNumber.from(comps[1]).toHexString(), 32);
48598
48726
  if (scheme === "erc721") {
48599
48727
  const tokenOwner = this.provider.formatter.callAddress(yield this.provider.call({
48600
48728
  to: addr,
48601
- data: import_bytes6.hexConcat(["0x6352211e", tokenId])
48729
+ data: import_bytes7.hexConcat(["0x6352211e", tokenId])
48602
48730
  }));
48603
48731
  if (owner !== tokenOwner) {
48604
48732
  return null;
@@ -48607,7 +48735,7 @@ class Resolver {
48607
48735
  } else if (scheme === "erc1155") {
48608
48736
  const balance = BigNumber.from(yield this.provider.call({
48609
48737
  to: addr,
48610
- data: import_bytes6.hexConcat(["0x00fdd58e", import_bytes6.hexZeroPad(owner, 32), tokenId])
48738
+ data: import_bytes7.hexConcat(["0x00fdd58e", import_bytes7.hexZeroPad(owner, 32), tokenId])
48611
48739
  }));
48612
48740
  if (balance.isZero()) {
48613
48741
  return null;
@@ -48616,7 +48744,7 @@ class Resolver {
48616
48744
  }
48617
48745
  const tx = {
48618
48746
  to: this.provider.formatter.address(comps[0]),
48619
- data: import_bytes6.hexConcat([selector, tokenId])
48747
+ data: import_bytes7.hexConcat([selector, tokenId])
48620
48748
  };
48621
48749
  let metadataUrl = _parseString(yield this.provider.call(tx), 0);
48622
48750
  if (metadataUrl == null) {
@@ -48691,7 +48819,7 @@ class Resolver {
48691
48819
  return "sia://" + hash;
48692
48820
  }
48693
48821
  }
48694
- return logger9.throwError(`invalid or unsupported content hash data`, Logger.errors.UNSUPPORTED_OPERATION, {
48822
+ return logger10.throwError(`invalid or unsupported content hash data`, Logger.errors.UNSUPPORTED_OPERATION, {
48695
48823
  operation: "getContentHash()",
48696
48824
  data: hexBytes
48697
48825
  });
@@ -48700,11 +48828,11 @@ class Resolver {
48700
48828
  getText(key) {
48701
48829
  return __awaiter5(this, undefined, undefined, function* () {
48702
48830
  let keyBytes = import_strings2.toUtf8Bytes(key);
48703
- keyBytes = import_bytes6.concat([bytes32ify(64), bytes32ify(keyBytes.length), keyBytes]);
48831
+ keyBytes = import_bytes7.concat([bytes32ify(64), bytes32ify(keyBytes.length), keyBytes]);
48704
48832
  if (keyBytes.length % 32 !== 0) {
48705
- keyBytes = import_bytes6.concat([keyBytes, import_bytes6.hexZeroPad("0x", 32 - key.length % 32)]);
48833
+ keyBytes = import_bytes7.concat([keyBytes, import_bytes7.hexZeroPad("0x", 32 - key.length % 32)]);
48706
48834
  }
48707
- const hexBytes = yield this._fetchBytes("0x59d1d43c", import_bytes6.hexlify(keyBytes));
48835
+ const hexBytes = yield this._fetchBytes("0x59d1d43c", import_bytes7.hexlify(keyBytes));
48708
48836
  if (hexBytes == null || hexBytes === "0x") {
48709
48837
  return null;
48710
48838
  }
@@ -48736,7 +48864,7 @@ class BaseProvider extends Provider {
48736
48864
  import_properties6.defineReadOnly(this, "_network", knownNetwork);
48737
48865
  this.emit("network", knownNetwork, null);
48738
48866
  } else {
48739
- logger9.throwArgumentError("invalid network", "network", network);
48867
+ logger10.throwArgumentError("invalid network", "network", network);
48740
48868
  }
48741
48869
  }
48742
48870
  this._maxInternalBlockNumber = -1024;
@@ -48758,7 +48886,7 @@ class BaseProvider extends Provider {
48758
48886
  network = yield this.detectNetwork();
48759
48887
  }
48760
48888
  if (!network) {
48761
- logger9.throwError("no network detected", Logger.errors.UNKNOWN_ERROR, {});
48889
+ logger10.throwError("no network detected", Logger.errors.UNKNOWN_ERROR, {});
48762
48890
  }
48763
48891
  if (this._network == null) {
48764
48892
  if (this.anyNetwork) {
@@ -48814,11 +48942,11 @@ class BaseProvider extends Provider {
48814
48942
  }
48815
48943
  const errorMessage = result.message || "unknown error";
48816
48944
  if (result.status >= 400 && result.status < 500) {
48817
- return logger9.throwError(`response not found during CCIP fetch: ${errorMessage}`, Logger.errors.SERVER_ERROR, { url, errorMessage });
48945
+ return logger10.throwError(`response not found during CCIP fetch: ${errorMessage}`, Logger.errors.SERVER_ERROR, { url, errorMessage });
48818
48946
  }
48819
48947
  errorMessages.push(errorMessage);
48820
48948
  }
48821
- return logger9.throwError(`error encountered during CCIP fetch: ${errorMessages.map((m) => JSON.stringify(m)).join(", ")}`, Logger.errors.SERVER_ERROR, {
48949
+ return logger10.throwError(`error encountered during CCIP fetch: ${errorMessages.map((m) => JSON.stringify(m)).join(", ")}`, Logger.errors.SERVER_ERROR, {
48822
48950
  urls,
48823
48951
  errorMessages
48824
48952
  });
@@ -48893,8 +49021,8 @@ class BaseProvider extends Provider {
48893
49021
  this._emitted.block = blockNumber - 1;
48894
49022
  }
48895
49023
  if (Math.abs(this._emitted.block - blockNumber) > 1000) {
48896
- logger9.warn(`network block skew detected; skipping block events (emitted=${this._emitted.block} blockNumber${blockNumber})`);
48897
- this.emit("error", logger9.makeError("network block skew detected", Logger.errors.NETWORK_ERROR, {
49024
+ logger10.warn(`network block skew detected; skipping block events (emitted=${this._emitted.block} blockNumber${blockNumber})`);
49025
+ this.emit("error", logger10.makeError("network block skew detected", Logger.errors.NETWORK_ERROR, {
48898
49026
  blockNumber,
48899
49027
  event: "blockSkew",
48900
49028
  previousBlockNumber: this._emitted.block
@@ -48999,7 +49127,7 @@ class BaseProvider extends Provider {
48999
49127
  }
49000
49128
  detectNetwork() {
49001
49129
  return __awaiter5(this, undefined, undefined, function* () {
49002
- return logger9.throwError("provider does not support network detection", Logger.errors.UNSUPPORTED_OPERATION, {
49130
+ return logger10.throwError("provider does not support network detection", Logger.errors.UNSUPPORTED_OPERATION, {
49003
49131
  operation: "provider.detectNetwork"
49004
49132
  });
49005
49133
  });
@@ -49022,7 +49150,7 @@ class BaseProvider extends Provider {
49022
49150
  yield stall(0);
49023
49151
  return this._network;
49024
49152
  }
49025
- const error = logger9.makeError("underlying network changed", Logger.errors.NETWORK_ERROR, {
49153
+ const error = logger10.makeError("underlying network changed", Logger.errors.NETWORK_ERROR, {
49026
49154
  event: "changed",
49027
49155
  network,
49028
49156
  detectedNetwork: currentNetwork
@@ -49189,7 +49317,7 @@ class BaseProvider extends Provider {
49189
49317
  } else if (tx.data === "0x" && tx.from === tx.to && tx.value.isZero()) {
49190
49318
  reason = "cancelled";
49191
49319
  }
49192
- reject(logger9.makeError("transaction was replaced", Logger.errors.TRANSACTION_REPLACED, {
49320
+ reject(logger10.makeError("transaction was replaced", Logger.errors.TRANSACTION_REPLACED, {
49193
49321
  cancelled: reason === "replaced" || reason === "cancelled",
49194
49322
  reason,
49195
49323
  replacement: this._wrapTransaction(tx),
@@ -49226,7 +49354,7 @@ class BaseProvider extends Provider {
49226
49354
  if (alreadyDone()) {
49227
49355
  return;
49228
49356
  }
49229
- reject(logger9.makeError("timeout exceeded", Logger.errors.TIMEOUT, { timeout }));
49357
+ reject(logger10.makeError("timeout exceeded", Logger.errors.TIMEOUT, { timeout }));
49230
49358
  }, timeout);
49231
49359
  if (timer.unref) {
49232
49360
  timer.unref();
@@ -49250,7 +49378,7 @@ class BaseProvider extends Provider {
49250
49378
  try {
49251
49379
  return BigNumber.from(result);
49252
49380
  } catch (error) {
49253
- return logger9.throwError("bad result from backend", Logger.errors.SERVER_ERROR, {
49381
+ return logger10.throwError("bad result from backend", Logger.errors.SERVER_ERROR, {
49254
49382
  method: "getGasPrice",
49255
49383
  result,
49256
49384
  error
@@ -49269,7 +49397,7 @@ class BaseProvider extends Provider {
49269
49397
  try {
49270
49398
  return BigNumber.from(result);
49271
49399
  } catch (error) {
49272
- return logger9.throwError("bad result from backend", Logger.errors.SERVER_ERROR, {
49400
+ return logger10.throwError("bad result from backend", Logger.errors.SERVER_ERROR, {
49273
49401
  method: "getBalance",
49274
49402
  params,
49275
49403
  result,
@@ -49289,7 +49417,7 @@ class BaseProvider extends Provider {
49289
49417
  try {
49290
49418
  return BigNumber.from(result).toNumber();
49291
49419
  } catch (error) {
49292
- return logger9.throwError("bad result from backend", Logger.errors.SERVER_ERROR, {
49420
+ return logger10.throwError("bad result from backend", Logger.errors.SERVER_ERROR, {
49293
49421
  method: "getTransactionCount",
49294
49422
  params,
49295
49423
  result,
@@ -49307,9 +49435,9 @@ class BaseProvider extends Provider {
49307
49435
  });
49308
49436
  const result = yield this.perform("getCode", params);
49309
49437
  try {
49310
- return import_bytes6.hexlify(result);
49438
+ return import_bytes7.hexlify(result);
49311
49439
  } catch (error) {
49312
- return logger9.throwError("bad result from backend", Logger.errors.SERVER_ERROR, {
49440
+ return logger10.throwError("bad result from backend", Logger.errors.SERVER_ERROR, {
49313
49441
  method: "getCode",
49314
49442
  params,
49315
49443
  result,
@@ -49324,13 +49452,13 @@ class BaseProvider extends Provider {
49324
49452
  const params = yield import_properties6.resolveProperties({
49325
49453
  address: this._getAddress(addressOrName),
49326
49454
  blockTag: this._getBlockTag(blockTag),
49327
- position: Promise.resolve(position).then((p) => import_bytes6.hexValue(p))
49455
+ position: Promise.resolve(position).then((p) => import_bytes7.hexValue(p))
49328
49456
  });
49329
49457
  const result = yield this.perform("getStorageAt", params);
49330
49458
  try {
49331
- return import_bytes6.hexlify(result);
49459
+ return import_bytes7.hexlify(result);
49332
49460
  } catch (error) {
49333
- return logger9.throwError("bad result from backend", Logger.errors.SERVER_ERROR, {
49461
+ return logger10.throwError("bad result from backend", Logger.errors.SERVER_ERROR, {
49334
49462
  method: "getStorageAt",
49335
49463
  params,
49336
49464
  result,
@@ -49340,12 +49468,12 @@ class BaseProvider extends Provider {
49340
49468
  });
49341
49469
  }
49342
49470
  _wrapTransaction(tx, hash, startBlock) {
49343
- if (hash != null && import_bytes6.hexDataLength(hash) !== 32) {
49471
+ if (hash != null && import_bytes7.hexDataLength(hash) !== 32) {
49344
49472
  throw new Error("invalid response - sendTransaction");
49345
49473
  }
49346
49474
  const result = tx;
49347
49475
  if (hash != null && tx.hash !== hash) {
49348
- logger9.throwError("Transaction hash mismatch from Provider.sendTransaction.", Logger.errors.UNKNOWN_ERROR, { expectedHash: tx.hash, returnedHash: hash });
49476
+ logger10.throwError("Transaction hash mismatch from Provider.sendTransaction.", Logger.errors.UNKNOWN_ERROR, { expectedHash: tx.hash, returnedHash: hash });
49349
49477
  }
49350
49478
  result.wait = (confirms, timeout) => __awaiter5(this, undefined, undefined, function* () {
49351
49479
  if (confirms == null) {
@@ -49371,7 +49499,7 @@ class BaseProvider extends Provider {
49371
49499
  }
49372
49500
  this._emitted["t:" + tx.hash] = receipt.blockNumber;
49373
49501
  if (receipt.status === 0) {
49374
- logger9.throwError("transaction failed", Logger.errors.CALL_EXCEPTION, {
49502
+ logger10.throwError("transaction failed", Logger.errors.CALL_EXCEPTION, {
49375
49503
  transactionHash: tx.hash,
49376
49504
  transaction: tx,
49377
49505
  receipt
@@ -49384,7 +49512,7 @@ class BaseProvider extends Provider {
49384
49512
  sendTransaction(signedTransaction) {
49385
49513
  return __awaiter5(this, undefined, undefined, function* () {
49386
49514
  yield this.getNetwork();
49387
- const hexTx = yield Promise.resolve(signedTransaction).then((t) => import_bytes6.hexlify(t));
49515
+ const hexTx = yield Promise.resolve(signedTransaction).then((t) => import_bytes7.hexlify(t));
49388
49516
  const tx = this.formatter.transaction(signedTransaction);
49389
49517
  if (tx.confirmations == null) {
49390
49518
  tx.confirmations = 0;
@@ -49429,7 +49557,7 @@ class BaseProvider extends Provider {
49429
49557
  if (values[key] == null) {
49430
49558
  return;
49431
49559
  }
49432
- tx[key] = Promise.resolve(values[key]).then((v) => v ? import_bytes6.hexlify(v) : null);
49560
+ tx[key] = Promise.resolve(values[key]).then((v) => v ? import_bytes7.hexlify(v) : null);
49433
49561
  });
49434
49562
  return this.formatter.transactionRequest(yield import_properties6.resolveProperties(tx));
49435
49563
  });
@@ -49459,19 +49587,19 @@ class BaseProvider extends Provider {
49459
49587
  _call(transaction, blockTag, attempt) {
49460
49588
  return __awaiter5(this, undefined, undefined, function* () {
49461
49589
  if (attempt >= MAX_CCIP_REDIRECTS) {
49462
- logger9.throwError("CCIP read exceeded maximum redirections", Logger.errors.SERVER_ERROR, {
49590
+ logger10.throwError("CCIP read exceeded maximum redirections", Logger.errors.SERVER_ERROR, {
49463
49591
  redirects: attempt,
49464
49592
  transaction
49465
49593
  });
49466
49594
  }
49467
49595
  const txSender = transaction.to;
49468
49596
  const result = yield this.perform("call", { transaction, blockTag });
49469
- if (attempt >= 0 && blockTag === "latest" && txSender != null && result.substring(0, 10) === "0x556f1830" && import_bytes6.hexDataLength(result) % 32 === 4) {
49597
+ if (attempt >= 0 && blockTag === "latest" && txSender != null && result.substring(0, 10) === "0x556f1830" && import_bytes7.hexDataLength(result) % 32 === 4) {
49470
49598
  try {
49471
- const data = import_bytes6.hexDataSlice(result, 4);
49472
- const sender = import_bytes6.hexDataSlice(data, 0, 32);
49599
+ const data = import_bytes7.hexDataSlice(result, 4);
49600
+ const sender = import_bytes7.hexDataSlice(data, 0, 32);
49473
49601
  if (!BigNumber.from(sender).eq(txSender)) {
49474
- logger9.throwError("CCIP Read sender did not match", Logger.errors.CALL_EXCEPTION, {
49602
+ logger10.throwError("CCIP Read sender did not match", Logger.errors.CALL_EXCEPTION, {
49475
49603
  name: "OffchainLookup",
49476
49604
  signature: "OffchainLookup(address,string[],bytes,bytes4,bytes)",
49477
49605
  transaction,
@@ -49479,13 +49607,13 @@ class BaseProvider extends Provider {
49479
49607
  });
49480
49608
  }
49481
49609
  const urls = [];
49482
- const urlsOffset = BigNumber.from(import_bytes6.hexDataSlice(data, 32, 64)).toNumber();
49483
- const urlsLength = BigNumber.from(import_bytes6.hexDataSlice(data, urlsOffset, urlsOffset + 32)).toNumber();
49484
- const urlsData = import_bytes6.hexDataSlice(data, urlsOffset + 32);
49610
+ const urlsOffset = BigNumber.from(import_bytes7.hexDataSlice(data, 32, 64)).toNumber();
49611
+ const urlsLength = BigNumber.from(import_bytes7.hexDataSlice(data, urlsOffset, urlsOffset + 32)).toNumber();
49612
+ const urlsData = import_bytes7.hexDataSlice(data, urlsOffset + 32);
49485
49613
  for (let u = 0;u < urlsLength; u++) {
49486
49614
  const url = _parseString(urlsData, u * 32);
49487
49615
  if (url == null) {
49488
- logger9.throwError("CCIP Read contained corrupt URL string", Logger.errors.CALL_EXCEPTION, {
49616
+ logger10.throwError("CCIP Read contained corrupt URL string", Logger.errors.CALL_EXCEPTION, {
49489
49617
  name: "OffchainLookup",
49490
49618
  signature: "OffchainLookup(address,string[],bytes,bytes4,bytes)",
49491
49619
  transaction,
@@ -49495,19 +49623,19 @@ class BaseProvider extends Provider {
49495
49623
  urls.push(url);
49496
49624
  }
49497
49625
  const calldata = _parseBytes(data, 64);
49498
- if (!BigNumber.from(import_bytes6.hexDataSlice(data, 100, 128)).isZero()) {
49499
- logger9.throwError("CCIP Read callback selector included junk", Logger.errors.CALL_EXCEPTION, {
49626
+ if (!BigNumber.from(import_bytes7.hexDataSlice(data, 100, 128)).isZero()) {
49627
+ logger10.throwError("CCIP Read callback selector included junk", Logger.errors.CALL_EXCEPTION, {
49500
49628
  name: "OffchainLookup",
49501
49629
  signature: "OffchainLookup(address,string[],bytes,bytes4,bytes)",
49502
49630
  transaction,
49503
49631
  data: result
49504
49632
  });
49505
49633
  }
49506
- const callbackSelector = import_bytes6.hexDataSlice(data, 96, 100);
49634
+ const callbackSelector = import_bytes7.hexDataSlice(data, 96, 100);
49507
49635
  const extraData = _parseBytes(data, 128);
49508
49636
  const ccipResult = yield this.ccipReadFetch(transaction, calldata, urls);
49509
49637
  if (ccipResult == null) {
49510
- logger9.throwError("CCIP Read disabled or provided no URLs", Logger.errors.CALL_EXCEPTION, {
49638
+ logger10.throwError("CCIP Read disabled or provided no URLs", Logger.errors.CALL_EXCEPTION, {
49511
49639
  name: "OffchainLookup",
49512
49640
  signature: "OffchainLookup(address,string[],bytes,bytes4,bytes)",
49513
49641
  transaction,
@@ -49516,7 +49644,7 @@ class BaseProvider extends Provider {
49516
49644
  }
49517
49645
  const tx = {
49518
49646
  to: txSender,
49519
- data: import_bytes6.hexConcat([callbackSelector, encodeBytes([ccipResult, extraData])])
49647
+ data: import_bytes7.hexConcat([callbackSelector, encodeBytes([ccipResult, extraData])])
49520
49648
  };
49521
49649
  return this._call(tx, blockTag, attempt + 1);
49522
49650
  } catch (error) {
@@ -49526,9 +49654,9 @@ class BaseProvider extends Provider {
49526
49654
  }
49527
49655
  }
49528
49656
  try {
49529
- return import_bytes6.hexlify(result);
49657
+ return import_bytes7.hexlify(result);
49530
49658
  } catch (error) {
49531
- return logger9.throwError("bad result from backend", Logger.errors.SERVER_ERROR, {
49659
+ return logger10.throwError("bad result from backend", Logger.errors.SERVER_ERROR, {
49532
49660
  method: "call",
49533
49661
  params: { transaction, blockTag },
49534
49662
  result,
@@ -49558,7 +49686,7 @@ class BaseProvider extends Provider {
49558
49686
  try {
49559
49687
  return BigNumber.from(result);
49560
49688
  } catch (error) {
49561
- return logger9.throwError("bad result from backend", Logger.errors.SERVER_ERROR, {
49689
+ return logger10.throwError("bad result from backend", Logger.errors.SERVER_ERROR, {
49562
49690
  method: "estimateGas",
49563
49691
  params,
49564
49692
  result,
@@ -49571,11 +49699,11 @@ class BaseProvider extends Provider {
49571
49699
  return __awaiter5(this, undefined, undefined, function* () {
49572
49700
  addressOrName = yield addressOrName;
49573
49701
  if (typeof addressOrName !== "string") {
49574
- logger9.throwArgumentError("invalid address or ENS name", "name", addressOrName);
49702
+ logger10.throwArgumentError("invalid address or ENS name", "name", addressOrName);
49575
49703
  }
49576
49704
  const address = yield this.resolveName(addressOrName);
49577
49705
  if (address == null) {
49578
- logger9.throwError("ENS name not configured", Logger.errors.UNSUPPORTED_OPERATION, {
49706
+ logger10.throwError("ENS name not configured", Logger.errors.UNSUPPORTED_OPERATION, {
49579
49707
  operation: `resolveName(${JSON.stringify(addressOrName)})`
49580
49708
  });
49581
49709
  }
@@ -49590,16 +49718,16 @@ class BaseProvider extends Provider {
49590
49718
  const params = {
49591
49719
  includeTransactions: !!includeTransactions
49592
49720
  };
49593
- if (import_bytes6.isHexString(blockHashOrBlockTag, 32)) {
49721
+ if (import_bytes7.isHexString(blockHashOrBlockTag, 32)) {
49594
49722
  params.blockHash = blockHashOrBlockTag;
49595
49723
  } else {
49596
49724
  try {
49597
49725
  params.blockTag = yield this._getBlockTag(blockHashOrBlockTag);
49598
- if (import_bytes6.isHexString(params.blockTag)) {
49726
+ if (import_bytes7.isHexString(params.blockTag)) {
49599
49727
  blockNumber = parseInt(params.blockTag.substring(2), 16);
49600
49728
  }
49601
49729
  } catch (error) {
49602
- logger9.throwArgumentError("invalid block hash or block tag", "blockHashOrBlockTag", blockHashOrBlockTag);
49730
+ logger10.throwArgumentError("invalid block hash or block tag", "blockHashOrBlockTag", blockHashOrBlockTag);
49603
49731
  }
49604
49732
  }
49605
49733
  return import_web.poll(() => __awaiter5(this, undefined, undefined, function* () {
@@ -49731,7 +49859,7 @@ class BaseProvider extends Provider {
49731
49859
  blockTag = yield blockTag;
49732
49860
  if (typeof blockTag === "number" && blockTag < 0) {
49733
49861
  if (blockTag % 1) {
49734
- logger9.throwArgumentError("invalid BlockTag", "blockTag", blockTag);
49862
+ logger10.throwArgumentError("invalid BlockTag", "blockTag", blockTag);
49735
49863
  }
49736
49864
  let blockNumber = yield this._getInternalBlockNumber(100 + 2 * this.pollingInterval);
49737
49865
  blockNumber += blockTag;
@@ -49772,7 +49900,7 @@ class BaseProvider extends Provider {
49772
49900
  }
49773
49901
  const network = yield this.getNetwork();
49774
49902
  if (!network.ensAddress) {
49775
- logger9.throwError("network does not support ENS", Logger.errors.UNSUPPORTED_OPERATION, { operation, network: network.name });
49903
+ logger10.throwError("network does not support ENS", Logger.errors.UNSUPPORTED_OPERATION, { operation, network: network.name });
49776
49904
  }
49777
49905
  try {
49778
49906
  const addrData = yield this.call({
@@ -49790,12 +49918,12 @@ class BaseProvider extends Provider {
49790
49918
  try {
49791
49919
  return Promise.resolve(this.formatter.address(name));
49792
49920
  } catch (error) {
49793
- if (import_bytes6.isHexString(name)) {
49921
+ if (import_bytes7.isHexString(name)) {
49794
49922
  throw error;
49795
49923
  }
49796
49924
  }
49797
49925
  if (typeof name !== "string") {
49798
- logger9.throwArgumentError("invalid ENS name", "name", name);
49926
+ logger10.throwArgumentError("invalid ENS name", "name", name);
49799
49927
  }
49800
49928
  const resolver = yield this.getResolver(name);
49801
49929
  if (!resolver) {
@@ -49827,7 +49955,7 @@ class BaseProvider extends Provider {
49827
49955
  getAvatar(nameOrAddress) {
49828
49956
  return __awaiter5(this, undefined, undefined, function* () {
49829
49957
  let resolver = null;
49830
- if (import_bytes6.isHexString(nameOrAddress)) {
49958
+ if (import_bytes7.isHexString(nameOrAddress)) {
49831
49959
  const address = this.formatter.address(nameOrAddress);
49832
49960
  const node = address.substring(2).toLowerCase() + ".addr.reverse";
49833
49961
  const resolverAddress = yield this._getResolver(node, "getAvatar");
@@ -49871,7 +49999,7 @@ class BaseProvider extends Provider {
49871
49999
  });
49872
50000
  }
49873
50001
  perform(method, params) {
49874
- return logger9.throwError(method + " not implemented", Logger.errors.NOT_IMPLEMENTED, { operation: method });
50002
+ return logger10.throwError(method + " not implemented", Logger.errors.NOT_IMPLEMENTED, { operation: method });
49875
50003
  }
49876
50004
  _startEvent(event) {
49877
50005
  this.polling = this._events.filter((e) => e.pollable()).length > 0;
@@ -49982,7 +50110,7 @@ var import_properties10 = __toESM(require_lib4());
49982
50110
  var import_properties8 = __toESM(require_lib4());
49983
50111
 
49984
50112
  // node_modules/@ethersproject/providers/lib.esm/json-rpc-provider.js
49985
- var import_bytes7 = __toESM(require_lib2());
50113
+ var import_bytes8 = __toESM(require_lib2());
49986
50114
  var import_hash3 = __toESM(require_lib12());
49987
50115
  var import_properties7 = __toESM(require_lib4());
49988
50116
  var import_strings3 = __toESM(require_lib9());
@@ -50015,14 +50143,14 @@ var __awaiter6 = function(thisArg, _arguments, P, generator) {
50015
50143
  step((generator = generator.apply(thisArg, _arguments || [])).next());
50016
50144
  });
50017
50145
  };
50018
- var logger10 = new Logger(version10);
50146
+ var logger11 = new Logger(version11);
50019
50147
  var errorGas = ["call", "estimateGas"];
50020
50148
  function spelunk(value, requireData) {
50021
50149
  if (value == null) {
50022
50150
  return null;
50023
50151
  }
50024
50152
  if (typeof value.message === "string" && value.message.match("reverted")) {
50025
- const data = import_bytes7.isHexString(value.data) ? value.data : null;
50153
+ const data = import_bytes8.isHexString(value.data) ? value.data : null;
50026
50154
  if (!requireData || data) {
50027
50155
  return { message: value.message, data };
50028
50156
  }
@@ -50050,7 +50178,7 @@ function checkError(method, error, params) {
50050
50178
  if (result) {
50051
50179
  return result.data;
50052
50180
  }
50053
- logger10.throwError("missing revert data in call exception; Transaction reverted without a reason string", Logger.errors.CALL_EXCEPTION, {
50181
+ logger11.throwError("missing revert data in call exception; Transaction reverted without a reason string", Logger.errors.CALL_EXCEPTION, {
50054
50182
  data: "0x",
50055
50183
  transaction,
50056
50184
  error
@@ -50062,7 +50190,7 @@ function checkError(method, error, params) {
50062
50190
  result = spelunk(error, false);
50063
50191
  }
50064
50192
  if (result) {
50065
- logger10.throwError("cannot estimate gas; transaction may fail or may require manual gas limit", Logger.errors.UNPREDICTABLE_GAS_LIMIT, {
50193
+ logger11.throwError("cannot estimate gas; transaction may fail or may require manual gas limit", Logger.errors.UNPREDICTABLE_GAS_LIMIT, {
50066
50194
  reason: result.message,
50067
50195
  method,
50068
50196
  transaction,
@@ -50080,35 +50208,35 @@ function checkError(method, error, params) {
50080
50208
  }
50081
50209
  message = (message || "").toLowerCase();
50082
50210
  if (message.match(/insufficient funds|base fee exceeds gas limit|InsufficientFunds/i)) {
50083
- logger10.throwError("insufficient funds for intrinsic transaction cost", Logger.errors.INSUFFICIENT_FUNDS, {
50211
+ logger11.throwError("insufficient funds for intrinsic transaction cost", Logger.errors.INSUFFICIENT_FUNDS, {
50084
50212
  error,
50085
50213
  method,
50086
50214
  transaction
50087
50215
  });
50088
50216
  }
50089
50217
  if (message.match(/nonce (is )?too low/i)) {
50090
- logger10.throwError("nonce has already been used", Logger.errors.NONCE_EXPIRED, {
50218
+ logger11.throwError("nonce has already been used", Logger.errors.NONCE_EXPIRED, {
50091
50219
  error,
50092
50220
  method,
50093
50221
  transaction
50094
50222
  });
50095
50223
  }
50096
50224
  if (message.match(/replacement transaction underpriced|transaction gas price.*too low/i)) {
50097
- logger10.throwError("replacement fee too low", Logger.errors.REPLACEMENT_UNDERPRICED, {
50225
+ logger11.throwError("replacement fee too low", Logger.errors.REPLACEMENT_UNDERPRICED, {
50098
50226
  error,
50099
50227
  method,
50100
50228
  transaction
50101
50229
  });
50102
50230
  }
50103
50231
  if (message.match(/only replay-protected/i)) {
50104
- logger10.throwError("legacy pre-eip-155 transactions not supported", Logger.errors.UNSUPPORTED_OPERATION, {
50232
+ logger11.throwError("legacy pre-eip-155 transactions not supported", Logger.errors.UNSUPPORTED_OPERATION, {
50105
50233
  error,
50106
50234
  method,
50107
50235
  transaction
50108
50236
  });
50109
50237
  }
50110
50238
  if (errorGas.indexOf(method) >= 0 && message.match(/gas required exceeds allowance|always failing transaction|execution reverted|revert/)) {
50111
- logger10.throwError("cannot estimate gas; transaction may fail or may require manual gas limit", Logger.errors.UNPREDICTABLE_GAS_LIMIT, {
50239
+ logger11.throwError("cannot estimate gas; transaction may fail or may require manual gas limit", Logger.errors.UNPREDICTABLE_GAS_LIMIT, {
50112
50240
  error,
50113
50241
  method,
50114
50242
  transaction
@@ -50155,11 +50283,11 @@ class JsonRpcSigner extends Signer {
50155
50283
  import_properties7.defineReadOnly(this, "_index", addressOrIndex);
50156
50284
  import_properties7.defineReadOnly(this, "_address", null);
50157
50285
  } else {
50158
- logger10.throwArgumentError("invalid address or index", "addressOrIndex", addressOrIndex);
50286
+ logger11.throwArgumentError("invalid address or index", "addressOrIndex", addressOrIndex);
50159
50287
  }
50160
50288
  }
50161
50289
  connect(provider) {
50162
- return logger10.throwError("cannot alter JSON-RPC Signer connection", Logger.errors.UNSUPPORTED_OPERATION, {
50290
+ return logger11.throwError("cannot alter JSON-RPC Signer connection", Logger.errors.UNSUPPORTED_OPERATION, {
50163
50291
  operation: "connect"
50164
50292
  });
50165
50293
  }
@@ -50172,7 +50300,7 @@ class JsonRpcSigner extends Signer {
50172
50300
  }
50173
50301
  return this.provider.send("eth_accounts", []).then((accounts) => {
50174
50302
  if (accounts.length <= this._index) {
50175
- logger10.throwError("unknown account #" + this._index, Logger.errors.UNSUPPORTED_OPERATION, {
50303
+ logger11.throwError("unknown account #" + this._index, Logger.errors.UNSUPPORTED_OPERATION, {
50176
50304
  operation: "getAddress"
50177
50305
  });
50178
50306
  }
@@ -50199,7 +50327,7 @@ class JsonRpcSigner extends Signer {
50199
50327
  }
50200
50328
  const address = yield this.provider.resolveName(to);
50201
50329
  if (address == null) {
50202
- logger10.throwArgumentError("provided ENS name resolves to null", "tx.to", to);
50330
+ logger11.throwArgumentError("provided ENS name resolves to null", "tx.to", to);
50203
50331
  }
50204
50332
  return address;
50205
50333
  }));
@@ -50210,7 +50338,7 @@ class JsonRpcSigner extends Signer {
50210
50338
  }).then(({ tx, sender }) => {
50211
50339
  if (tx.from != null) {
50212
50340
  if (tx.from.toLowerCase() !== sender) {
50213
- logger10.throwArgumentError("from address mismatch", "transaction", transaction);
50341
+ logger11.throwArgumentError("from address mismatch", "transaction", transaction);
50214
50342
  }
50215
50343
  } else {
50216
50344
  tx.from = sender;
@@ -50220,7 +50348,7 @@ class JsonRpcSigner extends Signer {
50220
50348
  return hash;
50221
50349
  }, (error) => {
50222
50350
  if (typeof error.message === "string" && error.message.match(/user denied/i)) {
50223
- logger10.throwError("user rejected transaction", Logger.errors.ACTION_REJECTED, {
50351
+ logger11.throwError("user rejected transaction", Logger.errors.ACTION_REJECTED, {
50224
50352
  action: "sendTransaction",
50225
50353
  transaction: tx
50226
50354
  });
@@ -50230,7 +50358,7 @@ class JsonRpcSigner extends Signer {
50230
50358
  });
50231
50359
  }
50232
50360
  signTransaction(transaction) {
50233
- return logger10.throwError("signing transactions is unsupported", Logger.errors.UNSUPPORTED_OPERATION, {
50361
+ return logger11.throwError("signing transactions is unsupported", Logger.errors.UNSUPPORTED_OPERATION, {
50234
50362
  operation: "signTransaction"
50235
50363
  });
50236
50364
  }
@@ -50257,10 +50385,10 @@ class JsonRpcSigner extends Signer {
50257
50385
  const data = typeof message === "string" ? import_strings3.toUtf8Bytes(message) : message;
50258
50386
  const address = yield this.getAddress();
50259
50387
  try {
50260
- return yield this.provider.send("personal_sign", [import_bytes7.hexlify(data), address.toLowerCase()]);
50388
+ return yield this.provider.send("personal_sign", [import_bytes8.hexlify(data), address.toLowerCase()]);
50261
50389
  } catch (error) {
50262
50390
  if (typeof error.message === "string" && error.message.match(/user denied/i)) {
50263
- logger10.throwError("user rejected signing", Logger.errors.ACTION_REJECTED, {
50391
+ logger11.throwError("user rejected signing", Logger.errors.ACTION_REJECTED, {
50264
50392
  action: "signMessage",
50265
50393
  from: address,
50266
50394
  messageData: message
@@ -50275,10 +50403,10 @@ class JsonRpcSigner extends Signer {
50275
50403
  const data = typeof message === "string" ? import_strings3.toUtf8Bytes(message) : message;
50276
50404
  const address = yield this.getAddress();
50277
50405
  try {
50278
- return yield this.provider.send("eth_sign", [address.toLowerCase(), import_bytes7.hexlify(data)]);
50406
+ return yield this.provider.send("eth_sign", [address.toLowerCase(), import_bytes8.hexlify(data)]);
50279
50407
  } catch (error) {
50280
50408
  if (typeof error.message === "string" && error.message.match(/user denied/i)) {
50281
- logger10.throwError("user rejected signing", Logger.errors.ACTION_REJECTED, {
50409
+ logger11.throwError("user rejected signing", Logger.errors.ACTION_REJECTED, {
50282
50410
  action: "_legacySignMessage",
50283
50411
  from: address,
50284
50412
  messageData: message
@@ -50301,7 +50429,7 @@ class JsonRpcSigner extends Signer {
50301
50429
  ]);
50302
50430
  } catch (error) {
50303
50431
  if (typeof error.message === "string" && error.message.match(/user denied/i)) {
50304
- logger10.throwError("user rejected signing", Logger.errors.ACTION_REJECTED, {
50432
+ logger11.throwError("user rejected signing", Logger.errors.ACTION_REJECTED, {
50305
50433
  action: "_signTypedData",
50306
50434
  from: address,
50307
50435
  messageData: { domain: populated.domain, types: types2, value: populated.value }
@@ -50415,14 +50543,14 @@ class JsonRpcProvider extends BaseProvider {
50415
50543
  try {
50416
50544
  return getNetwork2(BigNumber.from(chainId).toNumber());
50417
50545
  } catch (error) {
50418
- return logger10.throwError("could not detect network", Logger.errors.NETWORK_ERROR, {
50546
+ return logger11.throwError("could not detect network", Logger.errors.NETWORK_ERROR, {
50419
50547
  chainId,
50420
50548
  event: "invalidNetwork",
50421
50549
  serverError: error
50422
50550
  });
50423
50551
  }
50424
50552
  }
50425
- return logger10.throwError("could not detect network", Logger.errors.NETWORK_ERROR, {
50553
+ return logger11.throwError("could not detect network", Logger.errors.NETWORK_ERROR, {
50426
50554
  event: "noNetwork"
50427
50555
  });
50428
50556
  });
@@ -50492,7 +50620,7 @@ class JsonRpcProvider extends BaseProvider {
50492
50620
  case "getCode":
50493
50621
  return ["eth_getCode", [getLowerCase(params.address), params.blockTag]];
50494
50622
  case "getStorageAt":
50495
- return ["eth_getStorageAt", [getLowerCase(params.address), import_bytes7.hexZeroPad(params.position, 32), params.blockTag]];
50623
+ return ["eth_getStorageAt", [getLowerCase(params.address), import_bytes8.hexZeroPad(params.position, 32), params.blockTag]];
50496
50624
  case "sendTransaction":
50497
50625
  return ["eth_sendRawTransaction", [params.signedTransaction]];
50498
50626
  case "getBlock":
@@ -50541,7 +50669,7 @@ class JsonRpcProvider extends BaseProvider {
50541
50669
  }
50542
50670
  const args = this.prepareRequest(method, params);
50543
50671
  if (args == null) {
50544
- logger10.throwError(method + " not implemented", Logger.errors.NOT_IMPLEMENTED, { operation: method });
50672
+ logger11.throwError(method + " not implemented", Logger.errors.NOT_IMPLEMENTED, { operation: method });
50545
50673
  }
50546
50674
  try {
50547
50675
  return yield this.send(args[0], args[1]);
@@ -50618,7 +50746,7 @@ class JsonRpcProvider extends BaseProvider {
50618
50746
  if (transaction[key] == null) {
50619
50747
  return;
50620
50748
  }
50621
- const value = import_bytes7.hexValue(BigNumber.from(transaction[key]));
50749
+ const value = import_bytes8.hexValue(BigNumber.from(transaction[key]));
50622
50750
  if (key === "gasLimit") {
50623
50751
  key = "gas";
50624
50752
  }
@@ -50628,7 +50756,7 @@ class JsonRpcProvider extends BaseProvider {
50628
50756
  if (transaction[key] == null) {
50629
50757
  return;
50630
50758
  }
50631
- result[key] = import_bytes7.hexlify(transaction[key]);
50759
+ result[key] = import_bytes8.hexlify(transaction[key]);
50632
50760
  });
50633
50761
  if (transaction.accessList) {
50634
50762
  result["accessList"] = import_transactions4.accessListify(transaction.accessList);
@@ -50645,9 +50773,9 @@ try {
50645
50773
  throw new Error("inject please");
50646
50774
  }
50647
50775
  } catch (error) {
50648
- const logger11 = new Logger(version10);
50776
+ const logger12 = new Logger(version11);
50649
50777
  WS = function() {
50650
- logger11.throwError("WebSockets not supported in this environment", Logger.errors.UNSUPPORTED_OPERATION, {
50778
+ logger12.throwError("WebSockets not supported in this environment", Logger.errors.UNSUPPORTED_OPERATION, {
50651
50779
  operation: "new WebSocket()"
50652
50780
  });
50653
50781
  };
@@ -50681,13 +50809,13 @@ var __awaiter7 = function(thisArg, _arguments, P, generator) {
50681
50809
  step((generator = generator.apply(thisArg, _arguments || [])).next());
50682
50810
  });
50683
50811
  };
50684
- var logger11 = new Logger(version10);
50812
+ var logger12 = new Logger(version11);
50685
50813
  var NextId = 1;
50686
50814
 
50687
50815
  class WebSocketProvider extends JsonRpcProvider {
50688
50816
  constructor(url, network) {
50689
50817
  if (network === "any") {
50690
- logger11.throwError("WebSocketProvider does not support 'any' network yet", Logger.errors.UNSUPPORTED_OPERATION, {
50818
+ logger12.throwError("WebSocketProvider does not support 'any' network yet", Logger.errors.UNSUPPORTED_OPERATION, {
50691
50819
  operation: "network:any"
50692
50820
  });
50693
50821
  }
@@ -50771,12 +50899,12 @@ class WebSocketProvider extends JsonRpcProvider {
50771
50899
  return 0;
50772
50900
  }
50773
50901
  resetEventsBlock(blockNumber) {
50774
- logger11.throwError("cannot reset events block on WebSocketProvider", Logger.errors.UNSUPPORTED_OPERATION, {
50902
+ logger12.throwError("cannot reset events block on WebSocketProvider", Logger.errors.UNSUPPORTED_OPERATION, {
50775
50903
  operation: "resetEventBlock"
50776
50904
  });
50777
50905
  }
50778
50906
  set pollingInterval(value) {
50779
- logger11.throwError("cannot set polling interval on WebSocketProvider", Logger.errors.UNSUPPORTED_OPERATION, {
50907
+ logger12.throwError("cannot set polling interval on WebSocketProvider", Logger.errors.UNSUPPORTED_OPERATION, {
50780
50908
  operation: "setPollingInterval"
50781
50909
  });
50782
50910
  }
@@ -50789,7 +50917,7 @@ class WebSocketProvider extends JsonRpcProvider {
50789
50917
  if (!value) {
50790
50918
  return;
50791
50919
  }
50792
- logger11.throwError("cannot set polling on WebSocketProvider", Logger.errors.UNSUPPORTED_OPERATION, {
50920
+ logger12.throwError("cannot set polling on WebSocketProvider", Logger.errors.UNSUPPORTED_OPERATION, {
50793
50921
  operation: "setPolling"
50794
50922
  });
50795
50923
  }
@@ -50953,7 +51081,7 @@ var __awaiter8 = function(thisArg, _arguments, P, generator) {
50953
51081
  step((generator = generator.apply(thisArg, _arguments || [])).next());
50954
51082
  });
50955
51083
  };
50956
- var logger12 = new Logger(version10);
51084
+ var logger13 = new Logger(version11);
50957
51085
 
50958
51086
  class StaticJsonRpcProvider extends JsonRpcProvider {
50959
51087
  detectNetwork() {
@@ -50965,7 +51093,7 @@ class StaticJsonRpcProvider extends JsonRpcProvider {
50965
51093
  if (network == null) {
50966
51094
  network = yield _super.detectNetwork.call(this);
50967
51095
  if (!network) {
50968
- logger12.throwError("no network detected", Logger.errors.UNKNOWN_ERROR, {});
51096
+ logger13.throwError("no network detected", Logger.errors.UNKNOWN_ERROR, {});
50969
51097
  }
50970
51098
  if (this._network == null) {
50971
51099
  import_properties9.defineReadOnly(this, "_network", network);
@@ -50979,7 +51107,7 @@ class StaticJsonRpcProvider extends JsonRpcProvider {
50979
51107
 
50980
51108
  class UrlJsonRpcProvider extends StaticJsonRpcProvider {
50981
51109
  constructor(network, apiKey) {
50982
- logger12.checkAbstract(new.target, UrlJsonRpcProvider);
51110
+ logger13.checkAbstract(new.target, UrlJsonRpcProvider);
50983
51111
  network = import_properties9.getStatic(new.target, "getNetwork")(network);
50984
51112
  apiKey = import_properties9.getStatic(new.target, "getApiKey")(apiKey);
50985
51113
  const connection = import_properties9.getStatic(new.target, "getUrl")(network, apiKey);
@@ -50993,13 +51121,13 @@ class UrlJsonRpcProvider extends StaticJsonRpcProvider {
50993
51121
  }
50994
51122
  }
50995
51123
  _startPending() {
50996
- logger12.warn("WARNING: API provider does not support pending filters");
51124
+ logger13.warn("WARNING: API provider does not support pending filters");
50997
51125
  }
50998
51126
  isCommunityResource() {
50999
51127
  return false;
51000
51128
  }
51001
51129
  getSigner(address) {
51002
- return logger12.throwError("API provider does not support signing", Logger.errors.UNSUPPORTED_OPERATION, { operation: "getSigner" });
51130
+ return logger13.throwError("API provider does not support signing", Logger.errors.UNSUPPORTED_OPERATION, { operation: "getSigner" });
51003
51131
  }
51004
51132
  listAccounts() {
51005
51133
  return Promise.resolve([]);
@@ -51008,14 +51136,14 @@ class UrlJsonRpcProvider extends StaticJsonRpcProvider {
51008
51136
  return apiKey;
51009
51137
  }
51010
51138
  static getUrl(network, apiKey) {
51011
- return logger12.throwError("not implemented; sub-classes must override getUrl", Logger.errors.NOT_IMPLEMENTED, {
51139
+ return logger13.throwError("not implemented; sub-classes must override getUrl", Logger.errors.NOT_IMPLEMENTED, {
51012
51140
  operation: "getUrl"
51013
51141
  });
51014
51142
  }
51015
51143
  }
51016
51144
 
51017
51145
  // node_modules/@ethersproject/providers/lib.esm/alchemy-provider.js
51018
- var logger13 = new Logger(version10);
51146
+ var logger14 = new Logger(version11);
51019
51147
  var defaultApiKey = "_gg7wSSi0KMBsdKnGVfHDueq6xMB9EkC";
51020
51148
 
51021
51149
  class AlchemyWebSocketProvider extends WebSocketProvider {
@@ -51039,7 +51167,7 @@ class AlchemyProvider extends UrlJsonRpcProvider {
51039
51167
  return defaultApiKey;
51040
51168
  }
51041
51169
  if (apiKey && typeof apiKey !== "string") {
51042
- logger13.throwArgumentError("invalid apiKey", "apiKey", apiKey);
51170
+ logger14.throwArgumentError("invalid apiKey", "apiKey", apiKey);
51043
51171
  }
51044
51172
  return apiKey;
51045
51173
  }
@@ -51071,7 +51199,7 @@ class AlchemyProvider extends UrlJsonRpcProvider {
51071
51199
  host = "opt-goerli.g.alchemy.com/v2/";
51072
51200
  break;
51073
51201
  default:
51074
- logger13.throwArgumentError("unsupported network", "network", arguments[0]);
51202
+ logger14.throwArgumentError("unsupported network", "network", arguments[0]);
51075
51203
  }
51076
51204
  return {
51077
51205
  allowGzip: true,
@@ -51090,7 +51218,7 @@ class AlchemyProvider extends UrlJsonRpcProvider {
51090
51218
  }
51091
51219
 
51092
51220
  // node_modules/@ethersproject/providers/lib.esm/ankr-provider.js
51093
- var logger14 = new Logger(version10);
51221
+ var logger15 = new Logger(version11);
51094
51222
  var defaultApiKey2 = "9f7d929b018cdffb338517efa06f58359e86ff1ffd350bc889738523659e7972";
51095
51223
  function getHost(name) {
51096
51224
  switch (name) {
@@ -51107,7 +51235,7 @@ function getHost(name) {
51107
51235
  case "arbitrum":
51108
51236
  return "rpc.ankr.com/arbitrum/";
51109
51237
  }
51110
- return logger14.throwArgumentError("unsupported network", "name", name);
51238
+ return logger15.throwArgumentError("unsupported network", "name", name);
51111
51239
  }
51112
51240
 
51113
51241
  class AnkrProvider extends UrlJsonRpcProvider {
@@ -51170,12 +51298,12 @@ var __awaiter9 = function(thisArg, _arguments, P, generator) {
51170
51298
  step((generator = generator.apply(thisArg, _arguments || [])).next());
51171
51299
  });
51172
51300
  };
51173
- var logger15 = new Logger(version10);
51301
+ var logger16 = new Logger(version11);
51174
51302
 
51175
51303
  class CloudflareProvider extends UrlJsonRpcProvider {
51176
51304
  static getApiKey(apiKey) {
51177
51305
  if (apiKey != null) {
51178
- logger15.throwArgumentError("apiKey not supported for cloudflare", "apiKey", apiKey);
51306
+ logger16.throwArgumentError("apiKey not supported for cloudflare", "apiKey", apiKey);
51179
51307
  }
51180
51308
  return null;
51181
51309
  }
@@ -51186,7 +51314,7 @@ class CloudflareProvider extends UrlJsonRpcProvider {
51186
51314
  host = "https://cloudflare-eth.com/";
51187
51315
  break;
51188
51316
  default:
51189
- logger15.throwArgumentError("unsupported network", "network", arguments[0]);
51317
+ logger16.throwArgumentError("unsupported network", "network", arguments[0]);
51190
51318
  }
51191
51319
  return host;
51192
51320
  }
@@ -51205,7 +51333,7 @@ class CloudflareProvider extends UrlJsonRpcProvider {
51205
51333
  }
51206
51334
 
51207
51335
  // node_modules/@ethersproject/providers/lib.esm/etherscan-provider.js
51208
- var import_bytes8 = __toESM(require_lib2());
51336
+ var import_bytes9 = __toESM(require_lib2());
51209
51337
  var import_properties11 = __toESM(require_lib4());
51210
51338
  var import_transactions5 = __toESM(require_lib15());
51211
51339
  var import_web3 = __toESM(require_lib23());
@@ -51236,7 +51364,7 @@ var __awaiter10 = function(thisArg, _arguments, P, generator) {
51236
51364
  step((generator = generator.apply(thisArg, _arguments || [])).next());
51237
51365
  });
51238
51366
  };
51239
- var logger16 = new Logger(version10);
51367
+ var logger17 = new Logger(version11);
51240
51368
  function getTransactionPostData(transaction) {
51241
51369
  const result = {};
51242
51370
  for (let key in transaction) {
@@ -51248,13 +51376,13 @@ function getTransactionPostData(transaction) {
51248
51376
  continue;
51249
51377
  }
51250
51378
  if ({ type: true, gasLimit: true, gasPrice: true, maxFeePerGs: true, maxPriorityFeePerGas: true, nonce: true, value: true }[key]) {
51251
- value = import_bytes8.hexValue(import_bytes8.hexlify(value));
51379
+ value = import_bytes9.hexValue(import_bytes9.hexlify(value));
51252
51380
  } else if (key === "accessList") {
51253
51381
  value = "[" + import_transactions5.accessListify(value).map((set) => {
51254
51382
  return `{address:"${set.address}",storageKeys:["${set.storageKeys.join('","')}"]}`;
51255
51383
  }).join(",") + "]";
51256
51384
  } else {
51257
- value = import_bytes8.hexlify(value);
51385
+ value = import_bytes9.hexlify(value);
51258
51386
  }
51259
51387
  result[key] = value;
51260
51388
  }
@@ -51315,10 +51443,10 @@ function checkError2(method, error, transaction) {
51315
51443
  if (data) {
51316
51444
  data = "0x" + data.replace(/^.*0x/i, "");
51317
51445
  }
51318
- if (import_bytes8.isHexString(data)) {
51446
+ if (import_bytes9.isHexString(data)) {
51319
51447
  return data;
51320
51448
  }
51321
- logger16.throwError("missing revert data in call exception", Logger.errors.CALL_EXCEPTION, {
51449
+ logger17.throwError("missing revert data in call exception", Logger.errors.CALL_EXCEPTION, {
51322
51450
  error,
51323
51451
  data: "0x"
51324
51452
  });
@@ -51336,28 +51464,28 @@ function checkError2(method, error, transaction) {
51336
51464
  }
51337
51465
  message = (message || "").toLowerCase();
51338
51466
  if (message.match(/insufficient funds/)) {
51339
- logger16.throwError("insufficient funds for intrinsic transaction cost", Logger.errors.INSUFFICIENT_FUNDS, {
51467
+ logger17.throwError("insufficient funds for intrinsic transaction cost", Logger.errors.INSUFFICIENT_FUNDS, {
51340
51468
  error,
51341
51469
  method,
51342
51470
  transaction
51343
51471
  });
51344
51472
  }
51345
51473
  if (message.match(/same hash was already imported|transaction nonce is too low|nonce too low/)) {
51346
- logger16.throwError("nonce has already been used", Logger.errors.NONCE_EXPIRED, {
51474
+ logger17.throwError("nonce has already been used", Logger.errors.NONCE_EXPIRED, {
51347
51475
  error,
51348
51476
  method,
51349
51477
  transaction
51350
51478
  });
51351
51479
  }
51352
51480
  if (message.match(/another transaction with same nonce/)) {
51353
- logger16.throwError("replacement fee too low", Logger.errors.REPLACEMENT_UNDERPRICED, {
51481
+ logger17.throwError("replacement fee too low", Logger.errors.REPLACEMENT_UNDERPRICED, {
51354
51482
  error,
51355
51483
  method,
51356
51484
  transaction
51357
51485
  });
51358
51486
  }
51359
51487
  if (message.match(/execution failed due to an exception|execution reverted/)) {
51360
- logger16.throwError("cannot estimate gas; transaction may fail or may require manual gas limit", Logger.errors.UNPREDICTABLE_GAS_LIMIT, {
51488
+ logger17.throwError("cannot estimate gas; transaction may fail or may require manual gas limit", Logger.errors.UNPREDICTABLE_GAS_LIMIT, {
51361
51489
  error,
51362
51490
  method,
51363
51491
  transaction
@@ -51394,7 +51522,7 @@ class EtherscanProvider extends BaseProvider {
51394
51522
  return "https://api-goerli-optimistic.etherscan.io";
51395
51523
  default:
51396
51524
  }
51397
- return logger16.throwArgumentError("unsupported network", "network", this.network.name);
51525
+ return logger17.throwArgumentError("unsupported network", "network", this.network.name);
51398
51526
  }
51399
51527
  getUrl(module2, params) {
51400
51528
  const query = Object.keys(params).reduce((accum, key) => {
@@ -51554,12 +51682,12 @@ class EtherscanProvider extends BaseProvider {
51554
51682
  }
51555
51683
  if (params.filter.topics && params.filter.topics.length > 0) {
51556
51684
  if (params.filter.topics.length > 1) {
51557
- logger16.throwError("unsupported topic count", Logger.errors.UNSUPPORTED_OPERATION, { topics: params.filter.topics });
51685
+ logger17.throwError("unsupported topic count", Logger.errors.UNSUPPORTED_OPERATION, { topics: params.filter.topics });
51558
51686
  }
51559
51687
  if (params.filter.topics.length === 1) {
51560
51688
  const topic0 = params.filter.topics[0];
51561
51689
  if (typeof topic0 !== "string" || topic0.length !== 66) {
51562
- logger16.throwError("unsupported topic format", Logger.errors.UNSUPPORTED_OPERATION, { topic0 });
51690
+ logger17.throwError("unsupported topic format", Logger.errors.UNSUPPORTED_OPERATION, { topic0 });
51563
51691
  }
51564
51692
  args.topic0 = topic0;
51565
51693
  }
@@ -51625,7 +51753,7 @@ class EtherscanProvider extends BaseProvider {
51625
51753
  }
51626
51754
 
51627
51755
  // node_modules/@ethersproject/providers/lib.esm/fallback-provider.js
51628
- var import_bytes9 = __toESM(require_lib2());
51756
+ var import_bytes10 = __toESM(require_lib2());
51629
51757
  var import_properties12 = __toESM(require_lib4());
51630
51758
  var import_random2 = __toESM(require_lib21());
51631
51759
  var import_web4 = __toESM(require_lib23());
@@ -51656,7 +51784,7 @@ var __awaiter11 = function(thisArg, _arguments, P, generator) {
51656
51784
  step((generator = generator.apply(thisArg, _arguments || [])).next());
51657
51785
  });
51658
51786
  };
51659
- var logger17 = new Logger(version10);
51787
+ var logger18 = new Logger(version11);
51660
51788
  function now() {
51661
51789
  return new Date().getTime();
51662
51790
  }
@@ -51669,7 +51797,7 @@ function checkNetworks(networks2) {
51669
51797
  }
51670
51798
  if (result) {
51671
51799
  if (!(result.name === network.name && result.chainId === network.chainId && (result.ensAddress === network.ensAddress || result.ensAddress == null && network.ensAddress == null))) {
51672
- logger17.throwArgumentError("provider mismatch", "networks", networks2);
51800
+ logger18.throwArgumentError("provider mismatch", "networks", networks2);
51673
51801
  }
51674
51802
  } else {
51675
51803
  result = network;
@@ -51905,23 +52033,23 @@ function getRunner(config, currentBlockNumber, method, params) {
51905
52033
  case "getBalance":
51906
52034
  case "getTransactionCount":
51907
52035
  case "getCode":
51908
- if (params.blockTag && import_bytes9.isHexString(params.blockTag)) {
52036
+ if (params.blockTag && import_bytes10.isHexString(params.blockTag)) {
51909
52037
  provider = yield waitForSync(config, currentBlockNumber);
51910
52038
  }
51911
52039
  return provider[method](params.address, params.blockTag || "latest");
51912
52040
  case "getStorageAt":
51913
- if (params.blockTag && import_bytes9.isHexString(params.blockTag)) {
52041
+ if (params.blockTag && import_bytes10.isHexString(params.blockTag)) {
51914
52042
  provider = yield waitForSync(config, currentBlockNumber);
51915
52043
  }
51916
52044
  return provider.getStorageAt(params.address, params.position, params.blockTag || "latest");
51917
52045
  case "getBlock":
51918
- if (params.blockTag && import_bytes9.isHexString(params.blockTag)) {
52046
+ if (params.blockTag && import_bytes10.isHexString(params.blockTag)) {
51919
52047
  provider = yield waitForSync(config, currentBlockNumber);
51920
52048
  }
51921
52049
  return provider[params.includeTransactions ? "getBlockWithTransactions" : "getBlock"](params.blockTag || params.blockHash);
51922
52050
  case "call":
51923
52051
  case "estimateGas":
51924
- if (params.blockTag && import_bytes9.isHexString(params.blockTag)) {
52052
+ if (params.blockTag && import_bytes10.isHexString(params.blockTag)) {
51925
52053
  provider = yield waitForSync(config, currentBlockNumber);
51926
52054
  }
51927
52055
  if (method === "call" && params.blockTag) {
@@ -51933,13 +52061,13 @@ function getRunner(config, currentBlockNumber, method, params) {
51933
52061
  return provider[method](params.transactionHash);
51934
52062
  case "getLogs": {
51935
52063
  let filter = params.filter;
51936
- if (filter.fromBlock && import_bytes9.isHexString(filter.fromBlock) || filter.toBlock && import_bytes9.isHexString(filter.toBlock)) {
52064
+ if (filter.fromBlock && import_bytes10.isHexString(filter.fromBlock) || filter.toBlock && import_bytes10.isHexString(filter.toBlock)) {
51937
52065
  provider = yield waitForSync(config, currentBlockNumber);
51938
52066
  }
51939
52067
  return provider.getLogs(filter);
51940
52068
  }
51941
52069
  }
51942
- return logger17.throwError("unknown method error", Logger.errors.UNKNOWN_ERROR, {
52070
+ return logger18.throwError("unknown method error", Logger.errors.UNKNOWN_ERROR, {
51943
52071
  method,
51944
52072
  params
51945
52073
  });
@@ -51949,7 +52077,7 @@ function getRunner(config, currentBlockNumber, method, params) {
51949
52077
  class FallbackProvider extends BaseProvider {
51950
52078
  constructor(providers, quorum) {
51951
52079
  if (providers.length === 0) {
51952
- logger17.throwArgumentError("missing providers", "providers", providers);
52080
+ logger18.throwArgumentError("missing providers", "providers", providers);
51953
52081
  }
51954
52082
  const providerConfigs = providers.map((configOrProvider, index) => {
51955
52083
  if (Provider.isProvider(configOrProvider)) {
@@ -51969,7 +52097,7 @@ class FallbackProvider extends BaseProvider {
51969
52097
  }
51970
52098
  const weight = config.weight;
51971
52099
  if (weight % 1 || weight > 512 || weight < 1) {
51972
- logger17.throwArgumentError("invalid weight; must be integer in [1, 512]", `providers[${index}].weight`, weight);
52100
+ logger18.throwArgumentError("invalid weight; must be integer in [1, 512]", `providers[${index}].weight`, weight);
51973
52101
  }
51974
52102
  return Object.freeze(config);
51975
52103
  });
@@ -51977,7 +52105,7 @@ class FallbackProvider extends BaseProvider {
51977
52105
  if (quorum == null) {
51978
52106
  quorum = total / 2;
51979
52107
  } else if (quorum > total) {
51980
- logger17.throwArgumentError("quorum will always fail; larger than total weight", "quorum", quorum);
52108
+ logger18.throwArgumentError("quorum will always fail; larger than total weight", "quorum", quorum);
51981
52109
  }
51982
52110
  let networkOrReady = checkNetworks(providerConfigs.map((c) => c.provider.network));
51983
52111
  if (networkOrReady == null) {
@@ -52134,7 +52262,7 @@ class FallbackProvider extends BaseProvider {
52134
52262
  }
52135
52263
  props[name] = e[name];
52136
52264
  });
52137
- logger17.throwError(e.reason || e.message, errorCode, props);
52265
+ logger18.throwError(e.reason || e.message, errorCode, props);
52138
52266
  });
52139
52267
  if (configs.filter((c) => !c.done).length === 0) {
52140
52268
  break;
@@ -52146,7 +52274,7 @@ class FallbackProvider extends BaseProvider {
52146
52274
  }
52147
52275
  c.cancelled = true;
52148
52276
  });
52149
- return logger17.throwError("failed to meet quorum", Logger.errors.SERVER_ERROR, {
52277
+ return logger18.throwError("failed to meet quorum", Logger.errors.SERVER_ERROR, {
52150
52278
  method,
52151
52279
  params,
52152
52280
  results: configs.map((c) => exposeDebugConfig(c)),
@@ -52161,7 +52289,7 @@ var IpcProvider = null;
52161
52289
 
52162
52290
  // node_modules/@ethersproject/providers/lib.esm/infura-provider.js
52163
52291
  var import_properties13 = __toESM(require_lib4());
52164
- var logger18 = new Logger(version10);
52292
+ var logger19 = new Logger(version11);
52165
52293
  var defaultProjectId = "84842078b09946638c03157f83405213";
52166
52294
 
52167
52295
  class InfuraWebSocketProvider extends WebSocketProvider {
@@ -52169,7 +52297,7 @@ class InfuraWebSocketProvider extends WebSocketProvider {
52169
52297
  const provider = new InfuraProvider(network, apiKey);
52170
52298
  const connection = provider.connection;
52171
52299
  if (connection.password) {
52172
- logger18.throwError("INFURA WebSocket project secrets unsupported", Logger.errors.UNSUPPORTED_OPERATION, {
52300
+ logger19.throwError("INFURA WebSocket project secrets unsupported", Logger.errors.UNSUPPORTED_OPERATION, {
52173
52301
  operation: "InfuraProvider.getWebSocketProvider()"
52174
52302
  });
52175
52303
  }
@@ -52200,8 +52328,8 @@ class InfuraProvider extends UrlJsonRpcProvider {
52200
52328
  if (typeof apiKey === "string") {
52201
52329
  apiKeyObj.projectId = apiKey;
52202
52330
  } else if (apiKey.projectSecret != null) {
52203
- logger18.assertArgument(typeof apiKey.projectId === "string", "projectSecret requires a projectId", "projectId", apiKey.projectId);
52204
- logger18.assertArgument(typeof apiKey.projectSecret === "string", "invalid projectSecret", "projectSecret", "[REDACTED]");
52331
+ logger19.assertArgument(typeof apiKey.projectId === "string", "projectSecret requires a projectId", "projectId", apiKey.projectId);
52332
+ logger19.assertArgument(typeof apiKey.projectSecret === "string", "invalid projectSecret", "projectSecret", "[REDACTED]");
52205
52333
  apiKeyObj.projectId = apiKey.projectId;
52206
52334
  apiKeyObj.projectSecret = apiKey.projectSecret;
52207
52335
  } else if (apiKey.projectId) {
@@ -52241,7 +52369,7 @@ class InfuraProvider extends UrlJsonRpcProvider {
52241
52369
  host = "arbitrum-goerli.infura.io";
52242
52370
  break;
52243
52371
  default:
52244
- logger18.throwError("unsupported network", Logger.errors.INVALID_ARGUMENT, {
52372
+ logger19.throwError("unsupported network", Logger.errors.INVALID_ARGUMENT, {
52245
52373
  argument: "network",
52246
52374
  value: network
52247
52375
  });
@@ -52334,18 +52462,18 @@ class JsonRpcBatchProvider extends JsonRpcProvider {
52334
52462
  }
52335
52463
 
52336
52464
  // node_modules/@ethersproject/providers/lib.esm/nodesmith-provider.js
52337
- var logger19 = new Logger(version10);
52465
+ var logger20 = new Logger(version11);
52338
52466
  var defaultApiKey3 = "ETHERS_JS_SHARED";
52339
52467
 
52340
52468
  class NodesmithProvider extends UrlJsonRpcProvider {
52341
52469
  static getApiKey(apiKey) {
52342
52470
  if (apiKey && typeof apiKey !== "string") {
52343
- logger19.throwArgumentError("invalid apiKey", "apiKey", apiKey);
52471
+ logger20.throwArgumentError("invalid apiKey", "apiKey", apiKey);
52344
52472
  }
52345
52473
  return apiKey || defaultApiKey3;
52346
52474
  }
52347
52475
  static getUrl(network, apiKey) {
52348
- logger19.warn("NodeSmith will be discontinued on 2019-12-20; please migrate to another platform.");
52476
+ logger20.warn("NodeSmith will be discontinued on 2019-12-20; please migrate to another platform.");
52349
52477
  let host = null;
52350
52478
  switch (network.name) {
52351
52479
  case "homestead":
@@ -52364,14 +52492,14 @@ class NodesmithProvider extends UrlJsonRpcProvider {
52364
52492
  host = "https://ethereum.api.nodesmith.io/v1/kovan/jsonrpc";
52365
52493
  break;
52366
52494
  default:
52367
- logger19.throwArgumentError("unsupported network", "network", arguments[0]);
52495
+ logger20.throwArgumentError("unsupported network", "network", arguments[0]);
52368
52496
  }
52369
52497
  return host + "?apiKey=" + apiKey;
52370
52498
  }
52371
52499
  }
52372
52500
 
52373
52501
  // node_modules/@ethersproject/providers/lib.esm/pocket-provider.js
52374
- var logger20 = new Logger(version10);
52502
+ var logger21 = new Logger(version11);
52375
52503
  var defaultApplicationId = "62e1ad51b37b8e00394bda3b";
52376
52504
 
52377
52505
  class PocketProvider extends UrlJsonRpcProvider {
@@ -52391,7 +52519,7 @@ class PocketProvider extends UrlJsonRpcProvider {
52391
52519
  } else if (apiKey.applicationId) {
52392
52520
  apiKeyObj.applicationId = apiKey.applicationId;
52393
52521
  } else {
52394
- logger20.throwArgumentError("unsupported PocketProvider apiKey", "apiKey", apiKey);
52522
+ logger21.throwArgumentError("unsupported PocketProvider apiKey", "apiKey", apiKey);
52395
52523
  }
52396
52524
  return apiKeyObj;
52397
52525
  }
@@ -52420,7 +52548,7 @@ class PocketProvider extends UrlJsonRpcProvider {
52420
52548
  host = "eth-ropsten.gateway.pokt.network";
52421
52549
  break;
52422
52550
  default:
52423
- logger20.throwError("unsupported network", Logger.errors.INVALID_ARGUMENT, {
52551
+ logger21.throwError("unsupported network", Logger.errors.INVALID_ARGUMENT, {
52424
52552
  argument: "network",
52425
52553
  value: network
52426
52554
  });
@@ -52440,7 +52568,7 @@ class PocketProvider extends UrlJsonRpcProvider {
52440
52568
 
52441
52569
  // node_modules/@ethersproject/providers/lib.esm/web3-provider.js
52442
52570
  var import_properties15 = __toESM(require_lib4());
52443
- var logger21 = new Logger(version10);
52571
+ var logger22 = new Logger(version11);
52444
52572
  var _nextId = 1;
52445
52573
  function buildWeb3LegacyFetcher(provider, sendFunc) {
52446
52574
  const fetcher = "Web3LegacyFetcher";
@@ -52524,7 +52652,7 @@ function buildEip1193Fetcher(provider) {
52524
52652
  class Web3Provider extends JsonRpcProvider {
52525
52653
  constructor(provider, network) {
52526
52654
  if (provider == null) {
52527
- logger21.throwArgumentError("missing provider", "provider", provider);
52655
+ logger22.throwArgumentError("missing provider", "provider", provider);
52528
52656
  }
52529
52657
  let path = null;
52530
52658
  let jsonRpcFetchFunc = null;
@@ -52548,7 +52676,7 @@ class Web3Provider extends JsonRpcProvider {
52548
52676
  } else if (provider.send) {
52549
52677
  jsonRpcFetchFunc = buildWeb3LegacyFetcher(provider, provider.send.bind(provider));
52550
52678
  } else {
52551
- logger21.throwArgumentError("unsupported provider", "provider", provider);
52679
+ logger22.throwArgumentError("unsupported provider", "provider", provider);
52552
52680
  }
52553
52681
  if (!path) {
52554
52682
  path = "unknown:";
@@ -52564,7 +52692,7 @@ class Web3Provider extends JsonRpcProvider {
52564
52692
  }
52565
52693
 
52566
52694
  // node_modules/@ethersproject/providers/lib.esm/index.js
52567
- var logger22 = new Logger(version10);
52695
+ var logger23 = new Logger(version11);
52568
52696
  function getDefaultProvider(network, options) {
52569
52697
  if (network == null) {
52570
52698
  network = "homestead";
@@ -52580,13 +52708,13 @@ function getDefaultProvider(network, options) {
52580
52708
  case "wss":
52581
52709
  return new WebSocketProvider(network);
52582
52710
  default:
52583
- logger22.throwArgumentError("unsupported URL scheme", "network", network);
52711
+ logger23.throwArgumentError("unsupported URL scheme", "network", network);
52584
52712
  }
52585
52713
  }
52586
52714
  }
52587
52715
  const n = getNetwork(network);
52588
52716
  if (!n || !n._defaultProvider) {
52589
- logger22.throwError("unsupported getDefaultProvider network", Logger.errors.NETWORK_ERROR, {
52717
+ logger23.throwError("unsupported getDefaultProvider network", Logger.errors.NETWORK_ERROR, {
52590
52718
  operation: "getDefaultProvider",
52591
52719
  network
52592
52720
  });
@@ -52611,15 +52739,15 @@ var import_hash4 = __toESM(require_lib12());
52611
52739
  var import_properties16 = __toESM(require_lib4());
52612
52740
 
52613
52741
  // node_modules/@ethersproject/wordlists/lib.esm/_version.js
52614
- var version11 = "wordlists/5.7.0";
52742
+ var version12 = "wordlists/5.7.0";
52615
52743
 
52616
52744
  // node_modules/@ethersproject/wordlists/lib.esm/wordlist.js
52617
52745
  var exportWordlist = false;
52618
- var logger23 = new Logger(version11);
52746
+ var logger24 = new Logger(version12);
52619
52747
 
52620
52748
  class Wordlist {
52621
52749
  constructor(locale) {
52622
- logger23.checkAbstract(new.target, Wordlist);
52750
+ logger24.checkAbstract(new.target, Wordlist);
52623
52751
  import_properties16.defineReadOnly(this, "locale", locale);
52624
52752
  }
52625
52753
  split(mnemonic) {
@@ -52696,14 +52824,14 @@ var wordlists = {
52696
52824
  // node_modules/ethers/lib.esm/utils.js
52697
52825
  var exports_utils = {};
52698
52826
  __export(exports_utils, {
52699
- zeroPad: () => import_bytes10.zeroPad,
52827
+ zeroPad: () => import_bytes11.zeroPad,
52700
52828
  verifyTypedData: () => verifyTypedData,
52701
52829
  verifyMessage: () => verifyMessage,
52702
52830
  toUtf8String: () => import_strings4.toUtf8String,
52703
52831
  toUtf8CodePoints: () => import_strings4.toUtf8CodePoints,
52704
52832
  toUtf8Bytes: () => import_strings4.toUtf8Bytes,
52705
- stripZeros: () => import_bytes10.stripZeros,
52706
- splitSignature: () => import_bytes10.splitSignature,
52833
+ stripZeros: () => import_bytes11.stripZeros,
52834
+ splitSignature: () => import_bytes11.splitSignature,
52707
52835
  soliditySha256: () => import_solidity.sha256,
52708
52836
  solidityPack: () => import_solidity.pack,
52709
52837
  solidityKeccak256: () => import_solidity.keccak256,
@@ -52726,29 +52854,29 @@ __export(exports_utils, {
52726
52854
  namehash: () => import_hash5.namehash,
52727
52855
  mnemonicToSeed: () => import_hdnode2.mnemonicToSeed,
52728
52856
  mnemonicToEntropy: () => import_hdnode2.mnemonicToEntropy,
52729
- keccak256: () => import_keccak2562.keccak256,
52730
- joinSignature: () => import_bytes10.joinSignature,
52857
+ keccak256: () => import_keccak2563.keccak256,
52858
+ joinSignature: () => import_bytes11.joinSignature,
52731
52859
  isValidName: () => import_hash5.isValidName,
52732
52860
  isValidMnemonic: () => import_hdnode2.isValidMnemonic,
52733
- isHexString: () => import_bytes10.isHexString,
52734
- isBytesLike: () => import_bytes10.isBytesLike,
52735
- isBytes: () => import_bytes10.isBytes,
52736
- isAddress: () => import_address4.isAddress,
52861
+ isHexString: () => import_bytes11.isHexString,
52862
+ isBytesLike: () => import_bytes11.isBytesLike,
52863
+ isBytes: () => import_bytes11.isBytes,
52864
+ isAddress: () => isAddress,
52737
52865
  id: () => import_hash5.id,
52738
- hexlify: () => import_bytes10.hexlify,
52739
- hexZeroPad: () => import_bytes10.hexZeroPad,
52740
- hexValue: () => import_bytes10.hexValue,
52741
- hexStripZeros: () => import_bytes10.hexStripZeros,
52742
- hexDataSlice: () => import_bytes10.hexDataSlice,
52743
- hexDataLength: () => import_bytes10.hexDataLength,
52744
- hexConcat: () => import_bytes10.hexConcat,
52866
+ hexlify: () => import_bytes11.hexlify,
52867
+ hexZeroPad: () => import_bytes11.hexZeroPad,
52868
+ hexValue: () => import_bytes11.hexValue,
52869
+ hexStripZeros: () => import_bytes11.hexStripZeros,
52870
+ hexDataSlice: () => import_bytes11.hexDataSlice,
52871
+ hexDataLength: () => import_bytes11.hexDataLength,
52872
+ hexConcat: () => import_bytes11.hexConcat,
52745
52873
  hashMessage: () => import_hash5.hashMessage,
52746
52874
  getStatic: () => import_properties17.getStatic,
52747
52875
  getJsonWalletAddress: () => import_json_wallets2.getJsonWalletAddress,
52748
- getIcapAddress: () => import_address4.getIcapAddress,
52749
- getCreate2Address: () => import_address4.getCreate2Address,
52750
- getContractAddress: () => import_address4.getContractAddress,
52751
- getAddress: () => import_address4.getAddress,
52876
+ getIcapAddress: () => getIcapAddress,
52877
+ getCreate2Address: () => getCreate2Address,
52878
+ getContractAddress: () => getContractAddress,
52879
+ getAddress: () => getAddress,
52752
52880
  getAccountPath: () => import_hdnode2.getAccountPath,
52753
52881
  formatUnits: () => import_units.formatUnits,
52754
52882
  formatEther: () => import_units.formatEther,
@@ -52760,7 +52888,7 @@ __export(exports_utils, {
52760
52888
  defaultPath: () => import_hdnode2.defaultPath,
52761
52889
  defaultAbiCoder: () => import_abi2.defaultAbiCoder,
52762
52890
  deepCopy: () => import_properties17.deepCopy,
52763
- concat: () => import_bytes10.concat,
52891
+ concat: () => import_bytes11.concat,
52764
52892
  computePublicKey: () => import_signing_key2.computePublicKey,
52765
52893
  computeHmac: () => import_sha22.computeHmac,
52766
52894
  computeAddress: () => import_transactions6.computeAddress,
@@ -52769,7 +52897,7 @@ __export(exports_utils, {
52769
52897
  checkProperties: () => import_properties17.checkProperties,
52770
52898
  base64: () => base64,
52771
52899
  base58: () => import_basex2.Base58,
52772
- arrayify: () => import_bytes10.arrayify,
52900
+ arrayify: () => import_bytes11.arrayify,
52773
52901
  accessListify: () => import_transactions6.accessListify,
52774
52902
  _toEscapedUtf8String: () => import_strings4._toEscapedUtf8String,
52775
52903
  _fetchData: () => import_web6._fetchData,
@@ -52797,14 +52925,13 @@ __export(exports_utils, {
52797
52925
  AbiCoder: () => import_abi2.AbiCoder
52798
52926
  });
52799
52927
  var import_abi2 = __toESM(require_lib13());
52800
- var import_address4 = __toESM(require_lib7());
52801
52928
  var base64 = __toESM(require_lib10());
52802
52929
  var import_basex2 = __toESM(require_lib16());
52803
- var import_bytes10 = __toESM(require_lib2());
52930
+ var import_bytes11 = __toESM(require_lib2());
52804
52931
  var import_hash5 = __toESM(require_lib12());
52805
52932
  var import_hdnode2 = __toESM(require_lib20());
52806
52933
  var import_json_wallets2 = __toESM(require_lib22());
52807
- var import_keccak2562 = __toESM(require_lib5());
52934
+ var import_keccak2563 = __toESM(require_lib5());
52808
52935
  var import_sha22 = __toESM(require_lib17());
52809
52936
  var import_solidity = __toESM(require_lib24());
52810
52937
  var import_random3 = __toESM(require_lib21());
@@ -52819,10 +52946,10 @@ var import_sha23 = __toESM(require_lib17());
52819
52946
  var import_strings5 = __toESM(require_lib9());
52820
52947
 
52821
52948
  // node_modules/ethers/lib.esm/_version.js
52822
- var version12 = "ethers/5.7.2";
52949
+ var version13 = "ethers/5.7.2";
52823
52950
 
52824
52951
  // node_modules/ethers/lib.esm/ethers.js
52825
- var logger24 = new Logger(version12);
52952
+ var logger25 = new Logger(version13);
52826
52953
 
52827
52954
  // node_modules/ethers/lib.esm/index.js
52828
52955
  try {
@@ -53887,8 +54014,8 @@ class MultisendBuilder {
53887
54014
  data
53888
54015
  });
53889
54016
  }
53890
- static new(chainId, version13 = "v1_4_1") {
53891
- return new MultisendBuilder(getAddressOrThrow(chainId, `gnosisSafe.${version13}.multisend`));
54017
+ static new(chainId, version14 = "v1_4_1") {
54018
+ return new MultisendBuilder(getAddressOrThrow(chainId, `gnosisSafe.${version14}.multisend`));
53892
54019
  }
53893
54020
  }
53894
54021
  // src/integrations/gnosis/safe.L2.abi.ts
@@ -58128,7 +58255,6 @@ function invariant(condition, message) {
58128
58255
  var import_decimal = __toESM(require_decimal());
58129
58256
  var import_big = __toESM(require_big());
58130
58257
  var import_toformat = __toESM(require_toFormat());
58131
- var import_address5 = __toESM(require_lib7());
58132
58258
  function _defineProperties(target, props) {
58133
58259
  for (var i2 = 0;i2 < props.length; i2++) {
58134
58260
  var descriptor = props[i2];
@@ -58688,7 +58814,7 @@ var NativeCurrency = /* @__PURE__ */ function(_BaseCurrency) {
58688
58814
  }(BaseCurrency);
58689
58815
  function validateAndParseAddress(address) {
58690
58816
  try {
58691
- return import_address5.getAddress(address);
58817
+ return getAddress(address);
58692
58818
  } catch (error) {
58693
58819
  throw new Error(address + " is not a valid address.");
58694
58820
  }
@@ -58765,13 +58891,13 @@ var Ether = /* @__PURE__ */ function(_NativeCurrency) {
58765
58891
  return Ether2;
58766
58892
  }(NativeCurrency);
58767
58893
  Ether._etherCache = {};
58768
- var MAX_SAFE_INTEGER = /* @__PURE__ */ import_jsbi.default.BigInt(Number.MAX_SAFE_INTEGER);
58894
+ var MAX_SAFE_INTEGER2 = /* @__PURE__ */ import_jsbi.default.BigInt(Number.MAX_SAFE_INTEGER);
58769
58895
  var ZERO = /* @__PURE__ */ import_jsbi.default.BigInt(0);
58770
58896
  var ONE2 = /* @__PURE__ */ import_jsbi.default.BigInt(1);
58771
58897
  var TWO = /* @__PURE__ */ import_jsbi.default.BigInt(2);
58772
58898
  function sqrt(value) {
58773
58899
  !import_jsbi.default.greaterThanOrEqual(value, ZERO) && invariant(false, "NEGATIVE");
58774
- if (import_jsbi.default.lessThan(value, MAX_SAFE_INTEGER)) {
58900
+ if (import_jsbi.default.lessThan(value, MAX_SAFE_INTEGER2)) {
58775
58901
  return import_jsbi.default.BigInt(Math.floor(Math.sqrt(import_jsbi.default.toNumber(value))));
58776
58902
  }
58777
58903
  var z;
@@ -58788,7 +58914,6 @@ function sqrt(value) {
58788
58914
  // node_modules/@uniswap/v3-sdk/dist/v3-sdk.esm.js
58789
58915
  var import_jsbi2 = __toESM(require_jsbi_umd());
58790
58916
  var import_abi3 = __toESM(require_lib13());
58791
- var import_address6 = __toESM(require_lib7());
58792
58917
  var import_solidity2 = __toESM(require_lib24());
58793
58918
  // node_modules/@uniswap/v3-periphery/artifacts/contracts/interfaces/IMulticall.sol/IMulticall.json
58794
58919
  var IMulticall_default = {
@@ -62724,7 +62849,7 @@ var Q192 = /* @__PURE__ */ import_jsbi2.default.exponentiate(Q96, /* @__PURE__ *
62724
62849
  function computePoolAddress(_ref) {
62725
62850
  var { factoryAddress, tokenA, tokenB, fee, initCodeHashManualOverride } = _ref;
62726
62851
  var _ref2 = tokenA.sortsBefore(tokenB) ? [tokenA, tokenB] : [tokenB, tokenA], token0 = _ref2[0], token1 = _ref2[1];
62727
- return import_address6.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);
62852
+ 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);
62728
62853
  }
62729
62854
  var LiquidityMath = /* @__PURE__ */ function() {
62730
62855
  function LiquidityMath2() {}
@@ -64097,9 +64222,8 @@ var import_jsbi3 = __toESM(require_jsbi_umd());
64097
64222
  var import_decimal2 = __toESM(require_decimal());
64098
64223
  var import_big2 = __toESM(require_big());
64099
64224
  var import_toformat2 = __toESM(require_toFormat());
64100
- var import_address7 = __toESM(require_lib7());
64101
- var import_bytes11 = __toESM(require_lib2());
64102
- var import_keccak2563 = __toESM(require_lib5());
64225
+ var import_bytes12 = __toESM(require_lib2());
64226
+ var import_keccak2564 = __toESM(require_lib5());
64103
64227
  var import_strings6 = __toESM(require_lib9());
64104
64228
  function _defineProperties3(e, r) {
64105
64229
  for (var t = 0;t < r.length; t++) {
@@ -64804,7 +64928,7 @@ var NativeCurrency2 = /* @__PURE__ */ function(_BaseCurrency) {
64804
64928
  }(BaseCurrency3);
64805
64929
  function validateAndParseAddress2(address) {
64806
64930
  try {
64807
- return import_address7.getAddress(address);
64931
+ return getAddress(address);
64808
64932
  } catch (error) {
64809
64933
  throw new Error(address + " is not a valid address.");
64810
64934
  }
@@ -64908,18 +65032,18 @@ function computeZksyncCreate2Address(sender, bytecodeHash, salt, input) {
64908
65032
  if (input === undefined) {
64909
65033
  input = "0x";
64910
65034
  }
64911
- var prefix2 = import_keccak2563.keccak256(import_strings6.toUtf8Bytes("zksyncCreate2"));
64912
- var inputHash = import_keccak2563.keccak256(input);
64913
- var addressBytes = import_keccak2563.keccak256(import_bytes11.concat([prefix2, import_bytes11.hexZeroPad(sender, 32), salt, bytecodeHash, inputHash])).slice(26);
64914
- return import_address7.getAddress(addressBytes);
65035
+ var prefix2 = import_keccak2564.keccak256(import_strings6.toUtf8Bytes("zksyncCreate2"));
65036
+ var inputHash = import_keccak2564.keccak256(input);
65037
+ var addressBytes = import_keccak2564.keccak256(import_bytes12.concat([prefix2, import_bytes12.hexZeroPad(sender, 32), salt, bytecodeHash, inputHash])).slice(26);
65038
+ return getAddress(addressBytes);
64915
65039
  }
64916
- var MAX_SAFE_INTEGER2 = /* @__PURE__ */ import_jsbi3.default.BigInt(Number.MAX_SAFE_INTEGER);
65040
+ var MAX_SAFE_INTEGER3 = /* @__PURE__ */ import_jsbi3.default.BigInt(Number.MAX_SAFE_INTEGER);
64917
65041
  var ZERO3 = /* @__PURE__ */ import_jsbi3.default.BigInt(0);
64918
65042
  var ONE4 = /* @__PURE__ */ import_jsbi3.default.BigInt(1);
64919
65043
  var TWO3 = /* @__PURE__ */ import_jsbi3.default.BigInt(2);
64920
65044
  function sqrt2(value) {
64921
65045
  !import_jsbi3.default.greaterThanOrEqual(value, ZERO3) && invariant(false, "NEGATIVE");
64922
- if (import_jsbi3.default.lessThan(value, MAX_SAFE_INTEGER2)) {
65046
+ if (import_jsbi3.default.lessThan(value, MAX_SAFE_INTEGER3)) {
64923
65047
  return import_jsbi3.default.BigInt(Math.floor(Math.sqrt(import_jsbi3.default.toNumber(value))));
64924
65048
  }
64925
65049
  var z;
@@ -64936,7 +65060,6 @@ function sqrt2(value) {
64936
65060
  // node_modules/@uniswap/v4-sdk/node_modules/@uniswap/v3-sdk/dist/v3-sdk.esm.js
64937
65061
  var import_jsbi4 = __toESM(require_jsbi_umd());
64938
65062
  var import_abi4 = __toESM(require_lib13());
64939
- var import_address8 = __toESM(require_lib7());
64940
65063
  var import_solidity3 = __toESM(require_lib24());
64941
65064
  function _arrayLikeToArray2(r, a) {
64942
65065
  (a == null || a > r.length) && (a = r.length);
@@ -65388,7 +65511,7 @@ function computePoolAddress2(_ref) {
65388
65511
  case ChainId2.ZKSYNC:
65389
65512
  return computeZksyncCreate2Address(factoryAddress, initCodeHash, salt);
65390
65513
  default:
65391
- return import_address8.getCreate2Address(factoryAddress, salt, initCodeHash);
65514
+ return getCreate2Address(factoryAddress, salt, initCodeHash);
65392
65515
  }
65393
65516
  }
65394
65517
  var FullMath2 = /* @__PURE__ */ function() {
@@ -69240,7 +69363,7 @@ var SwapExactInputSingleCalldataV4 = ({
69240
69363
  hookData = "0x",
69241
69364
  recipient
69242
69365
  }) => {
69243
- const getAddress7 = (currency) => {
69366
+ const getAddress2 = (currency) => {
69244
69367
  return currency.address;
69245
69368
  };
69246
69369
  const commands = exports_ethers.utils.solidityPack(["uint8"], [16 /* V4_SWAP */]);
@@ -69248,15 +69371,15 @@ var SwapExactInputSingleCalldataV4 = ({
69248
69371
  const params = [
69249
69372
  exports_ethers.utils.defaultAbiCoder.encode(["tuple(tuple(address,address,uint24,int24,address),bool,uint128,uint128,bytes)"], [
69250
69373
  [
69251
- [getAddress7(pool.currency0), getAddress7(pool.currency1), pool.fee, pool.tickSpacing, pool.hooks],
69374
+ [getAddress2(pool.currency0), getAddress2(pool.currency1), pool.fee, pool.tickSpacing, pool.hooks],
69252
69375
  zeroForOne,
69253
69376
  amountIn,
69254
69377
  amountOutMinimum,
69255
69378
  hookData
69256
69379
  ]
69257
69380
  ]),
69258
- exports_ethers.utils.defaultAbiCoder.encode(["address", "uint256"], [zeroForOne ? getAddress7(pool.currency0) : getAddress7(pool.currency1), amountIn]),
69259
- exports_ethers.utils.defaultAbiCoder.encode(["address", "uint256"], [zeroForOne ? getAddress7(pool.currency1) : getAddress7(pool.currency0), amountOutMinimum])
69381
+ exports_ethers.utils.defaultAbiCoder.encode(["address", "uint256"], [zeroForOne ? getAddress2(pool.currency0) : getAddress2(pool.currency1), amountIn]),
69382
+ exports_ethers.utils.defaultAbiCoder.encode(["address", "uint256"], [zeroForOne ? getAddress2(pool.currency1) : getAddress2(pool.currency0), amountOutMinimum])
69260
69383
  ];
69261
69384
  const actionsList = [];
69262
69385
  actionsList.push(Actions2.SWAP_EXACT_IN_SINGLE);
@@ -76648,45 +76771,51 @@ var createVaultProxyTrx = ({
76648
76771
  createVaultProxyParams,
76649
76772
  factory
76650
76773
  }) => {
76651
- return {
76774
+ return createCall({
76652
76775
  operation: 0,
76653
76776
  to: factory,
76654
76777
  value: 0n,
76655
76778
  data: CreateVaultProxyCalldata(createVaultProxyParams)
76656
- };
76779
+ });
76657
76780
  };
76658
76781
  var UpdateTotalAssetsLifespanCalldata = ({ ttl }) => {
76659
76782
  return vaultInterface.encodeFunctionData("updateTotalAssetsLifespan", [ttl]);
76660
76783
  };
76661
76784
  var updateTotalAssetsLifespanTrx = ({ vault, ttl }) => {
76662
- return {
76785
+ return createCall({
76663
76786
  operation: 0,
76664
76787
  to: vault,
76665
76788
  value: 0n,
76666
76789
  data: UpdateTotalAssetsLifespanCalldata({ ttl })
76667
- };
76790
+ });
76668
76791
  };
76669
76792
  var AddToVaultWhitelistCalldata = ({ accounts }) => {
76670
76793
  return vaultInterface.encodeFunctionData("addToWhitelist", [accounts]);
76671
76794
  };
76672
- var addToVaultWhitelistTrx = ({ vault, accounts }) => {
76673
- return {
76795
+ var addToVaultWhitelistTrx = ({
76796
+ vault,
76797
+ accounts
76798
+ }) => {
76799
+ return createCall({
76674
76800
  operation: 0,
76675
76801
  to: vault,
76676
76802
  value: 0n,
76677
76803
  data: AddToVaultWhitelistCalldata({ accounts })
76678
- };
76804
+ });
76679
76805
  };
76680
76806
  var RevokeFromVaultWhitelistCalldata = ({ accounts }) => {
76681
76807
  return vaultInterface.encodeFunctionData("revokeFromWhitelist", [accounts]);
76682
76808
  };
76683
- var revokeFromVaultWhitelistTrx = ({ vault, accounts }) => {
76684
- return {
76809
+ var revokeFromVaultWhitelistTrx = ({
76810
+ vault,
76811
+ accounts
76812
+ }) => {
76813
+ return createCall({
76685
76814
  operation: 0,
76686
76815
  to: vault,
76687
76816
  value: 0n,
76688
76817
  data: RevokeFromVaultWhitelistCalldata({ accounts })
76689
- };
76818
+ });
76690
76819
  };
76691
76820
  var DEFAULT_BEACON_PROXY_BYTECODE = "0x60a060405260405161057738038061057783398101604081905261002291610354565b61002c828261003e565b506001600160a01b0316608052610445565b610047826100fb565b6040516001600160a01b038316907f1cf3b03a6cf19fa2baba4df148e9dcabedea7f8a5c07840e207e5c089be95d3e905f90a28051156100ef576100ea826001600160a01b0316635c60da1b6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156100c0573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906100e49190610416565b82610209565b505050565b6100f761027c565b5050565b806001600160a01b03163b5f0361013557604051631933b43b60e21b81526001600160a01b03821660048201526024015b60405180910390fd5b807fa3f0ad74e5423aebfd80d3ef4346578335a9a72aeaee59ff6cb3582b35133d5080546001600160a01b0319166001600160a01b0392831617905560408051635c60da1b60e01b815290515f92841691635c60da1b9160048083019260209291908290030181865afa1580156101ae573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906101d29190610416565b9050806001600160a01b03163b5f036100f757604051634c9c8ce360e01b81526001600160a01b038216600482015260240161012c565b60605f80846001600160a01b031684604051610225919061042f565b5f60405180830381855af49150503d805f811461025d576040519150601f19603f3d011682016040523d82523d5f602084013e610262565b606091505b50909250905061027385838361029d565b95945050505050565b341561029b5760405163b398979f60e01b815260040160405180910390fd5b565b6060826102b2576102ad826102fc565b6102f5565b81511580156102c957506001600160a01b0384163b155b156102f257604051639996b31560e01b81526001600160a01b038516600482015260240161012c565b50805b9392505050565b80511561030c5780518082602001fd5b604051630a12f52160e11b815260040160405180910390fd5b80516001600160a01b038116811461033b575f80fd5b919050565b634e487b7160e01b5f52604160045260245ffd5b5f8060408385031215610365575f80fd5b61036e83610325565b60208401519092506001600160401b03811115610389575f80fd5b8301601f81018513610399575f80fd5b80516001600160401b038111156103b2576103b2610340565b604051601f8201601f19908116603f011681016001600160401b03811182821017156103e0576103e0610340565b6040528181528282016020018710156103f7575f80fd5b8160208401602083015e5f602083830101528093505050509250929050565b5f60208284031215610426575f80fd5b6102f582610325565b5f82518060208501845e5f920191825250919050565b60805161011b61045c5f395f601d015261011b5ff3fe6080604052600a600c565b005b60186014601a565b609d565b565b5f7f00000000000000000000000000000000000000000000000000000000000000006001600160a01b0316635c60da1b6040518163ffffffff1660e01b8152600401602060405180830381865afa1580156076573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906098919060ba565b905090565b365f80375f80365f845af43d5f803e80801560b6573d5ff35b3d5ffd5b5f6020828403121560c9575f80fd5b81516001600160a01b038116811460de575f80fd5b939250505056fea2646970667358221220f3f8bde1ff2300e7d2f385e994cbd18d6090f0728ec3966312315c91effc44bd64736f6c634300081a0033";
76692
76821
  var DEFAULT_BEACON_PROXY_CONSTRUCTOR_TYPES = ["address", "bytes"];
@@ -79188,6 +79317,9 @@ var transferERC20Trx = ({ token, recipient, amount }) => {
79188
79317
  });
79189
79318
  };
79190
79319
  var ApproveCalldata = ({ spender, amount }) => {
79320
+ if (spender === zeroAddress) {
79321
+ throw new Error("Cannot approve token: ZERO_ADDRESS");
79322
+ }
79191
79323
  return erc20Interface.encodeFunctionData("approve", [spender, amount]);
79192
79324
  };
79193
79325
  var approveERC20Trx = ({ token, spender, amount }) => {
@@ -79211,6 +79343,9 @@ var TransferFromCalldata = ({
79211
79343
  recipient,
79212
79344
  amount
79213
79345
  }) => {
79346
+ if (spender === zeroAddress) {
79347
+ throw new Error("Cannot transfer from token: ZERO_ADDRESS");
79348
+ }
79214
79349
  return erc20Interface.encodeFunctionData("transferFrom", [spender, recipient, amount]);
79215
79350
  };
79216
79351
  var transferFromERC20Trx = ({
@@ -79320,4 +79455,4 @@ var simulateOrThrow = async (env2) => {
79320
79455
  };
79321
79456
  };
79322
79457
 
79323
- //# debugId=D56578B63BE947F664756E2164756E21
79458
+ //# debugId=6FC8C4ECF3EA887064756E2164756E21