@gearbox-protocol/deploy-tools 4.12.2 → 4.13.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.
Files changed (2) hide show
  1. package/dist/index.mjs +33 -8
  2. package/package.json +2 -2
package/dist/index.mjs CHANGED
@@ -117358,6 +117358,11 @@ var require_audits = __commonJS({
117358
117358
  auditor: Auditor2.ChainSecurity,
117359
117359
  revision: "2023 December",
117360
117360
  reportLink: "https://github.com/Gearbox-protocol/security/blob/main/audits/2023%20Dec%20-%20ChainSecurity_Gearbox_Protocol_Gearbox_V3_Oracles_audit.pdf"
117361
+ },
117362
+ "2024_Feb_ChainSecurity_CoreV3": {
117363
+ auditor: Auditor2.ChainSecurity,
117364
+ revision: "2024 February",
117365
+ reportLink: "https://github.com/Gearbox-protocol/security/blob/main/audits/2024%20Feb%20-%20ChainSecurity_Gearbox_Core_V3.pdf"
117361
117366
  }
117362
117367
  };
117363
117368
  exports2.audits = {
@@ -117371,6 +117376,11 @@ var require_audits = __commonJS({
117371
117376
  type: "commit",
117372
117377
  commit: "e16559ae82f0f24c3dc29693c444f40d676ebff9",
117373
117378
  report: exports2.auditReports["2023_Dec_ChainSecurity_CoreV3"]
117379
+ },
117380
+ {
117381
+ type: "commit",
117382
+ commit: "27d05440deddb1af3f0505c5fc14721d637353f0",
117383
+ report: exports2.auditReports["2024_Feb_ChainSecurity_CoreV3"]
117374
117384
  }
117375
117385
  ],
117376
117386
  "core-v2": [
@@ -350892,7 +350902,7 @@ function launchForks() {
350892
350902
  "--endpoint <url>",
350893
350903
  "Endpoint to call for fork creation"
350894
350904
  ).default("https://anvil.gearbox.foundation/api/forks")
350895
- ).addOption(new Option("--api-key <key>", "anvil-manager api key")).addOption(
350905
+ ).addOption(new Option("--no-wait", "Ignore response")).addOption(new Option("--api-key <key>", "anvil-manager api key")).addOption(
350896
350906
  new Option(
350897
350907
  "--template <json_file>",
350898
350908
  "Json file with POST requests payloads"
@@ -350910,18 +350920,33 @@ function launchForks() {
350910
350920
  if (!Array.isArray(requests)) {
350911
350921
  throw new Error("template must contain array of requets");
350912
350922
  }
350913
- await Promise.all(
350914
- requests.map(
350915
- (r) => fetch(endpoint, {
350923
+ if (opts.noWait) {
350924
+ requests.forEach((r) => {
350925
+ fetch(endpoint, {
350916
350926
  method: "POST",
350917
350927
  headers: {
350918
350928
  "Content-Type": "application/json",
350919
350929
  Authorization: `Bearer ${apiKey}`
350920
350930
  },
350921
350931
  body: JSON.stringify(r)
350922
- })
350923
- )
350924
- );
350932
+ }).catch(() => {
350933
+ });
350934
+ });
350935
+ process.exit(0);
350936
+ } else {
350937
+ await Promise.all(
350938
+ requests.map(
350939
+ (r) => fetch(endpoint, {
350940
+ method: "POST",
350941
+ headers: {
350942
+ "Content-Type": "application/json",
350943
+ Authorization: `Bearer ${apiKey}`
350944
+ },
350945
+ body: JSON.stringify(r)
350946
+ })
350947
+ )
350948
+ );
350949
+ }
350925
350950
  });
350926
350951
  }
350927
350952
 
@@ -351962,7 +351987,7 @@ function getRenderer(opts) {
351962
351987
  }
351963
351988
 
351964
351989
  // package.json
351965
- var version3 = "4.12.2";
351990
+ var version3 = "4.13.0";
351966
351991
 
351967
351992
  // src/version.ts
351968
351993
  var version_default = version3;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@gearbox-protocol/deploy-tools",
3
3
  "description": "Gearbox deploy tools",
4
- "version": "4.12.2",
4
+ "version": "4.13.0",
5
5
  "homepage": "https://gearbox.fi",
6
6
  "keywords": [
7
7
  "gearbox"
@@ -42,7 +42,7 @@
42
42
  "@gearbox-protocol/deploy-tools-node": "0.0.0",
43
43
  "@gearbox-protocol/deploy-tools-shared": "0.0.0",
44
44
  "@gearbox-protocol/deploy-tools-types": "0.0.0",
45
- "@gearbox-protocol/sdk-gov": "^1.31.1",
45
+ "@gearbox-protocol/sdk-gov": "^1.31.2",
46
46
  "@types/lodash-es": "^4.17.12",
47
47
  "@types/node": "^20.10.8",
48
48
  "@types/react": "^18.2.47",