@bgd-labs/toolbox 0.0.33 → 0.0.35

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.js CHANGED
@@ -33455,7 +33455,9 @@ function getObjectDiff(obj1, obj2) {
33455
33455
  }
33456
33456
  function renderMarkdownStateDiffReport(changes, getContractName = (address) => `${address}`) {
33457
33457
  let report = "";
33458
- for (const contract of Object.keys(changes)) {
33458
+ for (const contract of Object.keys(changes).sort(
33459
+ (a, b) => a.localeCompare(b)
33460
+ )) {
33459
33461
  report += `#### ${getContractName(contract)}
33460
33462
 
33461
33463
  \`\`\`diff
@@ -33514,7 +33516,7 @@ async function formatBeforeAndAfter(change, formatInput) {
33514
33516
  change.after = await formatInput(change.after);
33515
33517
  }
33516
33518
  function primitiveReplacer(data, key) {
33517
- if (typeof data === "object") {
33519
+ if (data && typeof data === "object") {
33518
33520
  return Object.keys(data).reduce((acc, k) => {
33519
33521
  acc[k] = primitiveReplacer(acc[k], k);
33520
33522
  return acc;
@@ -33784,7 +33786,7 @@ ${payload.actions.map(
33784
33786
  report += "### Verification status for contracts touched in the proposal\n\n";
33785
33787
  report += "| Contract | Status |\n";
33786
33788
  report += "|---------|------------|\n";
33787
- verified.map((contract) => {
33789
+ verified.sort((a, b) => a.address.localeCompare(b.address)).map((contract) => {
33788
33790
  report += `| ${getContractName(sim, contract.address)} | ${verificationStatusToString(contract.status)} |
33789
33791
  `;
33790
33792
  });
@@ -33796,7 +33798,7 @@ ${payload.actions.map(
33796
33798
  `;
33797
33799
  report += "| Address | Result |\n";
33798
33800
  report += "|---------|------------|\n";
33799
- selfDestruct.map((selfDestruct2) => {
33801
+ selfDestruct.sort((a, b) => a.address.localeCompare(b.address)).map((selfDestruct2) => {
33800
33802
  report += `| ${getContractName(sim, selfDestruct2.address)} | ${selfDestructStatusToString(
33801
33803
  selfDestruct2.state
33802
33804
  )} |