Deploy Helper class to perform deploy
Methods
-
<static> writeContractAddressToFile(fileName, contractAddress)
-
Write contract address to file based on parameter
Parameters:
Name Type Description fileName
String file name contractAddress
Hex contract Address Returns:
-
<async, inner> perform(contractName, web3Provider, contractAbi, contractBin, deployerName [, customOptions] [, constructorArgs])
-
Method deploys contract
Parameters:
Name Type Argument Description contractName
String Contract Name to be deployed web3Provider
Web3 Web3 Provider object contractAbi
String Contract Abi to be deployed contractBin
String Contract Bin file to be deployed deployerName
String Deployer name customOptions
Object <optional>
Custom options for value/utility chain constructorArgs
Object <optional>
Arguments to be passed while deploying contract Returns:
- Type
- Promise.<Object>