@gearbox-protocol/deploy-tools 5.60.4 → 5.60.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.mjs +75 -63
  2. package/package.json +3 -3
package/dist/index.mjs CHANGED
@@ -4480,7 +4480,7 @@ var init_size = __esm({
4480
4480
  var version2;
4481
4481
  var init_version2 = __esm({
4482
4482
  "../../node_modules/viem/_esm/errors/version.js"() {
4483
- version2 = "2.40.2";
4483
+ version2 = "2.40.3";
4484
4484
  }
4485
4485
  });
4486
4486
 
@@ -226750,6 +226750,8 @@ async function fillTransaction(client, parameters) {
226750
226750
  return nonce_;
226751
226751
  if (!nonceManager)
226752
226752
  return nonce_;
226753
+ if (typeof nonce_ !== "undefined")
226754
+ return nonce_;
226753
226755
  const account_ = parseAccount(account);
226754
226756
  const chainId = chain ? chain.id : await getAction(client, getChainId, "getChainId")({});
226755
226757
  return await nonceManager.consume({
@@ -226853,39 +226855,67 @@ var defaultParameters = [
226853
226855
  ];
226854
226856
  var eip1559NetworkCache = /* @__PURE__ */ new Map();
226855
226857
  var supportsFillTransaction = /* @__PURE__ */ new LruMap(128);
226856
- async function prepareTransactionRequest(client, args_) {
226858
+ async function prepareTransactionRequest(client, args) {
226859
+ const { account: account_ = client.account, chain, nonceManager, parameters = defaultParameters } = args;
226860
+ let chainId;
226861
+ async function getChainId2() {
226862
+ if (chainId)
226863
+ return chainId;
226864
+ if (chain)
226865
+ return chain.id;
226866
+ if (typeof args.chainId !== "undefined")
226867
+ return args.chainId;
226868
+ const chainId_ = await getAction(client, getChainId, "getChainId")({});
226869
+ chainId = chainId_;
226870
+ return chainId;
226871
+ }
226872
+ const account = account_ ? parseAccount(account_) : account_;
226873
+ let nonce = args.nonce;
226874
+ if (parameters.includes("nonce") && typeof nonce === "undefined" && account && nonceManager) {
226875
+ const chainId2 = await getChainId2();
226876
+ nonce = await nonceManager.consume({
226877
+ address: account.address,
226878
+ chainId: chainId2,
226879
+ client
226880
+ });
226881
+ }
226857
226882
  const attemptFill = (
226858
226883
  // Do not attempt if `eth_fillTransaction` is not supported.
226859
226884
  supportsFillTransaction.get(client.uid) !== false && // Should attempt `eth_fillTransaction` if "fees" or "gas" are required to be populated,
226860
226885
  // otherwise, can just use the other individual calls.
226861
- ["fees", "gas"].some((parameter) => args_.parameters?.includes(parameter))
226886
+ ["fees", "gas"].some((parameter) => args.parameters?.includes(parameter))
226862
226887
  );
226863
- const fillResult = attemptFill ? await getAction(client, fillTransaction, "fillTransaction")(args_).then((result) => {
226888
+ const fillResult = attemptFill ? await getAction(client, fillTransaction, "fillTransaction")({ ...args, nonce }).then((result) => {
226864
226889
  const { chainId: chainId2, from: from14, gas: gas2, gasPrice, nonce: nonce2, maxFeePerBlobGas, maxFeePerGas, maxPriorityFeePerGas, type: type2 } = result.transaction;
226865
226890
  supportsFillTransaction.set(client.uid, true);
226866
226891
  return {
226867
- ...args_,
226868
- chainId: chainId2,
226869
- from: from14,
226870
- gas: gas2,
226871
- gasPrice,
226872
- nonce: nonce2,
226873
- maxFeePerBlobGas,
226874
- maxFeePerGas,
226875
- maxPriorityFeePerGas,
226876
- type: type2
226892
+ ...args,
226893
+ ...chainId2 ? { chainId: chainId2 } : {},
226894
+ ...from14 ? { from: from14 } : {},
226895
+ ...gas2 ? { gas: gas2 } : {},
226896
+ ...gasPrice ? { gasPrice } : {},
226897
+ ...nonce2 ? { nonce: nonce2 } : {},
226898
+ ...maxFeePerBlobGas ? { maxFeePerBlobGas } : {},
226899
+ ...maxFeePerGas ? { maxFeePerGas } : {},
226900
+ ...maxPriorityFeePerGas ? { maxPriorityFeePerGas } : {},
226901
+ ...type2 ? { type: type2 } : {}
226877
226902
  };
226878
226903
  }).catch((e) => {
226879
226904
  const error46 = e;
226880
- if (error46.cause.name === "MethodNotFoundRpcError" || error46.cause.name === "MethodNotSupportedRpcError")
226905
+ const unsupported = error46.walk((e2) => {
226906
+ const error47 = e2;
226907
+ return error47.name === "MethodNotFoundRpcError" || error47.name === "MethodNotSupportedRpcError";
226908
+ });
226909
+ if (unsupported)
226881
226910
  supportsFillTransaction.set(client.uid, false);
226882
- return args_;
226883
- }) : args_;
226884
- const { account: account_ = client.account, blobs, chain, gas, kzg, nonce, nonceManager, parameters = defaultParameters, type } = fillResult;
226885
- const account = account_ ? parseAccount(account_) : account_;
226911
+ return args;
226912
+ }) : args;
226913
+ const { blobs, gas, kzg, type } = fillResult;
226914
+ nonce ??= fillResult.nonce;
226886
226915
  const request = {
226887
226916
  ...fillResult,
226888
- ...account ? { from: account?.address } : {}
226917
+ ...account ? { from: account?.address } : {},
226918
+ ...nonce ? { nonce } : {}
226889
226919
  };
226890
226920
  let block;
226891
226921
  async function getBlock2() {
@@ -226894,33 +226924,11 @@ async function prepareTransactionRequest(client, args_) {
226894
226924
  block = await getAction(client, getBlock, "getBlock")({ blockTag: "latest" });
226895
226925
  return block;
226896
226926
  }
226897
- let chainId;
226898
- async function getChainId2() {
226899
- if (chainId)
226900
- return chainId;
226901
- if (chain)
226902
- return chain.id;
226903
- if (typeof request.chainId !== "undefined")
226904
- return request.chainId;
226905
- const chainId_ = await getAction(client, getChainId, "getChainId")({});
226906
- chainId = chainId_;
226907
- return chainId;
226908
- }
226909
- if (parameters.includes("nonce") && typeof nonce === "undefined" && account) {
226910
- if (nonceManager) {
226911
- const chainId2 = await getChainId2();
226912
- request.nonce = await nonceManager.consume({
226913
- address: account.address,
226914
- chainId: chainId2,
226915
- client
226916
- });
226917
- } else {
226918
- request.nonce = await getAction(client, getTransactionCount, "getTransactionCount")({
226919
- address: account.address,
226920
- blockTag: "pending"
226921
- });
226922
- }
226923
- }
226927
+ if (parameters.includes("nonce") && typeof nonce === "undefined" && account && !nonceManager)
226928
+ request.nonce = await getAction(client, getTransactionCount, "getTransactionCount")({
226929
+ address: account.address,
226930
+ blockTag: "pending"
226931
+ });
226924
226932
  if ((parameters.includes("blobVersionedHashes") || parameters.includes("sidecars")) && blobs && kzg) {
226925
226933
  const commitments = blobsToCommitments({ blobs, kzg });
226926
226934
  if (parameters.includes("blobVersionedHashes")) {
@@ -267322,7 +267330,9 @@ var chains = {
267322
267330
  },
267323
267331
  blockTime: 200,
267324
267332
  network: "Somnia",
267325
- defaultMarketConfigurators: {},
267333
+ defaultMarketConfigurators: {
267334
+ "0x1ca8b92aa7233a9f8f7ba031ac45c878141adff0": "Invariant Group"
267335
+ },
267326
267336
  isPublic: false,
267327
267337
  wellKnownToken: {
267328
267338
  address: "0x67B302E35Aef5EEE8c32D934F5856869EF428330",
@@ -305970,18 +305980,20 @@ var GearboxAddressTree = class _GearboxAddressTree extends ProviderBase {
305970
305980
  if (entry.address === ADDRESS_0X0) {
305971
305981
  return;
305972
305982
  }
305973
- const etherscanEntry = await this.etherscan.verify(entry.address);
305974
- if (etherscanEntry.verified) {
305975
- const auditedFiles = [];
305976
- for (const contract of etherscanEntry.data) {
305977
- const audits2 = await this.#auditor.auditEtherscanVerified(contract);
305978
- auditedFiles.push(...audits2);
305979
- }
305980
- entry.verification = {
305981
- contract: etherscanEntry.data[0].ContractName,
305982
- match: "etherscan",
305983
- files: auditedFiles
305984
- };
305983
+ if (entry.contract !== "CREDIT_ACCOUNT") {
305984
+ const etherscanEntry = await this.etherscan.verify(entry.address);
305985
+ if (etherscanEntry.verified) {
305986
+ const auditedFiles = [];
305987
+ for (const contract of etherscanEntry.data) {
305988
+ const audits2 = await this.#auditor.auditEtherscanVerified(contract);
305989
+ auditedFiles.push(...audits2);
305990
+ }
305991
+ entry.verification = {
305992
+ contract: etherscanEntry.data[0].ContractName,
305993
+ match: "etherscan",
305994
+ files: auditedFiles
305995
+ };
305996
+ }
305985
305997
  }
305986
305998
  this.#visited.set(entry.address.toLowerCase(), entry);
305987
305999
  let cnt = 0;
@@ -311299,7 +311311,7 @@ function getRenderer(opts) {
311299
311311
  var package_default = {
311300
311312
  name: "@gearbox-protocol/deploy-tools",
311301
311313
  description: "Gearbox deploy tools",
311302
- version: "5.60.4",
311314
+ version: "5.60.6",
311303
311315
  homepage: "https://gearbox.fi",
311304
311316
  keywords: [
311305
311317
  "gearbox"
@@ -311339,7 +311351,7 @@ var package_default = {
311339
311351
  "@gearbox-protocol/deploy-tools-node": "0.0.0",
311340
311352
  "@gearbox-protocol/deploy-tools-shared": "0.0.0",
311341
311353
  "@gearbox-protocol/deploy-tools-types": "0.0.0",
311342
- "@gearbox-protocol/sdk": "11.6.6",
311354
+ "@gearbox-protocol/sdk": "11.7.2",
311343
311355
  "@gearbox-protocol/sdk-gov": "2.34.0-next.114",
311344
311356
  "@types/lodash-es": "^4.17.12",
311345
311357
  "@types/node": "^24.10.1",
@@ -311359,7 +311371,7 @@ var package_default = {
311359
311371
  "react-dom": "^19.2.0",
311360
311372
  table: "^6.9.0",
311361
311373
  tsx: "^4.20.6",
311362
- viem: "^2.40.2",
311374
+ viem: "^2.40.3",
311363
311375
  yaml: "^2.8.1",
311364
311376
  zod: "^4.1.13"
311365
311377
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@gearbox-protocol/deploy-tools",
3
3
  "description": "Gearbox deploy tools",
4
- "version": "5.60.4",
4
+ "version": "5.60.6",
5
5
  "homepage": "https://gearbox.fi",
6
6
  "keywords": [
7
7
  "gearbox"
@@ -41,7 +41,7 @@
41
41
  "@gearbox-protocol/deploy-tools-node": "0.0.0",
42
42
  "@gearbox-protocol/deploy-tools-shared": "0.0.0",
43
43
  "@gearbox-protocol/deploy-tools-types": "0.0.0",
44
- "@gearbox-protocol/sdk": "11.6.6",
44
+ "@gearbox-protocol/sdk": "11.7.2",
45
45
  "@gearbox-protocol/sdk-gov": "2.34.0-next.114",
46
46
  "@types/lodash-es": "^4.17.12",
47
47
  "@types/node": "^24.10.1",
@@ -61,7 +61,7 @@
61
61
  "react-dom": "^19.2.0",
62
62
  "table": "^6.9.0",
63
63
  "tsx": "^4.20.6",
64
- "viem": "^2.40.2",
64
+ "viem": "^2.40.3",
65
65
  "yaml": "^2.8.1",
66
66
  "zod": "^4.1.13"
67
67
  }