forked from storyprotocol/protocol-periphery-v1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Main.s.sol
38 lines (32 loc) · 1.26 KB
/
Main.s.sol
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// SPDX-License-Identifier: MIT
pragma solidity 0.8.26;
/* solhint-disable no-console */
// script
import { DeployHelper } from "../utils/DeployHelper.sol";
contract Main is DeployHelper {
address internal CREATE3_DEPLOYER = 0x9fBB3DF7C40Da2e5A0dE984fFE2CCB7C47cd0ABf;
uint256 private constant CREATE3_DEFAULT_SEED = 12;
constructor() DeployHelper(CREATE3_DEPLOYER){}
/// @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 virtual {
_run(CREATE3_DEFAULT_SEED);
}
function run(uint256 seed) public {
_run(seed);
}
function _run(uint256 seed) internal {
// deploy all contracts via DeployHelper
super.run(
seed, // create3 seed
false, // runStorageLayoutCheck
true, // writeDeployments
false // isTest
);
_writeDeployment(); // write deployment json to deployments/deployment-{chainId}.json
}
}