@skalenetwork/upgrade-tools 1.0.0-develop.8 → 1.0.0-develop.9

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.
@@ -175,6 +175,9 @@ function upgrade(projectName, targetVersion, getDeployedVersion, setVersion, saf
175
175
  let transactionsBatches;
176
176
  if (afterUpgrade !== undefined) {
177
177
  transactionsBatches = yield afterUpgrade(abi, contractManager);
178
+ for (const { index, batch } of transactionsBatches.map((batch, index) => ({ index, batch }))) {
179
+ yield fs_1.promises.writeFile(`data/after-transactions-${index}-${version}-${hardhat_1.network.name}.json`, JSON.stringify(batch, null, 4));
180
+ }
178
181
  }
179
182
  if (!safeMock) {
180
183
  const chainId = (yield hardhat_1.ethers.provider.getNetwork()).chainId;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skalenetwork/upgrade-tools",
3
- "version": "1.0.0-develop.8",
3
+ "version": "1.0.0-develop.9",
4
4
  "description": "Scripts to support upgrades of smart contracts",
5
5
  "files": [
6
6
  "dist/**/*"