@gearbox-protocol/deploy-tools 5.2.2 → 5.3.0
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 +18 -2
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -386357,7 +386357,11 @@ var ForkTemplate = z.object({
|
|
|
386357
386357
|
*/
|
|
386358
386358
|
deployReport: z.boolean().default(false),
|
|
386359
386359
|
attachTests: z.boolean().default(false),
|
|
386360
|
-
timeout: z.string().default("3h")
|
|
386360
|
+
timeout: z.string().default("3h"),
|
|
386361
|
+
/**
|
|
386362
|
+
* Migration 3.0 -> 3.1 helper: Market configurators
|
|
386363
|
+
*/
|
|
386364
|
+
riskCuratorNames: z.array(z.string()).nullish()
|
|
386361
386365
|
});
|
|
386362
386366
|
|
|
386363
386367
|
// ../../packages/shared/dist/hex.js
|
|
@@ -397199,7 +397203,7 @@ function getRenderer(opts) {
|
|
|
397199
397203
|
var package_default = {
|
|
397200
397204
|
name: "@gearbox-protocol/deploy-tools",
|
|
397201
397205
|
description: "Gearbox deploy tools",
|
|
397202
|
-
version: "5.
|
|
397206
|
+
version: "5.3.0",
|
|
397203
397207
|
homepage: "https://gearbox.fi",
|
|
397204
397208
|
keywords: [
|
|
397205
397209
|
"gearbox"
|
|
@@ -397342,6 +397346,7 @@ function printSafeTx() {
|
|
|
397342
397346
|
}
|
|
397343
397347
|
|
|
397344
397348
|
// src/commands/sdk-example.ts
|
|
397349
|
+
import { writeFile as writeFile7 } from "node:fs/promises";
|
|
397345
397350
|
import path10 from "node:path";
|
|
397346
397351
|
function sdkExample() {
|
|
397347
397352
|
return newCommand().name("sdk-example").description("SDK example for v3.1").addOption(
|
|
@@ -397378,6 +397383,17 @@ function sdkExample() {
|
|
|
397378
397383
|
"stateAfter.human.json"
|
|
397379
397384
|
)
|
|
397380
397385
|
});
|
|
397386
|
+
try {
|
|
397387
|
+
const marketsState = sdkExample2.sdk.marketRegister.markets.map(
|
|
397388
|
+
(m) => m.state
|
|
397389
|
+
);
|
|
397390
|
+
await writeFile7(
|
|
397391
|
+
path10.resolve(sharedDir, "deploy-state", "markets.json"),
|
|
397392
|
+
json_stringify(marketsState),
|
|
397393
|
+
"utf-8"
|
|
397394
|
+
);
|
|
397395
|
+
} catch {
|
|
397396
|
+
}
|
|
397381
397397
|
log_default.info("done");
|
|
397382
397398
|
});
|
|
397383
397399
|
}
|