@gearbox-protocol/deploy-tools 5.67.0 → 5.68.0
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.mjs +66 -32
- package/package.json +7 -7
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.
|
|
4483
|
+
version2 = "2.44.4";
|
|
4484
4484
|
}
|
|
4485
4485
|
});
|
|
4486
4486
|
|
|
@@ -85552,7 +85552,26 @@ var require_transport = __commonJS({
|
|
|
85552
85552
|
onExit.unregister(stream);
|
|
85553
85553
|
});
|
|
85554
85554
|
}
|
|
85555
|
+
function hasPreloadFlags() {
|
|
85556
|
+
const execArgv = process.execArgv;
|
|
85557
|
+
for (let i = 0; i < execArgv.length; i++) {
|
|
85558
|
+
const arg = execArgv[i];
|
|
85559
|
+
if (arg === "--import" || arg === "--require" || arg === "-r") {
|
|
85560
|
+
return true;
|
|
85561
|
+
}
|
|
85562
|
+
if (arg.startsWith("--import=") || arg.startsWith("--require=") || arg.startsWith("-r=")) {
|
|
85563
|
+
return true;
|
|
85564
|
+
}
|
|
85565
|
+
}
|
|
85566
|
+
return false;
|
|
85567
|
+
}
|
|
85555
85568
|
function buildStream(filename, workerData, workerOpts, sync) {
|
|
85569
|
+
if (!workerOpts.execArgv && hasPreloadFlags() && __require.main === void 0) {
|
|
85570
|
+
workerOpts = {
|
|
85571
|
+
...workerOpts,
|
|
85572
|
+
execArgv: []
|
|
85573
|
+
};
|
|
85574
|
+
}
|
|
85556
85575
|
const stream = new ThreadStream({
|
|
85557
85576
|
filename,
|
|
85558
85577
|
workerData,
|
|
@@ -86214,7 +86233,7 @@ var require_levels = __commonJS({
|
|
|
86214
86233
|
var require_meta = __commonJS({
|
|
86215
86234
|
"../../node_modules/pino/lib/meta.js"(exports2, module2) {
|
|
86216
86235
|
"use strict";
|
|
86217
|
-
module2.exports = { version: "10.
|
|
86236
|
+
module2.exports = { version: "10.2.1" };
|
|
86218
86237
|
}
|
|
86219
86238
|
});
|
|
86220
86239
|
|
|
@@ -227654,31 +227673,44 @@ function decodeEventLog(parameters) {
|
|
|
227654
227673
|
const isUnnamed = inputs?.some((x) => !("name" in x && x.name));
|
|
227655
227674
|
const args = isUnnamed ? [] : {};
|
|
227656
227675
|
const indexedInputs = inputs.map((x, i) => [x, i]).filter(([x]) => "indexed" in x && x.indexed);
|
|
227676
|
+
const missingIndexedInputs = [];
|
|
227657
227677
|
for (let i = 0; i < indexedInputs.length; i++) {
|
|
227658
227678
|
const [param, argIndex] = indexedInputs[i];
|
|
227659
227679
|
const topic = argTopics[i];
|
|
227660
|
-
if (!topic)
|
|
227661
|
-
|
|
227662
|
-
|
|
227663
|
-
|
|
227664
|
-
|
|
227680
|
+
if (!topic) {
|
|
227681
|
+
if (strict)
|
|
227682
|
+
throw new DecodeLogTopicsMismatch({
|
|
227683
|
+
abiItem,
|
|
227684
|
+
param
|
|
227685
|
+
});
|
|
227686
|
+
missingIndexedInputs.push([param, argIndex]);
|
|
227687
|
+
continue;
|
|
227688
|
+
}
|
|
227665
227689
|
args[isUnnamed ? argIndex : param.name || argIndex] = decodeTopic({
|
|
227666
227690
|
param,
|
|
227667
227691
|
value: topic
|
|
227668
227692
|
});
|
|
227669
227693
|
}
|
|
227670
227694
|
const nonIndexedInputs = inputs.filter((x) => !("indexed" in x && x.indexed));
|
|
227671
|
-
|
|
227695
|
+
const inputsToDecode = strict ? nonIndexedInputs : [...missingIndexedInputs.map(([param]) => param), ...nonIndexedInputs];
|
|
227696
|
+
if (inputsToDecode.length > 0) {
|
|
227672
227697
|
if (data && data !== "0x") {
|
|
227673
227698
|
try {
|
|
227674
|
-
const decodedData = decodeAbiParameters(
|
|
227699
|
+
const decodedData = decodeAbiParameters(inputsToDecode, data);
|
|
227675
227700
|
if (decodedData) {
|
|
227676
|
-
|
|
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) {
|
|
227677
227708
|
for (let i = 0; i < inputs.length; i++)
|
|
227678
|
-
args[i]
|
|
227679
|
-
|
|
227709
|
+
if (args[i] === void 0 && dataIndex < decodedData.length)
|
|
227710
|
+
args[i] = decodedData[dataIndex++];
|
|
227711
|
+
} else
|
|
227680
227712
|
for (let i = 0; i < nonIndexedInputs.length; i++)
|
|
227681
|
-
args[nonIndexedInputs[i].name] = decodedData[
|
|
227713
|
+
args[nonIndexedInputs[i].name] = decodedData[dataIndex++];
|
|
227682
227714
|
}
|
|
227683
227715
|
} catch (err) {
|
|
227684
227716
|
if (strict) {
|
|
@@ -227686,7 +227718,7 @@ function decodeEventLog(parameters) {
|
|
|
227686
227718
|
throw new DecodeLogDataMismatch({
|
|
227687
227719
|
abiItem,
|
|
227688
227720
|
data,
|
|
227689
|
-
params:
|
|
227721
|
+
params: inputsToDecode,
|
|
227690
227722
|
size: size(data)
|
|
227691
227723
|
});
|
|
227692
227724
|
throw err;
|
|
@@ -227696,7 +227728,7 @@ function decodeEventLog(parameters) {
|
|
|
227696
227728
|
throw new DecodeLogDataMismatch({
|
|
227697
227729
|
abiItem,
|
|
227698
227730
|
data: "0x",
|
|
227699
|
-
params:
|
|
227731
|
+
params: inputsToDecode,
|
|
227700
227732
|
size: 0
|
|
227701
227733
|
});
|
|
227702
227734
|
}
|
|
@@ -228369,7 +228401,7 @@ async function sendRawTransaction(client, { serializedTransaction }) {
|
|
|
228369
228401
|
// ../../node_modules/viem/_esm/actions/wallet/sendTransaction.js
|
|
228370
228402
|
var supportsWalletNamespace = new LruMap(128);
|
|
228371
228403
|
async function sendTransaction(client, parameters) {
|
|
228372
|
-
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;
|
|
228373
228405
|
if (typeof account_ === "undefined")
|
|
228374
228406
|
throw new AccountNotFoundError({
|
|
228375
228407
|
docsPath: "/docs/actions/wallet/sendTransaction"
|
|
@@ -228394,10 +228426,11 @@ async function sendTransaction(client, parameters) {
|
|
|
228394
228426
|
let chainId;
|
|
228395
228427
|
if (chain !== null) {
|
|
228396
228428
|
chainId = await getAction(client, getChainId, "getChainId")({});
|
|
228397
|
-
|
|
228398
|
-
|
|
228399
|
-
|
|
228400
|
-
|
|
228429
|
+
if (assertChainId)
|
|
228430
|
+
assertCurrentChain({
|
|
228431
|
+
currentChainId: chainId,
|
|
228432
|
+
chain
|
|
228433
|
+
});
|
|
228401
228434
|
}
|
|
228402
228435
|
const chainFormat = client.chain?.formatters?.transactionRequest?.format;
|
|
228403
228436
|
const format2 = chainFormat || formatTransactionRequest;
|
|
@@ -235054,7 +235087,7 @@ init_lru();
|
|
|
235054
235087
|
init_assertRequest();
|
|
235055
235088
|
var supportsWalletNamespace2 = new LruMap(128);
|
|
235056
235089
|
async function sendTransactionSync(client, parameters) {
|
|
235057
|
-
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;
|
|
235058
235091
|
const timeout = parameters.timeout ?? Math.max((chain?.blockTime ?? 0) * 3, 5e3);
|
|
235059
235092
|
if (typeof account_ === "undefined")
|
|
235060
235093
|
throw new AccountNotFoundError({
|
|
@@ -235080,10 +235113,11 @@ async function sendTransactionSync(client, parameters) {
|
|
|
235080
235113
|
let chainId;
|
|
235081
235114
|
if (chain !== null) {
|
|
235082
235115
|
chainId = await getAction(client, getChainId, "getChainId")({});
|
|
235083
|
-
|
|
235084
|
-
|
|
235085
|
-
|
|
235086
|
-
|
|
235116
|
+
if (assertChainId)
|
|
235117
|
+
assertCurrentChain({
|
|
235118
|
+
currentChainId: chainId,
|
|
235119
|
+
chain
|
|
235120
|
+
});
|
|
235087
235121
|
}
|
|
235088
235122
|
const chainFormat = client.chain?.formatters?.transactionRequest?.format;
|
|
235089
235123
|
const format2 = chainFormat || formatTransactionRequest;
|
|
@@ -315435,7 +315469,7 @@ function getRenderer(opts) {
|
|
|
315435
315469
|
var package_default = {
|
|
315436
315470
|
name: "@gearbox-protocol/deploy-tools",
|
|
315437
315471
|
description: "Gearbox deploy tools",
|
|
315438
|
-
version: "5.
|
|
315472
|
+
version: "5.68.0",
|
|
315439
315473
|
homepage: "https://gearbox.fi",
|
|
315440
315474
|
keywords: [
|
|
315441
315475
|
"gearbox"
|
|
@@ -315469,17 +315503,17 @@ var package_default = {
|
|
|
315469
315503
|
"@actions/core": "^2.0.2",
|
|
315470
315504
|
"@chialab/esbuild-plugin-commonjs": "^0.19.0",
|
|
315471
315505
|
"@commander-js/extra-typings": "^14.0.0",
|
|
315472
|
-
"@ethereum-sourcify/bytecode-utils": "^1.3.
|
|
315506
|
+
"@ethereum-sourcify/bytecode-utils": "^1.3.20",
|
|
315473
315507
|
"@ethereum-sourcify/lib-sourcify": "^1.12.1",
|
|
315474
315508
|
"@gearbox-protocol/cli-utils": "0.0.0",
|
|
315475
315509
|
"@gearbox-protocol/deploy-tools-node": "0.0.0",
|
|
315476
315510
|
"@gearbox-protocol/deploy-tools-shared": "0.0.0",
|
|
315477
315511
|
"@gearbox-protocol/deploy-tools-types": "0.0.0",
|
|
315478
|
-
"@gearbox-protocol/sdk": "12.
|
|
315512
|
+
"@gearbox-protocol/sdk": "12.5.0",
|
|
315479
315513
|
"@gearbox-protocol/sdk-gov": "2.34.0-next.114",
|
|
315480
315514
|
"@types/lodash-es": "^4.17.12",
|
|
315481
|
-
"@types/node": "^25.0.
|
|
315482
|
-
"@types/react": "^19.2.
|
|
315515
|
+
"@types/node": "^25.0.9",
|
|
315516
|
+
"@types/react": "^19.2.9",
|
|
315483
315517
|
"@types/react-dom": "^19.2.3",
|
|
315484
315518
|
abitype: "^1.2.3",
|
|
315485
315519
|
chalk: "^5.6.2",
|
|
@@ -315488,14 +315522,14 @@ var package_default = {
|
|
|
315488
315522
|
esbuild: "^0.27.2",
|
|
315489
315523
|
"lodash-es": "^4.17.22",
|
|
315490
315524
|
"p-retry": "^7.1.1",
|
|
315491
|
-
pino: "^10.
|
|
315525
|
+
pino: "^10.2.1",
|
|
315492
315526
|
"pino-pretty": "^13.1.3",
|
|
315493
315527
|
queue: "^7.0.0",
|
|
315494
315528
|
react: "^19.2.3",
|
|
315495
315529
|
"react-dom": "^19.2.3",
|
|
315496
315530
|
table: "^6.9.0",
|
|
315497
315531
|
tsx: "^4.21.0",
|
|
315498
|
-
viem: "^2.44.
|
|
315532
|
+
viem: "^2.44.4",
|
|
315499
315533
|
yaml: "^2.8.2",
|
|
315500
315534
|
zod: "^4.3.5"
|
|
315501
315535
|
}
|
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.
|
|
4
|
+
"version": "5.68.0",
|
|
5
5
|
"homepage": "https://gearbox.fi",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"gearbox"
|
|
@@ -35,17 +35,17 @@
|
|
|
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.
|
|
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",
|
|
42
42
|
"@gearbox-protocol/deploy-tools-shared": "0.0.0",
|
|
43
43
|
"@gearbox-protocol/deploy-tools-types": "0.0.0",
|
|
44
|
-
"@gearbox-protocol/sdk": "12.
|
|
44
|
+
"@gearbox-protocol/sdk": "12.5.0",
|
|
45
45
|
"@gearbox-protocol/sdk-gov": "2.34.0-next.114",
|
|
46
46
|
"@types/lodash-es": "^4.17.12",
|
|
47
|
-
"@types/node": "^25.0.
|
|
48
|
-
"@types/react": "^19.2.
|
|
47
|
+
"@types/node": "^25.0.9",
|
|
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,14 +54,14 @@
|
|
|
54
54
|
"esbuild": "^0.27.2",
|
|
55
55
|
"lodash-es": "^4.17.22",
|
|
56
56
|
"p-retry": "^7.1.1",
|
|
57
|
-
"pino": "^10.
|
|
57
|
+
"pino": "^10.2.1",
|
|
58
58
|
"pino-pretty": "^13.1.3",
|
|
59
59
|
"queue": "^7.0.0",
|
|
60
60
|
"react": "^19.2.3",
|
|
61
61
|
"react-dom": "^19.2.3",
|
|
62
62
|
"table": "^6.9.0",
|
|
63
63
|
"tsx": "^4.21.0",
|
|
64
|
-
"viem": "^2.44.
|
|
64
|
+
"viem": "^2.44.4",
|
|
65
65
|
"yaml": "^2.8.2",
|
|
66
66
|
"zod": "^4.3.5"
|
|
67
67
|
}
|