@bgd-labs/toolbox 0.0.30 → 0.0.32
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/index.d.mts
CHANGED
|
@@ -14069,7 +14069,7 @@ type RenderTenderlyReportParams = {
|
|
|
14069
14069
|
config: {
|
|
14070
14070
|
etherscanApiKey: string;
|
|
14071
14071
|
};
|
|
14072
|
-
getContractName:
|
|
14072
|
+
getContractName?: (sim: TenderlySimulationResponse, address: Address) => string;
|
|
14073
14073
|
};
|
|
14074
14074
|
declare function renderTenderlyReport({ client, sim, payloadId, payload, onchainLogs: { createdLog, queuedLog, executedLog }, eventCache, config, getContractName, }: RenderTenderlyReportParams): Promise<{
|
|
14075
14075
|
report: string;
|
|
@@ -14165,6 +14165,43 @@ declare function renderMarkdownStateDiffReport(changes: Record<Address, Change[]
|
|
|
14165
14165
|
*/
|
|
14166
14166
|
declare function enhanceStateDiff(client: Client, diff: Record<Address, Change[]>): Promise<Record<`0x${string}`, Change<string>[]>>;
|
|
14167
14167
|
|
|
14168
|
+
type AssetInfo = {
|
|
14169
|
+
symbol: string;
|
|
14170
|
+
decimals: number;
|
|
14171
|
+
};
|
|
14172
|
+
/**
|
|
14173
|
+
* Small utility function to find asset information either via cache or via contract call
|
|
14174
|
+
* @param client
|
|
14175
|
+
* @param address
|
|
14176
|
+
* @returns {symbol, decimals}
|
|
14177
|
+
*/
|
|
14178
|
+
declare function findAsset(client: Client, address: Hex): Promise<AssetInfo>;
|
|
14179
|
+
declare function assetIndexesToAsset(client: Client, poolAddress: Hex, indexes: number[]): Promise<string[]>;
|
|
14180
|
+
declare function addAssetSymbol(asset: AssetInfo, value: Address): string;
|
|
14181
|
+
/**
|
|
14182
|
+
* Returns a string with `,` separators.
|
|
14183
|
+
* Not using toLocalString() as it forces us to use `number` types, which can be problematic with decimals & big numbers
|
|
14184
|
+
* @param x
|
|
14185
|
+
* @returns
|
|
14186
|
+
* credits: https://stackoverflow.com/a/2901298
|
|
14187
|
+
*/
|
|
14188
|
+
declare function formatNumberString(x: string | number): string;
|
|
14189
|
+
declare function prettifyNumber({ value, decimals, prefix, suffix, showDecimals, patchedValue, }: {
|
|
14190
|
+
value: string | number | bigint;
|
|
14191
|
+
decimals: number;
|
|
14192
|
+
prefix?: string;
|
|
14193
|
+
suffix?: string;
|
|
14194
|
+
showDecimals?: boolean;
|
|
14195
|
+
patchedValue?: string | number | bigint;
|
|
14196
|
+
}): string;
|
|
14197
|
+
declare function toBinaryString(value: bigint): string;
|
|
14198
|
+
declare function addAssetPrice(client: Client, address: Address): Promise<string>;
|
|
14199
|
+
/**
|
|
14200
|
+
* @notice Given a Tenderly contract object, generates a descriptive human-friendly name for that contract
|
|
14201
|
+
* @param contract Tenderly contract object to generate name from
|
|
14202
|
+
*/
|
|
14203
|
+
declare function getMdContractName(contracts: TenderlySimulationResponse["contracts"], address: Address): string;
|
|
14204
|
+
|
|
14168
14205
|
declare const IReserveInterestRateStrategy_ABI: readonly [{
|
|
14169
14206
|
readonly type: "function";
|
|
14170
14207
|
readonly name: "calculateInterestRates";
|
|
@@ -24471,4 +24508,4 @@ declare const IAuthorizedForwarder_ABI: readonly [{
|
|
|
24471
24508
|
readonly type: "function";
|
|
24472
24509
|
}];
|
|
24473
24510
|
|
|
24474
|
-
export { AggregatorInterface_ABI, Aip, type BlockscoutStyleSourceCode, type BundleParams, ChainId, ChainList, type ContractObject, EVENT_DB, type EtherscanStyleSourceCode, type ExplorerConfig, type GenericIndexerArgs, type GovernanceContract, HALF_RAY, HALF_WAD, HUMAN_READABLE_PAYLOAD_STATE, HUMAN_READABLE_PROPOSAL_STATE, IAToken_ABI, IAaveOracle_ABI, IAaveV3ConfigEngine_ABI, IAuthorizedForwarder_ABI, ICollector_ABI, IDualAggregator_ABI, IERC20Metadata_ABI, IERC20_ABI, IEmissionManager_ABI, IPoolAddressesProvider_ABI, IPoolConfigurator_ABI, IPool_ABI, IReserveInterestRateStrategy_ABI, IRewardsController_ABI, IStataTokenFactory_ABI, IStataTokenV2_ABI, IUmbrellaStakeToken_ABI, IUmbrella_ABI, IWrappedTokenGatewayV3_ABI, type IndexerTopicState, type Input, LTV_PRECISION, type Payload, PayloadState, type PayloadsControllerContract, type Proposal, ProposalState, RAY, type ReserveConfiguration, SECONDS_PER_YEAR, SelfdestructCheckState, type SoltypeElement, SoltypeType, type StandardJsonInput, type StateDiff, type StateObject, type SupportedChainIds, type TenderlyLog, type TenderlyLogRaw, type TenderlySimRequest, type TenderlySimulationResponse, type TenderlySimulationResponseObject, type TenderlyStackTrace, type Tenderly_createVnetParamsResponse, type Trace, type TransactionInfo, VerificationStatus, WAD, WAD_RAY_RATIO, aaveAddressesProvider_IncentivesControllerSlot, alchemyNetworkMap, alchemySupportedChainIds, assetToBase, bitmapToIndexes, blockscoutExplorers, calculateAvailableBorrowsMarketReferenceCurrency, calculateCompoundedInterest, calculateHealthFactor, calculateHealthFactorFromBalances, calculateLinearInterest, chainlinkFeeds, checkForSelfdestruct, decodeReserveConfiguration, decodeReserveConfigurationV2, decodeUserConfiguration, diffCode, enhanceLogs, enhanceStateDiff, erc1967_AdminSlot, erc1967_ImplementationSlot, etherscanExplorers, fetchImmutablePoolAddresses, fetchMutablePoolAddresses, fetchPoolAddresses, flashbotsClientExtension, flashbotsOnFetchRequest, genericIndexer, getAlchemyRPC, getBits, getClient, getContractDeploymentBlock, getCurrentDebtBalance, getCurrentLiquidityBalance, getExplicitRPC, getExplorer, getGovernance, getHyperRPC, getImplementationSlot, getLogsRecursive, getMarketReferenceCurrencyAndUsdBalance, getNetworkEnv, getNonFinalizedPayloads, getNonFinalizedProposals, getNormalizedDebt, getNormalizedIncome, getObjectDiff, getPayloadStorageOverrides, getPayloadsController, getPublicRpc, getQuicknodeRpc, getRPCUrl, getReserveConfigurations, getReserveTokens, getSourceCode, getVerificationStatus, hyperRPCSupportedNetworks, isPayloadFinal, isProposalFinal, makePayloadExecutableOnTestClient, makeProposalExecutableOnTestClient, onMevHandler, parseBlockscoutStyleSourceCode, parseEtherscanStyleSourceCode, parseLogs, priceUpdateDecoder, publicRPCs, quicknodeNetworkMap, rayDiv, rayMul, rayToWad, renderMarkdownStateDiffReport, renderTenderlyReport, routescanExplorers, selfDestructStatusToString, setBits, tenderly_createVnet, tenderly_deleteVnet, tenderly_getVnet, tenderly_logsToAbiLogs, tenderly_sim, tenderly_simVnet, toTxLink, transformTenderlyStateDiff, validateAip, verificationStatusToString, wadDiv, wadToRay };
|
|
24511
|
+
export { AggregatorInterface_ABI, Aip, type AssetInfo, type BlockscoutStyleSourceCode, type BundleParams, ChainId, ChainList, type ContractObject, EVENT_DB, type EtherscanStyleSourceCode, type ExplorerConfig, type GenericIndexerArgs, type GovernanceContract, HALF_RAY, HALF_WAD, HUMAN_READABLE_PAYLOAD_STATE, HUMAN_READABLE_PROPOSAL_STATE, IAToken_ABI, IAaveOracle_ABI, IAaveV3ConfigEngine_ABI, IAuthorizedForwarder_ABI, ICollector_ABI, IDualAggregator_ABI, IERC20Metadata_ABI, IERC20_ABI, IEmissionManager_ABI, IPoolAddressesProvider_ABI, IPoolConfigurator_ABI, IPool_ABI, IReserveInterestRateStrategy_ABI, IRewardsController_ABI, IStataTokenFactory_ABI, IStataTokenV2_ABI, IUmbrellaStakeToken_ABI, IUmbrella_ABI, IWrappedTokenGatewayV3_ABI, type IndexerTopicState, type Input, LTV_PRECISION, type Payload, PayloadState, type PayloadsControllerContract, type Proposal, ProposalState, RAY, type ReserveConfiguration, SECONDS_PER_YEAR, SelfdestructCheckState, type SoltypeElement, SoltypeType, type StandardJsonInput, type StateDiff, type StateObject, type SupportedChainIds, type TenderlyLog, type TenderlyLogRaw, type TenderlySimRequest, type TenderlySimulationResponse, type TenderlySimulationResponseObject, type TenderlyStackTrace, type Tenderly_createVnetParamsResponse, type Trace, type TransactionInfo, VerificationStatus, WAD, WAD_RAY_RATIO, aaveAddressesProvider_IncentivesControllerSlot, addAssetPrice, addAssetSymbol, alchemyNetworkMap, alchemySupportedChainIds, assetIndexesToAsset, assetToBase, bitmapToIndexes, blockscoutExplorers, calculateAvailableBorrowsMarketReferenceCurrency, calculateCompoundedInterest, calculateHealthFactor, calculateHealthFactorFromBalances, calculateLinearInterest, chainlinkFeeds, checkForSelfdestruct, decodeReserveConfiguration, decodeReserveConfigurationV2, decodeUserConfiguration, diffCode, enhanceLogs, enhanceStateDiff, erc1967_AdminSlot, erc1967_ImplementationSlot, etherscanExplorers, fetchImmutablePoolAddresses, fetchMutablePoolAddresses, fetchPoolAddresses, findAsset, flashbotsClientExtension, flashbotsOnFetchRequest, formatNumberString, genericIndexer, getAlchemyRPC, getBits, getClient, getContractDeploymentBlock, getCurrentDebtBalance, getCurrentLiquidityBalance, getExplicitRPC, getExplorer, getGovernance, getHyperRPC, getImplementationSlot, getLogsRecursive, getMarketReferenceCurrencyAndUsdBalance, getMdContractName, getNetworkEnv, getNonFinalizedPayloads, getNonFinalizedProposals, getNormalizedDebt, getNormalizedIncome, getObjectDiff, getPayloadStorageOverrides, getPayloadsController, getPublicRpc, getQuicknodeRpc, getRPCUrl, getReserveConfigurations, getReserveTokens, getSourceCode, getVerificationStatus, hyperRPCSupportedNetworks, isPayloadFinal, isProposalFinal, makePayloadExecutableOnTestClient, makeProposalExecutableOnTestClient, onMevHandler, parseBlockscoutStyleSourceCode, parseEtherscanStyleSourceCode, parseLogs, prettifyNumber, priceUpdateDecoder, publicRPCs, quicknodeNetworkMap, rayDiv, rayMul, rayToWad, renderMarkdownStateDiffReport, renderTenderlyReport, routescanExplorers, selfDestructStatusToString, setBits, tenderly_createVnet, tenderly_deleteVnet, tenderly_getVnet, tenderly_logsToAbiLogs, tenderly_sim, tenderly_simVnet, toBinaryString, toTxLink, transformTenderlyStateDiff, validateAip, verificationStatusToString, wadDiv, wadToRay };
|
package/dist/index.d.ts
CHANGED
|
@@ -14069,7 +14069,7 @@ type RenderTenderlyReportParams = {
|
|
|
14069
14069
|
config: {
|
|
14070
14070
|
etherscanApiKey: string;
|
|
14071
14071
|
};
|
|
14072
|
-
getContractName:
|
|
14072
|
+
getContractName?: (sim: TenderlySimulationResponse, address: Address) => string;
|
|
14073
14073
|
};
|
|
14074
14074
|
declare function renderTenderlyReport({ client, sim, payloadId, payload, onchainLogs: { createdLog, queuedLog, executedLog }, eventCache, config, getContractName, }: RenderTenderlyReportParams): Promise<{
|
|
14075
14075
|
report: string;
|
|
@@ -14165,6 +14165,43 @@ declare function renderMarkdownStateDiffReport(changes: Record<Address, Change[]
|
|
|
14165
14165
|
*/
|
|
14166
14166
|
declare function enhanceStateDiff(client: Client, diff: Record<Address, Change[]>): Promise<Record<`0x${string}`, Change<string>[]>>;
|
|
14167
14167
|
|
|
14168
|
+
type AssetInfo = {
|
|
14169
|
+
symbol: string;
|
|
14170
|
+
decimals: number;
|
|
14171
|
+
};
|
|
14172
|
+
/**
|
|
14173
|
+
* Small utility function to find asset information either via cache or via contract call
|
|
14174
|
+
* @param client
|
|
14175
|
+
* @param address
|
|
14176
|
+
* @returns {symbol, decimals}
|
|
14177
|
+
*/
|
|
14178
|
+
declare function findAsset(client: Client, address: Hex): Promise<AssetInfo>;
|
|
14179
|
+
declare function assetIndexesToAsset(client: Client, poolAddress: Hex, indexes: number[]): Promise<string[]>;
|
|
14180
|
+
declare function addAssetSymbol(asset: AssetInfo, value: Address): string;
|
|
14181
|
+
/**
|
|
14182
|
+
* Returns a string with `,` separators.
|
|
14183
|
+
* Not using toLocalString() as it forces us to use `number` types, which can be problematic with decimals & big numbers
|
|
14184
|
+
* @param x
|
|
14185
|
+
* @returns
|
|
14186
|
+
* credits: https://stackoverflow.com/a/2901298
|
|
14187
|
+
*/
|
|
14188
|
+
declare function formatNumberString(x: string | number): string;
|
|
14189
|
+
declare function prettifyNumber({ value, decimals, prefix, suffix, showDecimals, patchedValue, }: {
|
|
14190
|
+
value: string | number | bigint;
|
|
14191
|
+
decimals: number;
|
|
14192
|
+
prefix?: string;
|
|
14193
|
+
suffix?: string;
|
|
14194
|
+
showDecimals?: boolean;
|
|
14195
|
+
patchedValue?: string | number | bigint;
|
|
14196
|
+
}): string;
|
|
14197
|
+
declare function toBinaryString(value: bigint): string;
|
|
14198
|
+
declare function addAssetPrice(client: Client, address: Address): Promise<string>;
|
|
14199
|
+
/**
|
|
14200
|
+
* @notice Given a Tenderly contract object, generates a descriptive human-friendly name for that contract
|
|
14201
|
+
* @param contract Tenderly contract object to generate name from
|
|
14202
|
+
*/
|
|
14203
|
+
declare function getMdContractName(contracts: TenderlySimulationResponse["contracts"], address: Address): string;
|
|
14204
|
+
|
|
14168
14205
|
declare const IReserveInterestRateStrategy_ABI: readonly [{
|
|
14169
14206
|
readonly type: "function";
|
|
14170
14207
|
readonly name: "calculateInterestRates";
|
|
@@ -24471,4 +24508,4 @@ declare const IAuthorizedForwarder_ABI: readonly [{
|
|
|
24471
24508
|
readonly type: "function";
|
|
24472
24509
|
}];
|
|
24473
24510
|
|
|
24474
|
-
export { AggregatorInterface_ABI, Aip, type BlockscoutStyleSourceCode, type BundleParams, ChainId, ChainList, type ContractObject, EVENT_DB, type EtherscanStyleSourceCode, type ExplorerConfig, type GenericIndexerArgs, type GovernanceContract, HALF_RAY, HALF_WAD, HUMAN_READABLE_PAYLOAD_STATE, HUMAN_READABLE_PROPOSAL_STATE, IAToken_ABI, IAaveOracle_ABI, IAaveV3ConfigEngine_ABI, IAuthorizedForwarder_ABI, ICollector_ABI, IDualAggregator_ABI, IERC20Metadata_ABI, IERC20_ABI, IEmissionManager_ABI, IPoolAddressesProvider_ABI, IPoolConfigurator_ABI, IPool_ABI, IReserveInterestRateStrategy_ABI, IRewardsController_ABI, IStataTokenFactory_ABI, IStataTokenV2_ABI, IUmbrellaStakeToken_ABI, IUmbrella_ABI, IWrappedTokenGatewayV3_ABI, type IndexerTopicState, type Input, LTV_PRECISION, type Payload, PayloadState, type PayloadsControllerContract, type Proposal, ProposalState, RAY, type ReserveConfiguration, SECONDS_PER_YEAR, SelfdestructCheckState, type SoltypeElement, SoltypeType, type StandardJsonInput, type StateDiff, type StateObject, type SupportedChainIds, type TenderlyLog, type TenderlyLogRaw, type TenderlySimRequest, type TenderlySimulationResponse, type TenderlySimulationResponseObject, type TenderlyStackTrace, type Tenderly_createVnetParamsResponse, type Trace, type TransactionInfo, VerificationStatus, WAD, WAD_RAY_RATIO, aaveAddressesProvider_IncentivesControllerSlot, alchemyNetworkMap, alchemySupportedChainIds, assetToBase, bitmapToIndexes, blockscoutExplorers, calculateAvailableBorrowsMarketReferenceCurrency, calculateCompoundedInterest, calculateHealthFactor, calculateHealthFactorFromBalances, calculateLinearInterest, chainlinkFeeds, checkForSelfdestruct, decodeReserveConfiguration, decodeReserveConfigurationV2, decodeUserConfiguration, diffCode, enhanceLogs, enhanceStateDiff, erc1967_AdminSlot, erc1967_ImplementationSlot, etherscanExplorers, fetchImmutablePoolAddresses, fetchMutablePoolAddresses, fetchPoolAddresses, flashbotsClientExtension, flashbotsOnFetchRequest, genericIndexer, getAlchemyRPC, getBits, getClient, getContractDeploymentBlock, getCurrentDebtBalance, getCurrentLiquidityBalance, getExplicitRPC, getExplorer, getGovernance, getHyperRPC, getImplementationSlot, getLogsRecursive, getMarketReferenceCurrencyAndUsdBalance, getNetworkEnv, getNonFinalizedPayloads, getNonFinalizedProposals, getNormalizedDebt, getNormalizedIncome, getObjectDiff, getPayloadStorageOverrides, getPayloadsController, getPublicRpc, getQuicknodeRpc, getRPCUrl, getReserveConfigurations, getReserveTokens, getSourceCode, getVerificationStatus, hyperRPCSupportedNetworks, isPayloadFinal, isProposalFinal, makePayloadExecutableOnTestClient, makeProposalExecutableOnTestClient, onMevHandler, parseBlockscoutStyleSourceCode, parseEtherscanStyleSourceCode, parseLogs, priceUpdateDecoder, publicRPCs, quicknodeNetworkMap, rayDiv, rayMul, rayToWad, renderMarkdownStateDiffReport, renderTenderlyReport, routescanExplorers, selfDestructStatusToString, setBits, tenderly_createVnet, tenderly_deleteVnet, tenderly_getVnet, tenderly_logsToAbiLogs, tenderly_sim, tenderly_simVnet, toTxLink, transformTenderlyStateDiff, validateAip, verificationStatusToString, wadDiv, wadToRay };
|
|
24511
|
+
export { AggregatorInterface_ABI, Aip, type AssetInfo, type BlockscoutStyleSourceCode, type BundleParams, ChainId, ChainList, type ContractObject, EVENT_DB, type EtherscanStyleSourceCode, type ExplorerConfig, type GenericIndexerArgs, type GovernanceContract, HALF_RAY, HALF_WAD, HUMAN_READABLE_PAYLOAD_STATE, HUMAN_READABLE_PROPOSAL_STATE, IAToken_ABI, IAaveOracle_ABI, IAaveV3ConfigEngine_ABI, IAuthorizedForwarder_ABI, ICollector_ABI, IDualAggregator_ABI, IERC20Metadata_ABI, IERC20_ABI, IEmissionManager_ABI, IPoolAddressesProvider_ABI, IPoolConfigurator_ABI, IPool_ABI, IReserveInterestRateStrategy_ABI, IRewardsController_ABI, IStataTokenFactory_ABI, IStataTokenV2_ABI, IUmbrellaStakeToken_ABI, IUmbrella_ABI, IWrappedTokenGatewayV3_ABI, type IndexerTopicState, type Input, LTV_PRECISION, type Payload, PayloadState, type PayloadsControllerContract, type Proposal, ProposalState, RAY, type ReserveConfiguration, SECONDS_PER_YEAR, SelfdestructCheckState, type SoltypeElement, SoltypeType, type StandardJsonInput, type StateDiff, type StateObject, type SupportedChainIds, type TenderlyLog, type TenderlyLogRaw, type TenderlySimRequest, type TenderlySimulationResponse, type TenderlySimulationResponseObject, type TenderlyStackTrace, type Tenderly_createVnetParamsResponse, type Trace, type TransactionInfo, VerificationStatus, WAD, WAD_RAY_RATIO, aaveAddressesProvider_IncentivesControllerSlot, addAssetPrice, addAssetSymbol, alchemyNetworkMap, alchemySupportedChainIds, assetIndexesToAsset, assetToBase, bitmapToIndexes, blockscoutExplorers, calculateAvailableBorrowsMarketReferenceCurrency, calculateCompoundedInterest, calculateHealthFactor, calculateHealthFactorFromBalances, calculateLinearInterest, chainlinkFeeds, checkForSelfdestruct, decodeReserveConfiguration, decodeReserveConfigurationV2, decodeUserConfiguration, diffCode, enhanceLogs, enhanceStateDiff, erc1967_AdminSlot, erc1967_ImplementationSlot, etherscanExplorers, fetchImmutablePoolAddresses, fetchMutablePoolAddresses, fetchPoolAddresses, findAsset, flashbotsClientExtension, flashbotsOnFetchRequest, formatNumberString, genericIndexer, getAlchemyRPC, getBits, getClient, getContractDeploymentBlock, getCurrentDebtBalance, getCurrentLiquidityBalance, getExplicitRPC, getExplorer, getGovernance, getHyperRPC, getImplementationSlot, getLogsRecursive, getMarketReferenceCurrencyAndUsdBalance, getMdContractName, getNetworkEnv, getNonFinalizedPayloads, getNonFinalizedProposals, getNormalizedDebt, getNormalizedIncome, getObjectDiff, getPayloadStorageOverrides, getPayloadsController, getPublicRpc, getQuicknodeRpc, getRPCUrl, getReserveConfigurations, getReserveTokens, getSourceCode, getVerificationStatus, hyperRPCSupportedNetworks, isPayloadFinal, isProposalFinal, makePayloadExecutableOnTestClient, makeProposalExecutableOnTestClient, onMevHandler, parseBlockscoutStyleSourceCode, parseEtherscanStyleSourceCode, parseLogs, prettifyNumber, priceUpdateDecoder, publicRPCs, quicknodeNetworkMap, rayDiv, rayMul, rayToWad, renderMarkdownStateDiffReport, renderTenderlyReport, routescanExplorers, selfDestructStatusToString, setBits, tenderly_createVnet, tenderly_deleteVnet, tenderly_getVnet, tenderly_logsToAbiLogs, tenderly_sim, tenderly_simVnet, toBinaryString, toTxLink, transformTenderlyStateDiff, validateAip, verificationStatusToString, wadDiv, wadToRay };
|
package/dist/index.js
CHANGED
|
@@ -69,8 +69,11 @@ __export(index_exports, {
|
|
|
69
69
|
WAD: () => WAD,
|
|
70
70
|
WAD_RAY_RATIO: () => WAD_RAY_RATIO,
|
|
71
71
|
aaveAddressesProvider_IncentivesControllerSlot: () => aaveAddressesProvider_IncentivesControllerSlot,
|
|
72
|
+
addAssetPrice: () => addAssetPrice,
|
|
73
|
+
addAssetSymbol: () => addAssetSymbol,
|
|
72
74
|
alchemyNetworkMap: () => alchemyNetworkMap,
|
|
73
75
|
alchemySupportedChainIds: () => alchemySupportedChainIds,
|
|
76
|
+
assetIndexesToAsset: () => assetIndexesToAsset,
|
|
74
77
|
assetToBase: () => assetToBase,
|
|
75
78
|
bitmapToIndexes: () => bitmapToIndexes,
|
|
76
79
|
blockscoutExplorers: () => blockscoutExplorers,
|
|
@@ -93,8 +96,10 @@ __export(index_exports, {
|
|
|
93
96
|
fetchImmutablePoolAddresses: () => fetchImmutablePoolAddresses,
|
|
94
97
|
fetchMutablePoolAddresses: () => fetchMutablePoolAddresses,
|
|
95
98
|
fetchPoolAddresses: () => fetchPoolAddresses,
|
|
99
|
+
findAsset: () => findAsset,
|
|
96
100
|
flashbotsClientExtension: () => flashbotsClientExtension,
|
|
97
101
|
flashbotsOnFetchRequest: () => flashbotsOnFetchRequest,
|
|
102
|
+
formatNumberString: () => formatNumberString,
|
|
98
103
|
genericIndexer: () => genericIndexer,
|
|
99
104
|
getAlchemyRPC: () => getAlchemyRPC,
|
|
100
105
|
getBits: () => getBits,
|
|
@@ -109,6 +114,7 @@ __export(index_exports, {
|
|
|
109
114
|
getImplementationSlot: () => getImplementationSlot,
|
|
110
115
|
getLogsRecursive: () => getLogsRecursive,
|
|
111
116
|
getMarketReferenceCurrencyAndUsdBalance: () => getMarketReferenceCurrencyAndUsdBalance,
|
|
117
|
+
getMdContractName: () => getMdContractName,
|
|
112
118
|
getNetworkEnv: () => getNetworkEnv,
|
|
113
119
|
getNonFinalizedPayloads: () => getNonFinalizedPayloads,
|
|
114
120
|
getNonFinalizedProposals: () => getNonFinalizedProposals,
|
|
@@ -133,6 +139,7 @@ __export(index_exports, {
|
|
|
133
139
|
parseBlockscoutStyleSourceCode: () => parseBlockscoutStyleSourceCode,
|
|
134
140
|
parseEtherscanStyleSourceCode: () => parseEtherscanStyleSourceCode,
|
|
135
141
|
parseLogs: () => parseLogs,
|
|
142
|
+
prettifyNumber: () => prettifyNumber,
|
|
136
143
|
priceUpdateDecoder: () => priceUpdateDecoder,
|
|
137
144
|
publicRPCs: () => publicRPCs,
|
|
138
145
|
quicknodeNetworkMap: () => quicknodeNetworkMap,
|
|
@@ -150,6 +157,7 @@ __export(index_exports, {
|
|
|
150
157
|
tenderly_logsToAbiLogs: () => tenderly_logsToAbiLogs,
|
|
151
158
|
tenderly_sim: () => tenderly_sim,
|
|
152
159
|
tenderly_simVnet: () => tenderly_simVnet,
|
|
160
|
+
toBinaryString: () => toBinaryString,
|
|
153
161
|
toTxLink: () => toTxLink,
|
|
154
162
|
transformTenderlyStateDiff: () => transformTenderlyStateDiff,
|
|
155
163
|
validateAip: () => validateAip,
|
|
@@ -33676,7 +33684,7 @@ async function renderTenderlyReport({
|
|
|
33676
33684
|
onchainLogs: { createdLog, queuedLog, executedLog },
|
|
33677
33685
|
eventCache = [],
|
|
33678
33686
|
config,
|
|
33679
|
-
getContractName = (address) => getMdContractName(
|
|
33687
|
+
getContractName = (sim2, address) => getMdContractName(sim2.contracts, address)
|
|
33680
33688
|
}) {
|
|
33681
33689
|
const events = sim.transaction.transaction_info?.logs ? tenderly_logsToAbiLogs(sim.transaction.transaction_info?.logs) : [];
|
|
33682
33690
|
events.map((e) => {
|
|
@@ -33768,13 +33776,16 @@ ${payload.actions.map(
|
|
|
33768
33776
|
|
|
33769
33777
|
`;
|
|
33770
33778
|
}
|
|
33771
|
-
report += renderMarkdownStateDiffReport(
|
|
33779
|
+
report += renderMarkdownStateDiffReport(
|
|
33780
|
+
stateDiff,
|
|
33781
|
+
(address) => getContractName(sim, address)
|
|
33782
|
+
);
|
|
33772
33783
|
if (verified.length) {
|
|
33773
33784
|
report += "### Verification status for contracts touched in the proposal\n\n";
|
|
33774
33785
|
report += "| Contract | Status |\n";
|
|
33775
33786
|
report += "|---------|------------|\n";
|
|
33776
33787
|
verified.map((contract) => {
|
|
33777
|
-
report += `| ${getContractName(contract.address)}(${contract.name}) | ${verificationStatusToString(contract.status)} |
|
|
33788
|
+
report += `| ${getContractName(sim, contract.address)}(${contract.name}) | ${verificationStatusToString(contract.status)} |
|
|
33778
33789
|
`;
|
|
33779
33790
|
});
|
|
33780
33791
|
report += "\n";
|
|
@@ -33786,7 +33797,7 @@ ${payload.actions.map(
|
|
|
33786
33797
|
report += "| Address | Result |\n";
|
|
33787
33798
|
report += "|---------|------------|\n";
|
|
33788
33799
|
selfDestruct.map((selfDestruct2) => {
|
|
33789
|
-
report += `| ${getContractName(selfDestruct2.address)} | ${selfDestructStatusToString(
|
|
33800
|
+
report += `| ${getContractName(sim, selfDestruct2.address)} | ${selfDestructStatusToString(
|
|
33790
33801
|
selfDestruct2.state
|
|
33791
33802
|
)} |
|
|
33792
33803
|
`;
|
|
@@ -33798,7 +33809,7 @@ ${payload.actions.map(
|
|
|
33798
33809
|
let ctr = import_viem12.zeroAddress;
|
|
33799
33810
|
logs.sort((a, b) => a.address.localeCompare(b.address)).map((log) => {
|
|
33800
33811
|
if (log.address !== ctr) {
|
|
33801
|
-
report += `- ${getContractName(log.address)}
|
|
33812
|
+
report += `- ${getContractName(sim, log.address)}
|
|
33802
33813
|
`;
|
|
33803
33814
|
ctr = log.address;
|
|
33804
33815
|
}
|
|
@@ -33858,8 +33869,11 @@ function toTxLink(txn, client) {
|
|
|
33858
33869
|
WAD,
|
|
33859
33870
|
WAD_RAY_RATIO,
|
|
33860
33871
|
aaveAddressesProvider_IncentivesControllerSlot,
|
|
33872
|
+
addAssetPrice,
|
|
33873
|
+
addAssetSymbol,
|
|
33861
33874
|
alchemyNetworkMap,
|
|
33862
33875
|
alchemySupportedChainIds,
|
|
33876
|
+
assetIndexesToAsset,
|
|
33863
33877
|
assetToBase,
|
|
33864
33878
|
bitmapToIndexes,
|
|
33865
33879
|
blockscoutExplorers,
|
|
@@ -33882,8 +33896,10 @@ function toTxLink(txn, client) {
|
|
|
33882
33896
|
fetchImmutablePoolAddresses,
|
|
33883
33897
|
fetchMutablePoolAddresses,
|
|
33884
33898
|
fetchPoolAddresses,
|
|
33899
|
+
findAsset,
|
|
33885
33900
|
flashbotsClientExtension,
|
|
33886
33901
|
flashbotsOnFetchRequest,
|
|
33902
|
+
formatNumberString,
|
|
33887
33903
|
genericIndexer,
|
|
33888
33904
|
getAlchemyRPC,
|
|
33889
33905
|
getBits,
|
|
@@ -33898,6 +33914,7 @@ function toTxLink(txn, client) {
|
|
|
33898
33914
|
getImplementationSlot,
|
|
33899
33915
|
getLogsRecursive,
|
|
33900
33916
|
getMarketReferenceCurrencyAndUsdBalance,
|
|
33917
|
+
getMdContractName,
|
|
33901
33918
|
getNetworkEnv,
|
|
33902
33919
|
getNonFinalizedPayloads,
|
|
33903
33920
|
getNonFinalizedProposals,
|
|
@@ -33922,6 +33939,7 @@ function toTxLink(txn, client) {
|
|
|
33922
33939
|
parseBlockscoutStyleSourceCode,
|
|
33923
33940
|
parseEtherscanStyleSourceCode,
|
|
33924
33941
|
parseLogs,
|
|
33942
|
+
prettifyNumber,
|
|
33925
33943
|
priceUpdateDecoder,
|
|
33926
33944
|
publicRPCs,
|
|
33927
33945
|
quicknodeNetworkMap,
|
|
@@ -33939,6 +33957,7 @@ function toTxLink(txn, client) {
|
|
|
33939
33957
|
tenderly_logsToAbiLogs,
|
|
33940
33958
|
tenderly_sim,
|
|
33941
33959
|
tenderly_simVnet,
|
|
33960
|
+
toBinaryString,
|
|
33942
33961
|
toTxLink,
|
|
33943
33962
|
transformTenderlyStateDiff,
|
|
33944
33963
|
validateAip,
|