generated from dev-protocol/template-repos-ts-sol
-
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
Showing
2 changed files
with
34 additions
and
2 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
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,32 @@ | ||
import { ethers, run } from 'hardhat' | ||
|
||
async function main() { | ||
console.log('Starting deploySBTFactory script on sbt-tokens...') | ||
|
||
const [signer] = await ethers.getSigners() | ||
console.log('Signer is: ', signer.address) | ||
console.log() | ||
|
||
// >>> Deploy SBTFactory >>> | ||
console.log('Deploying SBTFactory...') | ||
const sbtFactoryFactory = await ethers.getContractFactory('SBTFactory') | ||
const sbtFactoryInstance = await sbtFactoryFactory.deploy() | ||
await sbtFactoryInstance.deployed() | ||
console.log(` - SBTFactory deployed at address:${sbtFactoryInstance.address}`) | ||
console.log() | ||
|
||
// >>> Verify SBTFactory code >>> | ||
console.log('Verifying SBT implementation contract...') | ||
await run(`verify:verify`, { | ||
address: sbtFactoryInstance.address, | ||
constructorArguments: [], | ||
}) | ||
console.log() | ||
} | ||
|
||
main() | ||
.then(() => process.exit(0)) | ||
.catch((error) => { | ||
console.error(error) | ||
process.exit(1) | ||
}) |