Skip to content

Single DeployHelper for Deployment and Tests#36

Merged
LeoHChen merged 15 commits intostoryprotocol:mainfrom
jdubpark:deploy-cleanup
Apr 9, 2024
Merged

Single DeployHelper for Deployment and Tests#36
LeoHChen merged 15 commits intostoryprotocol:mainfrom
jdubpark:deploy-cleanup

Conversation

@jdubpark
Copy link
Copy Markdown

@jdubpark jdubpark commented Apr 5, 2024

Context

Currently, the codebase contains two separate main deployment helpers, one inherited by all tests and another for the actual protocol deployment. Keeping these two files synced can lead to disparity, thus this PR intends to merge the two together to create a unified deploy helper.

Changes

All changes were made in the script & test folders

  • Tests use the new BaseTest, which inherits from the deploy script in the script folder.
  • Modify some tests to clarify function callers (using pranks).
  • Minor lint fixes for state variable visibility.
  • Added Mock Royalty Policy LAP for License-specific tests to skip royalty payment logic.
  • Prepare codebase structure to remove some mocks in the next PR.
  • Remove unused test file(s).
  • Remove fork test in GH action.

Misc.

After this PR, we intend to

  • Remove some mocks in tests, as some "unit" tests are in fact mini-integration tests (due to the high interweaving of our protocol contracts).

@jdubpark jdubpark changed the title Single Deploy Helper for Less Maintenance Single DeployHelper for Deployment and Tests Apr 5, 2024
Comment thread script/foundry/utils/BroadcastManager.s.sol
Comment thread script/foundry/utils/DeployHelper.sol Outdated
Comment thread test/foundry/mocks/policy/MockRoyaltyPolicyLAP.sol Outdated
@jdubpark jdubpark marked this pull request as ready for review April 8, 2024 02:21
Comment thread script/foundry/deployment/Main.s.sol Outdated
Comment thread script/foundry/utils/BroadcastManager.s.sol
Comment thread script/foundry/utils/DeployHelper.sol Outdated
Comment thread script/foundry/utils/DeployHelper.sol Outdated
Comment thread test/foundry/mocks/policy/MockRoyaltyPolicyLAP.sol
@LeoHChen LeoHChen merged commit ec35ce0 into storyprotocol:main Apr 9, 2024
kingster-will pushed a commit to kingster-will/protocol-core-v1-dev that referenced this pull request Jan 31, 2025
irfand29 pushed a commit to irfand29/protocol-core-v1 that referenced this pull request Feb 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants