Use proxy for token contract#30
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR converts the TestStableToken contract from a simple contract to an upgradeable contract using OpenZeppelin's proxy pattern. This change enables iterative testing and deployment of token functionality modifications without requiring address changes across dependent systems.
- Convert TestStableToken to use upgradeable OpenZeppelin contracts (ERC20Upgradeable, OwnableUpgradeable, etc.)
- Add proxy deployment infrastructure with initialization support
- Update all test files to deploy TestStableToken through ERC1967Proxy
Reviewed Changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| test/TestStableToken.sol | Convert to upgradeable contract architecture with UUPS proxy pattern |
| test/TestStableToken.t.sol | Update tests to deploy token through proxy and adjust test expectations |
| test/WakuRlnV2.t.sol | Update test setup to use proxy-deployed TestStableToken |
| script/DeployTokenWithProxy.s.sol | Add deployment script for TestStableToken with proxy |
| test/README.md | Add comprehensive documentation for TestStableToken usage and deployment |
| script/Deploy.s.sol | Minor import formatting improvement |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
|
@0x-r4bbit would appreciate a review from Vac SC :) |
Ivansete-status
approved these changes
Aug 25, 2025
0x-r4bbit
reviewed
Aug 25, 2025
jm-clius
approved these changes
Aug 26, 2025
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 a proxy contract for TestStableToken.
This will facilitate testing of incremental changes to the TST needed for improved token minting and membership registration workflow.
Checklist
Ensure you completed all of the steps below before submitting your pull request: