@bgd-labs/toolbox 0.0.16 → 0.0.18

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/node.d.mts CHANGED
@@ -39,6 +39,7 @@ type FoundryStorage = {
39
39
  types: Record<string, StorageType>;
40
40
  };
41
41
  declare function foundry_getStorageLayout(input: string): FoundryStorage;
42
+ declare function foundry_format(input: string): string;
42
43
  declare function diffFoundryStorageLayout(layoutBefore: FoundryStorage, layoutAfter: FoundryStorage): string;
43
44
 
44
- export { type FoundryStorage, type Storage, type StorageType, diffFoundryStorageLayout, foundry_getStandardJsonInput, foundry_getStorageLayout };
45
+ export { type FoundryStorage, type Storage, type StorageType, diffFoundryStorageLayout, foundry_format, foundry_getStandardJsonInput, foundry_getStorageLayout };
package/dist/node.d.ts CHANGED
@@ -39,6 +39,7 @@ type FoundryStorage = {
39
39
  types: Record<string, StorageType>;
40
40
  };
41
41
  declare function foundry_getStorageLayout(input: string): FoundryStorage;
42
+ declare function foundry_format(input: string): string;
42
43
  declare function diffFoundryStorageLayout(layoutBefore: FoundryStorage, layoutAfter: FoundryStorage): string;
43
44
 
44
- export { type FoundryStorage, type Storage, type StorageType, diffFoundryStorageLayout, foundry_getStandardJsonInput, foundry_getStorageLayout };
45
+ export { type FoundryStorage, type Storage, type StorageType, diffFoundryStorageLayout, foundry_format, foundry_getStandardJsonInput, foundry_getStorageLayout };
package/dist/node.js CHANGED
@@ -88,6 +88,7 @@ __export(node_exports, {
88
88
  fetchPoolAddresses: () => fetchPoolAddresses,
89
89
  flashbotsClientExtension: () => flashbotsClientExtension,
90
90
  flashbotsOnFetchRequest: () => flashbotsOnFetchRequest,
91
+ foundry_format: () => foundry_format,
91
92
  foundry_getStandardJsonInput: () => foundry_getStandardJsonInput,
92
93
  foundry_getStorageLayout: () => foundry_getStorageLayout,
93
94
  genericIndexer: () => genericIndexer,
@@ -26437,6 +26438,9 @@ function foundry_getStorageLayout(input) {
26437
26438
  );
26438
26439
  return output;
26439
26440
  }
26441
+ function foundry_format(input) {
26442
+ return (0, import_node_child_process.execSync)(`forge fmt - ${input}`).toString();
26443
+ }
26440
26444
  function cleanupFoundryStorageForDiffing(layout) {
26441
26445
  const cleanTypes = { ...layout.types };
26442
26446
  for (const key of Object.keys(cleanTypes)) {
@@ -26533,6 +26537,7 @@ function diffFoundryStorageLayout(layoutBefore, layoutAfter) {
26533
26537
  fetchPoolAddresses,
26534
26538
  flashbotsClientExtension,
26535
26539
  flashbotsOnFetchRequest,
26540
+ foundry_format,
26536
26541
  foundry_getStandardJsonInput,
26537
26542
  foundry_getStorageLayout,
26538
26543
  genericIndexer,