From 0a2ddbaa01c3c23fb0f64c699004221d7d8e6d35 Mon Sep 17 00:00:00 2001 From: nazariikyselevych Date: Wed, 29 Jan 2025 20:02:59 +0200 Subject: [PATCH] chore: add jdocs --- tests/tenderly-simulation-new.ts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/tests/tenderly-simulation-new.ts b/tests/tenderly-simulation-new.ts index af26da31f..30e219cfd 100644 --- a/tests/tenderly-simulation-new.ts +++ b/tests/tenderly-simulation-new.ts @@ -348,6 +348,12 @@ export class TenderlySimulatorNew { }; } + /** + * Finds the slot of the `balanceOf` mapping in given token contract's storage. + * Supports `Solidity` and `Vyper` contracts + * @param chainId token chain id + * @param token token address + */ async findTokenBalanceOfSlot( chainId: number, token: string, @@ -419,6 +425,12 @@ export class TenderlySimulatorNew { ); } + /** + * Finds the slot of the `allowance` mapping in given token contract's storage + * Supports `Solidity` and `Vyper` contracts + * @param chainId token chain id + * @param token token address + */ async findTokenAllowanceSlot( chainId: number, token: string, @@ -495,6 +507,11 @@ export class TenderlySimulatorNew { ); } + /** + * Returns storage slots for the given token contract. + * @param chainId Token chain ID + * @param token Token address. Doesn't have to be normalized + */ async getTokenStorageSlots( chainId: number, token: string,