-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Admin
committed
Nov 29, 2024
1 parent
c307e0e
commit 94123df
Showing
7 changed files
with
154 additions
and
169 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,4 +12,7 @@ docs/ | |
|
||
# Dotenv file | ||
.env | ||
.gas-report | ||
.gas-snapshot | ||
|
||
instructions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
// SPDX-License-Identifier: UNLICENSED | ||
pragma solidity ^0.8.13; | ||
|
||
import {Script, console2} from "forge-std/Script.sol"; | ||
import {UserProfile} from "../src/UserProfile.sol"; | ||
import {QuadraticFunding} from "../src/QuadraticFunding.sol"; | ||
import {Project} from "../src/Project.sol"; | ||
import {PlatformToken} from "../src/PlatformToken.sol"; | ||
|
||
contract DeployScript is Script { | ||
function setUp() public {} | ||
|
||
function run() public { | ||
uint256 deployerPrivateKey = vm.envUint("PRIVATE_KEY"); | ||
vm.startBroadcast(deployerPrivateKey); | ||
|
||
// Deploy PlatformToken first | ||
PlatformToken token = new PlatformToken(); | ||
console2.log("PlatformToken deployed to:", address(token)); | ||
|
||
// Deploy UserProfile | ||
UserProfile userProfile = new UserProfile(); | ||
console2.log("UserProfile deployed to:", address(userProfile)); | ||
|
||
// Deploy Project contract with UserProfile dependency | ||
Project project = new Project(address(userProfile)); | ||
console2.log("Project deployed to:", address(project)); | ||
|
||
// Deploy QuadraticFunding with dependencies | ||
QuadraticFunding qf = new QuadraticFunding(payable(address(project))); | ||
console2.log("QuadraticFunding deployed to:", address(qf)); | ||
|
||
vm.stopBroadcast(); | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters