@gearbox-protocol/deploy-tools 4.4.0 → 4.6.0-next.1
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 +10 -5
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -326859,12 +326859,16 @@ function parserForContractType(contract, version4, contractName) {
|
|
|
326859
326859
|
var UpdateParser = class extends ProviderBase {
|
|
326860
326860
|
#sandboxDir;
|
|
326861
326861
|
#output = {
|
|
326862
|
+
status: "success",
|
|
326863
|
+
version: "dev",
|
|
326864
|
+
chainId: 0,
|
|
326862
326865
|
addresses: {},
|
|
326863
326866
|
batches: []
|
|
326864
326867
|
};
|
|
326865
326868
|
#metaRepo;
|
|
326866
|
-
constructor(options) {
|
|
326869
|
+
constructor(options, version4) {
|
|
326867
326870
|
super(options);
|
|
326871
|
+
this.#output.version = version4 ?? "dev";
|
|
326868
326872
|
this.logger = this.logger.getSubLogger({ name: "parser" });
|
|
326869
326873
|
this.#sandboxDir = path6.resolve(options.sandboxDir, "parser");
|
|
326870
326874
|
mkdirSync5(this.#sandboxDir, { recursive: true });
|
|
@@ -326875,6 +326879,7 @@ var UpdateParser = class extends ProviderBase {
|
|
|
326875
326879
|
network: this.network,
|
|
326876
326880
|
sandboxDir: path6.dirname(this.#sandboxDir)
|
|
326877
326881
|
});
|
|
326882
|
+
this.#output.chainId = this.chainId;
|
|
326878
326883
|
}
|
|
326879
326884
|
async parse(opts) {
|
|
326880
326885
|
await this.init();
|
|
@@ -327134,6 +327139,9 @@ function launchForks() {
|
|
|
327134
327139
|
// src/commands/parse.ts
|
|
327135
327140
|
import { writeFile as writeFile4 } from "node:fs/promises";
|
|
327136
327141
|
|
|
327142
|
+
// package.json
|
|
327143
|
+
var version3 = "0.0.0";
|
|
327144
|
+
|
|
327137
327145
|
// src/renderer/cli/CliRenderer.ts
|
|
327138
327146
|
import readline from "node:readline";
|
|
327139
327147
|
|
|
@@ -328186,7 +328194,7 @@ function parse() {
|
|
|
328186
328194
|
await container.auditor.setup();
|
|
328187
328195
|
container.addressTree = new GearboxAddressTree(opts);
|
|
328188
328196
|
await container.addressTree.build();
|
|
328189
|
-
const parser = new UpdateParser(opts);
|
|
328197
|
+
const parser = new UpdateParser(opts, version3);
|
|
328190
328198
|
const result = await parser.parse(opts);
|
|
328191
328199
|
if (opts.outFile) {
|
|
328192
328200
|
await writeFile4(opts.outFile, json_stringify(result), "utf-8");
|
|
@@ -328321,9 +328329,6 @@ function zeroLT() {
|
|
|
328321
328329
|
});
|
|
328322
328330
|
}
|
|
328323
328331
|
|
|
328324
|
-
// package.json
|
|
328325
|
-
var version3 = "0.0.0";
|
|
328326
|
-
|
|
328327
328332
|
// src/index.ts
|
|
328328
328333
|
var program2 = new Command();
|
|
328329
328334
|
program2.name("deploy-tools").description("gearbox deploy tools").version(version3);
|