YAB <> Herodotus
You need these installed:
First make sure you:
-
Copy the
.env.example
to.env
and fill in the values. -
Run:
bun i
Using hardhat-storage-layout
bun storage-layout
Or tool like https://evm.storage/
If you want to get the storage layout for a deployed contract, just grab the address and check it there, but we will continue with the storage layout we got from the previous step.
The YAB slots we are interested in are a mapping. It requires additional steps to get the full slot.
mapping(bytes32 => struct YABTransfer.TransferInfo)
To test if the slots are correct, run:
bun test get-slots
Note: This step doesn't have a separate run script, please move to the next step.
bun start