@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.d.mts +39 -2
- package/dist/index.d.ts +39 -2
- package/dist/index.js +24 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +16 -5
- package/dist/index.mjs.map +1 -1
- package/dist/node.d.mts +1 -1
- package/dist/node.d.ts +1 -1
- package/dist/node.js +24 -5
- package/dist/node.js.map +1 -1
- package/dist/node.mjs +16 -5
- package/dist/node.mjs.map +1 -1
- package/package.json +1 -1
package/dist/node.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(
|
|
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(
|
|
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)}
|
|
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
|
}
|
|
@@ -33822,8 +33825,11 @@ export {
|
|
|
33822
33825
|
WAD,
|
|
33823
33826
|
WAD_RAY_RATIO,
|
|
33824
33827
|
aaveAddressesProvider_IncentivesControllerSlot,
|
|
33828
|
+
addAssetPrice,
|
|
33829
|
+
addAssetSymbol,
|
|
33825
33830
|
alchemyNetworkMap,
|
|
33826
33831
|
alchemySupportedChainIds,
|
|
33832
|
+
assetIndexesToAsset,
|
|
33827
33833
|
assetToBase,
|
|
33828
33834
|
bitmapToIndexes,
|
|
33829
33835
|
blockscoutExplorers,
|
|
@@ -33847,8 +33853,10 @@ export {
|
|
|
33847
33853
|
fetchImmutablePoolAddresses,
|
|
33848
33854
|
fetchMutablePoolAddresses,
|
|
33849
33855
|
fetchPoolAddresses,
|
|
33856
|
+
findAsset,
|
|
33850
33857
|
flashbotsClientExtension,
|
|
33851
33858
|
flashbotsOnFetchRequest,
|
|
33859
|
+
formatNumberString,
|
|
33852
33860
|
foundry_format,
|
|
33853
33861
|
foundry_getStandardJsonInput,
|
|
33854
33862
|
foundry_getStorageLayout,
|
|
@@ -33866,6 +33874,7 @@ export {
|
|
|
33866
33874
|
getImplementationSlot,
|
|
33867
33875
|
getLogsRecursive,
|
|
33868
33876
|
getMarketReferenceCurrencyAndUsdBalance,
|
|
33877
|
+
getMdContractName,
|
|
33869
33878
|
getNetworkEnv,
|
|
33870
33879
|
getNonFinalizedPayloads,
|
|
33871
33880
|
getNonFinalizedProposals,
|
|
@@ -33890,6 +33899,7 @@ export {
|
|
|
33890
33899
|
parseBlockscoutStyleSourceCode,
|
|
33891
33900
|
parseEtherscanStyleSourceCode,
|
|
33892
33901
|
parseLogs,
|
|
33902
|
+
prettifyNumber,
|
|
33893
33903
|
priceUpdateDecoder,
|
|
33894
33904
|
publicRPCs,
|
|
33895
33905
|
quicknodeNetworkMap,
|
|
@@ -33907,6 +33917,7 @@ export {
|
|
|
33907
33917
|
tenderly_logsToAbiLogs,
|
|
33908
33918
|
tenderly_sim,
|
|
33909
33919
|
tenderly_simVnet,
|
|
33920
|
+
toBinaryString,
|
|
33910
33921
|
toTxLink,
|
|
33911
33922
|
transformTenderlyStateDiff,
|
|
33912
33923
|
validateAip,
|