Skip to content

Commit

Permalink
fix up deploy scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
ethereumdegen committed Mar 17, 2023
1 parent 58cc530 commit 2eee3b0
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ contract EnumerableSetAllowlist is IAllowlistManager,IEnumerableSetAllowlist {
address[] calldata _addressList
) public
onlyCommitmentOwner(_commitmentId)
{
{

delete allowList[_commitmentId];
_addToAllowlist(_commitmentId, _addressList);
Expand Down
38 changes: 38 additions & 0 deletions packages/contracts/deploy/00_deploy_commitment_allowlists.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
import { DeployFunction } from 'hardhat-deploy/dist/types'
import { deploy } from 'helpers/deploy-helpers'

const deployFn: DeployFunction = async (hre) => {


// const tellerV2 = await hre.contracts.get('TellerV2')
const lenderCommitmentForwarder = await hre.contracts.get('LenderCommitmentForwarder')



await deploy({
contract: 'EnumerableSetAllowlist',
args: [ lenderCommitmentForwarder.address ],
proxy: {
proxyContract: 'OpenZeppelinTransparentProxy',

},
skipIfAlreadyDeployed: true,
hre,
})

await deploy({
contract: 'OpenAllowlist',
args: [ ],
proxy: {
proxyContract: 'OpenZeppelinTransparentProxy',

},
skipIfAlreadyDeployed: true,
hre,
})
}

// tags and deployment
deployFn.tags = ['commitment-allowlists']
deployFn.dependencies = ['teller-v2']
export default deployFn

0 comments on commit 2eee3b0

Please sign in to comment.