diff options
author | Alex Browne <stephenalexbrowne@gmail.com> | 2018-10-11 07:04:37 +0800 |
---|---|---|
committer | Alex Browne <stephenalexbrowne@gmail.com> | 2018-10-16 04:38:33 +0800 |
commit | 974ec23ecd2a445523e0550c0a7f69329d6959f1 (patch) | |
tree | 25ac0cd42c86eb8d6149064880656da340d92719 /packages/contract-wrappers/src/contract_wrappers | |
parent | 68f150eff2c4afeccf7eee43e9f40297f88fc8dd (diff) | |
download | dexon-sol-tools-974ec23ecd2a445523e0550c0a7f69329d6959f1.tar dexon-sol-tools-974ec23ecd2a445523e0550c0a7f69329d6959f1.tar.gz dexon-sol-tools-974ec23ecd2a445523e0550c0a7f69329d6959f1.tar.bz2 dexon-sol-tools-974ec23ecd2a445523e0550c0a7f69329d6959f1.tar.lz dexon-sol-tools-974ec23ecd2a445523e0550c0a7f69329d6959f1.tar.xz dexon-sol-tools-974ec23ecd2a445523e0550c0a7f69329d6959f1.tar.zst dexon-sol-tools-974ec23ecd2a445523e0550c0a7f69329d6959f1.zip |
Apply various PR feedback
Diffstat (limited to 'packages/contract-wrappers/src/contract_wrappers')
6 files changed, 15 insertions, 19 deletions
diff --git a/packages/contract-wrappers/src/contract_wrappers/contract_wrapper.ts b/packages/contract-wrappers/src/contract_wrappers/contract_wrapper.ts index 30095e002..3d37e446c 100644 --- a/packages/contract-wrappers/src/contract_wrappers/contract_wrapper.ts +++ b/packages/contract-wrappers/src/contract_wrappers/contract_wrapper.ts @@ -113,6 +113,7 @@ export abstract class ContractWrapper { return logWithDecodedArgs; } protected _getDefaultContractAddresses(): ContractAddresses { + // TODO(albrow): Figure out better error handling here. return getContractAddressesForNetwork(this._networkId); } private _onLogStateChanged<ArgsType extends ContractEventArgs>(isRemoved: boolean, rawLog: RawLogEntry): void { diff --git a/packages/contract-wrappers/src/contract_wrappers/erc20_proxy_wrapper.ts b/packages/contract-wrappers/src/contract_wrappers/erc20_proxy_wrapper.ts index 605646256..459019877 100644 --- a/packages/contract-wrappers/src/contract_wrappers/erc20_proxy_wrapper.ts +++ b/packages/contract-wrappers/src/contract_wrappers/erc20_proxy_wrapper.ts @@ -20,9 +20,8 @@ export class ERC20ProxyWrapper extends ContractWrapper { * Instantiate ERC20ProxyWrapper * @param web3Wrapper Web3Wrapper instance to use * @param networkId Desired networkId - * @param address (Optional) The address of the ERC20Proxy contract. If - * undefined, will default to the known address corresponding to the - * networkId. + * @param address The address of the ERC20Proxy contract. If undefined, will + * default to the known address corresponding to the networkId. */ constructor(web3Wrapper: Web3Wrapper, networkId: number, address?: string) { super(web3Wrapper, networkId); diff --git a/packages/contract-wrappers/src/contract_wrappers/erc721_proxy_wrapper.ts b/packages/contract-wrappers/src/contract_wrappers/erc721_proxy_wrapper.ts index b1b026a3a..9cf56dec1 100644 --- a/packages/contract-wrappers/src/contract_wrappers/erc721_proxy_wrapper.ts +++ b/packages/contract-wrappers/src/contract_wrappers/erc721_proxy_wrapper.ts @@ -20,9 +20,8 @@ export class ERC721ProxyWrapper extends ContractWrapper { * Instantiate ERC721ProxyWrapper * @param web3Wrapper Web3Wrapper instance to use * @param networkId Desired networkId - * @param address (Optional) The address of the ERC721Proxy contract. If - * undefined, will default to the known address corresponding to the - * networkId. + * @param address The address of the ERC721Proxy contract. If undefined, + * will default to the known address corresponding to the networkId. */ constructor(web3Wrapper: Web3Wrapper, networkId: number, address?: string) { super(web3Wrapper, networkId); diff --git a/packages/contract-wrappers/src/contract_wrappers/exchange_wrapper.ts b/packages/contract-wrappers/src/contract_wrappers/exchange_wrapper.ts index b185b7e0c..67c0351e2 100644 --- a/packages/contract-wrappers/src/contract_wrappers/exchange_wrapper.ts +++ b/packages/contract-wrappers/src/contract_wrappers/exchange_wrapper.ts @@ -53,12 +53,11 @@ export class ExchangeWrapper extends ContractWrapper { * @param networkId Desired networkId. * @param erc20TokenWrapper ERC20TokenWrapper instance to use. * @param erc721TokenWrapper ERC721TokenWrapper instance to use. - * @param address (Optional) The address of the Exchange contract. If + * @param address The address of the Exchange contract. If undefined, will + * default to the known address corresponding to the networkId. + * @param zrxTokenAddress The address of the ZRXToken contract. If * undefined, will default to the known address corresponding to the * networkId. - * @param zrxTokenAddress (Optional) The address of the ZRXToken contract. - * If undefined, will default to the known address corresponding to the - * networkId. * @param blockPollingIntervalMs The block polling interval to use for active subscriptions. */ constructor( diff --git a/packages/contract-wrappers/src/contract_wrappers/forwarder_wrapper.ts b/packages/contract-wrappers/src/contract_wrappers/forwarder_wrapper.ts index b72a77e8b..fe4d0cbda 100644 --- a/packages/contract-wrappers/src/contract_wrappers/forwarder_wrapper.ts +++ b/packages/contract-wrappers/src/contract_wrappers/forwarder_wrapper.ts @@ -32,15 +32,14 @@ export class ForwarderWrapper extends ContractWrapper { * Instantiate ForwarderWrapper * @param web3Wrapper Web3Wrapper instance to use. * @param networkId Desired networkId. - * @param address (Optional) The address of the Exchange contract. If + * @param address The address of the Exchange contract. If undefined, will + * default to the known address corresponding to the networkId. + * @param zrxTokenAddress The address of the ZRXToken contract. If * undefined, will default to the known address corresponding to the * networkId. - * @param zrxTokenAddress (Optional) The address of the ZRXToken contract. - * If undefined, will default to the known address corresponding to the + * @param etherTokenAddress The address of a WETH (Ether token) contract. If + * undefined, will default to the known address corresponding to the * networkId. - * @param etherTokenAddress (Optional) The address of a WETH (Ether token) - * contract. If undefined, will default to the known address corresponding - * to the networkId. */ constructor( web3Wrapper: Web3Wrapper, diff --git a/packages/contract-wrappers/src/contract_wrappers/order_validator_wrapper.ts b/packages/contract-wrappers/src/contract_wrappers/order_validator_wrapper.ts index b7bdfb149..16179447b 100644 --- a/packages/contract-wrappers/src/contract_wrappers/order_validator_wrapper.ts +++ b/packages/contract-wrappers/src/contract_wrappers/order_validator_wrapper.ts @@ -23,9 +23,8 @@ export class OrderValidatorWrapper extends ContractWrapper { * Instantiate OrderValidatorWrapper * @param web3Wrapper Web3Wrapper instance to use. * @param networkId Desired networkId. - * @param address (Optional) The address of the OrderValidator contract. If - * undefined, will default to the known address corresponding to the - * networkId. + * @param address The address of the OrderValidator contract. If undefined, + * will default to the known address corresponding to the networkId. */ constructor(web3Wrapper: Web3Wrapper, networkId: number, address?: string) { super(web3Wrapper, networkId); |