diff --git a/deploy/09_deploy_escrowchallengeauditcollateral.ts b/deploy/09_deploy_escrowchallengeauditcollateral.ts new file mode 100644 index 00000000..e9b6cff3 --- /dev/null +++ b/deploy/09_deploy_escrowchallengeauditcollateral.ts @@ -0,0 +1,21 @@ +import { HardhatRuntimeEnvironment } from "hardhat/types"; +import { DeployFunction } from "hardhat-deploy/types"; +import "@nomiclabs/hardhat-ethers"; +import { deployAndSaveContract } from "../scripts/utils"; + +const deployFunction: DeployFunction = async function ( + hre: HardhatRuntimeEnvironment +) { + const { deployments } = hre; + const roles = await deployments.get("Roles"); + await deployAndSaveContract( + "EscrowChallengeAuditCollateral", + [roles.address], + hre + ); +}; + +export default deployFunction; + +deployFunction.dependencies = ["Roles"]; +deployFunction.tags = ["EscrowChallengeAuditCollateral"]; diff --git a/deploy/09_deploy_finance.ts b/deploy/10_deploy_finance.ts similarity index 100% rename from deploy/09_deploy_finance.ts rename to deploy/10_deploy_finance.ts diff --git a/deploy/10_deploy_dataset.ts b/deploy/11_deploy_dataset.ts similarity index 100% rename from deploy/10_deploy_dataset.ts rename to deploy/11_deploy_dataset.ts diff --git a/deploy/11_deploy_datasetsrequirement.ts b/deploy/12_deploy_datasetsrequirement.ts similarity index 100% rename from deploy/11_deploy_datasetsrequirement.ts rename to deploy/12_deploy_datasetsrequirement.ts diff --git a/deploy/12_deploy_datasetsproof.ts b/deploy/13_deploy_datasetsproof.ts similarity index 100% rename from deploy/12_deploy_datasetsproof.ts rename to deploy/13_deploy_datasetsproof.ts diff --git a/deploy/13_deploy_datasetschallenge.ts b/deploy/14_deploy_datasetschallenge.ts similarity index 100% rename from deploy/13_deploy_datasetschallenge.ts rename to deploy/14_deploy_datasetschallenge.ts diff --git a/deploy/14_deploy_storages.ts b/deploy/18_deploy_storages.ts similarity index 100% rename from deploy/14_deploy_storages.ts rename to deploy/18_deploy_storages.ts diff --git a/scripts/localnet_docker/devnet.bash b/scripts/localnet_docker/devnet.bash index 21e01827..5ec589fd 100755 --- a/scripts/localnet_docker/devnet.bash +++ b/scripts/localnet_docker/devnet.bash @@ -157,6 +157,7 @@ EscrowDataTradingFeeAddress=$(npx hardhat getProxyAddress --type localnet --name EscrowDatacapChunkLandCollateralAddress=$(npx hardhat getProxyAddress --type localnet --name EscrowDatacapChunkLandCollateral) EscrowDatacapCollateralAddress=$(npx hardhat getProxyAddress --type localnet --name EscrowDatacapCollateral) EscrowChallengeCommissionAddress=$(npx hardhat getProxyAddress --type localnet --name EscrowChallengeCommission) +EscrowChallengeAuditCollateral=$(npx hardhat getProxyAddress --type localnet --name EscrowChallengeAuditCollateral) cat >"${BASEDIR}/contract" <