Skip to content

Commit

Permalink
feat(deploy): add hh deploy script for registry (sphinx-labs#6)
Browse files Browse the repository at this point in the history
* 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
sam-goldman authored Jul 19, 2022
1 parent 632db1f commit 6403ed2
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/clever-fishes-accept.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@chugsplash/contracts': patch
---

Add hardhat-deploy script for ChugSplashRegistry
22 changes: 22 additions & 0 deletions packages/contracts/deploy/000-ChugSplashRegistry.ts
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
5 changes: 5 additions & 0 deletions packages/contracts/hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,11 @@ const config: HardhatUserConfig = {
},
},
},
namedAccounts: {
deployer: {
default: 0,
},
},
}

export default config

0 comments on commit 6403ed2

Please sign in to comment.