Skip to content

Commit

Permalink
chore: add jdocs
Browse files Browse the repository at this point in the history
  • Loading branch information
0xNazarii committed Jan 29, 2025
1 parent ed5740b commit 0a2ddba
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tests/tenderly-simulation-new.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 0a2ddba

Please sign in to comment.