@gearbox-protocol/deploy-tools 5.67.1 → 5.68.1

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 +53 -47
  2. package/package.json +4 -4
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.44.2";
4483
+ version2 = "2.44.4";
4484
4484
  }
4485
4485
  });
4486
4486
 
@@ -85552,34 +85552,25 @@ var require_transport = __commonJS({
85552
85552
  onExit.unregister(stream);
85553
85553
  });
85554
85554
  }
85555
- function processPreloadFlags() {
85555
+ function hasPreloadFlags() {
85556
85556
  const execArgv = process.execArgv;
85557
- let hasPreload = false;
85558
- const filtered = [];
85559
85557
  for (let i = 0; i < execArgv.length; i++) {
85560
85558
  const arg = execArgv[i];
85561
85559
  if (arg === "--import" || arg === "--require" || arg === "-r") {
85562
- hasPreload = true;
85563
- i++;
85564
- continue;
85560
+ return true;
85565
85561
  }
85566
85562
  if (arg.startsWith("--import=") || arg.startsWith("--require=") || arg.startsWith("-r=")) {
85567
- hasPreload = true;
85568
- continue;
85563
+ return true;
85569
85564
  }
85570
- filtered.push(arg);
85571
85565
  }
85572
- return { hasPreload, filtered };
85566
+ return false;
85573
85567
  }
85574
85568
  function buildStream(filename, workerData, workerOpts, sync) {
85575
- if (!workerOpts.execArgv) {
85576
- const { hasPreload, filtered } = processPreloadFlags();
85577
- if (hasPreload && __require.main === void 0) {
85578
- workerOpts = {
85579
- ...workerOpts,
85580
- execArgv: filtered
85581
- };
85582
- }
85569
+ if (!workerOpts.execArgv && hasPreloadFlags() && __require.main === void 0) {
85570
+ workerOpts = {
85571
+ ...workerOpts,
85572
+ execArgv: []
85573
+ };
85583
85574
  }
85584
85575
  const stream = new ThreadStream({
85585
85576
  filename,
@@ -86242,7 +86233,7 @@ var require_levels = __commonJS({
86242
86233
  var require_meta = __commonJS({
86243
86234
  "../../node_modules/pino/lib/meta.js"(exports2, module2) {
86244
86235
  "use strict";
86245
- module2.exports = { version: "10.2.0" };
86236
+ module2.exports = { version: "10.2.1" };
86246
86237
  }
86247
86238
  });
86248
86239
 
@@ -227682,31 +227673,44 @@ function decodeEventLog(parameters) {
227682
227673
  const isUnnamed = inputs?.some((x) => !("name" in x && x.name));
227683
227674
  const args = isUnnamed ? [] : {};
227684
227675
  const indexedInputs = inputs.map((x, i) => [x, i]).filter(([x]) => "indexed" in x && x.indexed);
227676
+ const missingIndexedInputs = [];
227685
227677
  for (let i = 0; i < indexedInputs.length; i++) {
227686
227678
  const [param, argIndex] = indexedInputs[i];
227687
227679
  const topic = argTopics[i];
227688
- if (!topic)
227689
- throw new DecodeLogTopicsMismatch({
227690
- abiItem,
227691
- param
227692
- });
227680
+ if (!topic) {
227681
+ if (strict)
227682
+ throw new DecodeLogTopicsMismatch({
227683
+ abiItem,
227684
+ param
227685
+ });
227686
+ missingIndexedInputs.push([param, argIndex]);
227687
+ continue;
227688
+ }
227693
227689
  args[isUnnamed ? argIndex : param.name || argIndex] = decodeTopic({
227694
227690
  param,
227695
227691
  value: topic
227696
227692
  });
227697
227693
  }
227698
227694
  const nonIndexedInputs = inputs.filter((x) => !("indexed" in x && x.indexed));
227699
- if (nonIndexedInputs.length > 0) {
227695
+ const inputsToDecode = strict ? nonIndexedInputs : [...missingIndexedInputs.map(([param]) => param), ...nonIndexedInputs];
227696
+ if (inputsToDecode.length > 0) {
227700
227697
  if (data && data !== "0x") {
227701
227698
  try {
227702
- const decodedData = decodeAbiParameters(nonIndexedInputs, data);
227699
+ const decodedData = decodeAbiParameters(inputsToDecode, data);
227703
227700
  if (decodedData) {
227704
- if (isUnnamed)
227701
+ let dataIndex = 0;
227702
+ if (!strict) {
227703
+ for (const [param, argIndex] of missingIndexedInputs) {
227704
+ args[isUnnamed ? argIndex : param.name || argIndex] = decodedData[dataIndex++];
227705
+ }
227706
+ }
227707
+ if (isUnnamed) {
227705
227708
  for (let i = 0; i < inputs.length; i++)
227706
- args[i] = args[i] ?? decodedData.shift();
227707
- else
227709
+ if (args[i] === void 0 && dataIndex < decodedData.length)
227710
+ args[i] = decodedData[dataIndex++];
227711
+ } else
227708
227712
  for (let i = 0; i < nonIndexedInputs.length; i++)
227709
- args[nonIndexedInputs[i].name] = decodedData[i];
227713
+ args[nonIndexedInputs[i].name] = decodedData[dataIndex++];
227710
227714
  }
227711
227715
  } catch (err) {
227712
227716
  if (strict) {
@@ -227714,7 +227718,7 @@ function decodeEventLog(parameters) {
227714
227718
  throw new DecodeLogDataMismatch({
227715
227719
  abiItem,
227716
227720
  data,
227717
- params: nonIndexedInputs,
227721
+ params: inputsToDecode,
227718
227722
  size: size(data)
227719
227723
  });
227720
227724
  throw err;
@@ -227724,7 +227728,7 @@ function decodeEventLog(parameters) {
227724
227728
  throw new DecodeLogDataMismatch({
227725
227729
  abiItem,
227726
227730
  data: "0x",
227727
- params: nonIndexedInputs,
227731
+ params: inputsToDecode,
227728
227732
  size: 0
227729
227733
  });
227730
227734
  }
@@ -228397,7 +228401,7 @@ async function sendRawTransaction(client, { serializedTransaction }) {
228397
228401
  // ../../node_modules/viem/_esm/actions/wallet/sendTransaction.js
228398
228402
  var supportsWalletNamespace = new LruMap(128);
228399
228403
  async function sendTransaction(client, parameters) {
228400
- const { account: account_ = client.account, chain = client.chain, accessList, authorizationList, blobs, data, gas, gasPrice, maxFeePerBlobGas, maxFeePerGas, maxPriorityFeePerGas, nonce, type: type2, value, ...rest } = parameters;
228404
+ const { account: account_ = client.account, assertChainId = true, chain = client.chain, accessList, authorizationList, blobs, data, gas, gasPrice, maxFeePerBlobGas, maxFeePerGas, maxPriorityFeePerGas, nonce, type: type2, value, ...rest } = parameters;
228401
228405
  if (typeof account_ === "undefined")
228402
228406
  throw new AccountNotFoundError({
228403
228407
  docsPath: "/docs/actions/wallet/sendTransaction"
@@ -228422,10 +228426,11 @@ async function sendTransaction(client, parameters) {
228422
228426
  let chainId;
228423
228427
  if (chain !== null) {
228424
228428
  chainId = await getAction(client, getChainId, "getChainId")({});
228425
- assertCurrentChain({
228426
- currentChainId: chainId,
228427
- chain
228428
- });
228429
+ if (assertChainId)
228430
+ assertCurrentChain({
228431
+ currentChainId: chainId,
228432
+ chain
228433
+ });
228429
228434
  }
228430
228435
  const chainFormat = client.chain?.formatters?.transactionRequest?.format;
228431
228436
  const format2 = chainFormat || formatTransactionRequest;
@@ -235082,7 +235087,7 @@ init_lru();
235082
235087
  init_assertRequest();
235083
235088
  var supportsWalletNamespace2 = new LruMap(128);
235084
235089
  async function sendTransactionSync(client, parameters) {
235085
- const { account: account_ = client.account, chain = client.chain, accessList, authorizationList, blobs, data, gas, gasPrice, maxFeePerBlobGas, maxFeePerGas, maxPriorityFeePerGas, nonce, pollingInterval, throwOnReceiptRevert, type: type2, value, ...rest } = parameters;
235090
+ const { account: account_ = client.account, assertChainId = true, chain = client.chain, accessList, authorizationList, blobs, data, gas, gasPrice, maxFeePerBlobGas, maxFeePerGas, maxPriorityFeePerGas, nonce, pollingInterval, throwOnReceiptRevert, type: type2, value, ...rest } = parameters;
235086
235091
  const timeout = parameters.timeout ?? Math.max((chain?.blockTime ?? 0) * 3, 5e3);
235087
235092
  if (typeof account_ === "undefined")
235088
235093
  throw new AccountNotFoundError({
@@ -235108,10 +235113,11 @@ async function sendTransactionSync(client, parameters) {
235108
235113
  let chainId;
235109
235114
  if (chain !== null) {
235110
235115
  chainId = await getAction(client, getChainId, "getChainId")({});
235111
- assertCurrentChain({
235112
- currentChainId: chainId,
235113
- chain
235114
- });
235116
+ if (assertChainId)
235117
+ assertCurrentChain({
235118
+ currentChainId: chainId,
235119
+ chain
235120
+ });
235115
235121
  }
235116
235122
  const chainFormat = client.chain?.formatters?.transactionRequest?.format;
235117
235123
  const format2 = chainFormat || formatTransactionRequest;
@@ -315463,7 +315469,7 @@ function getRenderer(opts) {
315463
315469
  var package_default = {
315464
315470
  name: "@gearbox-protocol/deploy-tools",
315465
315471
  description: "Gearbox deploy tools",
315466
- version: "5.67.1",
315472
+ version: "5.68.1",
315467
315473
  homepage: "https://gearbox.fi",
315468
315474
  keywords: [
315469
315475
  "gearbox"
@@ -315497,7 +315503,7 @@ var package_default = {
315497
315503
  "@actions/core": "^2.0.2",
315498
315504
  "@chialab/esbuild-plugin-commonjs": "^0.19.0",
315499
315505
  "@commander-js/extra-typings": "^14.0.0",
315500
- "@ethereum-sourcify/bytecode-utils": "^1.3.18",
315506
+ "@ethereum-sourcify/bytecode-utils": "^1.3.20",
315501
315507
  "@ethereum-sourcify/lib-sourcify": "^1.12.1",
315502
315508
  "@gearbox-protocol/cli-utils": "0.0.0",
315503
315509
  "@gearbox-protocol/deploy-tools-node": "0.0.0",
@@ -315507,7 +315513,7 @@ var package_default = {
315507
315513
  "@gearbox-protocol/sdk-gov": "2.34.0-next.114",
315508
315514
  "@types/lodash-es": "^4.17.12",
315509
315515
  "@types/node": "^25.0.9",
315510
- "@types/react": "^19.2.8",
315516
+ "@types/react": "^19.2.9",
315511
315517
  "@types/react-dom": "^19.2.3",
315512
315518
  abitype: "^1.2.3",
315513
315519
  chalk: "^5.6.2",
@@ -315516,7 +315522,7 @@ var package_default = {
315516
315522
  esbuild: "^0.27.2",
315517
315523
  "lodash-es": "^4.17.22",
315518
315524
  "p-retry": "^7.1.1",
315519
- pino: "^10.2.0",
315525
+ pino: "^10.2.1",
315520
315526
  "pino-pretty": "^13.1.3",
315521
315527
  queue: "^7.0.0",
315522
315528
  react: "^19.2.3",
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.67.1",
4
+ "version": "5.68.1",
5
5
  "homepage": "https://gearbox.fi",
6
6
  "keywords": [
7
7
  "gearbox"
@@ -35,7 +35,7 @@
35
35
  "@actions/core": "^2.0.2",
36
36
  "@chialab/esbuild-plugin-commonjs": "^0.19.0",
37
37
  "@commander-js/extra-typings": "^14.0.0",
38
- "@ethereum-sourcify/bytecode-utils": "^1.3.18",
38
+ "@ethereum-sourcify/bytecode-utils": "^1.3.20",
39
39
  "@ethereum-sourcify/lib-sourcify": "^1.12.1",
40
40
  "@gearbox-protocol/cli-utils": "0.0.0",
41
41
  "@gearbox-protocol/deploy-tools-node": "0.0.0",
@@ -45,7 +45,7 @@
45
45
  "@gearbox-protocol/sdk-gov": "2.34.0-next.114",
46
46
  "@types/lodash-es": "^4.17.12",
47
47
  "@types/node": "^25.0.9",
48
- "@types/react": "^19.2.8",
48
+ "@types/react": "^19.2.9",
49
49
  "@types/react-dom": "^19.2.3",
50
50
  "abitype": "^1.2.3",
51
51
  "chalk": "^5.6.2",
@@ -54,7 +54,7 @@
54
54
  "esbuild": "^0.27.2",
55
55
  "lodash-es": "^4.17.22",
56
56
  "p-retry": "^7.1.1",
57
- "pino": "^10.2.0",
57
+ "pino": "^10.2.1",
58
58
  "pino-pretty": "^13.1.3",
59
59
  "queue": "^7.0.0",
60
60
  "react": "^19.2.3",