Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test(integration): replace mock ERC20 with Wrapped IP token (WIP) #190

Merged
merged 4 commits into from
Mar 11, 2025

Conversation

sebsadface
Copy link
Member

@sebsadface sebsadface commented Mar 6, 2025

Overview

This PR integrates the Wrapped IP token (WIP) into our testing and deployment infrastructure, replacing the previous mock ERC20 (SUSD) token. It also removes the unused Story NFT deployment addresses from StoryProtocolPeripheryAddressManager

Changes

  • Added WIP token dependency from piplabs/wip repository
  • Updated remappings to include WIP and Solady token paths
  • Updated CREATE3_DEPLOYER address in Story NFT deployment scripts
  • Migrated from SUSD to WIP token in all integration tests
  • Simplified address management by moving unused Story NFT addresses
  • Updated token amounts and fee handling to work with wrapped token pattern

Testing

All integration tests have been updated to use the WIP token instead of SUSD. The token interaction pattern has changed from direct minting to deposit-and-wrap:

  • StoryUSD.mint()wrappedIP.deposit{ value: amount }()
  • Fee amounts adjusted to reflect WIP token value
  • All token approvals and balance checks updated accordingly

Notes

The organization NFT addresses have been temporarily marked as TODOs and will need to be updated when upgrading Story NFTs in the future.

Related Issues

@sebsadface sebsadface merged commit d4d8323 into storyprotocol:main Mar 11, 2025
10 checks passed
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.

Update Test Functions to Use Wrapped IP (WIP) Instead of Mock ERC20s
2 participants