Add missing doc comments

This commit is contained in:
Fabio Berger
2018-08-03 17:13:10 +02:00
parent 10f6647ab3
commit 3ee3fc2fb3
14 changed files with 81 additions and 5 deletions

View File

@@ -16,6 +16,14 @@ export class ERC20ProxyWrapper extends ContractWrapper {
public abi: ContractAbi = artifacts.ERC20Proxy.compilerOutput.abi;
private _erc20ProxyContractIfExists?: ERC20ProxyContract;
private _contractAddressIfExists?: string;
/**
* Instantiate ERC20ProxyWrapper. We recommend you don't instantiate this yourself, rather
* use it through the ContractWrappers class property (contractWrappers.erc20Proxy).
* @param web3Wrapper Web3Wrapper instance to use
* @param networkId Desired networkId
* @param contractAddressIfExists The contract address to use. This is usually pulled from
* the artifacts but needs to be specified when using with your own custom testnet.
*/
constructor(web3Wrapper: Web3Wrapper, networkId: number, contractAddressIfExists?: string) {
super(web3Wrapper, networkId);
this._contractAddressIfExists = contractAddressIfExists;