@gearbox-protocol/deploy-tools 5.10.11 → 5.10.13
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 +14 -6
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -413903,6 +413903,8 @@ function openAccounts() {
|
|
|
413903
413903
|
"--address-provider <address>",
|
|
413904
413904
|
"new address provider address"
|
|
413905
413905
|
).env("ADDRESS_PROVIDER")
|
|
413906
|
+
).addOption(
|
|
413907
|
+
new Option("--cast-bin <path>", "cast binary path").env("CAST_BIN")
|
|
413906
413908
|
).addOption(
|
|
413907
413909
|
new Option("--shared-dir <dir>", "dir to put output files").env(
|
|
413908
413910
|
"SHARED_DIR"
|
|
@@ -413917,7 +413919,8 @@ function openAccounts() {
|
|
|
413917
413919
|
marketConfigurators,
|
|
413918
413920
|
anvilUrl = "http://127.0.0.1:8545",
|
|
413919
413921
|
sharedDir = ".",
|
|
413920
|
-
nexo
|
|
413922
|
+
nexo,
|
|
413923
|
+
castBin = "cast"
|
|
413921
413924
|
} = opts;
|
|
413922
413925
|
await mkdir2(path9.resolve(sharedDir, "deploy-state"), { recursive: true });
|
|
413923
413926
|
const sdkExample2 = new SDKExample(log_default);
|
|
@@ -414038,7 +414041,8 @@ function openAccounts() {
|
|
|
414038
414041
|
await runCast(r, i + 1, {
|
|
414039
414042
|
anvilUrl,
|
|
414040
414043
|
destDir,
|
|
414041
|
-
privateKey: borrowerKey
|
|
414044
|
+
privateKey: borrowerKey,
|
|
414045
|
+
castBin
|
|
414042
414046
|
});
|
|
414043
414047
|
}
|
|
414044
414048
|
}
|
|
@@ -414050,7 +414054,7 @@ function openAccounts() {
|
|
|
414050
414054
|
}
|
|
414051
414055
|
async function runCast(result, index2, opts) {
|
|
414052
414056
|
const { txHash, rawTx } = result;
|
|
414053
|
-
const { anvilUrl, destDir, privateKey } = opts;
|
|
414057
|
+
const { anvilUrl, destDir, privateKey, castBin = "cast" } = opts;
|
|
414054
414058
|
if (!txHash && !rawTx) {
|
|
414055
414059
|
return;
|
|
414056
414060
|
}
|
|
@@ -414066,10 +414070,14 @@ async function runCast(result, index2, opts) {
|
|
|
414066
414070
|
rawTx.callData
|
|
414067
414071
|
];
|
|
414068
414072
|
const argsStr = args.join(" ").replace(privateKey, "<pk>");
|
|
414069
|
-
log_default.debug(`running
|
|
414073
|
+
log_default.debug(`running ${castBin} ${argsStr}`);
|
|
414070
414074
|
try {
|
|
414071
414075
|
const traceFile = path9.resolve(destDir, `${id}.trace`);
|
|
414072
|
-
const cast = spawnSync3(
|
|
414076
|
+
const cast = spawnSync3(castBin, args, { encoding: "utf-8", stdio: "pipe" });
|
|
414077
|
+
if (cast.error) {
|
|
414078
|
+
log_default.warn(`failed to run cast: ${cast.error}`);
|
|
414079
|
+
return;
|
|
414080
|
+
}
|
|
414073
414081
|
await writeFile6(traceFile, cast.output.join(""), "utf-8");
|
|
414074
414082
|
log_default.debug(`saved trace file: ${traceFile}`);
|
|
414075
414083
|
} catch (e) {
|
|
@@ -414124,7 +414132,7 @@ function getRenderer(opts) {
|
|
|
414124
414132
|
var package_default = {
|
|
414125
414133
|
name: "@gearbox-protocol/deploy-tools",
|
|
414126
414134
|
description: "Gearbox deploy tools",
|
|
414127
|
-
version: "5.10.
|
|
414135
|
+
version: "5.10.13",
|
|
414128
414136
|
homepage: "https://gearbox.fi",
|
|
414129
414137
|
keywords: [
|
|
414130
414138
|
"gearbox"
|