forked from mbcse/lensmint-camera
-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathDeploy.s.sol
More file actions
33 lines (25 loc) · 1.25 KB
/
Deploy.s.sol
File metadata and controls
33 lines (25 loc) · 1.25 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
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
import {Script, console} from "forge-std/Script.sol";
import {DeviceRegistry} from "../src/DeviceRegistry.sol";
import {LensMintERC1155} from "../src/LensMintERC1155.sol";
contract DeployScript is Script {
function run() external {
// Signer must be supplied via forge CLI (--account, --keystore, --password, --private-key, etc.)
console.log("Deploying contracts...");
console.log("Signer: forge broadcast (see forge script --help)");
vm.startBroadcast();
console.log("\nDeploying DeviceRegistry...");
DeviceRegistry deviceRegistry = new DeviceRegistry();
console.log("DeviceRegistry deployed at:", address(deviceRegistry));
console.log("\nDeploying LensMintERC1155...");
string memory baseURI = "https://ipfs.io/ipfs/";
LensMintERC1155 lensMint = new LensMintERC1155(address(deviceRegistry), baseURI);
console.log("LensMintERC1155 deployed at:", address(lensMint));
vm.stopBroadcast();
console.log("\n=== Deployment Summary ===");
console.log("DeviceRegistry:", address(deviceRegistry));
console.log("LensMintERC1155:", address(lensMint));
console.log("Base URI:", baseURI);
}
}