@gearbox-protocol/deploy-tools 5.17.3 → 5.17.4
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 +8 -4
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -413182,7 +413182,7 @@ function openAccounts() {
|
|
|
413182
413182
|
} = opts;
|
|
413183
413183
|
await mkdir(path9.resolve(sharedDir, "deploy-state"), { recursive: true });
|
|
413184
413184
|
const sdk = await GearboxSDK.attach({
|
|
413185
|
-
rpcURLs: [
|
|
413185
|
+
rpcURLs: [anvilUrl],
|
|
413186
413186
|
timeout: 48e4,
|
|
413187
413187
|
addressProvider,
|
|
413188
413188
|
marketConfigurators: marketConfigurators ?? [],
|
|
@@ -413334,7 +413334,7 @@ function openAccounts() {
|
|
|
413334
413334
|
}
|
|
413335
413335
|
async function runCast(result, index2, opts) {
|
|
413336
413336
|
const { txHash, rawTx } = result;
|
|
413337
|
-
const { anvilUrl,
|
|
413337
|
+
const { anvilUrl, privateKey } = opts;
|
|
413338
413338
|
if (!txHash && !rawTx) {
|
|
413339
413339
|
return;
|
|
413340
413340
|
}
|
|
@@ -413349,10 +413349,14 @@ async function runCast(result, index2, opts) {
|
|
|
413349
413349
|
rawTx.to,
|
|
413350
413350
|
rawTx.callData
|
|
413351
413351
|
];
|
|
413352
|
+
await runCastCmd(args, id, opts);
|
|
413353
|
+
}
|
|
413354
|
+
async function runCastCmd(args, traceId, opts) {
|
|
413355
|
+
const { destDir, privateKey, castBin = "cast" } = opts;
|
|
413352
413356
|
const argsStr = args.join(" ").replace(privateKey, "<pk>");
|
|
413353
413357
|
log_default.debug(`running ${castBin} ${argsStr}`);
|
|
413354
413358
|
try {
|
|
413355
|
-
const traceFile = path9.resolve(destDir, `${
|
|
413359
|
+
const traceFile = path9.resolve(destDir, `${traceId}.trace`);
|
|
413356
413360
|
const cast = spawnSync3(castBin, args, { encoding: "utf-8", stdio: "pipe" });
|
|
413357
413361
|
if (cast.error) {
|
|
413358
413362
|
log_default.warn(`failed to run cast: ${cast.error}`);
|
|
@@ -413412,7 +413416,7 @@ function getRenderer(opts) {
|
|
|
413412
413416
|
var package_default = {
|
|
413413
413417
|
name: "@gearbox-protocol/deploy-tools",
|
|
413414
413418
|
description: "Gearbox deploy tools",
|
|
413415
|
-
version: "5.17.
|
|
413419
|
+
version: "5.17.4",
|
|
413416
413420
|
homepage: "https://gearbox.fi",
|
|
413417
413421
|
keywords: [
|
|
413418
413422
|
"gearbox"
|