-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(deploy): add hh deploy script for registry (#6)
* feat: merged chugsplash manager into registry * fix(merge): allow multiple proposed bundles per project * feat(deploy): add hh deploy script for registry
- Loading branch information
1 parent
632db1f
commit 6403ed2
Showing
3 changed files
with
32 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,5 @@ | ||
--- | ||
'@chugsplash/contracts': patch | ||
--- | ||
|
||
Add hardhat-deploy script for ChugSplashRegistry |
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,22 @@ | ||
/* Imports: External */ | ||
import { DeployFunction } from 'hardhat-deploy/dist/types' | ||
|
||
const deployFn: DeployFunction = async (hre) => { | ||
const { deployer } = await hre.getNamedAccounts() | ||
|
||
const { deploy } = await hre.deployments.deterministic('ChugSplashRegistry', { | ||
salt: hre.ethers.utils.solidityKeccak256( | ||
['string'], | ||
['ChugSplashRegistry'] | ||
), | ||
from: deployer, | ||
args: [], | ||
log: true, | ||
}) | ||
|
||
await deploy() | ||
} | ||
|
||
deployFn.tags = ['ChugSplashRegistry'] | ||
|
||
export default deployFn |
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