Skip to content

Commit

Permalink
chore: deploy discourse contract to mainnet (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
aahna-ashina committed Mar 22, 2023
1 parent 6591cab commit c2f0ece
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Expand Up @@ -121,3 +121,4 @@ npx hardhat verify --network mainnet <address>

- GitHub.sol: `0xB989C0C17a3Bce679D7586d9e55B6Eab11c18687`
- Discord.sol: `0x3415f4ffb9f89fba0ab446da4a78223e4cd73bad`
- Discourse: `0xC396F3536Cc67913bbE1e5E454c10BBA4ae8928F`
30 changes: 30 additions & 0 deletions scripts/deploy-discourse.ts
@@ -0,0 +1,30 @@
// We require the Hardhat Runtime Environment explicitly here. This is optional
// but useful for running the script in a standalone fashion through `node <script>`.
//
// When running the script with `npx hardhat run <script>` you'll find the Hardhat
// Runtime Environment's members available in the global scope.
import { ethers } from "hardhat";

async function main() {
// Hardhat always runs the compile task when running scripts with its command
// line interface.
//
// If this script is run directly using `node` you may want to call compile
// manually to make sure everything is compiled
// await hre.run('compile');

// We get the contract to deploy
const Discourse = await ethers.getContractFactory("Discourse");
const discourse = await Discourse.deploy();

await discourse.deployed();

console.log("Discourse deployed to:", discourse.address);
}

// We recommend this pattern to be able to use async/await everywhere
// and properly handle errors.
main().catch((error) => {
console.error(error);
process.exitCode = 1;
});

0 comments on commit c2f0ece

Please sign in to comment.