Skip to content

Latest commit

 

History

History
31 lines (23 loc) · 1.45 KB

deployment.md

File metadata and controls

31 lines (23 loc) · 1.45 KB

Deployment Guide

Deploying a contract example:

 yarn hardhat run --network lacchain scripts/deployExample.ts

Output:

Using Base Relay Address: 0xa4B5eE2906090ce2cDbf5dfff944db26f397037D
migrations Instance successfully deployed at address: 0xE74B710bCC51fE2B290b8653F9754125f39e4Dd3

Deploying any of the other contracts:

 yarn hardhat run --network lacchain scripts/deployPublicDirectory.ts # Deploys a non-upgradeable instance of the Public Dicrectory Smart Contract
 yarn hardhat run --network lacchain scripts/deployChainOfTrustBase.ts # deploys Base Chain Of Trust Smart Contract
 yarn hardhat run --network lacchain scripts/deployChainOfTrust.ts # deploys Chain Of Trust Smart Contract

Deploying upgradeable contracts:

env DEBUG='@openzeppelin:*' yarn hardhat run --network lacchain scripts/upgradeable/deployExampleUpgradeable.ts # deploys a simple upgradeable contract
env DEBUG='@openzeppelin:*' yarn hardhat run --network lacchain scripts/upgradeable/deployChainOfTrustBaseUpgradeable.ts # deploys a chain of trust base upgradeable contract
env DEBUG='@openzeppelin:*' yarn hardhat run --network lacchain scripts/upgradeable/deployChainOfTrustUpgradeable.ts # deploys a chain of trust didRegistry-integrated upgradeable contract
env DEBUG='@openzeppelin:*' yarn hardhat run --network lacchain scripts/upgradeable/deployPublicDirectoryUpgradeable.ts # deploys upgradeable version of public directory smart contract