@bgd-labs/toolbox 0.0.25 → 0.0.26
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 +33 -6
- package/dist/index.d.ts +33 -6
- package/dist/index.js +90 -0
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +86 -0
- 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 +90 -0
- package/dist/node.js.map +1 -1
- package/dist/node.mjs +86 -0
- package/dist/node.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -596,11 +596,6 @@ type TenderlySimulationResponse = {
|
|
|
596
596
|
simulation: TenderlySimulationResponseObject;
|
|
597
597
|
};
|
|
598
598
|
|
|
599
|
-
/**
|
|
600
|
-
* While tenderly is a fenomanal tool for testing, it is not always easy to use as there are minor bugs and small nuances to consider everywhere.
|
|
601
|
-
* This is a simple wrapper around the tenderly APIs.
|
|
602
|
-
*/
|
|
603
|
-
|
|
604
599
|
type TenderlyConfig = {
|
|
605
600
|
accountSlug: string;
|
|
606
601
|
projectSlug: string;
|
|
@@ -655,6 +650,37 @@ declare function tenderly_createVnet({ slug, displayName, baseChainId, forkChain
|
|
|
655
650
|
delete: () => Promise<Response>;
|
|
656
651
|
}>;
|
|
657
652
|
declare function tenderly_sim({ accountSlug, projectSlug, accessToken }: TenderlyConfig, body: TenderlySimRequest): Promise<any>;
|
|
653
|
+
type DefaultType = {
|
|
654
|
+
name: string;
|
|
655
|
+
type: string;
|
|
656
|
+
internalType: string;
|
|
657
|
+
indexed: boolean;
|
|
658
|
+
components?: DefaultType[];
|
|
659
|
+
};
|
|
660
|
+
/**
|
|
661
|
+
* Tenderly returns some internal representation of the abi.
|
|
662
|
+
* As our tooling intends to be agnostic to the underlying ecosystem,
|
|
663
|
+
* we need to convert the Tenderly representation to the default abi representation.
|
|
664
|
+
* @param logs
|
|
665
|
+
* @returns
|
|
666
|
+
*/
|
|
667
|
+
declare function tenderly_logsToAbiLogs(logs: TenderlyLog[]): {
|
|
668
|
+
inputs?: ({
|
|
669
|
+
name: string;
|
|
670
|
+
type: SoltypeType.Tuple;
|
|
671
|
+
indexed: boolean;
|
|
672
|
+
internalType: SoltypeType.Tuple;
|
|
673
|
+
components: DefaultType[];
|
|
674
|
+
} | {
|
|
675
|
+
name: string;
|
|
676
|
+
type: SoltypeType.Address | SoltypeType.Bool | SoltypeType.Bytes32 | SoltypeType.MappingAddressUint256 | SoltypeType.MappingUint256Uint256 | SoltypeType.String | SoltypeType.TypeAddress | SoltypeType.TypeTuple | SoltypeType.Uint16 | SoltypeType.Uint256 | SoltypeType.Uint48 | SoltypeType.Uint56 | SoltypeType.Uint8;
|
|
677
|
+
indexed: boolean;
|
|
678
|
+
internalType: SoltypeType.Address | SoltypeType.Bool | SoltypeType.Bytes32 | SoltypeType.MappingAddressUint256 | SoltypeType.MappingUint256Uint256 | SoltypeType.String | SoltypeType.TypeAddress | SoltypeType.TypeTuple | SoltypeType.Uint16 | SoltypeType.Uint256 | SoltypeType.Uint48 | SoltypeType.Uint56 | SoltypeType.Uint8;
|
|
679
|
+
components?: undefined;
|
|
680
|
+
})[] | undefined;
|
|
681
|
+
type: string;
|
|
682
|
+
name: string | null;
|
|
683
|
+
}[];
|
|
658
684
|
|
|
659
685
|
declare const EVENT_DB: readonly [];
|
|
660
686
|
|
|
@@ -13913,6 +13939,7 @@ declare enum VerificationStatus {
|
|
|
13913
13939
|
CONTRACT = 1,
|
|
13914
13940
|
ERROR = 2
|
|
13915
13941
|
}
|
|
13942
|
+
declare function verificationStatusToString(status: VerificationStatus): "EOA" | "Contract" | "Error";
|
|
13916
13943
|
/**
|
|
13917
13944
|
* Iterates a list of addresses and returns their verification status
|
|
13918
13945
|
* @param param0
|
|
@@ -22696,4 +22723,4 @@ declare const IAuthorizedForwarder_ABI: readonly [{
|
|
|
22696
22723
|
readonly type: "function";
|
|
22697
22724
|
}];
|
|
22698
22725
|
|
|
22699
|
-
export { AggregatorInterface_ABI, Aip, type BlockscoutStyleSourceCode, type BundleParams, ChainId, ChainList, type Change, 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, IWrappedTokenGatewayV3_ABI, type IndexerTopicState, type Input, LTV_PRECISION, type Payload, PayloadState, type PayloadsControllerContract, type Proposal, ProposalState, RAY, type ReserveConfiguration, SECONDS_PER_YEAR, SelfdestuctCheckState, type SoltypeElement, 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, WAD, WAD_RAY_RATIO, aaveAddressesProvider_IncentivesControllerSlot, alchemyNetworkMap, alchemySupportedChainIds, assetToBase, bitmapToIndexes, blockscoutExplorers, calculateAvailableBorrowsMarketReferenceCurrency, calculateCompoundedInterest, calculateHealthFactor, calculateHealthFactorFromBalances, calculateLinearInterest, chainlinkFeeds, checkForSelfdestruct, decodeReserveConfiguration, decodeReserveConfigurationV2, decodeUserConfiguration, diffCode, 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, getPayloadStorageOverrides, getPayloadsController, getPublicRpc, getQuicknodeRpc, getRPCUrl, getReserveConfigurations, getReserveTokens, getSourceCode, getVerificationStatus, hyperRPCSupportedNetworks, isPayloadFinal, isProposalFinal, makePayloadExecutableOnTestClient, makeProposalExecutableOnTestClient, onMevHandler, parseBlockscoutStyleSourceCode, parseEtherscanStyleSourceCode, parseLogs, priceUpdateDecoder, publicRPCs, quicknodeNetworkMap, rayDiv, rayMul, rayToWad, renderTenderlyReport, routescanExplorers, setBits, tenderly_createVnet, tenderly_deleteVnet, tenderly_getVnet, tenderly_sim, tenderly_simVnet, toTxLink, transformTenderlyStateDiff, validateAip, wadDiv, wadToRay };
|
|
22726
|
+
export { AggregatorInterface_ABI, Aip, type BlockscoutStyleSourceCode, type BundleParams, ChainId, ChainList, type Change, 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, IWrappedTokenGatewayV3_ABI, type IndexerTopicState, type Input, LTV_PRECISION, type Payload, PayloadState, type PayloadsControllerContract, type Proposal, ProposalState, RAY, type ReserveConfiguration, SECONDS_PER_YEAR, SelfdestuctCheckState, 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, 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, getPayloadStorageOverrides, getPayloadsController, getPublicRpc, getQuicknodeRpc, getRPCUrl, getReserveConfigurations, getReserveTokens, getSourceCode, getVerificationStatus, hyperRPCSupportedNetworks, isPayloadFinal, isProposalFinal, makePayloadExecutableOnTestClient, makeProposalExecutableOnTestClient, onMevHandler, parseBlockscoutStyleSourceCode, parseEtherscanStyleSourceCode, parseLogs, priceUpdateDecoder, publicRPCs, quicknodeNetworkMap, rayDiv, rayMul, rayToWad, renderTenderlyReport, routescanExplorers, setBits, tenderly_createVnet, tenderly_deleteVnet, tenderly_getVnet, tenderly_logsToAbiLogs, tenderly_sim, tenderly_simVnet, toTxLink, transformTenderlyStateDiff, validateAip, verificationStatusToString, wadDiv, wadToRay };
|
package/dist/index.d.ts
CHANGED
|
@@ -596,11 +596,6 @@ type TenderlySimulationResponse = {
|
|
|
596
596
|
simulation: TenderlySimulationResponseObject;
|
|
597
597
|
};
|
|
598
598
|
|
|
599
|
-
/**
|
|
600
|
-
* While tenderly is a fenomanal tool for testing, it is not always easy to use as there are minor bugs and small nuances to consider everywhere.
|
|
601
|
-
* This is a simple wrapper around the tenderly APIs.
|
|
602
|
-
*/
|
|
603
|
-
|
|
604
599
|
type TenderlyConfig = {
|
|
605
600
|
accountSlug: string;
|
|
606
601
|
projectSlug: string;
|
|
@@ -655,6 +650,37 @@ declare function tenderly_createVnet({ slug, displayName, baseChainId, forkChain
|
|
|
655
650
|
delete: () => Promise<Response>;
|
|
656
651
|
}>;
|
|
657
652
|
declare function tenderly_sim({ accountSlug, projectSlug, accessToken }: TenderlyConfig, body: TenderlySimRequest): Promise<any>;
|
|
653
|
+
type DefaultType = {
|
|
654
|
+
name: string;
|
|
655
|
+
type: string;
|
|
656
|
+
internalType: string;
|
|
657
|
+
indexed: boolean;
|
|
658
|
+
components?: DefaultType[];
|
|
659
|
+
};
|
|
660
|
+
/**
|
|
661
|
+
* Tenderly returns some internal representation of the abi.
|
|
662
|
+
* As our tooling intends to be agnostic to the underlying ecosystem,
|
|
663
|
+
* we need to convert the Tenderly representation to the default abi representation.
|
|
664
|
+
* @param logs
|
|
665
|
+
* @returns
|
|
666
|
+
*/
|
|
667
|
+
declare function tenderly_logsToAbiLogs(logs: TenderlyLog[]): {
|
|
668
|
+
inputs?: ({
|
|
669
|
+
name: string;
|
|
670
|
+
type: SoltypeType.Tuple;
|
|
671
|
+
indexed: boolean;
|
|
672
|
+
internalType: SoltypeType.Tuple;
|
|
673
|
+
components: DefaultType[];
|
|
674
|
+
} | {
|
|
675
|
+
name: string;
|
|
676
|
+
type: SoltypeType.Address | SoltypeType.Bool | SoltypeType.Bytes32 | SoltypeType.MappingAddressUint256 | SoltypeType.MappingUint256Uint256 | SoltypeType.String | SoltypeType.TypeAddress | SoltypeType.TypeTuple | SoltypeType.Uint16 | SoltypeType.Uint256 | SoltypeType.Uint48 | SoltypeType.Uint56 | SoltypeType.Uint8;
|
|
677
|
+
indexed: boolean;
|
|
678
|
+
internalType: SoltypeType.Address | SoltypeType.Bool | SoltypeType.Bytes32 | SoltypeType.MappingAddressUint256 | SoltypeType.MappingUint256Uint256 | SoltypeType.String | SoltypeType.TypeAddress | SoltypeType.TypeTuple | SoltypeType.Uint16 | SoltypeType.Uint256 | SoltypeType.Uint48 | SoltypeType.Uint56 | SoltypeType.Uint8;
|
|
679
|
+
components?: undefined;
|
|
680
|
+
})[] | undefined;
|
|
681
|
+
type: string;
|
|
682
|
+
name: string | null;
|
|
683
|
+
}[];
|
|
658
684
|
|
|
659
685
|
declare const EVENT_DB: readonly [];
|
|
660
686
|
|
|
@@ -13913,6 +13939,7 @@ declare enum VerificationStatus {
|
|
|
13913
13939
|
CONTRACT = 1,
|
|
13914
13940
|
ERROR = 2
|
|
13915
13941
|
}
|
|
13942
|
+
declare function verificationStatusToString(status: VerificationStatus): "EOA" | "Contract" | "Error";
|
|
13916
13943
|
/**
|
|
13917
13944
|
* Iterates a list of addresses and returns their verification status
|
|
13918
13945
|
* @param param0
|
|
@@ -22696,4 +22723,4 @@ declare const IAuthorizedForwarder_ABI: readonly [{
|
|
|
22696
22723
|
readonly type: "function";
|
|
22697
22724
|
}];
|
|
22698
22725
|
|
|
22699
|
-
export { AggregatorInterface_ABI, Aip, type BlockscoutStyleSourceCode, type BundleParams, ChainId, ChainList, type Change, 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, IWrappedTokenGatewayV3_ABI, type IndexerTopicState, type Input, LTV_PRECISION, type Payload, PayloadState, type PayloadsControllerContract, type Proposal, ProposalState, RAY, type ReserveConfiguration, SECONDS_PER_YEAR, SelfdestuctCheckState, type SoltypeElement, 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, WAD, WAD_RAY_RATIO, aaveAddressesProvider_IncentivesControllerSlot, alchemyNetworkMap, alchemySupportedChainIds, assetToBase, bitmapToIndexes, blockscoutExplorers, calculateAvailableBorrowsMarketReferenceCurrency, calculateCompoundedInterest, calculateHealthFactor, calculateHealthFactorFromBalances, calculateLinearInterest, chainlinkFeeds, checkForSelfdestruct, decodeReserveConfiguration, decodeReserveConfigurationV2, decodeUserConfiguration, diffCode, 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, getPayloadStorageOverrides, getPayloadsController, getPublicRpc, getQuicknodeRpc, getRPCUrl, getReserveConfigurations, getReserveTokens, getSourceCode, getVerificationStatus, hyperRPCSupportedNetworks, isPayloadFinal, isProposalFinal, makePayloadExecutableOnTestClient, makeProposalExecutableOnTestClient, onMevHandler, parseBlockscoutStyleSourceCode, parseEtherscanStyleSourceCode, parseLogs, priceUpdateDecoder, publicRPCs, quicknodeNetworkMap, rayDiv, rayMul, rayToWad, renderTenderlyReport, routescanExplorers, setBits, tenderly_createVnet, tenderly_deleteVnet, tenderly_getVnet, tenderly_sim, tenderly_simVnet, toTxLink, transformTenderlyStateDiff, validateAip, wadDiv, wadToRay };
|
|
22726
|
+
export { AggregatorInterface_ABI, Aip, type BlockscoutStyleSourceCode, type BundleParams, ChainId, ChainList, type Change, 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, IWrappedTokenGatewayV3_ABI, type IndexerTopicState, type Input, LTV_PRECISION, type Payload, PayloadState, type PayloadsControllerContract, type Proposal, ProposalState, RAY, type ReserveConfiguration, SECONDS_PER_YEAR, SelfdestuctCheckState, 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, 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, getPayloadStorageOverrides, getPayloadsController, getPublicRpc, getQuicknodeRpc, getRPCUrl, getReserveConfigurations, getReserveTokens, getSourceCode, getVerificationStatus, hyperRPCSupportedNetworks, isPayloadFinal, isProposalFinal, makePayloadExecutableOnTestClient, makeProposalExecutableOnTestClient, onMevHandler, parseBlockscoutStyleSourceCode, parseEtherscanStyleSourceCode, parseLogs, priceUpdateDecoder, publicRPCs, quicknodeNetworkMap, rayDiv, rayMul, rayToWad, renderTenderlyReport, routescanExplorers, setBits, tenderly_createVnet, tenderly_deleteVnet, tenderly_getVnet, tenderly_logsToAbiLogs, tenderly_sim, tenderly_simVnet, toTxLink, transformTenderlyStateDiff, validateAip, verificationStatusToString, wadDiv, wadToRay };
|
package/dist/index.js
CHANGED
|
@@ -62,6 +62,8 @@ __export(index_exports, {
|
|
|
62
62
|
RAY: () => RAY,
|
|
63
63
|
SECONDS_PER_YEAR: () => SECONDS_PER_YEAR,
|
|
64
64
|
SelfdestuctCheckState: () => SelfdestuctCheckState,
|
|
65
|
+
SoltypeType: () => SoltypeType,
|
|
66
|
+
VerificationStatus: () => VerificationStatus,
|
|
65
67
|
WAD: () => WAD,
|
|
66
68
|
WAD_RAY_RATIO: () => WAD_RAY_RATIO,
|
|
67
69
|
aaveAddressesProvider_IncentivesControllerSlot: () => aaveAddressesProvider_IncentivesControllerSlot,
|
|
@@ -138,11 +140,13 @@ __export(index_exports, {
|
|
|
138
140
|
tenderly_createVnet: () => tenderly_createVnet,
|
|
139
141
|
tenderly_deleteVnet: () => tenderly_deleteVnet,
|
|
140
142
|
tenderly_getVnet: () => tenderly_getVnet,
|
|
143
|
+
tenderly_logsToAbiLogs: () => tenderly_logsToAbiLogs,
|
|
141
144
|
tenderly_sim: () => tenderly_sim,
|
|
142
145
|
tenderly_simVnet: () => tenderly_simVnet,
|
|
143
146
|
toTxLink: () => toTxLink,
|
|
144
147
|
transformTenderlyStateDiff: () => transformTenderlyStateDiff,
|
|
145
148
|
validateAip: () => validateAip,
|
|
149
|
+
verificationStatusToString: () => verificationStatusToString,
|
|
146
150
|
wadDiv: () => wadDiv,
|
|
147
151
|
wadToRay: () => wadToRay
|
|
148
152
|
});
|
|
@@ -14136,6 +14140,72 @@ async function tenderly_sim({ accountSlug, projectSlug, accessToken }, body) {
|
|
|
14136
14140
|
);
|
|
14137
14141
|
return response.json();
|
|
14138
14142
|
}
|
|
14143
|
+
function unwrapComponents(input) {
|
|
14144
|
+
return input.map((input2) => {
|
|
14145
|
+
if (input2.type === "tuple") {
|
|
14146
|
+
return {
|
|
14147
|
+
name: input2.name,
|
|
14148
|
+
type: input2.type,
|
|
14149
|
+
internalType: input2.type,
|
|
14150
|
+
indexed: input2.indexed,
|
|
14151
|
+
components: unwrapComponents(input2.components)
|
|
14152
|
+
};
|
|
14153
|
+
}
|
|
14154
|
+
return {
|
|
14155
|
+
name: input2.name,
|
|
14156
|
+
type: input2.type,
|
|
14157
|
+
internalType: input2.type,
|
|
14158
|
+
indexed: input2.indexed
|
|
14159
|
+
};
|
|
14160
|
+
});
|
|
14161
|
+
}
|
|
14162
|
+
function unwrapLogInputs(inputs) {
|
|
14163
|
+
return inputs.map((input) => {
|
|
14164
|
+
if (input.soltype?.type === "tuple") {
|
|
14165
|
+
return {
|
|
14166
|
+
name: input.soltype?.name,
|
|
14167
|
+
type: input.soltype?.type,
|
|
14168
|
+
indexed: input.soltype?.indexed,
|
|
14169
|
+
internalType: input.soltype?.type,
|
|
14170
|
+
components: unwrapComponents(input.soltype?.components)
|
|
14171
|
+
};
|
|
14172
|
+
}
|
|
14173
|
+
return {
|
|
14174
|
+
name: input.soltype?.name,
|
|
14175
|
+
type: input.soltype?.type,
|
|
14176
|
+
indexed: input.soltype?.indexed,
|
|
14177
|
+
internalType: input.soltype?.type
|
|
14178
|
+
};
|
|
14179
|
+
});
|
|
14180
|
+
}
|
|
14181
|
+
function tenderly_logsToAbiLogs(logs) {
|
|
14182
|
+
return logs.map((log) => {
|
|
14183
|
+
return {
|
|
14184
|
+
type: "event",
|
|
14185
|
+
name: log.name,
|
|
14186
|
+
...log.inputs ? { inputs: unwrapLogInputs(log.inputs) } : {}
|
|
14187
|
+
};
|
|
14188
|
+
});
|
|
14189
|
+
}
|
|
14190
|
+
|
|
14191
|
+
// src/ecosystem/tenderly.types.ts
|
|
14192
|
+
var SoltypeType = /* @__PURE__ */ ((SoltypeType2) => {
|
|
14193
|
+
SoltypeType2["Address"] = "address";
|
|
14194
|
+
SoltypeType2["Bool"] = "bool";
|
|
14195
|
+
SoltypeType2["Bytes32"] = "bytes32";
|
|
14196
|
+
SoltypeType2["MappingAddressUint256"] = "mapping (address => uint256)";
|
|
14197
|
+
SoltypeType2["MappingUint256Uint256"] = "mapping (uint256 => uint256)";
|
|
14198
|
+
SoltypeType2["String"] = "string";
|
|
14199
|
+
SoltypeType2["Tuple"] = "tuple";
|
|
14200
|
+
SoltypeType2["TypeAddress"] = "address[]";
|
|
14201
|
+
SoltypeType2["TypeTuple"] = "tuple[]";
|
|
14202
|
+
SoltypeType2["Uint16"] = "uint16";
|
|
14203
|
+
SoltypeType2["Uint256"] = "uint256";
|
|
14204
|
+
SoltypeType2["Uint48"] = "uint48";
|
|
14205
|
+
SoltypeType2["Uint56"] = "uint56";
|
|
14206
|
+
SoltypeType2["Uint8"] = "uint8";
|
|
14207
|
+
return SoltypeType2;
|
|
14208
|
+
})(SoltypeType || {});
|
|
14139
14209
|
|
|
14140
14210
|
// src/ecosystem/event-db.ts
|
|
14141
14211
|
var EVENT_DB = [];
|
|
@@ -28773,6 +28843,22 @@ function checkCode(bytecode) {
|
|
|
28773
28843
|
|
|
28774
28844
|
// src/seatbelt/verified.ts
|
|
28775
28845
|
var import_actions7 = require("viem/actions");
|
|
28846
|
+
var VerificationStatus = /* @__PURE__ */ ((VerificationStatus2) => {
|
|
28847
|
+
VerificationStatus2[VerificationStatus2["EOA"] = 0] = "EOA";
|
|
28848
|
+
VerificationStatus2[VerificationStatus2["CONTRACT"] = 1] = "CONTRACT";
|
|
28849
|
+
VerificationStatus2[VerificationStatus2["ERROR"] = 2] = "ERROR";
|
|
28850
|
+
return VerificationStatus2;
|
|
28851
|
+
})(VerificationStatus || {});
|
|
28852
|
+
function verificationStatusToString(status) {
|
|
28853
|
+
switch (status) {
|
|
28854
|
+
case 0 /* EOA */:
|
|
28855
|
+
return "EOA";
|
|
28856
|
+
case 1 /* CONTRACT */:
|
|
28857
|
+
return "Contract";
|
|
28858
|
+
case 2 /* ERROR */:
|
|
28859
|
+
return "Error";
|
|
28860
|
+
}
|
|
28861
|
+
}
|
|
28776
28862
|
async function getVerificationStatus({
|
|
28777
28863
|
client,
|
|
28778
28864
|
addresses,
|
|
@@ -28991,6 +29077,8 @@ function transformTenderlyStateDiff(stateDiff) {
|
|
|
28991
29077
|
RAY,
|
|
28992
29078
|
SECONDS_PER_YEAR,
|
|
28993
29079
|
SelfdestuctCheckState,
|
|
29080
|
+
SoltypeType,
|
|
29081
|
+
VerificationStatus,
|
|
28994
29082
|
WAD,
|
|
28995
29083
|
WAD_RAY_RATIO,
|
|
28996
29084
|
aaveAddressesProvider_IncentivesControllerSlot,
|
|
@@ -29067,11 +29155,13 @@ function transformTenderlyStateDiff(stateDiff) {
|
|
|
29067
29155
|
tenderly_createVnet,
|
|
29068
29156
|
tenderly_deleteVnet,
|
|
29069
29157
|
tenderly_getVnet,
|
|
29158
|
+
tenderly_logsToAbiLogs,
|
|
29070
29159
|
tenderly_sim,
|
|
29071
29160
|
tenderly_simVnet,
|
|
29072
29161
|
toTxLink,
|
|
29073
29162
|
transformTenderlyStateDiff,
|
|
29074
29163
|
validateAip,
|
|
29164
|
+
verificationStatusToString,
|
|
29075
29165
|
wadDiv,
|
|
29076
29166
|
wadToRay
|
|
29077
29167
|
});
|