-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add assessment and nexus viewer contracts deploy script for te…
…sting
- Loading branch information
Showing
1 changed file
with
28 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
const { ethers, network } = require('hardhat'); | ||
|
||
const STV = '0xcafea5E8a7a54dd14Bb225b66C7a016dfd7F236b'; // StakingViewer | ||
const MS = '0x01BFd82675DBCc7762C84019cA518e701C0cD07e'; // NXMaster | ||
|
||
const main = async () => { | ||
console.log(`Starting deploy script on ${network.name} network`); | ||
|
||
console.log('Getting a signer'); | ||
const [signer] = await ethers.getSigners(); | ||
|
||
console.log('Deploying contracts'); | ||
const assessmentViewerImplementation = await ethers.deployContract('AssessmentViewer', [MS], signer); | ||
const nexusViewerImplementation = await ethers.deployContract( | ||
'NexusViewer', | ||
[MS, STV, assessmentViewerImplementation.address], | ||
signer, | ||
); | ||
|
||
console.log('AssessmentViewer implementation address:', assessmentViewerImplementation.address); | ||
console.log('NexusViewer implementation address:', nexusViewerImplementation.address); | ||
}; | ||
main() | ||
.then(() => process.exit(0)) | ||
.catch(error => { | ||
console.error(error); | ||
process.exit(1); | ||
}); |