rocketh 0.10.10 → 0.10.12
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/CHANGELOG.md +12 -0
- package/dist/cli.cjs +5 -4
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.mjs +5 -4
- package/dist/cli.mjs.map +1 -1
- package/dist/{index-AgLCQD7y.cjs → index-CaeasYIO.cjs} +11 -7
- package/dist/index-CaeasYIO.cjs.map +1 -0
- package/dist/{index-DRZG9qM_.mjs → index-CruWNHof.mjs} +10 -6
- package/dist/index-CruWNHof.mjs.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/cli.ts +2 -0
- package/src/executor/index.ts +8 -5
- package/dist/index-AgLCQD7y.cjs.map +0 -1
- package/dist/index-DRZG9qM_.mjs.map +0 -1
|
@@ -1025,7 +1025,7 @@ function readConfig(options) {
|
|
|
1025
1025
|
if (options.network === "localhost") {
|
|
1026
1026
|
nodeUrl = "http://127.0.0.1:8545";
|
|
1027
1027
|
} else {
|
|
1028
|
-
|
|
1028
|
+
console.error(`network "${options.network}" is not configured. Please add it to the rocketh.json file`);
|
|
1029
1029
|
process.exit(1);
|
|
1030
1030
|
}
|
|
1031
1031
|
}
|
|
@@ -1037,7 +1037,7 @@ function readConfig(options) {
|
|
|
1037
1037
|
if (options.network === "localhost") {
|
|
1038
1038
|
nodeUrl = "http://127.0.0.1:8545";
|
|
1039
1039
|
} else {
|
|
1040
|
-
|
|
1040
|
+
console.error(`network "${options.network}" is not configured. Please add it to the rocketh.json file`);
|
|
1041
1041
|
process.exit(1);
|
|
1042
1042
|
}
|
|
1043
1043
|
}
|
|
@@ -1077,6 +1077,7 @@ function readConfig(options) {
|
|
|
1077
1077
|
}
|
|
1078
1078
|
}
|
|
1079
1079
|
function readAndResolveConfig(options) {
|
|
1080
|
+
console.log(options);
|
|
1080
1081
|
return resolveConfig(readConfig(options));
|
|
1081
1082
|
}
|
|
1082
1083
|
function resolveConfig(config) {
|
|
@@ -1115,6 +1116,7 @@ async function executeDeployScripts(config, context, args) {
|
|
|
1115
1116
|
return 0;
|
|
1116
1117
|
});
|
|
1117
1118
|
let providedContext = context;
|
|
1119
|
+
const providedFromArguments = !!providedContext;
|
|
1118
1120
|
const scriptModuleByFilePath = {};
|
|
1119
1121
|
const scriptPathBags = {};
|
|
1120
1122
|
const scriptFilePaths = [];
|
|
@@ -1134,10 +1136,12 @@ async function executeDeployScripts(config, context, args) {
|
|
|
1134
1136
|
}
|
|
1135
1137
|
}
|
|
1136
1138
|
scriptModuleByFilePath[scriptFilePath] = scriptModule;
|
|
1137
|
-
if (
|
|
1138
|
-
|
|
1139
|
+
if (!providedFromArguments) {
|
|
1140
|
+
if (providedContext && providedContext !== scriptModule.providedContext) {
|
|
1141
|
+
throw new Error(`context between 2 scripts is different, please share the same across them`);
|
|
1142
|
+
}
|
|
1143
|
+
providedContext = scriptModule.providedContext;
|
|
1139
1144
|
}
|
|
1140
|
-
providedContext = scriptModule.providedContext;
|
|
1141
1145
|
} catch (e) {
|
|
1142
1146
|
logger.error(`could not import ${filepath}`);
|
|
1143
1147
|
throw e;
|
|
@@ -1293,4 +1297,4 @@ Do you want to proceed (note that gas price can change for each tx)`
|
|
|
1293
1297
|
}
|
|
1294
1298
|
|
|
1295
1299
|
export { execute as a, readAndResolveConfig as b, resolveConfig as c, loadEnvironment as d, extendEnvironment as e, loadAndExecuteDeployments as f, executeDeployScripts as g, handleSignerProtocol as h, chainTypes as i, chainById as j, getChain as k, loadDeployments as l, mergeArtifacts as m, getGasPriceEstimate as n, getRoughGasPriceEstimate as o, readConfig as r };
|
|
1296
|
-
//# sourceMappingURL=index-
|
|
1300
|
+
//# sourceMappingURL=index-CruWNHof.mjs.map
|