@bgd-labs/toolbox 0.0.31 → 0.0.33

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 CHANGED
@@ -33584,7 +33584,7 @@ async function renderTenderlyReport({
33584
33584
  onchainLogs: { createdLog, queuedLog, executedLog },
33585
33585
  eventCache = [],
33586
33586
  config,
33587
- getContractName = (address) => getMdContractName(sim.contracts, address)
33587
+ getContractName = (sim2, address) => getMdContractName(sim2.contracts, address)
33588
33588
  }) {
33589
33589
  const events = sim.transaction.transaction_info?.logs ? tenderly_logsToAbiLogs(sim.transaction.transaction_info?.logs) : [];
33590
33590
  events.map((e) => {
@@ -33676,13 +33676,16 @@ ${payload.actions.map(
33676
33676
 
33677
33677
  `;
33678
33678
  }
33679
- report += renderMarkdownStateDiffReport(stateDiff, getContractName);
33679
+ report += renderMarkdownStateDiffReport(
33680
+ stateDiff,
33681
+ (address) => getContractName(sim, address)
33682
+ );
33680
33683
  if (verified.length) {
33681
33684
  report += "### Verification status for contracts touched in the proposal\n\n";
33682
33685
  report += "| Contract | Status |\n";
33683
33686
  report += "|---------|------------|\n";
33684
33687
  verified.map((contract) => {
33685
- report += `| ${getContractName(contract.address)}(${contract.name}) | ${verificationStatusToString(contract.status)} |
33688
+ report += `| ${getContractName(sim, contract.address)} | ${verificationStatusToString(contract.status)} |
33686
33689
  `;
33687
33690
  });
33688
33691
  report += "\n";
@@ -33694,7 +33697,7 @@ ${payload.actions.map(
33694
33697
  report += "| Address | Result |\n";
33695
33698
  report += "|---------|------------|\n";
33696
33699
  selfDestruct.map((selfDestruct2) => {
33697
- report += `| ${getContractName(selfDestruct2.address)} | ${selfDestructStatusToString(
33700
+ report += `| ${getContractName(sim, selfDestruct2.address)} | ${selfDestructStatusToString(
33698
33701
  selfDestruct2.state
33699
33702
  )} |
33700
33703
  `;
@@ -33706,7 +33709,7 @@ ${payload.actions.map(
33706
33709
  let ctr = zeroAddress3;
33707
33710
  logs.sort((a, b) => a.address.localeCompare(b.address)).map((log) => {
33708
33711
  if (log.address !== ctr) {
33709
- report += `- ${getContractName(log.address)}
33712
+ report += `- ${getContractName(sim, log.address)}
33710
33713
  `;
33711
33714
  ctr = log.address;
33712
33715
  }
@@ -33765,8 +33768,11 @@ export {
33765
33768
  WAD,
33766
33769
  WAD_RAY_RATIO,
33767
33770
  aaveAddressesProvider_IncentivesControllerSlot,
33771
+ addAssetPrice,
33772
+ addAssetSymbol,
33768
33773
  alchemyNetworkMap,
33769
33774
  alchemySupportedChainIds,
33775
+ assetIndexesToAsset,
33770
33776
  assetToBase,
33771
33777
  bitmapToIndexes,
33772
33778
  blockscoutExplorers,
@@ -33789,8 +33795,10 @@ export {
33789
33795
  fetchImmutablePoolAddresses,
33790
33796
  fetchMutablePoolAddresses,
33791
33797
  fetchPoolAddresses,
33798
+ findAsset,
33792
33799
  flashbotsClientExtension,
33793
33800
  flashbotsOnFetchRequest,
33801
+ formatNumberString,
33794
33802
  genericIndexer,
33795
33803
  getAlchemyRPC,
33796
33804
  getBits,
@@ -33805,6 +33813,7 @@ export {
33805
33813
  getImplementationSlot,
33806
33814
  getLogsRecursive,
33807
33815
  getMarketReferenceCurrencyAndUsdBalance,
33816
+ getMdContractName,
33808
33817
  getNetworkEnv,
33809
33818
  getNonFinalizedPayloads,
33810
33819
  getNonFinalizedProposals,
@@ -33829,6 +33838,7 @@ export {
33829
33838
  parseBlockscoutStyleSourceCode,
33830
33839
  parseEtherscanStyleSourceCode,
33831
33840
  parseLogs,
33841
+ prettifyNumber,
33832
33842
  priceUpdateDecoder,
33833
33843
  publicRPCs,
33834
33844
  quicknodeNetworkMap,
@@ -33846,6 +33856,7 @@ export {
33846
33856
  tenderly_logsToAbiLogs,
33847
33857
  tenderly_sim,
33848
33858
  tenderly_simVnet,
33859
+ toBinaryString,
33849
33860
  toTxLink,
33850
33861
  transformTenderlyStateDiff,
33851
33862
  validateAip,