-
Notifications
You must be signed in to change notification settings - Fork 0
/
DeployMarketplace.s.sol
42 lines (36 loc) · 1.07 KB
/
DeployMarketplace.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
39
40
41
42
// SPDX-License-Identifier: Apache-2.0
pragma solidity ^0.8.24;
import {Marketplace} from "../../contracts/Marketplace.sol";
import "forge-std/src/Script.sol";
contract DeployMarketplace is Script {
uint256 deployerPrivateKey;
address initialOwner;
address productFactory;
string name;
string symbol;
address[] rentCurrencies;
address treasury;
uint256 feePoints;
function setUp() public {
deployerPrivateKey = vm.envUint("PRIVATE_KEY");
initialOwner = vm.addr(deployerPrivateKey);
productFactory = 0x1dFC014B1852f0c81d11A3535335f1984cD4CE37;
name = "Marketplace";
symbol = "MKTP";
treasury = 0x3F3786B67DC1874C3Bd8e8CD61F5eea87604470F;
feePoints = 100; // 100/10000 = 10%
}
function run() public {
vm.startBroadcast(deployerPrivateKey);
new Marketplace(
initialOwner,
productFactory,
name,
symbol,
rentCurrencies,
payable(treasury),
feePoints
);
vm.stopBroadcast();
}
}