import { deployNodes } from "./nodes" ; import { ContractManager , BountyV2 } from "../../../typechain" ; import { defaultDeploy , deployFunctionFactory } from "./factory" ; import { deployConstantsHolder } from "./constantsHolder" ; import { deployTimeHelpers } from "./delegation/timeHelpers" ; import { deployWallets } from "./wallets" ; const deployBounty = deployFunctionFactory ( "BountyV2" , async ( contractManager ) => { await deployConstantsHolder ( contractManager ) ; await deployNodes ( contractManager ) ; await deployTimeHelpers ( contractManager ) ; await deployWallets ( contractManager ) ; } , async ( contractManager ) => { const bounty = await defaultDeploy ( "BountyV2" , contractManager ) ; await contractManager . setContractsAddress ( "Bounty" , bounty . address ) ; return bounty ; } ) ; export { deployBounty } ;