@bgd-labs/toolbox 0.0.44 → 0.0.46

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 CHANGED
@@ -682,6 +682,7 @@ declare function tenderly_logsToAbiLogs(logs: TenderlyLog[]): {
682
682
  type: string;
683
683
  name: string | null;
684
684
  }[];
685
+ declare function tenderly_pingExplorer(chainId: number, address: Address): Promise<Response>;
685
686
 
686
687
  declare const EVENT_DB: readonly [];
687
688
 
@@ -739,12 +740,13 @@ declare const publicRPCs: {
739
740
  readonly 59144: "https://rpc.linea.build";
740
741
  readonly 60808: "https://rpc.gobob.xyz";
741
742
  readonly 9745: "https://rpc.plasma.to";
743
+ readonly 57073: "https://ink-public.nodies.app";
742
744
  };
743
745
  declare const alchemySupportedChainIds: (1 | 10 | 56 | 100 | 137 | 146 | 324 | 1101 | 5000 | 8453 | 42161 | 42220 | 43113 | 43114 | 59144 | 80002 | 84532 | 421614 | 534351 | 534352 | 11155111 | 11155420 | 1088 | 9745 | 57073 | 250 | 1868 | 60808 | 1666600000 | 4002)[];
744
746
  declare const getNetworkEnv: (chainId: SupportedChainIds) => "RPC_BNB" | "RPC_CELO" | "RPC_METIS" | "RPC_BOB" | "RPC_BASE" | "RPC_SCROLL" | "RPC_MAINNET" | "RPC_POLYGON" | "RPC_POLYGON_AMOY" | "RPC_AVALANCHE" | "RPC_AVALANCHE_FUJI" | "RPC_ARBITRUM" | "RPC_ARBITRUM_SEPOLIA" | "RPC_FANTOM" | "RPC_FANTOM_TESTNET" | "RPC_OPTIMISM" | "RPC_OPTIMISM_SEPOLIA" | "RPC_HARMONY" | "RPC_SEPOLIA" | "RPC_SCROLL_SEPOLIA" | "RPC_SONIC" | "RPC_MANTLE" | "RPC_BASE_SEPOLIA" | "RPC_GNOSIS" | "RPC_ZKEVM" | "RPC_ZKSYNC" | "RPC_LINEA" | "RPC_INK" | "RPC_SONEIUM" | "RPC_PLASMA";
745
747
  declare function getExplicitRPC(chainId: SupportedChainIds): string;
746
748
  declare function getAlchemyRPC(chainId: SupportedChainIds, alchemyKey: string): string;
747
- declare function getPublicRpc(chainId: SupportedChainIds): "https://mainnet.era.zksync.io" | "https://api.avax.network/ext/bc/C/rpc" | "https://rpc.linea.build" | "https://rpc.scroll.io" | "https://andromeda.metis.io/?owner=1088" | "https://rpc.plasma.to" | "https://rpc.gobob.xyz" | "https://eth.llamarpc.com" | "https://polygon.llamarpc.com" | "https://base.llamarpc.com" | "https://binance.llamarpc.com" | "https://rpc.ankr.com/gnosis" | "https://rpc.ftm.tools";
749
+ declare function getPublicRpc(chainId: SupportedChainIds): "https://mainnet.era.zksync.io" | "https://api.avax.network/ext/bc/C/rpc" | "https://rpc.linea.build" | "https://rpc.scroll.io" | "https://andromeda.metis.io/?owner=1088" | "https://rpc.plasma.to" | "https://rpc.gobob.xyz" | "https://eth.llamarpc.com" | "https://polygon.llamarpc.com" | "https://base.llamarpc.com" | "https://binance.llamarpc.com" | "https://rpc.ankr.com/gnosis" | "https://rpc.ftm.tools" | "https://ink-public.nodies.app";
748
750
  /**
749
751
  * HyperRPCs are extremely fast **but** they only support a subset of the standard.
750
752
  * Therefore they are not used in the generalized getClient atm.
@@ -15504,6 +15506,7 @@ declare function renderTenderlyReport({ client, sim, payloadId, payload, onchain
15504
15506
  eventCache: AbiEvent[];
15505
15507
  }>;
15506
15508
  declare function toTxLink(txn: Hex, client: Client): string;
15509
+ declare function toAddressLink(address: Address, client: Client): string;
15507
15510
 
15508
15511
  interface GetVerificationStatusParams {
15509
15512
  client: Client;
@@ -26348,4 +26351,4 @@ declare const IStataTokenV2_ABI: readonly [{
26348
26351
  readonly inputs: readonly [];
26349
26352
  }];
26350
26353
 
26351
- 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, IAccessControl_ABI, IAuthorizedForwarder_ABI, ICollector_ABI, IDualAggregator_ABI, IERC1967_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, IWithGuardian_ABI, IWrappedTokenGatewayV3_ABI, type IndexerTopicState, type Input, LTV_PRECISION, Ownable_ABI, type Payload, PayloadState, type PayloadsControllerContract, type Proposal, ProposalState, ProxyAdmin_ABI, 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, getTenderlyRpc, getVerificationStatus, hyperRPCSupportedNetworks, isPayloadFinal, isProposalFinal, makePayloadExecutableOnTestClient, makeProposalExecutableOnTestClient, onMevHandler, parseBlockscoutStyleSourceCode, parseEtherscanStyleSourceCode, parseLogs, prettifyNumber, priceUpdateDecoder, publicRPCs, quicknodeNetworkMap, rayDiv, rayMul, rayToWad, renderMarkdownStateDiffReport, renderTenderlyReport, routescanExplorers, selfDestructStatusToString, setBits, tenderlyExplorerMap, tenderlyNetworkMap, tenderly_createVnet, tenderly_deleteVnet, tenderly_getVnet, tenderly_logsToAbiLogs, tenderly_sim, tenderly_simVnet, toBinaryString, toTxLink, transformTenderlyStateDiff, validateAip, verificationStatusToString, wadDiv, wadToRay };
26354
+ 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, IAccessControl_ABI, IAuthorizedForwarder_ABI, ICollector_ABI, IDualAggregator_ABI, IERC1967_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, IWithGuardian_ABI, IWrappedTokenGatewayV3_ABI, type IndexerTopicState, type Input, LTV_PRECISION, Ownable_ABI, type Payload, PayloadState, type PayloadsControllerContract, type Proposal, ProposalState, ProxyAdmin_ABI, 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, getTenderlyRpc, getVerificationStatus, hyperRPCSupportedNetworks, isPayloadFinal, isProposalFinal, makePayloadExecutableOnTestClient, makeProposalExecutableOnTestClient, onMevHandler, parseBlockscoutStyleSourceCode, parseEtherscanStyleSourceCode, parseLogs, prettifyNumber, priceUpdateDecoder, publicRPCs, quicknodeNetworkMap, rayDiv, rayMul, rayToWad, renderMarkdownStateDiffReport, renderTenderlyReport, routescanExplorers, selfDestructStatusToString, setBits, tenderlyExplorerMap, tenderlyNetworkMap, tenderly_createVnet, tenderly_deleteVnet, tenderly_getVnet, tenderly_logsToAbiLogs, tenderly_pingExplorer, tenderly_sim, tenderly_simVnet, toAddressLink, toBinaryString, toTxLink, transformTenderlyStateDiff, validateAip, verificationStatusToString, wadDiv, wadToRay };
package/dist/index.d.ts CHANGED
@@ -682,6 +682,7 @@ declare function tenderly_logsToAbiLogs(logs: TenderlyLog[]): {
682
682
  type: string;
683
683
  name: string | null;
684
684
  }[];
685
+ declare function tenderly_pingExplorer(chainId: number, address: Address): Promise<Response>;
685
686
 
686
687
  declare const EVENT_DB: readonly [];
687
688
 
@@ -739,12 +740,13 @@ declare const publicRPCs: {
739
740
  readonly 59144: "https://rpc.linea.build";
740
741
  readonly 60808: "https://rpc.gobob.xyz";
741
742
  readonly 9745: "https://rpc.plasma.to";
743
+ readonly 57073: "https://ink-public.nodies.app";
742
744
  };
743
745
  declare const alchemySupportedChainIds: (1 | 10 | 56 | 100 | 137 | 146 | 324 | 1101 | 5000 | 8453 | 42161 | 42220 | 43113 | 43114 | 59144 | 80002 | 84532 | 421614 | 534351 | 534352 | 11155111 | 11155420 | 1088 | 9745 | 57073 | 250 | 1868 | 60808 | 1666600000 | 4002)[];
744
746
  declare const getNetworkEnv: (chainId: SupportedChainIds) => "RPC_BNB" | "RPC_CELO" | "RPC_METIS" | "RPC_BOB" | "RPC_BASE" | "RPC_SCROLL" | "RPC_MAINNET" | "RPC_POLYGON" | "RPC_POLYGON_AMOY" | "RPC_AVALANCHE" | "RPC_AVALANCHE_FUJI" | "RPC_ARBITRUM" | "RPC_ARBITRUM_SEPOLIA" | "RPC_FANTOM" | "RPC_FANTOM_TESTNET" | "RPC_OPTIMISM" | "RPC_OPTIMISM_SEPOLIA" | "RPC_HARMONY" | "RPC_SEPOLIA" | "RPC_SCROLL_SEPOLIA" | "RPC_SONIC" | "RPC_MANTLE" | "RPC_BASE_SEPOLIA" | "RPC_GNOSIS" | "RPC_ZKEVM" | "RPC_ZKSYNC" | "RPC_LINEA" | "RPC_INK" | "RPC_SONEIUM" | "RPC_PLASMA";
745
747
  declare function getExplicitRPC(chainId: SupportedChainIds): string;
746
748
  declare function getAlchemyRPC(chainId: SupportedChainIds, alchemyKey: string): string;
747
- declare function getPublicRpc(chainId: SupportedChainIds): "https://mainnet.era.zksync.io" | "https://api.avax.network/ext/bc/C/rpc" | "https://rpc.linea.build" | "https://rpc.scroll.io" | "https://andromeda.metis.io/?owner=1088" | "https://rpc.plasma.to" | "https://rpc.gobob.xyz" | "https://eth.llamarpc.com" | "https://polygon.llamarpc.com" | "https://base.llamarpc.com" | "https://binance.llamarpc.com" | "https://rpc.ankr.com/gnosis" | "https://rpc.ftm.tools";
749
+ declare function getPublicRpc(chainId: SupportedChainIds): "https://mainnet.era.zksync.io" | "https://api.avax.network/ext/bc/C/rpc" | "https://rpc.linea.build" | "https://rpc.scroll.io" | "https://andromeda.metis.io/?owner=1088" | "https://rpc.plasma.to" | "https://rpc.gobob.xyz" | "https://eth.llamarpc.com" | "https://polygon.llamarpc.com" | "https://base.llamarpc.com" | "https://binance.llamarpc.com" | "https://rpc.ankr.com/gnosis" | "https://rpc.ftm.tools" | "https://ink-public.nodies.app";
748
750
  /**
749
751
  * HyperRPCs are extremely fast **but** they only support a subset of the standard.
750
752
  * Therefore they are not used in the generalized getClient atm.
@@ -15504,6 +15506,7 @@ declare function renderTenderlyReport({ client, sim, payloadId, payload, onchain
15504
15506
  eventCache: AbiEvent[];
15505
15507
  }>;
15506
15508
  declare function toTxLink(txn: Hex, client: Client): string;
15509
+ declare function toAddressLink(address: Address, client: Client): string;
15507
15510
 
15508
15511
  interface GetVerificationStatusParams {
15509
15512
  client: Client;
@@ -26348,4 +26351,4 @@ declare const IStataTokenV2_ABI: readonly [{
26348
26351
  readonly inputs: readonly [];
26349
26352
  }];
26350
26353
 
26351
- 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, IAccessControl_ABI, IAuthorizedForwarder_ABI, ICollector_ABI, IDualAggregator_ABI, IERC1967_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, IWithGuardian_ABI, IWrappedTokenGatewayV3_ABI, type IndexerTopicState, type Input, LTV_PRECISION, Ownable_ABI, type Payload, PayloadState, type PayloadsControllerContract, type Proposal, ProposalState, ProxyAdmin_ABI, 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, getTenderlyRpc, getVerificationStatus, hyperRPCSupportedNetworks, isPayloadFinal, isProposalFinal, makePayloadExecutableOnTestClient, makeProposalExecutableOnTestClient, onMevHandler, parseBlockscoutStyleSourceCode, parseEtherscanStyleSourceCode, parseLogs, prettifyNumber, priceUpdateDecoder, publicRPCs, quicknodeNetworkMap, rayDiv, rayMul, rayToWad, renderMarkdownStateDiffReport, renderTenderlyReport, routescanExplorers, selfDestructStatusToString, setBits, tenderlyExplorerMap, tenderlyNetworkMap, tenderly_createVnet, tenderly_deleteVnet, tenderly_getVnet, tenderly_logsToAbiLogs, tenderly_sim, tenderly_simVnet, toBinaryString, toTxLink, transformTenderlyStateDiff, validateAip, verificationStatusToString, wadDiv, wadToRay };
26354
+ 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, IAccessControl_ABI, IAuthorizedForwarder_ABI, ICollector_ABI, IDualAggregator_ABI, IERC1967_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, IWithGuardian_ABI, IWrappedTokenGatewayV3_ABI, type IndexerTopicState, type Input, LTV_PRECISION, Ownable_ABI, type Payload, PayloadState, type PayloadsControllerContract, type Proposal, ProposalState, ProxyAdmin_ABI, 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, getTenderlyRpc, getVerificationStatus, hyperRPCSupportedNetworks, isPayloadFinal, isProposalFinal, makePayloadExecutableOnTestClient, makeProposalExecutableOnTestClient, onMevHandler, parseBlockscoutStyleSourceCode, parseEtherscanStyleSourceCode, parseLogs, prettifyNumber, priceUpdateDecoder, publicRPCs, quicknodeNetworkMap, rayDiv, rayMul, rayToWad, renderMarkdownStateDiffReport, renderTenderlyReport, routescanExplorers, selfDestructStatusToString, setBits, tenderlyExplorerMap, tenderlyNetworkMap, tenderly_createVnet, tenderly_deleteVnet, tenderly_getVnet, tenderly_logsToAbiLogs, tenderly_pingExplorer, tenderly_sim, tenderly_simVnet, toAddressLink, toBinaryString, toTxLink, transformTenderlyStateDiff, validateAip, verificationStatusToString, wadDiv, wadToRay };
package/dist/index.js CHANGED
@@ -163,8 +163,10 @@ __export(index_exports, {
163
163
  tenderly_deleteVnet: () => tenderly_deleteVnet,
164
164
  tenderly_getVnet: () => tenderly_getVnet,
165
165
  tenderly_logsToAbiLogs: () => tenderly_logsToAbiLogs,
166
+ tenderly_pingExplorer: () => tenderly_pingExplorer,
166
167
  tenderly_sim: () => tenderly_sim,
167
168
  tenderly_simVnet: () => tenderly_simVnet,
169
+ toAddressLink: () => toAddressLink,
168
170
  toBinaryString: () => toBinaryString,
169
171
  toTxLink: () => toTxLink,
170
172
  transformTenderlyStateDiff: () => transformTenderlyStateDiff,
@@ -18797,6 +18799,11 @@ function tenderly_logsToAbiLogs(logs) {
18797
18799
  };
18798
18800
  });
18799
18801
  }
18802
+ function tenderly_pingExplorer(chainId, address) {
18803
+ return fetch(
18804
+ `https://dashboard.tenderly.co/contract/${tenderlyExplorerMap[chainId]}/${address}/txs/all`
18805
+ );
18806
+ }
18800
18807
 
18801
18808
  // src/ecosystem/tenderly.types.ts
18802
18809
  var SoltypeType = /* @__PURE__ */ ((SoltypeType2) => {
@@ -19239,7 +19246,8 @@ var publicRPCs = {
19239
19246
  [ChainId.avalanche]: "https://api.avax.network/ext/bc/C/rpc",
19240
19247
  [ChainId.linea]: "https://rpc.linea.build",
19241
19248
  [ChainId.bob]: "https://rpc.gobob.xyz",
19242
- [ChainId.plasma]: "https://rpc.plasma.to"
19249
+ [ChainId.plasma]: "https://rpc.plasma.to",
19250
+ [ChainId.ink]: "https://ink-public.nodies.app"
19243
19251
  };
19244
19252
  var alchemySupportedChainIds = Object.values(ChainId).filter(
19245
19253
  (id) => alchemyNetworkMap[id]
@@ -35917,7 +35925,7 @@ async function renderTenderlyReport({
35917
35925
  - state: ${payload.state}(${HUMAN_READABLE_PAYLOAD_STATE[payload.state]})
35918
35926
  - actions:
35919
35927
  ${payload.actions.map(
35920
- (a) => ` - [${a.target}](${toTxLink(a.target, client)}), accessLevel: ${a.accessLevel}, withDelegateCall: ${a.withDelegateCall}, value: ${a.value}, signature: ${a.signature}, callData: ${a.callData}`
35928
+ (a) => ` - [${a.target}](${toAddressLink(a.target, client)}), accessLevel: ${a.accessLevel}, withDelegateCall: ${a.withDelegateCall}, value: ${a.value}, signature: ${a.signature}, callData: ${a.callData}`
35921
35929
  ).join("\n")}
35922
35930
  `;
35923
35931
  if (createdLog) {
@@ -35993,10 +36001,25 @@ ${payload.actions.map(
35993
36001
  client,
35994
36002
  transformTenderlyStateDiff(sim.transaction.transaction_info.state_diff)
35995
36003
  );
35996
- if (verified.find((contract) => contract.status === 2 /* ERROR */)) {
36004
+ const unverified = verified.filter(
36005
+ (contract) => contract.status === 2 /* ERROR */
36006
+ );
36007
+ if (unverified.length !== 0) {
36008
+ try {
36009
+ await Promise.all(
36010
+ unverified.map(
36011
+ (ctr) => tenderly_pingExplorer(client.chain.id, ctr.address)
36012
+ )
36013
+ );
36014
+ } catch (e) {
36015
+ }
35997
36016
  report += `:sos: Found unverified contracts!
35998
36017
 
35999
36018
  `;
36019
+ report += unverified.map(
36020
+ (ctr) => ` - [${ctr.address}](${toAddressLink(ctr.address, client)})`
36021
+ ).join("\n");
36022
+ report += "\n\n";
36000
36023
  }
36001
36024
  if (selfDestruct.find(
36002
36025
  (contract) => contract.state === 5 /* SELF_DESTRUCT */
@@ -36057,6 +36080,9 @@ function renderUnixTime(time) {
36057
36080
  function toTxLink(txn, client) {
36058
36081
  return `${client.chain?.blockExplorers?.default.url}/tx/${txn}`;
36059
36082
  }
36083
+ function toAddressLink(address, client) {
36084
+ return `${client.chain?.blockExplorers?.default.url}/address/${address}`;
36085
+ }
36060
36086
  // Annotate the CommonJS export names for ESM import in node:
36061
36087
  0 && (module.exports = {
36062
36088
  AggregatorInterface_ABI,
@@ -36192,8 +36218,10 @@ function toTxLink(txn, client) {
36192
36218
  tenderly_deleteVnet,
36193
36219
  tenderly_getVnet,
36194
36220
  tenderly_logsToAbiLogs,
36221
+ tenderly_pingExplorer,
36195
36222
  tenderly_sim,
36196
36223
  tenderly_simVnet,
36224
+ toAddressLink,
36197
36225
  toBinaryString,
36198
36226
  toTxLink,
36199
36227
  transformTenderlyStateDiff,