feat(deploy-upgrade): add deploy and upgrade scripts for GroupingWorkflows
#50
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
This PR introduces deployment and upgrade logic for the
GroupingWorkflows
contract.Key changes include:
GroupingWorkflows
contract to the deployment script (Main.s.sol
).MockRewardPool
contract.GroupingWorkflows
.GroupingWorkflows
address.scripts
folder by addingdeployment
andupgrade
directories, moving relevant scripts accordingly.Test Plan
All existing and new deployment and upgrade scripts have been tested on the testnet, confirming that all scripts operate as expected. For details on the test results see the dropdown section below:
Test Results
Deployment Testing
Deployment Script (
Main.s.sol
):The deployment script was run with seed
9032024
on the partner testnet, successfully deploying and verifying contracts at the following addresses:These contracts can be verified on the block explorer:
Contract Config:
setNftContractBeacon
for both GroupingWorkflows and SPG. Transaction details:Upgrade Testing
SPG Upgrade:
A new SPG implementation was deployed and verified on the testnet at
0x211C760754C1F4969F95fB1E2e3A7c927EfCA041
. See the contract details here.upgradeToAndCall
on the SPG proxy contract to point to the new implementation. Transaction details.GroupingWorkflows Upgrade:
A new GroupingWorkflows implementation was deployed and verified on the testnet at
0xBD598Db8D688Ab4488eC45dcb6238D7fB28700e6
. See the contract details here.upgradeToAndCall
on the GroupingWorkflows proxy contract to point to the new implementation. Transaction details.SPGNFT Upgrade:
A new SPGNFT implementation was deployed and verified on the testnet at
0xBD961c2894B3E39af256CE6C6A99F246c6C0991C
. See the contract details here.upgradeCollections
on the SPG proxy contract to point SPGNFT to the new implementation. Transaction details.Related Issue
This PR closes #49