Open
Conversation
Shell script that exercises the full manual liquidation flow against a running mainnet fork: configures mock oracle/DEX, creates user and liquidator accounts, opens a position, verifies liquidation fails on a healthy position, drops the FLOW price, then verifies liquidation succeeds on the now-unhealthy position. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
… config - Relocated fork-test/ to integration/liquidation-fork-mainnet/ - Use a temporary copy of flow.json so the base config is never modified - Overlay extra config (network, accounts, deployments) via -f flag - Deploy FungibleTokenConnectors to fork (not present on mainnet) - Store all test artifacts in gitignored tmp/ directory Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Uses __PROJECT_DIR__ placeholder expanded at runtime via sed, keeping the template portable. Dynamic test accounts (fork-user, fork-liquidator) are still written to a separate runtime config. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Make flow.json read-only while the test runs instead of creating a temporary copy. This prevents the Flow CLI from writing merged config (fork accounts, networks, deployments) back into the project file. Remove the now-unnecessary flow.fork-test.json gitignore entry. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Instead of chmod or sed-rewriting paths, copy flow.json to flow.fork-test.json at the project root so relative paths resolve naturally. Deleted on exit via trap; gitignored for interrupted runs. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
jordanschalm
commented
Feb 19, 2026
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.
This PR adds a test script for testing manual liquidation against an instance of forked Mainnet.
The test script: