Skip to content

Commit

Permalink
chore(deploy-upgrade): update usage comments
Browse files Browse the repository at this point in the history
  • Loading branch information
sebsadface committed Sep 3, 2024
1 parent fe0d1cb commit f95ddd8
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 12 deletions.
8 changes: 6 additions & 2 deletions script/deployment/Main.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,12 @@ contract Main is Script, StoryProtocolCoreAddressManager, BroadcastManager, Json

constructor() JsonDeploymentHandler("main") {}

/// @dev To use, run the following command (e.g. for Sepolia):
/// forge script script/deployment/Main.s.sol:Main --rpc-url $RPC_URL --broadcast --verify -vvvv
/// @dev To use, run the following command (e.g., for Story Iliad testnet):
/// forge script script/deployment/Main.s.sol:Main --rpc-url=$TESTNET_URL \
/// -vvvv --broadcast --priority-gas-price=1 --legacy \
/// --verify --verifier=$VERIFIER_NAME --verifier-url=$VERIFIER_URL
///
/// For detailed examples, see the documentation in `../../docs/DEPLOY_UPGRADE.md`.
function run() public {
_readStoryProtocolCoreAddresses();
_beginBroadcast();
Expand Down
9 changes: 6 additions & 3 deletions script/deployment/MockRewardPool.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,12 @@ contract MockRewardPool is Script, BroadcastManager, JsonDeploymentHandler {

constructor() JsonDeploymentHandler("main") {}

/// @dev To use, run the following command (e.g. for Sepolia):
/// forge script script/deployment/MockRewardPool.s.sol:MockRewardPool --rpc-url $RPC_URL --broadcast --verify -vvvv

/// @dev To use, run the following command (e.g., for Story Iliad testnet):
/// forge script script/deployment/MockRewardPool.s.sol:MockRewardPool --rpc-url=$TESTNET_URL \
/// -vvvv --broadcast --priority-gas-price=1 --legacy \
/// --verify --verifier=$VERIFIER_NAME --verifier-url=$VERIFIER_URL
///
/// For detailed examples, see the documentation in `../../docs/DEPLOY_UPGRADE.md`.
function run() public {
_beginBroadcast(); // BroadcastManager.s.sol
_deployMockRewardPool();
Expand Down
9 changes: 6 additions & 3 deletions script/upgrade/UpgradeGroupingWorkflows.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,12 @@ contract UpgradeGroupingWorkflows is

constructor() JsonDeploymentHandler("main") {}

/// @dev To use, run the following command (e.g. for Sepolia):
/// forge script script/upgrade/UpgradeGroupingWorkflows.s.sol:UpgradeGroupingWorkflows
/// --rpc-url $RPC_URL --broadcast --verify -vvvv
/// @dev To use, run the following command (e.g., for Story Iliad testnet):
/// forge script script/upgrade/UpgradeGroupingWorkflows.s.sol:UpgradeGroupingWorkflows \
/// --rpc-url=$TESTNET_URL -vvvv --broadcast --priority-gas-price=1 --legacy \
/// --verify --verifier=$VERIFIER_NAME --verifier-url=$VERIFIER_URL
///
/// For detailed examples, see the documentation in `../../docs/DEPLOY_UPGRADE.md`.
function run() public {
_readStoryProtocolCoreAddresses();
_readStoryProtocolPeripheryAddresses();
Expand Down
8 changes: 6 additions & 2 deletions script/upgrade/UpgradeSPG.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,12 @@ contract UpgradeSPG is

constructor() JsonDeploymentHandler("main") {}

/// @dev To use, run the following command (e.g. for Sepolia):
/// forge script script/upgrade/UpgradeSPG.s.sol:UpgradeSPG --rpc-url $RPC_URL --broadcast --verify -vvvv
/// @dev To use, run the following command (e.g., for Story Iliad testnet):
/// forge script script/upgrade/UpgradeSPG.s.sol:UpgradeSPG \
/// --rpc-url=$TESTNET_URL -vvvv --broadcast --priority-gas-price=1 --legacy \
/// --verify --verifier=$VERIFIER_NAME --verifier-url=$VERIFIER_URL
///
/// For detailed examples, see the documentation in `../../docs/DEPLOY_UPGRADE.md`.
function run() public {
_readStoryProtocolCoreAddresses();
_readStoryProtocolPeripheryAddresses();
Expand Down
8 changes: 6 additions & 2 deletions script/upgrade/UpgradeSPGNFT.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,12 @@ contract UpgradeSPGNFT is Script, StoryProtocolPeripheryAddressManager, Broadcas

constructor() JsonDeploymentHandler("main") {}

/// @dev To use, run the following command (e.g. for Sepolia):
/// forge script script/upgrade/UpgradeSPGNFT.s.sol:UpgradeSPGNFT --rpc-url $RPC_URL --broadcast --verify -vvvv
/// @dev To use, run the following command (e.g., for Story Iliad testnet):
/// forge script script/upgrade/UpgradeSPGNFT.s.sol:UpgradeSPGNFT \
/// --rpc-url=$TESTNET_URL -vvvv --broadcast --priority-gas-price=1 --legacy \
/// --verify --verifier=$VERIFIER_NAME --verifier-url=$VERIFIER_URL
///
/// For detailed examples, see the documentation in `../../docs/DEPLOY_UPGRADE.md`.
function run() public {
_readStoryProtocolPeripheryAddresses();

Expand Down

0 comments on commit f95ddd8

Please sign in to comment.