Skip to content

Commit

Permalink
add deployment scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert Leonard authored and Robert Leonard committed Sep 11, 2023
1 parent 57e4afc commit 41588a9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
"main": "index.js",
"repository": "[email protected]:identity-com/did-bnb.git",
"license": "MIT",
"scripts": {
"deploy-and-verify-contract": "npx hardhat verify --network $(npx hardhat run --network testnetBnb scripts/deployProxy.ts)",
"upgrade-and-verify-contract": "npx hardhat verify --network $(npx hardhat run --network testnetBnb scripts/upgradeProxyImplementation.ts)"
},
"devDependencies": {
"@nomicfoundation/hardhat-ethers": "^3.0.4",
"@nomicfoundation/hardhat-foundry": "^1.1.1",
Expand Down
2 changes: 1 addition & 1 deletion scripts/deployProxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ async function main() {
const deployment = await upgrades.deployProxy(didRegistryProxyContract, []);
await deployment.waitForDeployment();

console.log(`DidRegistry admin deployed at address: ${await deployment.getAddress()}`);
console.log(`${await deployment.getAddress()}`);
}


Expand Down
2 changes: 1 addition & 1 deletion scripts/upgradeProxyImplementation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ async function main() {
const didRegistryContract = await ethers.getContractFactory("DIDRegistry");
const deployment = await upgrades.upgradeProxy(process.env.DID_REGISTRY_PROXY_ADDRESS!, didRegistryContract);
await deployment.waitForDeployment();
console.log(`DidRegistry upgraded to: `, await deployment.getAddress());
console.log(await deployment.getAddress());
}


Expand Down

0 comments on commit 41588a9

Please sign in to comment.