Create a package and its representative Avail module.
The ModuleName of the package.
A function to be run upon the successful creation of the package.
A function that accepts a ErrorCode that describes the failure and a nullable Throwable.
nullable