-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathdeploy-all.ts
More file actions
34 lines (26 loc) · 1.02 KB
/
deploy-all.ts
File metadata and controls
34 lines (26 loc) · 1.02 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
import { ethers } from "hardhat";
async function main() {
const [deployer] = await ethers.getSigners();
console.log("Deploying all Base Learn contracts with account:", deployer.address);
console.log("Account balance:", ethers.formatEther(await ethers.provider.getBalance(deployer.address)));
const contracts: Record<string, string> = {};
try {
// Deploy all 13 contracts
// Each contract must be deployed individually
// Users will need to submit each address to Base Learn
console.log("\n=€ Starting deployment of all 13 contracts...\n");
// Add deployment logic here for each contract
// See individual deploy scripts for examples
console.log("\n Deployment complete!");
console.log("Submit your contract addresses at: https://docs.base.org/base-learn/docs/welcome");
} catch (error) {
console.error("Deployment failed:", error);
process.exit(1);
}
}
main()
.then(() => process.exit(0))
.catch((error) => {
console.error(error);
process.exit(1);
});