@gearbox-protocol/deploy-tools 5.2.2 → 5.2.3
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 +13 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -397199,7 +397199,7 @@ function getRenderer(opts) {
|
|
|
397199
397199
|
var package_default = {
|
|
397200
397200
|
name: "@gearbox-protocol/deploy-tools",
|
|
397201
397201
|
description: "Gearbox deploy tools",
|
|
397202
|
-
version: "5.2.
|
|
397202
|
+
version: "5.2.3",
|
|
397203
397203
|
homepage: "https://gearbox.fi",
|
|
397204
397204
|
keywords: [
|
|
397205
397205
|
"gearbox"
|
|
@@ -397342,6 +397342,7 @@ function printSafeTx() {
|
|
|
397342
397342
|
}
|
|
397343
397343
|
|
|
397344
397344
|
// src/commands/sdk-example.ts
|
|
397345
|
+
import { writeFile as writeFile7 } from "node:fs/promises";
|
|
397345
397346
|
import path10 from "node:path";
|
|
397346
397347
|
function sdkExample() {
|
|
397347
397348
|
return newCommand().name("sdk-example").description("SDK example for v3.1").addOption(
|
|
@@ -397378,6 +397379,17 @@ function sdkExample() {
|
|
|
397378
397379
|
"stateAfter.human.json"
|
|
397379
397380
|
)
|
|
397380
397381
|
});
|
|
397382
|
+
try {
|
|
397383
|
+
const marketsState = sdkExample2.sdk.marketRegister.markets.map(
|
|
397384
|
+
(m) => m.state
|
|
397385
|
+
);
|
|
397386
|
+
await writeFile7(
|
|
397387
|
+
path10.resolve(sharedDir, "deploy-state", "markets.json"),
|
|
397388
|
+
json_stringify(marketsState),
|
|
397389
|
+
"utf-8"
|
|
397390
|
+
);
|
|
397391
|
+
} catch {
|
|
397392
|
+
}
|
|
397381
397393
|
log_default.info("done");
|
|
397382
397394
|
});
|
|
397383
397395
|
}
|