-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathDeployMintRewards.sol
More file actions
34 lines (24 loc) · 1.15 KB
/
DeployMintRewards.sol
File metadata and controls
34 lines (24 loc) · 1.15 KB
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
pragma solidity ^0.8.20;
import {Script} from "forge-std/Script.sol";
import "lib/forge-std/src/console.sol";
import {SplitFeesCore} from "src/core/SplitFeesCore.sol";
import {SplitWallet} from "src/core/SplitWallet.sol";
import {SplitFeesModule} from "src/module/SplitFeesModule.sol";
contract DeployTWCloneFactoryScript is Script {
address createX = 0xba5Ed099633D3B313e4D5F7bdc1305d3c28ba5Ed;
SplitFeesCore splitCore;
SplitFeesModule splitModule;
function run() external {
uint256 deployerPrivateKey = vm.envUint("DEPLOYER_PRIVATE_KEY");
address deployerAddress = vm.addr(deployerPrivateKey);
vm.startBroadcast(deployerPrivateKey);
bytes32 salt = keccak256(abi.encode("thirdweb-1"));
splitCore = new SplitFeesCore{salt: salt}(deployerAddress, new address[](0), new bytes[](0));
splitModule = new SplitFeesModule();
console.log("split core deployed: ", address(splitCore));
console.log("split module deployed: ", address(splitModule));
splitCore.installModule(address(splitModule), new bytes(0));
console.log("split module installed");
vm.stopBroadcast();
}
}