rocketh 0.10.10 → 0.10.11
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 +6 -0
- package/dist/cli.cjs +2 -2
- package/dist/cli.mjs +2 -2
- package/dist/{index-DRZG9qM_.mjs → index-Cs7zkNfV.mjs} +7 -4
- package/dist/index-Cs7zkNfV.mjs.map +1 -0
- package/dist/{index-AgLCQD7y.cjs → index-t2GbLf0K.cjs} +8 -5
- package/dist/index-t2GbLf0K.cjs.map +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/executor/index.ts +6 -3
- package/dist/index-AgLCQD7y.cjs.map +0 -1
- package/dist/index-DRZG9qM_.mjs.map +0 -1
package/CHANGELOG.md
CHANGED
package/dist/cli.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
4
|
var ldenv = require('ldenv');
|
|
5
|
-
var index = require('./index-
|
|
5
|
+
var index = require('./index-t2GbLf0K.cjs');
|
|
6
6
|
require('node:path');
|
|
7
7
|
require('node:fs');
|
|
8
8
|
require('ethers');
|
|
@@ -16,7 +16,7 @@ require('viem/chains');
|
|
|
16
16
|
require('prompts');
|
|
17
17
|
|
|
18
18
|
var name = "rocketh";
|
|
19
|
-
var version = "0.10.
|
|
19
|
+
var version = "0.10.10";
|
|
20
20
|
var description = "deploy smart contract on ethereum-compatible networks";
|
|
21
21
|
var publishConfig = {
|
|
22
22
|
access: "public"
|
package/dist/cli.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { loadEnv } from 'ldenv';
|
|
2
|
-
import { f as loadAndExecuteDeployments } from './index-
|
|
2
|
+
import { f as loadAndExecuteDeployments } from './index-Cs7zkNfV.mjs';
|
|
3
3
|
import 'node:path';
|
|
4
4
|
import 'node:fs';
|
|
5
5
|
import 'ethers';
|
|
@@ -13,7 +13,7 @@ import 'viem/chains';
|
|
|
13
13
|
import 'prompts';
|
|
14
14
|
|
|
15
15
|
var name = "rocketh";
|
|
16
|
-
var version = "0.10.
|
|
16
|
+
var version = "0.10.10";
|
|
17
17
|
var description = "deploy smart contract on ethereum-compatible networks";
|
|
18
18
|
var publishConfig = {
|
|
19
19
|
access: "public"
|
|
@@ -1115,6 +1115,7 @@ async function executeDeployScripts(config, context, args) {
|
|
|
1115
1115
|
return 0;
|
|
1116
1116
|
});
|
|
1117
1117
|
let providedContext = context;
|
|
1118
|
+
const providedFromArguments = !!providedContext;
|
|
1118
1119
|
const scriptModuleByFilePath = {};
|
|
1119
1120
|
const scriptPathBags = {};
|
|
1120
1121
|
const scriptFilePaths = [];
|
|
@@ -1134,10 +1135,12 @@ async function executeDeployScripts(config, context, args) {
|
|
|
1134
1135
|
}
|
|
1135
1136
|
}
|
|
1136
1137
|
scriptModuleByFilePath[scriptFilePath] = scriptModule;
|
|
1137
|
-
if (
|
|
1138
|
-
|
|
1138
|
+
if (!providedFromArguments) {
|
|
1139
|
+
if (providedContext && providedContext !== scriptModule.providedContext) {
|
|
1140
|
+
throw new Error(`context between 2 scripts is different, please share the same across them`);
|
|
1141
|
+
}
|
|
1142
|
+
providedContext = scriptModule.providedContext;
|
|
1139
1143
|
}
|
|
1140
|
-
providedContext = scriptModule.providedContext;
|
|
1141
1144
|
} catch (e) {
|
|
1142
1145
|
logger.error(`could not import ${filepath}`);
|
|
1143
1146
|
throw e;
|
|
@@ -1293,4 +1296,4 @@ Do you want to proceed (note that gas price can change for each tx)`
|
|
|
1293
1296
|
}
|
|
1294
1297
|
|
|
1295
1298
|
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-
|
|
1299
|
+
//# sourceMappingURL=index-Cs7zkNfV.mjs.map
|