docs: add Foundry advanced HTS fork testing tutorial (Part 2)#492
Open
docs: add Foundry advanced HTS fork testing tutorial (Part 2)#492
Conversation
Add new tutorial for fork testing HTS tokens with Foundry using the hedera-forking emulation layer. Covers HTSTokenManager contract, two-step deployment (forge script + cast send), 13 fork tests for token info queries, ERC-20 reads, transfers, and fork verification. - New: foundry/how-to-fork-the-hedera-network-with-foundry-advanced-hts - Update Part 1 title to include "(Part 1)" and link to Part 2 - Add tutorial card to foundry overview, smart-contracts overview, and forking core concepts page - Add page to docs.json navigation Signed-off-by: Kiran Pachhai <kiran@pachhai.com> Signed-off-by: Kiran Pachhai <kiran.pachhai@hashgraph.com>
Contributor
|
Preview deployment for your docs. Learn more about Mintlify Previews.
|
…S tutorial Add bonus section demonstrating a real WHBAR->USDC swap through SaucerSwap V2 on a forked Hedera mainnet. Explains how deal() creates balances without real tokens, how the swap executes against real liquidity, and how vm.prank() impersonates mainnet accounts. Signed-off-by: Kiran Pachhai <kiran@pachhai.com> Signed-off-by: Kiran Pachhai <kiran.pachhai@hashgraph.com>
Add section demonstrating deposit WHBAR + borrow USDC against Bonzo Finance (Aave V2 fork) on a forked Hedera mainnet. Includes test breakdown, step-by-step flow, and mainnet contract addresses. Signed-off-by: Kiran Pachhai <kiran@pachhai.com> Signed-off-by: Kiran Pachhai <kiran.pachhai@hashgraph.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description:
Add new tutorial for fork testing HTS tokens with Foundry using the hedera-forking emulation layer. Covers HTSTokenManager contract, two-step deployment (forge script + cast send), 13 fork tests for token info queries, ERC-20 reads, transfers, and fork verification.
Related issue(s):
Fixes #490
Checklist