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