Skip to content

Commit

Permalink
chore: add assessment and nexus viewer contracts deploy script for te…
Browse files Browse the repository at this point in the history
…sting
  • Loading branch information
mixplore authored and shark0der committed Oct 31, 2024
1 parent b3cede2 commit 1c624c3
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions scripts/deploy/assessment-and-nexus-viewer-deploy.js
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);
});

0 comments on commit 1c624c3

Please sign in to comment.