@gearbox-protocol/deploy-tools 5.30.1 → 5.30.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.
Files changed (2) hide show
  1. package/dist/index.mjs +22 -16
  2. package/package.json +3 -3
package/dist/index.mjs CHANGED
@@ -4276,7 +4276,7 @@ var init_size = __esm({
4276
4276
  var version2;
4277
4277
  var init_version2 = __esm({
4278
4278
  "../../node_modules/viem/_esm/errors/version.js"() {
4279
- version2 = "2.29.3";
4279
+ version2 = "2.29.4";
4280
4280
  }
4281
4281
  });
4282
4282
 
@@ -163871,7 +163871,7 @@ var require_version28 = __commonJS({
163871
163871
  "use strict";
163872
163872
  Object.defineProperty(exports2, "__esModule", { value: true });
163873
163873
  exports2.version = void 0;
163874
- exports2.version = "2.29.3";
163874
+ exports2.version = "2.29.4";
163875
163875
  }
163876
163876
  });
163877
163877
 
@@ -185232,8 +185232,8 @@ var require_parseTransaction = __commonJS({
185232
185232
  transaction.gas = (0, fromHex_js_1.hexToBigInt)(gas);
185233
185233
  if ((0, isHex_js_1.isHex)(data) && data !== "0x")
185234
185234
  transaction.data = data;
185235
- if ((0, isHex_js_1.isHex)(nonce) && nonce !== "0x")
185236
- transaction.nonce = (0, fromHex_js_1.hexToNumber)(nonce);
185235
+ if ((0, isHex_js_1.isHex)(nonce))
185236
+ transaction.nonce = nonce === "0x" ? 0 : (0, fromHex_js_1.hexToNumber)(nonce);
185237
185237
  if ((0, isHex_js_1.isHex)(value) && value !== "0x")
185238
185238
  transaction.value = (0, fromHex_js_1.hexToBigInt)(value);
185239
185239
  if ((0, isHex_js_1.isHex)(maxFeePerGas) && maxFeePerGas !== "0x")
@@ -185287,8 +185287,8 @@ var require_parseTransaction = __commonJS({
185287
185287
  transaction.gas = (0, fromHex_js_1.hexToBigInt)(gas);
185288
185288
  if ((0, isHex_js_1.isHex)(data) && data !== "0x")
185289
185289
  transaction.data = data;
185290
- if ((0, isHex_js_1.isHex)(nonce) && nonce !== "0x")
185291
- transaction.nonce = (0, fromHex_js_1.hexToNumber)(nonce);
185290
+ if ((0, isHex_js_1.isHex)(nonce))
185291
+ transaction.nonce = nonce === "0x" ? 0 : (0, fromHex_js_1.hexToNumber)(nonce);
185292
185292
  if ((0, isHex_js_1.isHex)(value) && value !== "0x")
185293
185293
  transaction.value = (0, fromHex_js_1.hexToBigInt)(value);
185294
185294
  if ((0, isHex_js_1.isHex)(maxFeePerBlobGas) && maxFeePerBlobGas !== "0x")
@@ -185343,8 +185343,8 @@ var require_parseTransaction = __commonJS({
185343
185343
  transaction.gas = (0, fromHex_js_1.hexToBigInt)(gas);
185344
185344
  if ((0, isHex_js_1.isHex)(data) && data !== "0x")
185345
185345
  transaction.data = data;
185346
- if ((0, isHex_js_1.isHex)(nonce) && nonce !== "0x")
185347
- transaction.nonce = (0, fromHex_js_1.hexToNumber)(nonce);
185346
+ if ((0, isHex_js_1.isHex)(nonce))
185347
+ transaction.nonce = nonce === "0x" ? 0 : (0, fromHex_js_1.hexToNumber)(nonce);
185348
185348
  if ((0, isHex_js_1.isHex)(value) && value !== "0x")
185349
185349
  transaction.value = (0, fromHex_js_1.hexToBigInt)(value);
185350
185350
  if ((0, isHex_js_1.isHex)(maxFeePerGas) && maxFeePerGas !== "0x")
@@ -185390,8 +185390,8 @@ var require_parseTransaction = __commonJS({
185390
185390
  transaction.gas = (0, fromHex_js_1.hexToBigInt)(gas);
185391
185391
  if ((0, isHex_js_1.isHex)(data) && data !== "0x")
185392
185392
  transaction.data = data;
185393
- if ((0, isHex_js_1.isHex)(nonce) && nonce !== "0x")
185394
- transaction.nonce = (0, fromHex_js_1.hexToNumber)(nonce);
185393
+ if ((0, isHex_js_1.isHex)(nonce))
185394
+ transaction.nonce = nonce === "0x" ? 0 : (0, fromHex_js_1.hexToNumber)(nonce);
185395
185395
  if ((0, isHex_js_1.isHex)(value) && value !== "0x")
185396
185396
  transaction.value = (0, fromHex_js_1.hexToBigInt)(value);
185397
185397
  if ((0, isHex_js_1.isHex)(gasPrice) && gasPrice !== "0x")
@@ -185432,8 +185432,8 @@ var require_parseTransaction = __commonJS({
185432
185432
  transaction.gas = (0, fromHex_js_1.hexToBigInt)(gas);
185433
185433
  if ((0, isHex_js_1.isHex)(data) && data !== "0x")
185434
185434
  transaction.data = data;
185435
- if ((0, isHex_js_1.isHex)(nonce) && nonce !== "0x")
185436
- transaction.nonce = (0, fromHex_js_1.hexToNumber)(nonce);
185435
+ if ((0, isHex_js_1.isHex)(nonce))
185436
+ transaction.nonce = nonce === "0x" ? 0 : (0, fromHex_js_1.hexToNumber)(nonce);
185437
185437
  if ((0, isHex_js_1.isHex)(value) && value !== "0x")
185438
185438
  transaction.value = (0, fromHex_js_1.hexToBigInt)(value);
185439
185439
  if ((0, isHex_js_1.isHex)(gasPrice) && gasPrice !== "0x")
@@ -380700,7 +380700,7 @@ function isVersionRange(version4, range2) {
380700
380700
  }
380701
380701
 
380702
380702
  // ../../node_modules/@gearbox-protocol/sdk/dist/esm/sdk/utils/AddressMap.js
380703
- var AddressMap = class {
380703
+ var AddressMap = class _AddressMap {
380704
380704
  #map;
380705
380705
  #frozen = false;
380706
380706
  #name;
@@ -380801,6 +380801,12 @@ var AddressMap = class {
380801
380801
  get name() {
380802
380802
  return this.#name;
380803
380803
  }
380804
+ static fromRecord(record) {
380805
+ return new _AddressMap(Object.entries(record));
380806
+ }
380807
+ static fromMappedArray(array, mapFn) {
380808
+ return new _AddressMap(array.map((item) => [mapFn(item), item]));
380809
+ }
380804
380810
  };
380805
380811
 
380806
380812
  // ../../node_modules/@gearbox-protocol/sdk/dist/esm/sdk/utils/bytes32ToString.js
@@ -439861,7 +439867,7 @@ function getRenderer(opts) {
439861
439867
  var package_default = {
439862
439868
  name: "@gearbox-protocol/deploy-tools",
439863
439869
  description: "Gearbox deploy tools",
439864
- version: "5.30.1",
439870
+ version: "5.30.3",
439865
439871
  homepage: "https://gearbox.fi",
439866
439872
  keywords: [
439867
439873
  "gearbox"
@@ -439904,7 +439910,7 @@ var package_default = {
439904
439910
  "@gearbox-protocol/deploy-tools-node": "0.0.0",
439905
439911
  "@gearbox-protocol/deploy-tools-shared": "0.0.0",
439906
439912
  "@gearbox-protocol/deploy-tools-types": "0.0.0",
439907
- "@gearbox-protocol/sdk": "7.0.0",
439913
+ "@gearbox-protocol/sdk": "7.3.1",
439908
439914
  "@gearbox-protocol/sdk-gov": "^2.37.0",
439909
439915
  "@types/lodash-es": "^4.17.12",
439910
439916
  "@types/node": "^22.15.18",
@@ -439926,7 +439932,7 @@ var package_default = {
439926
439932
  "react-dom": "^19.1.0",
439927
439933
  table: "^6.9.0",
439928
439934
  tsx: "^4.19.4",
439929
- viem: "^2.29.3",
439935
+ viem: "^2.29.4",
439930
439936
  yaml: "^2.8.0",
439931
439937
  zod: "^3.24.4"
439932
439938
  },
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": "5.30.1",
4
+ "version": "5.30.3",
5
5
  "homepage": "https://gearbox.fi",
6
6
  "keywords": [
7
7
  "gearbox"
@@ -44,7 +44,7 @@
44
44
  "@gearbox-protocol/deploy-tools-node": "0.0.0",
45
45
  "@gearbox-protocol/deploy-tools-shared": "0.0.0",
46
46
  "@gearbox-protocol/deploy-tools-types": "0.0.0",
47
- "@gearbox-protocol/sdk": "7.0.0",
47
+ "@gearbox-protocol/sdk": "7.3.1",
48
48
  "@gearbox-protocol/sdk-gov": "^2.37.0",
49
49
  "@types/lodash-es": "^4.17.12",
50
50
  "@types/node": "^22.15.18",
@@ -66,7 +66,7 @@
66
66
  "react-dom": "^19.1.0",
67
67
  "table": "^6.9.0",
68
68
  "tsx": "^4.19.4",
69
- "viem": "^2.29.3",
69
+ "viem": "^2.29.4",
70
70
  "yaml": "^2.8.0",
71
71
  "zod": "^3.24.4"
72
72
  },