chore: remove unused legacy snt deploy script (#19)

This was kept around as I wasn't sure if this was still needed but now
that we've removed the legacy folder and are aiming for adding SNT as a
vendor dependency it's most likely no longer needed.

If we still need something like that, we'd implement it as foundry
script.
This commit is contained in:
r4bbit 2023-09-18 09:03:54 +02:00 committed by GitHub
parent 8e16f5b315
commit b9782cfdf5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 45 deletions

View File

@ -1,45 +0,0 @@
// We require the Hardhat Runtime Environment explicitly here. This is optional
// but useful for running the script in a standalone fashion through `node <script>`.
//
// You can also run a script with `npx hardhat run <script>`. If you do that, Hardhat
// will compile your contracts, add the Hardhat Runtime Environment's members to the
// global scope, and execute the script.
const hre = require("hardhat");
async function main() {
const [deployer] = await ethers.getSigners();
console.log(`Deploying contracts to ${network.name} (${network.config.chainId}) with the account: ${deployer.address}`);
const miniMeTokenFactory = await ethers.deployContract("MiniMeTokenFactory");
const miniMeToken = await ethers.deployContract(
"MiniMeToken", [
miniMeTokenFactory.target,
ethers.ZeroAddress,
0,
network.config.chainId == 1 ? "Status Network Token" : "Status Test Token",
18,
network.config.chainId == 1 ? "SNT" : "STT",
true
]);
const tokenController = await ethers.deployContract(
network.config.chainId == 1 ? "SNTPlaceHolder" : "SNTFaucet",
[
deployer.address,
miniMeToken.target
]
);
await miniMeToken.changeController(tokenController.target);
console.log(
`${network.config.chainId == 1 ? "SNT" : "STT"} ${miniMeToken.target} controlled by ${await miniMeToken.controller()}`
);
console.log(
`${network.config.chainId == 1 ? "SNTPlaceHolder" : "SNTFaucet"} ${tokenController.target} owned by ${await tokenController.owner()}`
);
}
// 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;
});