@bgd-labs/toolbox 0.0.12 → 0.0.13
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-m0rinBbj.d.mts +22352 -0
- package/dist/index-m0rinBbj.d.ts +22352 -0
- package/dist/index.d.mts +6 -22352
- package/dist/index.d.ts +6 -22352
- package/dist/node.d.mts +45 -0
- package/dist/node.d.ts +45 -0
- package/dist/node.js +24406 -0
- package/dist/node.js.map +1 -0
- package/dist/node.mjs +24334 -0
- package/dist/node.mjs.map +1 -0
- package/package.json +3 -3
package/dist/node.d.mts
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { S as StandardJsonInput } from './index-m0rinBbj.mjs';
|
|
2
|
+
export { aJ as AggregatorInterface_ABI, aj as BundleParams, a6 as ChainId, a7 as ChainList, a2 as ContractObject, a5 as EVENT_DB, T as ExplorerConfig, K as GovernanceContract, r as HALF_RAY, H as HALF_WAD, A as HUMAN_READABLE_PAYLOAD_STATE, J as HUMAN_READABLE_PROPOSAL_STATE, aB as IAToken_ABI, aG as IAaveOracle_ABI, aK as IAaveV3ConfigEngine_ABI, aP as IAuthorizedForwarder_ABI, aH as ICollector_ABI, aF as IDualAggregator_ABI, aN as IERC20Metadata_ABI, aO as IERC20_ABI, aL as IEmissionManager_ABI, aD as IPoolAddressesProvider_ABI, aI as IPool_ABI, az as IReserveInterestRateStrategy_ABI, aM as IRewardsController_ABI, aA as IStataTokenFactory_ABI, aE as IStataTokenV2_ABI, aC as IWrappedTokenGatewayV3_ABI, L as LTV_PRECISION, P as PayloadState, B as PayloadsControllerContract, I as ProposalState, q as RAY, R as ReserveConfiguration, e as SECONDS_PER_YEAR, aw as SelfdestuctCheckState, a1 as StateObject, a3 as TenderlySimRequest, Y as Tenderly_createVnetParamsResponse, W as WAD, t as WAD_RAY_RATIO, f as aaveAddressesProvider_IncentivesControllerSlot, an as alchemyNetworkMap, a9 as alchemySupportedChainIds, b as bitmapToIndexes, o as calculateAvailableBorrowsMarketReferenceCurrency, h as calculateCompoundedInterest, n as calculateHealthFactorFromBalances, i as calculateLinearInterest, ar as chainlinkFeeds, ax as checkForSelfdestruct, a as decodeReserveConfiguration, c as decodeReserveConfigurationV2, d as decodeUserConfiguration, au as diffCode, at as erc1967_AdminSlot, as as erc1967_ImplementationSlot, ap as etherscanExplorers, z as fetchPoolAddresses, al as flashbotsClientExtension, ak as flashbotsOnFetchRequest, ac as getAlchemyRPC, g as getBits, ag as getClient, m as getCurrentDebtBalance, l as getCurrentLiquidityBalance, ab as getExplicitRPC, U as getExplorer, M as getGovernance, ah as getImplementationSlot, ai as getLogsRecursive, p as getMarketReferenceCurrencyAndUsdBalance, aa as getNetworkEnv, G as getNonFinalizedPayloads, Q as getNonFinalizedProposals, k as getNormalizedDebt, j as getNormalizedIncome, D as getPayloadStorageOverrides, C as getPayloadsController, ad as getPublicRpc, ae as getQuicknodeRpc, af as getRPCUrl, V as getSourceCode, F as isPayloadFinal, O as isProposalFinal, E as makePayloadExecutableOnTestClient, N as makeProposalExecutableOnTestClient, am as onMevHandler, X as parseEtherscanStyleSourceCode, av as parseLogs, a8 as publicRPCs, ao as quicknodeNetworkMap, v as rayDiv, u as rayMul, w as rayToWad, ay as renderTenderlyReport, aq as routescanExplorers, s as setBits, a0 as tenderly_createVnet, Z as tenderly_deleteVnet, $ as tenderly_getVnet, a4 as tenderly_sim, _ as tenderly_simVnet, y as wadDiv, x as wadToRay } from './index-m0rinBbj.mjs';
|
|
3
|
+
import 'viem';
|
|
4
|
+
import '@bgd-labs/aave-address-book/abis';
|
|
5
|
+
import 'viem/zksync';
|
|
6
|
+
import 'viem/chains';
|
|
7
|
+
import 'eventsource';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Returns the standardJsonInput format as consumed by most explorers
|
|
11
|
+
* @param input Contract or path:Contract if contract is not unique.
|
|
12
|
+
*/
|
|
13
|
+
declare function foundry_getStandardJsonInput(input: string): StandardJsonInput;
|
|
14
|
+
type Storage = {
|
|
15
|
+
astId: string;
|
|
16
|
+
contract: string;
|
|
17
|
+
label: string;
|
|
18
|
+
offset: number;
|
|
19
|
+
slot: number;
|
|
20
|
+
type: string;
|
|
21
|
+
};
|
|
22
|
+
type StorageType = {
|
|
23
|
+
encoding: string;
|
|
24
|
+
label: string;
|
|
25
|
+
numberOfBytes: number;
|
|
26
|
+
base?: string;
|
|
27
|
+
key?: string;
|
|
28
|
+
value?: string;
|
|
29
|
+
members?: {
|
|
30
|
+
astId: string;
|
|
31
|
+
contract: string;
|
|
32
|
+
offset: number;
|
|
33
|
+
slot: number;
|
|
34
|
+
type: string;
|
|
35
|
+
label: string;
|
|
36
|
+
}[];
|
|
37
|
+
};
|
|
38
|
+
type FoundryStorage = {
|
|
39
|
+
storage: Storage[];
|
|
40
|
+
types: Record<string, StorageType>;
|
|
41
|
+
};
|
|
42
|
+
declare function foundry_getStorageLayout(input: string): FoundryStorage;
|
|
43
|
+
declare function diffFoundryStorageLayout(layoutBefore: FoundryStorage, layoutAfter: FoundryStorage): string;
|
|
44
|
+
|
|
45
|
+
export { type FoundryStorage, type Storage, type StorageType, diffFoundryStorageLayout, foundry_getStandardJsonInput, foundry_getStorageLayout };
|
package/dist/node.d.ts
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { S as StandardJsonInput } from './index-m0rinBbj.js';
|
|
2
|
+
export { aJ as AggregatorInterface_ABI, aj as BundleParams, a6 as ChainId, a7 as ChainList, a2 as ContractObject, a5 as EVENT_DB, T as ExplorerConfig, K as GovernanceContract, r as HALF_RAY, H as HALF_WAD, A as HUMAN_READABLE_PAYLOAD_STATE, J as HUMAN_READABLE_PROPOSAL_STATE, aB as IAToken_ABI, aG as IAaveOracle_ABI, aK as IAaveV3ConfigEngine_ABI, aP as IAuthorizedForwarder_ABI, aH as ICollector_ABI, aF as IDualAggregator_ABI, aN as IERC20Metadata_ABI, aO as IERC20_ABI, aL as IEmissionManager_ABI, aD as IPoolAddressesProvider_ABI, aI as IPool_ABI, az as IReserveInterestRateStrategy_ABI, aM as IRewardsController_ABI, aA as IStataTokenFactory_ABI, aE as IStataTokenV2_ABI, aC as IWrappedTokenGatewayV3_ABI, L as LTV_PRECISION, P as PayloadState, B as PayloadsControllerContract, I as ProposalState, q as RAY, R as ReserveConfiguration, e as SECONDS_PER_YEAR, aw as SelfdestuctCheckState, a1 as StateObject, a3 as TenderlySimRequest, Y as Tenderly_createVnetParamsResponse, W as WAD, t as WAD_RAY_RATIO, f as aaveAddressesProvider_IncentivesControllerSlot, an as alchemyNetworkMap, a9 as alchemySupportedChainIds, b as bitmapToIndexes, o as calculateAvailableBorrowsMarketReferenceCurrency, h as calculateCompoundedInterest, n as calculateHealthFactorFromBalances, i as calculateLinearInterest, ar as chainlinkFeeds, ax as checkForSelfdestruct, a as decodeReserveConfiguration, c as decodeReserveConfigurationV2, d as decodeUserConfiguration, au as diffCode, at as erc1967_AdminSlot, as as erc1967_ImplementationSlot, ap as etherscanExplorers, z as fetchPoolAddresses, al as flashbotsClientExtension, ak as flashbotsOnFetchRequest, ac as getAlchemyRPC, g as getBits, ag as getClient, m as getCurrentDebtBalance, l as getCurrentLiquidityBalance, ab as getExplicitRPC, U as getExplorer, M as getGovernance, ah as getImplementationSlot, ai as getLogsRecursive, p as getMarketReferenceCurrencyAndUsdBalance, aa as getNetworkEnv, G as getNonFinalizedPayloads, Q as getNonFinalizedProposals, k as getNormalizedDebt, j as getNormalizedIncome, D as getPayloadStorageOverrides, C as getPayloadsController, ad as getPublicRpc, ae as getQuicknodeRpc, af as getRPCUrl, V as getSourceCode, F as isPayloadFinal, O as isProposalFinal, E as makePayloadExecutableOnTestClient, N as makeProposalExecutableOnTestClient, am as onMevHandler, X as parseEtherscanStyleSourceCode, av as parseLogs, a8 as publicRPCs, ao as quicknodeNetworkMap, v as rayDiv, u as rayMul, w as rayToWad, ay as renderTenderlyReport, aq as routescanExplorers, s as setBits, a0 as tenderly_createVnet, Z as tenderly_deleteVnet, $ as tenderly_getVnet, a4 as tenderly_sim, _ as tenderly_simVnet, y as wadDiv, x as wadToRay } from './index-m0rinBbj.js';
|
|
3
|
+
import 'viem';
|
|
4
|
+
import '@bgd-labs/aave-address-book/abis';
|
|
5
|
+
import 'viem/zksync';
|
|
6
|
+
import 'viem/chains';
|
|
7
|
+
import 'eventsource';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Returns the standardJsonInput format as consumed by most explorers
|
|
11
|
+
* @param input Contract or path:Contract if contract is not unique.
|
|
12
|
+
*/
|
|
13
|
+
declare function foundry_getStandardJsonInput(input: string): StandardJsonInput;
|
|
14
|
+
type Storage = {
|
|
15
|
+
astId: string;
|
|
16
|
+
contract: string;
|
|
17
|
+
label: string;
|
|
18
|
+
offset: number;
|
|
19
|
+
slot: number;
|
|
20
|
+
type: string;
|
|
21
|
+
};
|
|
22
|
+
type StorageType = {
|
|
23
|
+
encoding: string;
|
|
24
|
+
label: string;
|
|
25
|
+
numberOfBytes: number;
|
|
26
|
+
base?: string;
|
|
27
|
+
key?: string;
|
|
28
|
+
value?: string;
|
|
29
|
+
members?: {
|
|
30
|
+
astId: string;
|
|
31
|
+
contract: string;
|
|
32
|
+
offset: number;
|
|
33
|
+
slot: number;
|
|
34
|
+
type: string;
|
|
35
|
+
label: string;
|
|
36
|
+
}[];
|
|
37
|
+
};
|
|
38
|
+
type FoundryStorage = {
|
|
39
|
+
storage: Storage[];
|
|
40
|
+
types: Record<string, StorageType>;
|
|
41
|
+
};
|
|
42
|
+
declare function foundry_getStorageLayout(input: string): FoundryStorage;
|
|
43
|
+
declare function diffFoundryStorageLayout(layoutBefore: FoundryStorage, layoutAfter: FoundryStorage): string;
|
|
44
|
+
|
|
45
|
+
export { type FoundryStorage, type Storage, type StorageType, diffFoundryStorageLayout, foundry_getStandardJsonInput, foundry_getStorageLayout };
|